Class CreateNonRdfSourceOperation

All Implemented Interfaces:
org.fcrepo.kernel.api.operations.CreateResourceOperation, org.fcrepo.kernel.api.operations.NonRdfSourceOperation, org.fcrepo.kernel.api.operations.ResourceOperation

public class CreateNonRdfSourceOperation extends AbstractNonRdfSourceOperation implements org.fcrepo.kernel.api.operations.CreateResourceOperation
Operation for creating a new non-rdf source
Author:
bbpennel
  • Constructor Details

    • CreateNonRdfSourceOperation

      protected CreateNonRdfSourceOperation(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.identifiers.FedoraId rescId, URI externalContentURI, String externalHandling)
      Constructor for external content.
      Parameters:
      rescId - the internal identifier.
      externalContentURI - the URI of the external content.
      externalHandling - the type of external content handling (REDIRECT, PROXY)
    • CreateNonRdfSourceOperation

      protected CreateNonRdfSourceOperation(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.identifiers.FedoraId rescId, InputStream content)
      Constructor for internal binaries.
      Parameters:
      transaction - the transaction
      rescId - the internal identifier.
      content - the stream of the content.
  • Method Details

    • getInteractionModel

      Specified by:
      getInteractionModel in interface org.fcrepo.kernel.api.operations.CreateResourceOperation
    • isArchivalGroup

      public boolean isArchivalGroup()
      Specified by:
      isArchivalGroup in interface org.fcrepo.kernel.api.operations.CreateResourceOperation
    • getParentId

      public org.fcrepo.kernel.api.identifiers.FedoraId getParentId()
      Specified by:
      getParentId in interface org.fcrepo.kernel.api.operations.CreateResourceOperation
    • setParentId

      public void setParentId(org.fcrepo.kernel.api.identifiers.FedoraId parentId)
      Parameters:
      parentId - the parentId to set