Class BinaryImpl

  • All Implemented Interfaces:
    org.fcrepo.kernel.api.models.Binary, org.fcrepo.kernel.api.models.FedoraResource

    public class BinaryImpl
    extends FedoraResourceImpl
    implements org.fcrepo.kernel.api.models.Binary
    Implementation of a Non-RDF resource.
    Author:
    bbpennel
    • Constructor Detail

      • BinaryImpl

        public BinaryImpl​(org.fcrepo.kernel.api.identifiers.FedoraId fedoraID,
                          org.fcrepo.kernel.api.Transaction transaction,
                          org.fcrepo.persistence.api.PersistentStorageSessionManager pSessionManager,
                          org.fcrepo.kernel.api.models.ResourceFactory resourceFactory,
                          org.fcrepo.kernel.api.cache.UserTypesCache userTypesCache)
        Construct the binary
        Parameters:
        fedoraID - fedora identifier
        transaction - transaction
        pSessionManager - session manager
        resourceFactory - resource factory
        userTypesCache - the user types cache
    • Method Detail

      • getContent

        public InputStream getContent()
        Specified by:
        getContent in interface org.fcrepo.kernel.api.models.Binary
      • getContentSize

        public long getContentSize()
        Specified by:
        getContentSize in interface org.fcrepo.kernel.api.models.Binary
      • isProxy

        public Boolean isProxy()
        Specified by:
        isProxy in interface org.fcrepo.kernel.api.models.Binary
      • isRedirect

        public Boolean isRedirect()
        Specified by:
        isRedirect in interface org.fcrepo.kernel.api.models.Binary
      • getExternalURL

        public String getExternalURL()
        Specified by:
        getExternalURL in interface org.fcrepo.kernel.api.models.Binary
      • getMimeType

        public String getMimeType()
        Specified by:
        getMimeType in interface org.fcrepo.kernel.api.models.Binary
      • getFilename

        public String getFilename()
        Specified by:
        getFilename in interface org.fcrepo.kernel.api.models.Binary
      • getDescription

        public org.fcrepo.kernel.api.models.FedoraResource getDescription()
        Specified by:
        getDescription in interface org.fcrepo.kernel.api.models.FedoraResource
        Overrides:
        getDescription in class FedoraResourceImpl
      • setExternalHandling

        protected void setExternalHandling​(String externalHandling)
        Parameters:
        externalHandling - the externalHandling to set
      • setExternalUrl

        protected void setExternalUrl​(String externalUrl)
        Parameters:
        externalUrl - the externalUrl to set
      • setContentSize

        protected void setContentSize​(Long contentSize)
        Parameters:
        contentSize - the contentSize to set
      • setFilename

        protected void setFilename​(String filename)
        Parameters:
        filename - the filename to set
      • setMimeType

        protected void setMimeType​(String mimeType)
        Parameters:
        mimeType - the mimeType to set
      • getTriples

        public org.fcrepo.kernel.api.RdfStream getTriples()
        Specified by:
        getTriples in interface org.fcrepo.kernel.api.models.FedoraResource
        Overrides:
        getTriples in class FedoraResourceImpl