Package org.alfresco.rest.api.impl
Class ContentStorageInformationImpl
java.lang.Object
org.alfresco.rest.api.impl.ContentStorageInformationImpl
- All Implemented Interfaces:
ContentStorageInformation
Default implementation for
ContentStorageInformation
- Author:
- mpichura
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionContentStorageInformationImpl
(ContentService contentService, org.alfresco.service.namespace.NamespaceService namespaceService) -
Method Summary
Modifier and TypeMethodDescriptiongetStorageInfo
(NodeRef nodeRef, String contentPropName, Parameters parameters) boolean
requestArchiveContent
(NodeRef nodeRef, String contentPropName, ArchiveContentRequest archiveContentRequest) boolean
requestRestoreContentFromArchive
(NodeRef nodeRef, String contentPropName, RestoreArchivedContentRequest restoreArchivedContentRequest)
-
Field Details
-
PREFIX_SEPARATOR
public static final char PREFIX_SEPARATOR- See Also:
-
-
Constructor Details
-
ContentStorageInformationImpl
public ContentStorageInformationImpl(ContentService contentService, org.alfresco.service.namespace.NamespaceService namespaceService)
-
-
Method Details
-
getStorageInfo
public ContentStorageInfo getStorageInfo(NodeRef nodeRef, String contentPropName, Parameters parameters) - Specified by:
getStorageInfo
in interfaceContentStorageInformation
- Parameters:
nodeRef
- Node referencecontentPropName
- Qualified name of content property (e.g. 'cm_content')parameters
-Parameters
object to get the parameters passed into the request- Returns:
ContentStorageInfo
object 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:
requestArchiveContent
in interfaceContentStorageInformation
- Parameters:
nodeRef
- Node referencecontentPropName
- Qualified name of content property (e.g. 'cm_content')archiveContentRequest
-ArchiveContentRequest
object 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:
requestRestoreContentFromArchive
in interfaceContentStorageInformation
- Parameters:
nodeRef
- Node referencecontentPropName
- Qualified name of content property (e.g. 'cm_content')restoreArchivedContentRequest
-RestoreArchivedContentRequest
object holding parameters for restore from archive request- Returns:
- true when request successful, false when unsuccessful
-