Class RecordableVersionNodeServiceImpl
- java.lang.Object
-
- org.alfresco.repo.version.NodeServiceImpl
-
- org.alfresco.repo.version.Node2ServiceImpl
-
- org.alfresco.module.org_alfresco_module_rm.version.RecordableVersionNodeServiceImpl
-
- All Implemented Interfaces:
RecordableVersionModel
,Version2Model
,VersionBaseModel
,VersionModel
,NodeService
public class RecordableVersionNodeServiceImpl extends Node2ServiceImpl implements RecordableVersionModel
Extended version node service implementation that supports the retrieval of recorded version state.- Since:
- 2.3
- Author:
- Roy Wetherall
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.alfresco.service.cmr.repository.NodeService
NodeService.FindNodeParameters
-
-
Field Summary
-
Fields inherited from class org.alfresco.repo.version.NodeServiceImpl
contentDataDAO, dbNodeService, dicitionaryService, MSG_UNSUPPORTED
-
Fields inherited from interface org.alfresco.module.org_alfresco_module_rm.version.RecordableVersionModel
ASPECT_RECORDED_VERSION, ASPECT_VERSION_RECORD, ASPECT_VERSIONABLE, PROP_DESTROYED, PROP_FILE_PLAN, PROP_FROZEN_OWNER, PROP_RECORD_NODE_REF, PROP_RECORDABLE_VERSION_POLICY, PROP_VERSION_DESCRIPTION, PROP_VERSION_LABEL, PROP_VERSIONED_NODEREF, RMV_PREFIX, RMV_URI
-
Fields inherited from interface org.alfresco.repo.version.Version2Model
ASPECT_LOCALNAME_VERSION, ASPECT_VERSION, ASPECT_VERSION_STORE_ROOT, ASSOC_ROOT_VERSION, ASSOC_SUCCESSOR, CHILD_QNAME_VERSION_HISTORIES, CHILD_QNAME_VERSIONED_ASSOCS, CHILD_QNAME_VERSIONS, NAMESPACE_URI, PROP_ASSOC_DBID, PROP_FROZEN_ACCESSED, PROP_FROZEN_CREATED, PROP_FROZEN_CREATOR, PROP_FROZEN_MODIFIED, PROP_FROZEN_MODIFIER, PROP_FROZEN_NODE_DBID, PROP_FROZEN_NODE_REF, PROP_METADATA_PREFIX, PROP_QNAME_ASSOC_DBID, PROP_QNAME_FROZEN_ACCESSED, PROP_QNAME_FROZEN_CREATED, PROP_QNAME_FROZEN_CREATOR, PROP_QNAME_FROZEN_MODIFIED, PROP_QNAME_FROZEN_MODIFIER, PROP_QNAME_FROZEN_NODE_DBID, PROP_QNAME_FROZEN_NODE_REF, PROP_QNAME_TRANSLATION_VERSIONS, PROP_QNAME_VERSION_DESCRIPTION, PROP_QNAME_VERSION_LABEL, PROP_QNAME_VERSION_NUMBER, PROP_QNAME_VERSIONED_NODE_ID, PROP_VERSION_DESCRIPTION, PROP_VERSION_TYPE, STORE_ID, TYPE_QNAME_VERSION_HISTORY, TYPE_QNAME_VERSIONED_ASSOC
-
Fields inherited from interface org.alfresco.repo.version.VersionBaseModel
ASPECT_LOCALNAME_VERSION_STORE_ROOT, ASSOC_LOCALNAME_ROOT_VERSION, CHILD_VERSION_HISTORIES, CHILD_VERSIONED_ASSOCS, CHILD_VERSIONS, PROP_CREATED_DATE, PROP_CREATOR, PROP_DESCRIPTION, PROP_TRANSLATION_VERSIONS, PROP_VERSION_DESCRIPTION, PROP_VERSION_LABEL, PROP_VERSION_NUMBER, PROP_VERSION_TYPE, PROP_VERSIONED_NODE_ID, STORE_PROTOCOL, TYPE_VERSION_HISTORY, TYPE_VERSIONED_ASSOC
-
Fields inherited from interface org.alfresco.repo.version.VersionModel
ASPECT_VERSION_STORE_ROOT, ASSOC_ROOT_VERSION, ASSOC_SUCCESSOR, CHILD_QNAME_VERSION_HISTORIES, CHILD_QNAME_VERSION_META_DATA, CHILD_QNAME_VERSIONED_ASSOCS, CHILD_QNAME_VERSIONED_ATTRIBUTES, CHILD_QNAME_VERSIONED_CHILD_ASSOCS, CHILD_QNAME_VERSIONS, CHILD_VERSION_META_DATA, CHILD_VERSIONED_ATTRIBUTES, CHILD_VERSIONED_CHILD_ASSOCS, NAMESPACE_URI, PROP_ASSOC_QNAME, PROP_ASSOC_TYPE_QNAME, PROP_FROZEN_ASPECTS, PROP_FROZEN_NODE_ID, PROP_FROZEN_NODE_STORE_ID, PROP_FROZEN_NODE_STORE_PROTOCOL, PROP_FROZEN_NODE_TYPE, PROP_IS_MULTI_VALUE, PROP_IS_PRIMARY, PROP_META_DATA_NAME, PROP_META_DATA_VALUE, PROP_MULTI_VALUE, PROP_NTH_SIBLING, PROP_QNAME, PROP_QNAME_ASSOC_QNAME, PROP_QNAME_ASSOC_TYPE_QNAME, PROP_QNAME_FROZEN_ASPECTS, PROP_QNAME_FROZEN_NODE_ID, PROP_QNAME_FROZEN_NODE_STORE_ID, PROP_QNAME_FROZEN_NODE_STORE_PROTOCOL, PROP_QNAME_FROZEN_NODE_TYPE, PROP_QNAME_IS_MULTI_VALUE, PROP_QNAME_IS_PRIMARY, PROP_QNAME_META_DATA_NAME, PROP_QNAME_META_DATA_VALUE, PROP_QNAME_MULTI_VALUE, PROP_QNAME_NTH_SIBLING, PROP_QNAME_QNAME, PROP_QNAME_TRANSLATION_VERSIONS, PROP_QNAME_VALUE, PROP_QNAME_VERSION_LABEL, PROP_QNAME_VERSION_NUMBER, PROP_QNAME_VERSIONED_NODE_ID, PROP_VALUE, STORE_ID, TYPE_QNAME_VERSION, TYPE_QNAME_VERSION_HISTORY, TYPE_QNAME_VERSION_META_DATA_VALUE, TYPE_QNAME_VERSIONED_ASSOC, TYPE_QNAME_VERSIONED_CHILD_ASSOC, TYPE_QNAME_VERSIONED_PROPERTY, TYPE_VERSION, TYPE_VERSION_META_DATA_VALUE, TYPE_VERSIONED_CHILD_ASSOC, TYPE_VERSIONED_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description RecordableVersionNodeServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<QName>
getAspects(NodeRef nodeRef)
Map<QName,Serializable>
getProperties(NodeRef nodeRef)
protected Set<QName>
processAspects(Set<QName> aspects)
Process frozen aspects.protected Map<QName,Serializable>
processProperties(NodeRef version, Map<QName,Serializable> properties)
Process properties map before returning as frozen state.protected void
processVersionProperties(NodeRef version, Map<QName,Serializable> properties)
Process version properties.void
setRecordModelURIs(List<String> recordModelURIs)
void
setRecordService(RecordService recordService)
-
Methods inherited from class org.alfresco.repo.version.Node2ServiceImpl
getChildAssocs, getParentAssocs, getPrimaryParent, getProperty, getTargetAssocs, getTargetAssocsByPropertyValue, getType
-
Methods inherited from class org.alfresco.repo.version.NodeServiceImpl
addAspect, addChild, addChild, addProperties, cleanup, countChildAssocs, createAssociation, createNode, createNode, createStore, deleteNode, deleteStore, exists, exists, findNodes, getAllRootNodes, getAssoc, getChildAssocs, getChildAssocs, getChildAssocs, getChildAssocs, getChildAssocsByPropertyValue, getChildAssocsWithoutParentAssocsOfType, getChildByName, getChildrenByName, getNodeAclId, getNodeRef, getNodeStatus, getParentAssocs, getPath, getPaths, getRootNode, getSourceAssocs, getStoreArchiveNode, getStores, hasAspect, moveNode, removeAspect, removeAssociation, removeChild, removeChildAssociation, removeProperty, removeSeconaryChildAssociation, removeSecondaryChildAssociation, restoreNode, setAssociations, setChildAssociationIndex, setContentDataDAO, setDbNodeService, setDictionaryService, setProperties, setProperty, setSearcher, setType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.alfresco.service.cmr.repository.NodeService
addAspect, addChild, addChild, addProperties, countChildAssocs, createAssociation, createNode, createNode, createStore, deleteNode, deleteStore, exists, exists, findNodes, getAllRootNodes, getAssoc, getChildAssocs, getChildAssocs, getChildAssocs, getChildAssocs, getChildAssocsByPropertyValue, getChildAssocsWithoutParentAssocsOfType, getChildByName, getChildrenByName, getNodeAclId, getNodeRef, getNodeStatus, getParentAssocs, getPath, getPaths, getRootNode, getSourceAssocs, getStoreArchiveNode, getStores, hasAspect, moveNode, removeAspect, removeAssociation, removeChild, removeChildAssociation, removeProperty, removeSeconaryChildAssociation, removeSecondaryChildAssociation, restoreNode, setAssociations, setChildAssociationIndex, setProperties, setProperty, setType
-
-
-
-
Method Detail
-
setRecordModelURIs
public void setRecordModelURIs(List<String> recordModelURIs)
- Parameters:
recordModelURIs
- namespaces specific to records
-
setRecordService
public void setRecordService(RecordService recordService)
- Parameters:
recordService
- record service
-
getProperties
public Map<QName,Serializable> getProperties(NodeRef nodeRef) throws InvalidNodeRefException
- Specified by:
getProperties
in interfaceNodeService
- Overrides:
getProperties
in classNode2ServiceImpl
- Throws:
InvalidNodeRefException
- See Also:
Node2ServiceImpl.getProperties(org.alfresco.service.cmr.repository.NodeRef)
-
processProperties
protected Map<QName,Serializable> processProperties(NodeRef version, Map<QName,Serializable> properties)
Process properties map before returning as frozen state.- Parameters:
properties
- properties map- Returns:
Map
<QName
,Serializable
> processed property map
-
processVersionProperties
protected void processVersionProperties(NodeRef version, Map<QName,Serializable> properties) throws InvalidNodeRefException
Process version properties.- Parameters:
version
- version node referenceproperties
- properties map- Throws:
InvalidNodeRefException
-
getAspects
public Set<QName> getAspects(NodeRef nodeRef) throws InvalidNodeRefException
- Specified by:
getAspects
in interfaceNodeService
- Overrides:
getAspects
in classNode2ServiceImpl
- Throws:
InvalidNodeRefException
- See Also:
Node2ServiceImpl.getAspects(org.alfresco.service.cmr.repository.NodeRef)
-
-