public class NodeServiceImpl extends Object implements org.alfresco.service.cmr.repository.NodeService, VersionModel
Modifier and Type | Field and Description |
---|---|
protected ContentDataDAO |
contentDataDAO |
protected org.alfresco.service.cmr.repository.NodeService |
dbNodeService |
protected org.alfresco.service.cmr.dictionary.DictionaryService |
dicitionaryService |
protected static String |
MSG_UNSUPPORTED
Error messages
|
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
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
Constructor and Description |
---|
NodeServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName aspectRef,
Map<org.alfresco.service.namespace.QName,Serializable> aspectProperties) |
List<org.alfresco.service.cmr.repository.ChildAssociationRef> |
addChild(Collection<org.alfresco.service.cmr.repository.NodeRef> parentRefs,
org.alfresco.service.cmr.repository.NodeRef childRef,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName qname) |
org.alfresco.service.cmr.repository.ChildAssociationRef |
addChild(org.alfresco.service.cmr.repository.NodeRef parentRef,
org.alfresco.service.cmr.repository.NodeRef childRef,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName qname) |
void |
addProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Map<org.alfresco.service.namespace.QName,Serializable> properties) |
List<String> |
cleanup()
No-op
|
int |
countChildAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean isPrimary) |
org.alfresco.service.cmr.repository.AssociationRef |
createAssociation(org.alfresco.service.cmr.repository.NodeRef sourceRef,
org.alfresco.service.cmr.repository.NodeRef targetRef,
org.alfresco.service.namespace.QName assocTypeQName) |
org.alfresco.service.cmr.repository.ChildAssociationRef |
createNode(org.alfresco.service.cmr.repository.NodeRef parentRef,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName assocQName,
org.alfresco.service.namespace.QName nodeTypeQName) |
org.alfresco.service.cmr.repository.ChildAssociationRef |
createNode(org.alfresco.service.cmr.repository.NodeRef parentRef,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName assocQName,
org.alfresco.service.namespace.QName nodeTypeQName,
Map<org.alfresco.service.namespace.QName,Serializable> properties) |
org.alfresco.service.cmr.repository.StoreRef |
createStore(String protocol,
String identifier)
Delegates to the
NodeService used as the version store implementation |
void |
deleteNode(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
void |
deleteStore(org.alfresco.service.cmr.repository.StoreRef storeRef) |
boolean |
exists(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Delegates to the
NodeService used as the version store implementation |
boolean |
exists(org.alfresco.service.cmr.repository.StoreRef storeRef)
Delegates to the
NodeService used as the version store implementation |
List<org.alfresco.service.cmr.repository.NodeRef> |
findNodes(org.alfresco.service.cmr.repository.NodeService.FindNodeParameters params) |
Set<org.alfresco.service.cmr.repository.NodeRef> |
getAllRootNodes(org.alfresco.service.cmr.repository.StoreRef storeRef)
Delegates to the
NodeService used as the version store implementation |
Set<org.alfresco.service.namespace.QName> |
getAspects(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Translation for version store
|
org.alfresco.service.cmr.repository.AssociationRef |
getAssoc(Long id)
Gets an association by ID.
|
List<org.alfresco.service.cmr.repository.ChildAssociationRef> |
getChildAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
List<org.alfresco.service.cmr.repository.ChildAssociationRef> |
getChildAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QNamePattern typeQNamePattern,
org.alfresco.service.namespace.QNamePattern qnamePattern)
Performs conversion from version store properties to real associations
|
List<org.alfresco.service.cmr.repository.ChildAssociationRef> |
getChildAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QNamePattern typeQNamePattern,
org.alfresco.service.namespace.QNamePattern qnamePattern,
boolean preload) |
List<org.alfresco.service.cmr.repository.ChildAssociationRef> |
getChildAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QNamePattern typeQName,
org.alfresco.service.namespace.QNamePattern qname,
int maxResults,
boolean preload) |
List<org.alfresco.service.cmr.repository.ChildAssociationRef> |
getChildAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Set<org.alfresco.service.namespace.QName> childNodeTypes) |
List<org.alfresco.service.cmr.repository.ChildAssociationRef> |
getChildAssocsByPropertyValue(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName propertyQName,
Serializable value) |
Collection<org.alfresco.service.cmr.repository.ChildAssociationRef> |
getChildAssocsWithoutParentAssocsOfType(org.alfresco.service.cmr.repository.NodeRef parent,
org.alfresco.service.namespace.QName assocTypeQName) |
org.alfresco.service.cmr.repository.NodeRef |
getChildByName(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName assocTypeQName,
String childName) |
List<org.alfresco.service.cmr.repository.ChildAssociationRef> |
getChildrenByName(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName assocTypeQName,
Collection<String> childNames) |
Long |
getNodeAclId(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Gets, converts and adds the intrinsic properties to the current node's properties
|
org.alfresco.service.cmr.repository.NodeRef |
getNodeRef(Long nodeId)
Delegates to the
NodeService used as the version store implementation |
org.alfresco.service.cmr.repository.NodeRef.Status |
getNodeStatus(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Delegates to the
NodeService used as the version store implementation |
List<org.alfresco.service.cmr.repository.ChildAssociationRef> |
getParentAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef)
The node will appear to be attached to the root of the version store
|
List<org.alfresco.service.cmr.repository.ChildAssociationRef> |
getParentAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QNamePattern typeQNamePattern,
org.alfresco.service.namespace.QNamePattern qnamePattern)
The node will apprear to be attached to the root of the version store
|
org.alfresco.service.cmr.repository.Path |
getPath(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
List<org.alfresco.service.cmr.repository.Path> |
getPaths(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean primaryOnly) |
org.alfresco.service.cmr.repository.ChildAssociationRef |
getPrimaryParent(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Simulates the node begin attached ot the root node of the version store.
|
Map<org.alfresco.service.namespace.QName,Serializable> |
getProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Property translation for version store
|
Serializable |
getProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName qname)
Property translation for version store
|
org.alfresco.service.cmr.repository.NodeRef |
getRootNode(org.alfresco.service.cmr.repository.StoreRef storeRef)
Delegates to the
NodeService used as the version store implementation |
List<org.alfresco.service.cmr.repository.AssociationRef> |
getSourceAssocs(org.alfresco.service.cmr.repository.NodeRef sourceRef,
org.alfresco.service.namespace.QNamePattern qnamePattern) |
org.alfresco.service.cmr.repository.NodeRef |
getStoreArchiveNode(org.alfresco.service.cmr.repository.StoreRef storeRef) |
List<org.alfresco.service.cmr.repository.StoreRef> |
getStores()
Delegates to the
NodeService used as the version store implementation |
List<org.alfresco.service.cmr.repository.AssociationRef> |
getTargetAssocs(org.alfresco.service.cmr.repository.NodeRef sourceRef,
org.alfresco.service.namespace.QNamePattern qnamePattern) |
List<org.alfresco.service.cmr.repository.AssociationRef> |
getTargetAssocsByPropertyValue(org.alfresco.service.cmr.repository.NodeRef sourceRef,
org.alfresco.service.namespace.QNamePattern qnamePattern,
org.alfresco.service.namespace.QName propertyQName,
Serializable propertyValue) |
org.alfresco.service.namespace.QName |
getType(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Type translation for version store
|
boolean |
hasAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName aspectRef)
Translation for version store
|
org.alfresco.service.cmr.repository.ChildAssociationRef |
moveNode(org.alfresco.service.cmr.repository.NodeRef nodeToMoveRef,
org.alfresco.service.cmr.repository.NodeRef newParentRef,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName assocQName) |
void |
removeAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName aspectRef) |
void |
removeAssociation(org.alfresco.service.cmr.repository.NodeRef sourceRef,
org.alfresco.service.cmr.repository.NodeRef targetRef,
org.alfresco.service.namespace.QName assocTypeQName) |
void |
removeChild(org.alfresco.service.cmr.repository.NodeRef parentRef,
org.alfresco.service.cmr.repository.NodeRef childRef) |
boolean |
removeChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef) |
void |
removeProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName qname) |
boolean |
removeSeconaryChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef) |
boolean |
removeSecondaryChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef) |
org.alfresco.service.cmr.repository.NodeRef |
restoreNode(org.alfresco.service.cmr.repository.NodeRef archivedNodeRef,
org.alfresco.service.cmr.repository.NodeRef targetParentNodeRef,
org.alfresco.service.namespace.QName assocTypeQName,
org.alfresco.service.namespace.QName assocQName) |
void |
setAssociations(org.alfresco.service.cmr.repository.NodeRef sourceRef,
org.alfresco.service.namespace.QName assocTypeQName,
List<org.alfresco.service.cmr.repository.NodeRef> targetRefs) |
void |
setChildAssociationIndex(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef,
int index) |
void |
setContentDataDAO(ContentDataDAO contentDataDAO)
Set the DAO to resolved content data reference IDs into ContentData instances
|
void |
setDbNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Sets the db node service, used as the version store implementation
|
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
Sets the dictionary service
|
void |
setProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Map<org.alfresco.service.namespace.QName,Serializable> properties) |
void |
setProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName qame,
Serializable value) |
void |
setSearcher(org.alfresco.service.cmr.search.SearchService searcher)
Sets the searcher
|
void |
setType(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName typeQName) |
protected static final String MSG_UNSUPPORTED
protected org.alfresco.service.cmr.repository.NodeService dbNodeService
protected org.alfresco.service.cmr.dictionary.DictionaryService dicitionaryService
protected ContentDataDAO contentDataDAO
public void setDbNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService
- the node servicepublic void setSearcher(org.alfresco.service.cmr.search.SearchService searcher)
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
public void setContentDataDAO(ContentDataDAO contentDataDAO)
public List<org.alfresco.service.cmr.repository.StoreRef> getStores()
NodeService
used as the version store implementationgetStores
in interface org.alfresco.service.cmr.repository.NodeService
public org.alfresco.service.cmr.repository.StoreRef createStore(String protocol, String identifier)
NodeService
used as the version store implementationcreateStore
in interface org.alfresco.service.cmr.repository.NodeService
public void deleteStore(org.alfresco.service.cmr.repository.StoreRef storeRef)
deleteStore
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwayspublic boolean exists(org.alfresco.service.cmr.repository.StoreRef storeRef)
NodeService
used as the version store implementationexists
in interface org.alfresco.service.cmr.repository.NodeService
public boolean exists(org.alfresco.service.cmr.repository.NodeRef nodeRef)
NodeService
used as the version store implementationexists
in interface org.alfresco.service.cmr.repository.NodeService
public org.alfresco.service.cmr.repository.NodeRef.Status getNodeStatus(org.alfresco.service.cmr.repository.NodeRef nodeRef)
NodeService
used as the version store implementationgetNodeStatus
in interface org.alfresco.service.cmr.repository.NodeService
public org.alfresco.service.cmr.repository.NodeRef getNodeRef(Long nodeId)
NodeService
used as the version store implementationgetNodeRef
in interface org.alfresco.service.cmr.repository.NodeService
public org.alfresco.service.cmr.repository.NodeRef getRootNode(org.alfresco.service.cmr.repository.StoreRef storeRef)
NodeService
used as the version store implementationgetRootNode
in interface org.alfresco.service.cmr.repository.NodeService
public Set<org.alfresco.service.cmr.repository.NodeRef> getAllRootNodes(org.alfresco.service.cmr.repository.StoreRef storeRef)
NodeService
used as the version store implementationgetAllRootNodes
in interface org.alfresco.service.cmr.repository.NodeService
public org.alfresco.service.cmr.repository.ChildAssociationRef createNode(org.alfresco.service.cmr.repository.NodeRef parentRef, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName, org.alfresco.service.namespace.QName nodeTypeQName) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
createNode
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwaysorg.alfresco.service.cmr.repository.InvalidNodeRefException
public org.alfresco.service.cmr.repository.ChildAssociationRef createNode(org.alfresco.service.cmr.repository.NodeRef parentRef, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName, org.alfresco.service.namespace.QName nodeTypeQName, Map<org.alfresco.service.namespace.QName,Serializable> properties) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
createNode
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwaysorg.alfresco.service.cmr.repository.InvalidNodeRefException
public void deleteNode(org.alfresco.service.cmr.repository.NodeRef nodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
deleteNode
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwaysorg.alfresco.service.cmr.repository.InvalidNodeRefException
public org.alfresco.service.cmr.repository.ChildAssociationRef addChild(org.alfresco.service.cmr.repository.NodeRef parentRef, org.alfresco.service.cmr.repository.NodeRef childRef, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName qname) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
addChild
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwaysorg.alfresco.service.cmr.repository.InvalidNodeRefException
public List<org.alfresco.service.cmr.repository.ChildAssociationRef> addChild(Collection<org.alfresco.service.cmr.repository.NodeRef> parentRefs, org.alfresco.service.cmr.repository.NodeRef childRef, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName qname) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
addChild
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwaysorg.alfresco.service.cmr.repository.InvalidNodeRefException
public void removeChild(org.alfresco.service.cmr.repository.NodeRef parentRef, org.alfresco.service.cmr.repository.NodeRef childRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
removeChild
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwaysorg.alfresco.service.cmr.repository.InvalidNodeRefException
public boolean removeChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
removeChildAssociation
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwayspublic boolean removeSeconaryChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
removeSeconaryChildAssociation
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwayspublic boolean removeSecondaryChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
removeSecondaryChildAssociation
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwayspublic org.alfresco.service.cmr.repository.ChildAssociationRef moveNode(org.alfresco.service.cmr.repository.NodeRef nodeToMoveRef, org.alfresco.service.cmr.repository.NodeRef newParentRef, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
moveNode
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwaysorg.alfresco.service.cmr.repository.InvalidNodeRefException
public void setChildAssociationIndex(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef, int index) throws org.alfresco.service.cmr.repository.InvalidChildAssociationRefException
setChildAssociationIndex
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwaysorg.alfresco.service.cmr.repository.InvalidChildAssociationRefException
public org.alfresco.service.namespace.QName getType(org.alfresco.service.cmr.repository.NodeRef nodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
getType
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
public void setType(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName typeQName) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
setType
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
NodeService.setType(org.alfresco.service.cmr.repository.NodeRef, org.alfresco.service.namespace.QName)
public void addAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName aspectRef, Map<org.alfresco.service.namespace.QName,Serializable> aspectProperties) throws org.alfresco.service.cmr.repository.InvalidNodeRefException, org.alfresco.service.cmr.dictionary.InvalidAspectException
addAspect
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwaysorg.alfresco.service.cmr.repository.InvalidNodeRefException
org.alfresco.service.cmr.dictionary.InvalidAspectException
public boolean hasAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName aspectRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException, org.alfresco.service.cmr.dictionary.InvalidAspectException
hasAspect
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
org.alfresco.service.cmr.dictionary.InvalidAspectException
public void removeAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName aspectRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException, org.alfresco.service.cmr.dictionary.InvalidAspectException
removeAspect
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwaysorg.alfresco.service.cmr.repository.InvalidNodeRefException
org.alfresco.service.cmr.dictionary.InvalidAspectException
public Set<org.alfresco.service.namespace.QName> getAspects(org.alfresco.service.cmr.repository.NodeRef nodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
getAspects
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
public Map<org.alfresco.service.namespace.QName,Serializable> getProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
getProperties
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
public Serializable getProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName qname) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
getProperty
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
public void setProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef, Map<org.alfresco.service.namespace.QName,Serializable> properties) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
setProperties
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwaysorg.alfresco.service.cmr.repository.InvalidNodeRefException
public void addProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef, Map<org.alfresco.service.namespace.QName,Serializable> properties) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
addProperties
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwaysorg.alfresco.service.cmr.repository.InvalidNodeRefException
public void setProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName qame, Serializable value) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
setProperty
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwaysorg.alfresco.service.cmr.repository.InvalidNodeRefException
public void removeProperty(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName qname) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
removeProperty
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwaysorg.alfresco.service.cmr.repository.InvalidNodeRefException
public List<org.alfresco.service.cmr.repository.ChildAssociationRef> getParentAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef)
getParentAssocs
in interface org.alfresco.service.cmr.repository.NodeService
NodeService.getParentAssocs(NodeRef)
public List<org.alfresco.service.cmr.repository.ChildAssociationRef> getParentAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QNamePattern typeQNamePattern, org.alfresco.service.namespace.QNamePattern qnamePattern)
getParentAssocs
in interface org.alfresco.service.cmr.repository.NodeService
NodeService.getParentAssocs(NodeRef, QNamePattern, QNamePattern)
public List<org.alfresco.service.cmr.repository.ChildAssociationRef> getChildAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
getChildAssocs
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
RegexQNamePattern.MATCH_ALL
,
getChildAssocs(NodeRef, QNamePattern, QNamePattern)
public List<org.alfresco.service.cmr.repository.ChildAssociationRef> getChildAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QNamePattern typeQNamePattern, org.alfresco.service.namespace.QNamePattern qnamePattern, boolean preload) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
getChildAssocs
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
public List<org.alfresco.service.cmr.repository.ChildAssociationRef> getChildAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QNamePattern typeQNamePattern, org.alfresco.service.namespace.QNamePattern qnamePattern) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
getChildAssocs
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
public List<org.alfresco.service.cmr.repository.ChildAssociationRef> getChildAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QNamePattern typeQName, org.alfresco.service.namespace.QNamePattern qname, int maxResults, boolean preload) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
getChildAssocs
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
public List<org.alfresco.service.cmr.repository.ChildAssociationRef> getChildAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef, Set<org.alfresco.service.namespace.QName> childNodeTypes)
getChildAssocs
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwayspublic List<org.alfresco.service.cmr.repository.ChildAssociationRef> getChildrenByName(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName assocTypeQName, Collection<String> childNames)
getChildrenByName
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwayspublic org.alfresco.service.cmr.repository.NodeRef getChildByName(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName assocTypeQName, String childName)
getChildByName
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwayspublic org.alfresco.service.cmr.repository.ChildAssociationRef getPrimaryParent(org.alfresco.service.cmr.repository.NodeRef nodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
getPrimaryParent
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
public org.alfresco.service.cmr.repository.AssociationRef createAssociation(org.alfresco.service.cmr.repository.NodeRef sourceRef, org.alfresco.service.cmr.repository.NodeRef targetRef, org.alfresco.service.namespace.QName assocTypeQName) throws org.alfresco.service.cmr.repository.InvalidNodeRefException, org.alfresco.service.cmr.repository.AssociationExistsException
createAssociation
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwaysorg.alfresco.service.cmr.repository.InvalidNodeRefException
org.alfresco.service.cmr.repository.AssociationExistsException
public void setAssociations(org.alfresco.service.cmr.repository.NodeRef sourceRef, org.alfresco.service.namespace.QName assocTypeQName, List<org.alfresco.service.cmr.repository.NodeRef> targetRefs)
setAssociations
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwayspublic void removeAssociation(org.alfresco.service.cmr.repository.NodeRef sourceRef, org.alfresco.service.cmr.repository.NodeRef targetRef, org.alfresco.service.namespace.QName assocTypeQName)
removeAssociation
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwayspublic org.alfresco.service.cmr.repository.AssociationRef getAssoc(Long id)
getAssoc
in interface org.alfresco.service.cmr.repository.NodeService
id
- the association idnull
if it does not existpublic List<org.alfresco.service.cmr.repository.AssociationRef> getTargetAssocs(org.alfresco.service.cmr.repository.NodeRef sourceRef, org.alfresco.service.namespace.QNamePattern qnamePattern)
getTargetAssocs
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwayspublic List<org.alfresco.service.cmr.repository.AssociationRef> getTargetAssocsByPropertyValue(org.alfresco.service.cmr.repository.NodeRef sourceRef, org.alfresco.service.namespace.QNamePattern qnamePattern, org.alfresco.service.namespace.QName propertyQName, Serializable propertyValue)
getTargetAssocsByPropertyValue
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwayspublic List<org.alfresco.service.cmr.repository.AssociationRef> getSourceAssocs(org.alfresco.service.cmr.repository.NodeRef sourceRef, org.alfresco.service.namespace.QNamePattern qnamePattern)
getSourceAssocs
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwayspublic org.alfresco.service.cmr.repository.Path getPath(org.alfresco.service.cmr.repository.NodeRef nodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
getPath
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwaysorg.alfresco.service.cmr.repository.InvalidNodeRefException
public List<org.alfresco.service.cmr.repository.Path> getPaths(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean primaryOnly) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
getPaths
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwaysorg.alfresco.service.cmr.repository.InvalidNodeRefException
public org.alfresco.service.cmr.repository.NodeRef getStoreArchiveNode(org.alfresco.service.cmr.repository.StoreRef storeRef)
getStoreArchiveNode
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwayspublic org.alfresco.service.cmr.repository.NodeRef restoreNode(org.alfresco.service.cmr.repository.NodeRef archivedNodeRef, org.alfresco.service.cmr.repository.NodeRef targetParentNodeRef, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName)
restoreNode
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwayspublic Collection<org.alfresco.service.cmr.repository.ChildAssociationRef> getChildAssocsWithoutParentAssocsOfType(org.alfresco.service.cmr.repository.NodeRef parent, org.alfresco.service.namespace.QName assocTypeQName)
getChildAssocsWithoutParentAssocsOfType
in interface org.alfresco.service.cmr.repository.NodeService
UnsupportedOperationException
- alwayspublic Long getNodeAclId(org.alfresco.service.cmr.repository.NodeRef nodeRef) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
getNodeAclId
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
public List<org.alfresco.service.cmr.repository.ChildAssociationRef> getChildAssocsByPropertyValue(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName propertyQName, Serializable value)
getChildAssocsByPropertyValue
in interface org.alfresco.service.cmr.repository.NodeService
public List<org.alfresco.service.cmr.repository.NodeRef> findNodes(org.alfresco.service.cmr.repository.NodeService.FindNodeParameters params)
findNodes
in interface org.alfresco.service.cmr.repository.NodeService
public int countChildAssocs(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean isPrimary) throws org.alfresco.service.cmr.repository.InvalidNodeRefException
countChildAssocs
in interface org.alfresco.service.cmr.repository.NodeService
org.alfresco.service.cmr.repository.InvalidNodeRefException
Copyright © 2005–2017 Alfresco Software. All rights reserved.