Interface AdminResource
@Path("/admin")
@Produces("application/json")
public interface AdminResource
Resource for various tasks used by the administrator (like retrieving version numbers)
-
Method Summary
Modifier and TypeMethodDescriptionGet the current version of the REST API on the serverjavax.ws.rs.core.Response
Batch delete dirt queue entries based on filtersjavax.ws.rs.core.Response
deleteDirtQueueEntry
(int entryId) Delete the failed dirt queue entry with given IDfeatureInfo
(String name) Get info about a feature activationgetActionLog
(PagingParameterBean paging, ActionLogParameterBean query) Get the action loggetActionLogActions
(FilterParameterBean filter, SortParameterBean sorting, PagingParameterBean paging) Get the actions, which are logged.
The result can be filtered byname
label
and sorted byname
label
getActionLogTypes
(FilterParameterBean filter, SortParameterBean sorting, PagingParameterBean paging) Get the object types, that are logged.
The result can be filtered byname
label
and sorted byname
label
getDirtQueue
(PagingParameterBean paging, DirtQueueParameterBean filter) Get the sorted list of dirt queue entriesGet a sorted summary of current dirt queue entriesgetErrorLog
(FilterParameterBean filter, PagingParameterBean paging) Get error logGet publish queue information.Perform a maintenance action on the publish queuecom.fasterxml.jackson.databind.JsonNode
Get the public server key as JWKGet information of the current publish process.javax.ws.rs.core.Response
redoDirtQueueEntry
(int entryId) Repeat the failed dirt queue entry with given IDReload the configurationsetMaintenanceMode
(MaintenanceModeRequest request) Set or unset the maintenancemode, including the maintenance message.tools()
Get the tools, that shall be shown in the UIGet available updates
-
Method Details
-
currentVersion
Get the current version of the REST API on the serverApart from the CMS version a map with version information about CMP components for each node will be included.
- Returns:
- VersionResponse
- Throws:
Exception
-
featureInfo
Get info about a feature activation- Parameters:
name
- name of the feature- Returns:
- feature response
-
tools
Get the tools, that shall be shown in the UI- Returns:
- list of tools
- Throws:
Exception
-
publishInfo
Get information of the current publish process. Since collecting the statistics may be resource intensive, this is not done during this request but the statistics are collected in a background job. The delay between the jobs can be configured with the variable$PUBLISH_QUEUE_STATS["refresh_delay"]
and defaults to 60000 milliseconds (one minute).- Returns:
- publish info response
- Throws:
Exception
-
updatesAvailable
Get available updates- Returns:
- response containing available updates
- Throws:
Exception
-
publicKey
Get the public server key as JWK- Returns:
- Public server key as JWK
- Throws:
Exception
-
getActionLog
@GET @Path("/actionlog") ActionLogEntryList getActionLog(@BeanParam PagingParameterBean paging, @BeanParam ActionLogParameterBean query) throws Exception Get the action log- Parameters:
paging
- paging parameterquery
- query parameter- Returns:
- response containing log entries
- Throws:
Exception
-
getActionLogTypes
@GET @Path("/actionlog/types") ActionLogTypeList getActionLogTypes(@BeanParam FilterParameterBean filter, @BeanParam SortParameterBean sorting, @BeanParam PagingParameterBean paging) throws Exception Get the object types, that are logged.
The result can be filtered byname
label
name
label
- Parameters:
filter
- filter parametersorting
- sorting parameterpaging
- paging parameter- Returns:
- response containing a list of object types
- Throws:
Exception
-
getActionLogActions
@GET @Path("/actionlog/actions") ActionModelList getActionLogActions(@BeanParam FilterParameterBean filter, @BeanParam SortParameterBean sorting, @BeanParam PagingParameterBean paging) throws Exception Get the actions, which are logged.
The result can be filtered byname
label
name
label
- Parameters:
filter
- filter parametersorting
- sorting parameterpaging
- paging parameter- Returns:
- response containing a list of actions
- Throws:
Exception
-
getErrorLog
@GET @Path("/errorlog") ErrorLogEntryList getErrorLog(@BeanParam FilterParameterBean filter, @BeanParam PagingParameterBean paging) throws Exception Get error log- Parameters:
filter
- filter parameterpaging
- paging parameter- Returns:
- response containing list of logged errors
- Throws:
Exception
-
getPublishQueue
Get publish queue information. Since collecting the statistics may be resource intensive, this is not done during this request but the statistics are collected in a background job. The delay between the jobs can be configured with the variable$PUBLISH_QUEUE_STATS["refresh_delay"]
and defaults to 60000 milliseconds (one minute).- Returns:
- response containing object counts per node and type
- Throws:
Exception
-
performContentMaintenanceAction
@POST @Path("/content/publishqueue") GenericResponse performContentMaintenanceAction(ContentMaintenanceActionRequest request) throws Exception Perform a maintenance action on the publish queue- Parameters:
request
- maintenance action request- Returns:
- response
- Throws:
Exception
-
getDirtQueue
@GET @Path("/content/dirtqueue") DirtQueueEntryList getDirtQueue(@BeanParam PagingParameterBean paging, @BeanParam DirtQueueParameterBean filter) throws Exception Get the sorted list of dirt queue entries- Parameters:
paging
- paging parametersfilter
- filter parameters- Returns:
- response containing a list of dirt queue entries
- Throws:
Exception
-
getDirtQueueSummary
@GET @Path("/content/dirtqueue/summary") DirtQueueSummaryResponse getDirtQueueSummary() throws ExceptionGet a sorted summary of current dirt queue entries- Returns:
- response containing a sorted summary
- Throws:
Exception
-
deleteDirtQueueEntry
@DELETE @Path("/content/dirtqueue/{id}") javax.ws.rs.core.Response deleteDirtQueueEntry(@PathParam("id") int entryId) throws Exception Delete the failed dirt queue entry with given ID- Parameters:
entryId
- entry ID- Returns:
- empty response
- Throws:
Exception
-
deleteDirtQueueEntries
@DELETE @Path("/content/dirtqueue") javax.ws.rs.core.Response deleteDirtQueueEntries(@BeanParam DirtQueueParameterBean filter) throws Exception Batch delete dirt queue entries based on filters- Parameters:
filter
- filter parameters- Returns:
- empty response
- Throws:
Exception
-
redoDirtQueueEntry
@PUT @Path("/content/dirtqueue/{id}/redo") javax.ws.rs.core.Response redoDirtQueueEntry(@PathParam("id") int entryId) throws Exception Repeat the failed dirt queue entry with given ID- Parameters:
entryId
- entry ID- Returns:
- empty response
- Throws:
Exception
-
reloadConfiguration
Reload the configuration- Returns:
- generic response
- Throws:
Exception
-
setMaintenanceMode
@POST @Path("/maintenance") MaintenanceResponse setMaintenanceMode(MaintenanceModeRequest request) throws Exception Set or unset the maintenancemode, including the maintenance message. When the maintenance mode is enabled, all other sessions will be invalidated.- Parameters:
request
- request- Returns:
- response
- Throws:
Exception
-