Class RestSystemService
java.lang.Object
com.logicaldoc.webservice.AbstractService
com.logicaldoc.webservice.soap.endpoint.SoapSystemService
com.logicaldoc.webservice.rest.endpoint.RestSystemService
- All Implemented Interfaces:
SystemService
,SystemService
- Direct Known Subclasses:
RestSystemSwagger
@Path("/")
@Consumes("application/json")
@Produces("application/json")
public class RestSystemService
extends SoapSystemService
implements SystemService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetInfo()
Retrieves the Installation informationsRetrieves the languages enabled in the server.Retrieves the system statisticsgetTenantStatistics
(long tenantId) Retrieves the statistics of a tenantMethods inherited from class com.logicaldoc.webservice.soap.endpoint.SoapSystemService
getLanguages, getStatistics, getTenantStatistics
Methods inherited from class com.logicaldoc.webservice.AbstractService
convertDateToString, convertStringToDate, getCurrentMessage, isValidateSession, setCurrentMessage, setValidateSession
-
Constructor Details
-
RestSystemService
public RestSystemService()
-
-
Method Details
-
getInfo
Description copied from interface:SystemService
Retrieves the Installation informations- Specified by:
getInfo
in interfaceSystemService
- Specified by:
getInfo
in interfaceSystemService
- Overrides:
getInfo
in classSoapSystemService
- Returns:
- The value object containing the installation informations
- Throws:
WebserviceException
- Error in the webservice
-
getStatistics
@GET @Path("/getStatistics") public List<WSParameter> getStatistics() throws AuthenticationException, WebserviceException, PersistenceExceptionDescription copied from interface:SystemService
Retrieves the system statistics- Specified by:
getStatistics
in interfaceSystemService
- Returns:
- List of stats
- Throws:
AuthenticationException
- Invalid sessionWebserviceException
- Error in the webservicePersistenceException
- Error in the database
-
getTenantStatistics
@GET @Path("/getTenantStatistics") public List<WSParameter> getTenantStatistics(@QueryParam("tenantId") long tenantId) throws AuthenticationException, WebserviceException, PersistenceException Description copied from interface:SystemService
Retrieves the statistics of a tenant- Specified by:
getTenantStatistics
in interfaceSystemService
- Parameters:
tenantId
- identifier of the tenant- Returns:
- List of stats
- Throws:
AuthenticationException
- Invalid sessionWebserviceException
- Error in the webservicePersistenceException
- Error in the database
-
getLanguages
Description copied from interface:SystemService
Retrieves the languages enabled in the server.- Specified by:
getLanguages
in interfaceSystemService
- Returns:
- Array of active languages (en, it, es ....)
-