Class GenericResource

    • Field Detail

      • identifier

        protected final URI identifier
        Resource identifier.
      • type

        protected final int type
        Resource type.
      • PRESET_PROP

        protected static final Set<QName> PRESET_PROP
        Properties which are set by JCR.
    • Constructor Detail

      • GenericResource

        public GenericResource​(int type,
                               URI identifier,
                               WebDavNamespaceContext namespaceContext)
        Parameters:
        type - resource type
        identifier - resource identifier
        namespaceContext - namespace context
    • Method Detail

      • getIdentifier

        public final URI getIdentifier()
        Specified by:
        getIdentifier in interface Resource
        Returns:
        resource identifier
      • getType

        public final int getType()
        Specified by:
        getType in interface Resource
        Returns:
        resource type
      • getProperties

        public Set<org.exoplatform.common.util.HierarchicalProperty> getProperties​(boolean namesOnly)
                                                                            throws javax.jcr.RepositoryException
        Specified by:
        getProperties in interface Resource
        Parameters:
        namesOnly - - if true "empty" properties will be returned (w/o values inside)
        Returns:
        all properties belonging to this resource
        Throws:
        javax.jcr.RepositoryException - RepositoryException
      • lockDiscovery

        public static org.exoplatform.common.util.HierarchicalProperty lockDiscovery​(String token,
                                                                                     String lockOwner,
                                                                                     String timeOut)
        Returns the information about lock.
        Parameters:
        token - lock token
        lockOwner - lockowner
        timeOut - lock timeout
        Returns:
        lock information
      • supportedLock

        protected org.exoplatform.common.util.HierarchicalProperty supportedLock()
        The information about supported locks.
        Returns:
        information about supported locks
      • supportedMethodSet

        protected org.exoplatform.common.util.HierarchicalProperty supportedMethodSet()
        The information about supported methods.
        Returns:
        information about supported methods