Class CMISNodeInfoImpl

  • All Implemented Interfaces:
    org.alfresco.opencmis.dictionary.CMISNodeInfo

    public class CMISNodeInfoImpl
    extends Object
    implements org.alfresco.opencmis.dictionary.CMISNodeInfo
    CMIS representation of a node. Tries to avoid getting the node's version history where possible (because it's not very performant).
    • Constructor Detail

      • CMISNodeInfoImpl

        public CMISNodeInfoImpl()
      • CMISNodeInfoImpl

        public CMISNodeInfoImpl​(CMISConnector connector,
                                org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                org.alfresco.service.namespace.QName nodeType,
                                Map<org.alfresco.service.namespace.QName,​Serializable> nodeProps,
                                VersionHistory versionHistory,
                                boolean checkExists)
      • CMISNodeInfoImpl

        public CMISNodeInfoImpl​(CMISConnector connector,
                                org.alfresco.service.cmr.repository.NodeRef nodeRef)
      • CMISNodeInfoImpl

        public CMISNodeInfoImpl​(CMISConnector connector,
                                org.alfresco.service.cmr.repository.AssociationRef associationRef)
    • Method Detail

      • analyseVersionNode

        protected void analyseVersionNode()
      • analyseCurrentVersion

        protected void analyseCurrentVersion()
      • setUnversioned

        protected void setUnversioned()
      • analyseObjectId

        protected void analyseObjectId()
      • analyseNodeRef

        protected void analyseNodeRef​(boolean checkExists)
      • analyseAssociationRef

        protected void analyseAssociationRef()
      • getObjectId

        public String getObjectId()
        Specified by:
        getObjectId in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • getObjectVariant

        public org.alfresco.opencmis.dictionary.CMISObjectVariant getObjectVariant()
        Specified by:
        getObjectVariant in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • isVariant

        public boolean isVariant​(org.alfresco.opencmis.dictionary.CMISObjectVariant var)
        Specified by:
        isVariant in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • getNodeRef

        public org.alfresco.service.cmr.repository.NodeRef getNodeRef()
        Specified by:
        getNodeRef in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • getCurrentNodeId

        public String getCurrentNodeId()
        Specified by:
        getCurrentNodeId in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • getCurrentNodeNodeRef

        public org.alfresco.service.cmr.repository.NodeRef getCurrentNodeNodeRef()
        Specified by:
        getCurrentNodeNodeRef in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • getCurrentObjectId

        public String getCurrentObjectId()
        Specified by:
        getCurrentObjectId in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • isCurrentVersion

        public boolean isCurrentVersion()
        Specified by:
        isCurrentVersion in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • isPWC

        public boolean isPWC()
        Specified by:
        isPWC in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • hasPWC

        public boolean hasPWC()
        Specified by:
        hasPWC in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • isVersion

        public boolean isVersion()
        Specified by:
        isVersion in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • isLatestVersion

        public boolean isLatestVersion()
        Specified by:
        isLatestVersion in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • isLatestMajorVersion

        public boolean isLatestMajorVersion()
        Specified by:
        isLatestMajorVersion in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • isMajorVersion

        public boolean isMajorVersion()
        Specified by:
        isMajorVersion in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • getVersionLabel

        public String getVersionLabel()
        Specified by:
        getVersionLabel in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • getCheckinComment

        public String getCheckinComment()
        Specified by:
        getCheckinComment in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • getAssociationRef

        public org.alfresco.service.cmr.repository.AssociationRef getAssociationRef()
        Specified by:
        getAssociationRef in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • getType

        public org.alfresco.opencmis.dictionary.TypeDefinitionWrapper getType()
        Specified by:
        getType in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • isFolder

        public boolean isFolder()
        Specified by:
        isFolder in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • isItem

        public boolean isItem()
        Specified by:
        isItem in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • isRootFolder

        public boolean isRootFolder()
        Specified by:
        isRootFolder in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • isDocument

        public boolean isDocument()
        Specified by:
        isDocument in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • isRelationship

        public boolean isRelationship()
        Specified by:
        isRelationship in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • getName

        public String getName()
        Specified by:
        getName in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • getPath

        public String getPath()
        Specified by:
        getPath in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • getCreationDate

        public Serializable getCreationDate()
        Specified by:
        getCreationDate in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • getModificationDate

        public Serializable getModificationDate()
        Specified by:
        getModificationDate in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • getLatestVersionNodeRef

        public org.alfresco.service.cmr.repository.NodeRef getLatestVersionNodeRef​(boolean major)
      • deleteNode

        public void deleteNode()
      • deleteVersion

        public void deleteVersion()
      • getVersion

        protected Version getVersion()
      • checkIfUseful

        public void checkIfUseful​(String what)
      • checkIfFolder

        public void checkIfFolder​(String what)
      • getPropertyValue

        public Serializable getPropertyValue​(String id)
        Specified by:
        getPropertyValue in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • containsPropertyValue

        public boolean containsPropertyValue​(String id)
        Specified by:
        containsPropertyValue in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • putPropertyValue

        public void putPropertyValue​(String id,
                                     Serializable value)
        Specified by:
        putPropertyValue in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • getParents

        public List<org.alfresco.opencmis.dictionary.CMISNodeInfo> getParents()
        Specified by:
        getParents in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • getNodeProps

        public Map<org.alfresco.service.namespace.QName,​Serializable> getNodeProps()
        Specified by:
        getNodeProps in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • getNodeAspects

        public Set<org.alfresco.service.namespace.QName> getNodeAspects()
        Specified by:
        getNodeAspects in interface org.alfresco.opencmis.dictionary.CMISNodeInfo