Class CMISNodeInfoImpl

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

    public class CMISNodeInfoImpl
    extends java.lang.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,
                                java.lang.String objectId)
      • CMISNodeInfoImpl

        public CMISNodeInfoImpl​(CMISConnector connector,
                                org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                org.alfresco.service.namespace.QName nodeType,
                                java.util.Map<org.alfresco.service.namespace.QName,​java.io.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 java.lang.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 java.lang.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 java.lang.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 java.lang.String getVersionLabel()
        Specified by:
        getVersionLabel in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • getCheckinComment

        public java.lang.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 java.lang.String getName()
        Specified by:
        getName in interface org.alfresco.opencmis.dictionary.CMISNodeInfo
      • getPath

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

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

        public java.io.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​(java.lang.String what)
      • checkIfFolder

        public void checkIfFolder​(java.lang.String what)
      • getPropertyValue

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

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

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getParents

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

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

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