Package 

Interface ActionsApi

    • Method Summary

      Modifier and Type Method Description
      abstract ActionDefinitionEntry actionDetails(@Path(value = actionDefinitionId) String actionDefinitionId) Retrieve the details of an action definition Note: this endpoint is available in Alfresco 5.2 and newer versions.
      abstract ActionExecResultEntry actionExec(@Body() ActionBodyExec actionBodyExec) Execute an action Note: this endpoint is available in Alfresco 5.2 and newer versions.
      abstract ActionDefinitionList listActions(@Query(value = skipCount) Integer skipCount, @Query(value = maxItems) Integer maxItems, @Query(value = orderBy) List<String> orderBy, @Query(value = fields) List<String> fields) Retrieve list of available actions Note: this endpoint is available in Alfresco 5.2.2 and newer versions.
      abstract ActionDefinitionList nodeActions(@Path(value = nodeId) String nodeId, @Query(value = skipCount) Integer skipCount, @Query(value = maxItems) Integer maxItems, @Query(value = orderBy) List<String> orderBy, @Query(value = fields) List<String> fields) Retrieve actions for a node Note: this endpoint is available in Alfresco 5.2 and newer versions.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • actionDetails

        @Headers(value = {Content-Type: application/json})@GET(value = alfresco/versions/1/action-definitions/{actionDefinitionId}) abstract ActionDefinitionEntry actionDetails(@Path(value = actionDefinitionId) String actionDefinitionId)

        Retrieve the details of an action definition Note: this endpoint is available in Alfresco 5.2 and newer versions. Retrieve the details of the action denoted by actionDefinitionId. The endpoint is owned by defaultname service owner

        Parameters:
        actionDefinitionId - The identifier of an action definition.
      • actionExec

        @Headers(value = {Content-Type: application/json})@POST(value = alfresco/versions/1/action-executions) abstract ActionExecResultEntry actionExec(@Body() ActionBodyExec actionBodyExec)

        Execute an action Note: this endpoint is available in Alfresco 5.2 and newer versions. Executes an action An action may be executed against a node specified by targetId. For example: `` { \"actionDefinitionId\": \"copy\", \"targetId\": \"4c4b3c43-f18b-43ff-af84-751f16f1ddfd\", \"params\": { \"destination-folder\": \"34219f79-66fa-4ebf-b371-118598af898c\" } } `` Performing a POST with the request body shown above will result in the node identified by ``targetId`` being copied to the destination folder specified in the ``params`` object by the key ``destination-folder``. targetId is optional, however, currently targetId must be a valid node ID. In the future, actions may be executed against different entity types or executed without the need for the context of an entity. Parameters supplied to the action within the ``params`` object will be converted to the expected type, where possible using the DefaultTypeConverter class. In addition: * Node IDs may be supplied in their short form (implicit workspace://SpacesStore prefix) * Aspect names may be supplied using their short form, e.g. cm:versionable or cm:auditable In this example, we add the aspect ``cm:versionable`` to a node using the QName resolution mentioned above: `` { \"actionDefinitionId\": \"add-features\", \"targetId\": \"16349e3f-2977-44d1-93f2-73c12b8083b5\", \"params\": { \"aspect-name\": \"cm:versionable\" } } `` The ``actionDefinitionId`` is the ``id`` of an action definition as returned by the list actions operations (e.g. GET /action-definitions). The action will be executed asynchronously with a 202 HTTP response signifying that the request has been accepted successfully. The response body contains the unique ID of the action pending execution. The ID may be used, for example to correlate an execution with output in the server logs. The endpoint is owned by defaultname service owner @param actionBodyExec Action execution details (required)

      • listActions

        @Headers(value = {Content-Type: application/json})@GET(value = alfresco/versions/1/action-definitions) abstract ActionDefinitionList listActions(@Query(value = skipCount) Integer skipCount, @Query(value = maxItems) Integer maxItems, @Query(value = orderBy) List<String> orderBy, @Query(value = fields) List<String> fields)

        Retrieve list of available actions Note: this endpoint is available in Alfresco 5.2.2 and newer versions. Gets a list of all available actions The default sort order for the returned list is for actions to be sorted by ascending name. You can override the default by using the orderBy parameter. You can use any of the following fields to order the results: * name * title The endpoint is owned by defaultname service owner

        Parameters:
        skipCount - The number of entities that exist in the collection before those included in this list.
        maxItems - The maximum number of items to return in the list.
        orderBy - A string to control the order of the entities returned in a list.
        fields - A list of field names.
      • nodeActions

        @Headers(value = {Content-Type: application/json})@GET(value = alfresco/versions/1/nodes/{nodeId}/action-definitions) abstract ActionDefinitionList nodeActions(@Path(value = nodeId) String nodeId, @Query(value = skipCount) Integer skipCount, @Query(value = maxItems) Integer maxItems, @Query(value = orderBy) List<String> orderBy, @Query(value = fields) List<String> fields)

        Retrieve actions for a node Note: this endpoint is available in Alfresco 5.2 and newer versions. Retrieve the list of actions that may be executed against the given nodeId. The default sort order for the returned list is for actions to be sorted by ascending name. You can override the default by using the orderBy parameter. You can use any of the following fields to order the results: * name * title The endpoint is owned by defaultname service owner

        Parameters:
        nodeId - The identifier of a node.
        skipCount - The number of entities that exist in the collection before those included in this list.
        maxItems - The maximum number of items to return in the list.
        orderBy - A string to control the order of the entities returned in a list.
        fields - A list of field names.