Package org.alfresco.repo.version
Class Node2ServiceImpl
- java.lang.Object
-
- org.alfresco.repo.version.NodeServiceImpl
-
- org.alfresco.repo.version.Node2ServiceImpl
-
- All Implemented Interfaces:
Version2Model,VersionBaseModel,VersionModel,NodeService
public class Node2ServiceImpl extends NodeServiceImpl implements NodeService, Version2Model
The version2 store node service implementation
-
-
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.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 Node2ServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<QName>getAspects(NodeRef nodeRef)Aspects translation for version storeList<ChildAssociationRef>getChildAssocs(NodeRef nodeRef, QNamePattern typeQNamePattern, QNamePattern qnamePattern)Child Assocs translation for version storeList<ChildAssociationRef>getParentAssocs(NodeRef nodeRef, QNamePattern typeQNamePattern, QNamePattern qnamePattern)The node will appear to be attached to the root of the version storeChildAssociationRefgetPrimaryParent(NodeRef nodeRef)Simulates the node begin attached to the root node of the version store.Map<QName,Serializable>getProperties(NodeRef nodeRef)Properties translation for version storeSerializablegetProperty(NodeRef nodeRef, QName qname)Property translation for version storeList<AssociationRef>getTargetAssocs(NodeRef sourceRef, QNamePattern qnamePattern)Assocs translation for version storeList<AssociationRef>getTargetAssocsByPropertyValue(NodeRef sourceRef, QNamePattern qnamePattern, QName propertyQName, Serializable propertyValue)QNamegetType(NodeRef nodeRef)Type translation for version store-
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
-
getType
public QName getType(NodeRef nodeRef) throws InvalidNodeRefException
Type translation for version store- Specified by:
getTypein interfaceNodeService- Overrides:
getTypein classNodeServiceImpl- Throws:
InvalidNodeRefException
-
getAspects
public Set<QName> getAspects(NodeRef nodeRef) throws InvalidNodeRefException
Aspects translation for version store- Specified by:
getAspectsin interfaceNodeService- Overrides:
getAspectsin classNodeServiceImpl- Throws:
InvalidNodeRefException
-
getProperties
public Map<QName,Serializable> getProperties(NodeRef nodeRef) throws InvalidNodeRefException
Properties translation for version store- Specified by:
getPropertiesin interfaceNodeService- Overrides:
getPropertiesin classNodeServiceImpl- Throws:
InvalidNodeRefException
-
getProperty
public Serializable getProperty(NodeRef nodeRef, QName qname) throws InvalidNodeRefException
Property translation for version store- Specified by:
getPropertyin interfaceNodeService- Overrides:
getPropertyin classNodeServiceImpl- Throws:
InvalidNodeRefException
-
getParentAssocs
public List<ChildAssociationRef> getParentAssocs(NodeRef nodeRef, QNamePattern typeQNamePattern, QNamePattern qnamePattern)
The node will appear to be attached to the root of the version store- Specified by:
getParentAssocsin interfaceNodeService- Overrides:
getParentAssocsin classNodeServiceImpl- See Also:
NodeService.getParentAssocs(NodeRef, QNamePattern, QNamePattern)
-
getChildAssocs
public List<ChildAssociationRef> getChildAssocs(NodeRef nodeRef, QNamePattern typeQNamePattern, QNamePattern qnamePattern) throws InvalidNodeRefException
Child Assocs translation for version store- Specified by:
getChildAssocsin interfaceNodeService- Overrides:
getChildAssocsin classNodeServiceImpl- Throws:
InvalidNodeRefException
-
getPrimaryParent
public ChildAssociationRef getPrimaryParent(NodeRef nodeRef) throws InvalidNodeRefException
Simulates the node begin attached to the root node of the version store.- Specified by:
getPrimaryParentin interfaceNodeService- Overrides:
getPrimaryParentin classNodeServiceImpl- Throws:
InvalidNodeRefException
-
getTargetAssocs
public List<AssociationRef> getTargetAssocs(NodeRef sourceRef, QNamePattern qnamePattern)
Assocs translation for version store- Specified by:
getTargetAssocsin interfaceNodeService- Overrides:
getTargetAssocsin classNodeServiceImpl- Since:
- 3.3 (Ent)
-
getTargetAssocsByPropertyValue
public List<AssociationRef> getTargetAssocsByPropertyValue(NodeRef sourceRef, QNamePattern qnamePattern, QName propertyQName, Serializable propertyValue)
Implementation for version store v2
- Specified by:
getTargetAssocsByPropertyValuein interfaceNodeService- Overrides:
getTargetAssocsByPropertyValuein classNodeServiceImpl
-
-