Package org.alfresco.rest.v0
Class UserTrashcanAPI
- java.lang.Object
-
- org.alfresco.rest.core.v0.BaseAPI
-
- org.alfresco.rest.v0.UserTrashcanAPI
-
@Component public class UserTrashcanAPI extends BaseAPI
Helper methods for performing actions on user trashcan- Since:
- 2.6
- Author:
- Oana Nechiforescu
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.alfresco.rest.core.v0.BaseAPI
BaseAPI.PermissionType, BaseAPI.RETENTION_SCHEDULE, BaseAPI.RM_ACTIONS, BaseAPI.RMProperty
-
-
Field Summary
-
Fields inherited from class org.alfresco.rest.core.v0.BaseAPI
ACTIONS_API, contentService, LOGGER, NODE_PREFIX, NODE_REF_WORKSPACE_SPACES_STORE, RM_ACTIONS_API, RM_SITE_ID, SHARE_ACTION_API, UPDATE_METADATA_API
-
-
Constructor Summary
Constructors Constructor Description UserTrashcanAPI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidemptyTrashcan(String username, String password)Clears the trashcan for the current user-
Methods inherited from class org.alfresco.rest.core.v0.BaseAPI
addPropertyToRequest, deleteItem, doDeleteRequest, doGetRequest, doPostJsonRequest, doPostRequest, doPutJsonRequest, doPutRequest, doSlingshotPostJsonRequest, facetedRequest, getFilePlanPath, getItemNodeRef, getNodeRefSpacesStore, getObjectByPath, getPropertyValue, getPropertyValue, getPropertyValues, getPropertyValuesByUniquePropertyValue
-
-
-
-
Method Detail
-
emptyTrashcan
public void emptyTrashcan(String username, String password)
Clears the trashcan for the current user- Parameters:
username- the usernamepassword- the password- Throws:
AssertionError- if emptying the trashcan fails.
-
-