Package org.alfresco.rest.api.impl
Class ContentStorageInformationImpl
- java.lang.Object
-
- org.alfresco.rest.api.impl.ContentStorageInformationImpl
-
- All Implemented Interfaces:
ContentStorageInformation
public class ContentStorageInformationImpl extends Object implements ContentStorageInformation
Default implementation forContentStorageInformation- Author:
- mpichura
-
-
Field Summary
Fields Modifier and Type Field Description static charPREFIX_SEPARATOR
-
Constructor Summary
Constructors Constructor Description ContentStorageInformationImpl(ContentService contentService, org.alfresco.service.namespace.NamespaceService namespaceService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentStorageInfogetStorageInfo(NodeRef nodeRef, String contentPropName, Parameters parameters)booleanrequestArchiveContent(NodeRef nodeRef, String contentPropName, ArchiveContentRequest archiveContentRequest)booleanrequestRestoreContentFromArchive(NodeRef nodeRef, String contentPropName, RestoreArchivedContentRequest restoreArchivedContentRequest)
-
-
-
Field Detail
-
PREFIX_SEPARATOR
public static final char PREFIX_SEPARATOR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ContentStorageInformationImpl
public ContentStorageInformationImpl(ContentService contentService, org.alfresco.service.namespace.NamespaceService namespaceService)
-
-
Method Detail
-
getStorageInfo
public ContentStorageInfo getStorageInfo(NodeRef nodeRef, String contentPropName, Parameters parameters)
- Specified by:
getStorageInfoin interfaceContentStorageInformation- Parameters:
nodeRef- Node referencecontentPropName- Qualified name of content property (e.g. 'cm_content')parameters-Parametersobject to get the parameters passed into the request- Returns:
ContentStorageInfoobject consisting of qualified name of content property and a map of storage properties
-
requestArchiveContent
public boolean requestArchiveContent(NodeRef nodeRef, String contentPropName, ArchiveContentRequest archiveContentRequest)
- Specified by:
requestArchiveContentin interfaceContentStorageInformation- Parameters:
nodeRef- Node referencecontentPropName- Qualified name of content property (e.g. 'cm_content')archiveContentRequest-ArchiveContentRequestobject holding parameters for archive content request- Returns:
- true when request successful, false when unsuccessful
-
requestRestoreContentFromArchive
public boolean requestRestoreContentFromArchive(NodeRef nodeRef, String contentPropName, RestoreArchivedContentRequest restoreArchivedContentRequest)
- Specified by:
requestRestoreContentFromArchivein interfaceContentStorageInformation- Parameters:
nodeRef- Node referencecontentPropName- Qualified name of content property (e.g. 'cm_content')restoreArchivedContentRequest-RestoreArchivedContentRequestobject holding parameters for restore from archive request- Returns:
- true when request successful, false when unsuccessful
-
-