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 SummaryConstructors
- 
Method SummaryModifier 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.SoapSystemServicegetLanguages, getStatistics, getTenantStatisticsMethods inherited from class com.logicaldoc.webservice.AbstractServiceconvertDateToString, convertStringToDate, getCurrentMessage, isValidateSession, setCurrentMessage, setValidateSession
- 
Constructor Details- 
RestSystemServicepublic RestSystemService()
 
- 
- 
Method Details- 
getInfoDescription copied from interface:SystemServiceRetrieves the Installation informations- Specified by:
- getInfoin interface- SystemService
- Specified by:
- getInfoin interface- SystemService
- Overrides:
- getInfoin class- SoapSystemService
- 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:SystemServiceRetrieves the system statistics- Specified by:
- getStatisticsin interface- SystemService
- Returns:
- List of stats
- Throws:
- AuthenticationException- Invalid session
- WebserviceException- Error in the webservice
- PersistenceException- Error in the database
 
- 
getTenantStatistics@GET @Path("/getTenantStatistics") public List<WSParameter> getTenantStatistics(@QueryParam("tenantId") long tenantId) throws AuthenticationException, WebserviceException, PersistenceException Description copied from interface:SystemServiceRetrieves the statistics of a tenant- Specified by:
- getTenantStatisticsin interface- SystemService
- Parameters:
- tenantId- identifier of the tenant
- Returns:
- List of stats
- Throws:
- AuthenticationException- Invalid session
- WebserviceException- Error in the webservice
- PersistenceException- Error in the database
 
- 
getLanguagesDescription copied from interface:SystemServiceRetrieves the languages enabled in the server.- Specified by:
- getLanguagesin interface- SystemService
- Returns:
- Array of active languages (en, it, es ....)
 
 
-