Class FedoraResourceImpl

    • Field Detail

      • resourceFactory

        protected final org.fcrepo.kernel.api.models.ResourceFactory resourceFactory
      • fedoraId

        protected final org.fcrepo.kernel.api.identifiers.FedoraId fedoraId
    • Constructor Detail

      • FedoraResourceImpl

        protected FedoraResourceImpl​(org.fcrepo.kernel.api.identifiers.FedoraId fedoraId,
                                     String txId,
                                     org.fcrepo.persistence.api.PersistentStorageSessionManager pSessionManager,
                                     org.fcrepo.kernel.api.models.ResourceFactory resourceFactory)
    • Method Detail

      • getId

        public String getId()
        Specified by:
        getId in interface org.fcrepo.kernel.api.models.FedoraResource
      • getChildren

        public Stream<org.fcrepo.kernel.api.models.FedoraResource> getChildren​(Boolean recursive)
        Specified by:
        getChildren in interface org.fcrepo.kernel.api.models.FedoraResource
      • getContainer

        public org.fcrepo.kernel.api.models.FedoraResource getContainer()
        Specified by:
        getContainer in interface org.fcrepo.kernel.api.models.FedoraResource
      • getOriginalResource

        public org.fcrepo.kernel.api.models.FedoraResource getOriginalResource()
        Specified by:
        getOriginalResource in interface org.fcrepo.kernel.api.models.FedoraResource
      • getTimeMap

        public org.fcrepo.kernel.api.models.TimeMap getTimeMap()
        Specified by:
        getTimeMap in interface org.fcrepo.kernel.api.models.FedoraResource
      • getMementoDatetime

        public Instant getMementoDatetime()
        Specified by:
        getMementoDatetime in interface org.fcrepo.kernel.api.models.FedoraResource
      • isMemento

        public boolean isMemento()
        Specified by:
        isMemento in interface org.fcrepo.kernel.api.models.FedoraResource
      • isAcl

        public boolean isAcl()
        Specified by:
        isAcl in interface org.fcrepo.kernel.api.models.FedoraResource
      • findMementoByDatetime

        public org.fcrepo.kernel.api.models.FedoraResource findMementoByDatetime​(Instant mementoDatetime)
        Specified by:
        findMementoByDatetime in interface org.fcrepo.kernel.api.models.FedoraResource
      • getAcl

        public org.fcrepo.kernel.api.models.FedoraResource getAcl()
        Specified by:
        getAcl in interface org.fcrepo.kernel.api.models.FedoraResource
      • hasProperty

        public boolean hasProperty​(String relPath)
        Specified by:
        hasProperty in interface org.fcrepo.kernel.api.models.FedoraResource
      • getCreatedDate

        public Instant getCreatedDate()
        Specified by:
        getCreatedDate in interface org.fcrepo.kernel.api.models.FedoraResource
      • getLastModifiedDate

        public Instant getLastModifiedDate()
        Specified by:
        getLastModifiedDate in interface org.fcrepo.kernel.api.models.FedoraResource
      • hasType

        public boolean hasType​(String type)
        Specified by:
        hasType in interface org.fcrepo.kernel.api.models.FedoraResource
      • getTypes

        public List<URIgetTypes()
        Specified by:
        getTypes in interface org.fcrepo.kernel.api.models.FedoraResource
      • getSystemTypes

        public List<URIgetSystemTypes​(boolean forRdf)
        Specified by:
        getSystemTypes in interface org.fcrepo.kernel.api.models.FedoraResource
      • getUserTypes

        public List<URIgetUserTypes()
        Specified by:
        getUserTypes in interface org.fcrepo.kernel.api.models.FedoraResource
      • getTriples

        public org.fcrepo.kernel.api.RdfStream getTriples()
        Specified by:
        getTriples in interface org.fcrepo.kernel.api.models.FedoraResource
      • getEtagValue

        public String getEtagValue()
        Specified by:
        getEtagValue in interface org.fcrepo.kernel.api.models.FedoraResource
      • getStateToken

        public String getStateToken()
        Specified by:
        getStateToken in interface org.fcrepo.kernel.api.models.FedoraResource
      • isOriginalResource

        public boolean isOriginalResource()
        Specified by:
        isOriginalResource in interface org.fcrepo.kernel.api.models.FedoraResource
      • getDescription

        public org.fcrepo.kernel.api.models.FedoraResource getDescription()
        Specified by:
        getDescription in interface org.fcrepo.kernel.api.models.FedoraResource
      • getDescribedResource

        public org.fcrepo.kernel.api.models.FedoraResource getDescribedResource()
        Specified by:
        getDescribedResource in interface org.fcrepo.kernel.api.models.FedoraResource
      • getSession

        protected org.fcrepo.persistence.api.PersistentStorageSession getSession()
      • getParent

        public org.fcrepo.kernel.api.models.FedoraResource getParent()
                                                              throws org.fcrepo.kernel.api.exception.PathNotFoundException
        Specified by:
        getParent in interface org.fcrepo.kernel.api.models.FedoraResource
        Throws:
        org.fcrepo.kernel.api.exception.PathNotFoundException
      • getCreatedBy

        public String getCreatedBy()
        Specified by:
        getCreatedBy in interface org.fcrepo.kernel.api.models.FedoraResource
      • getLastModifiedBy

        public String getLastModifiedBy()
        Specified by:
        getLastModifiedBy in interface org.fcrepo.kernel.api.models.FedoraResource
      • getFedoraId

        public org.fcrepo.kernel.api.identifiers.FedoraId getFedoraId()
        Specified by:
        getFedoraId in interface org.fcrepo.kernel.api.models.FedoraResource
      • getInteractionModel

        public String getInteractionModel()
        Specified by:
        getInteractionModel in interface org.fcrepo.kernel.api.models.FedoraResource
      • setParentId

        protected void setParentId​(org.fcrepo.kernel.api.identifiers.FedoraId parentId)
        Parameters:
        parentId - the parentId to set
      • setTypes

        protected void setTypes​(List<URI> types)
        Parameters:
        types - the types to set
      • setLastModifiedDate

        protected void setLastModifiedDate​(Instant lastModifiedDate)
        Parameters:
        lastModifiedDate - the lastModifiedDate to set
      • setLastModifiedBy

        protected void setLastModifiedBy​(String lastModifiedBy)
        Parameters:
        lastModifiedBy - the lastModifiedBy to set
      • setCreatedDate

        protected void setCreatedDate​(Instant createdDate)
        Parameters:
        createdDate - the createdDate to set
      • setCreatedBy

        protected void setCreatedBy​(String createdBy)
        Parameters:
        createdBy - the createdBy to set
      • setMementoDatetime

        protected void setMementoDatetime​(Instant mementoDatetime)
        Parameters:
        mementoDatetime - the mementoDatetime to set
      • setStateToken

        protected void setStateToken​(String stateToken)
        Parameters:
        stateToken - the stateToken to set
      • setEtag

        protected void setEtag​(String etag)
        Parameters:
        etag - the etag to set
      • setIsMemento

        public void setIsMemento​(boolean isMemento)
        Parameters:
        isMemento - indicates if the resource is a memento
      • setIsArchivalGroup

        public void setIsArchivalGroup​(boolean isArchivalGroup)
        Parameters:
        isArchivalGroup - true if the resource is an AG
      • setInteractionModel

        public void setInteractionModel​(String interactionModel)
        Parameters:
        interactionModel - the resource's interaction model