Class MCRSwordContainerManager

java.lang.Object
org.mycore.sword.manager.MCRSwordContainerManager
All Implemented Interfaces:
org.swordapp.server.ContainerManager

public class MCRSwordContainerManager extends Object implements org.swordapp.server.ContainerManager
Author:
Sebastian Hofmann (mcrshofm)
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.swordapp.server.DepositReceipt
    addMetadata(String editIRI, org.swordapp.server.Deposit deposit, org.swordapp.server.AuthCredentials authCredentials, org.swordapp.server.SwordConfiguration swordConfiguration)
     
    org.swordapp.server.DepositReceipt
    addMetadataAndResources(String editIRI, org.swordapp.server.Deposit deposit, org.swordapp.server.AuthCredentials authCredentials, org.swordapp.server.SwordConfiguration swordConfiguration)
     
    org.swordapp.server.DepositReceipt
    addResources(String editIRI, org.swordapp.server.Deposit deposit, org.swordapp.server.AuthCredentials authCredentials, org.swordapp.server.SwordConfiguration swordConfiguration)
     
    static void
    checkIsObject(MCRBase retrievedMCRBase)
     
    void
    deleteContainer(String editIRI, org.swordapp.server.AuthCredentials authCredentials, org.swordapp.server.SwordConfiguration swordConfiguration)
     
    org.swordapp.server.DepositReceipt
    getEntry(String editIRI, Map<String,String> map, org.swordapp.server.AuthCredentials authCredentials, org.swordapp.server.SwordConfiguration swordConfiguration)
     
    boolean
    isStatementRequest(String editIRI, Map<String,String> map, org.swordapp.server.AuthCredentials authCredentials, org.swordapp.server.SwordConfiguration swordConfiguration)
     
    org.swordapp.server.DepositReceipt
    replaceMetadata(String editIRI, org.swordapp.server.Deposit deposit, org.swordapp.server.AuthCredentials authCredentials, org.swordapp.server.SwordConfiguration swordConfiguration)
     
    org.swordapp.server.DepositReceipt
    replaceMetadataAndMediaResource(String editIRI, org.swordapp.server.Deposit deposit, org.swordapp.server.AuthCredentials authCredentials, org.swordapp.server.SwordConfiguration swordConfiguration)
     
    static void
     
    org.swordapp.server.DepositReceipt
    useHeaders(String editIRI, org.swordapp.server.Deposit deposit, org.swordapp.server.AuthCredentials authCredentials, org.swordapp.server.SwordConfiguration swordConfiguration)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MCRSwordContainerManager

      public MCRSwordContainerManager()
  • Method Details

    • throwObjectDoesNotExist

      public static void throwObjectDoesNotExist(String objectIdString) throws org.swordapp.server.SwordError
      Throws:
      org.swordapp.server.SwordError
    • checkIsObject

      public static void checkIsObject(MCRBase retrievedMCRBase) throws org.swordapp.server.SwordError
      Throws:
      org.swordapp.server.SwordError
    • getEntry

      public org.swordapp.server.DepositReceipt getEntry(String editIRI, Map<String,String> map, org.swordapp.server.AuthCredentials authCredentials, org.swordapp.server.SwordConfiguration swordConfiguration) throws org.swordapp.server.SwordServerException, org.swordapp.server.SwordError, org.swordapp.server.SwordAuthException
      Specified by:
      getEntry in interface org.swordapp.server.ContainerManager
      Throws:
      org.swordapp.server.SwordServerException
      org.swordapp.server.SwordError
      org.swordapp.server.SwordAuthException
    • addMetadata

      public org.swordapp.server.DepositReceipt addMetadata(String editIRI, org.swordapp.server.Deposit deposit, org.swordapp.server.AuthCredentials authCredentials, org.swordapp.server.SwordConfiguration swordConfiguration) throws org.swordapp.server.SwordError, org.swordapp.server.SwordServerException, org.swordapp.server.SwordAuthException
      Specified by:
      addMetadata in interface org.swordapp.server.ContainerManager
      Throws:
      org.swordapp.server.SwordError
      org.swordapp.server.SwordServerException
      org.swordapp.server.SwordAuthException
    • addMetadataAndResources

      public org.swordapp.server.DepositReceipt addMetadataAndResources(String editIRI, org.swordapp.server.Deposit deposit, org.swordapp.server.AuthCredentials authCredentials, org.swordapp.server.SwordConfiguration swordConfiguration) throws org.swordapp.server.SwordError, org.swordapp.server.SwordServerException, org.swordapp.server.SwordAuthException
      Specified by:
      addMetadataAndResources in interface org.swordapp.server.ContainerManager
      Throws:
      org.swordapp.server.SwordError
      org.swordapp.server.SwordServerException
      org.swordapp.server.SwordAuthException
    • replaceMetadata

      public org.swordapp.server.DepositReceipt replaceMetadata(String editIRI, org.swordapp.server.Deposit deposit, org.swordapp.server.AuthCredentials authCredentials, org.swordapp.server.SwordConfiguration swordConfiguration) throws org.swordapp.server.SwordError, org.swordapp.server.SwordServerException, org.swordapp.server.SwordAuthException
      Specified by:
      replaceMetadata in interface org.swordapp.server.ContainerManager
      Throws:
      org.swordapp.server.SwordError
      org.swordapp.server.SwordServerException
      org.swordapp.server.SwordAuthException
    • replaceMetadataAndMediaResource

      public org.swordapp.server.DepositReceipt replaceMetadataAndMediaResource(String editIRI, org.swordapp.server.Deposit deposit, org.swordapp.server.AuthCredentials authCredentials, org.swordapp.server.SwordConfiguration swordConfiguration) throws org.swordapp.server.SwordError, org.swordapp.server.SwordServerException, org.swordapp.server.SwordAuthException
      Specified by:
      replaceMetadataAndMediaResource in interface org.swordapp.server.ContainerManager
      Throws:
      org.swordapp.server.SwordError
      org.swordapp.server.SwordServerException
      org.swordapp.server.SwordAuthException
    • addResources

      public org.swordapp.server.DepositReceipt addResources(String editIRI, org.swordapp.server.Deposit deposit, org.swordapp.server.AuthCredentials authCredentials, org.swordapp.server.SwordConfiguration swordConfiguration) throws org.swordapp.server.SwordError, org.swordapp.server.SwordServerException, org.swordapp.server.SwordAuthException
      Specified by:
      addResources in interface org.swordapp.server.ContainerManager
      Throws:
      org.swordapp.server.SwordError
      org.swordapp.server.SwordServerException
      org.swordapp.server.SwordAuthException
    • deleteContainer

      public void deleteContainer(String editIRI, org.swordapp.server.AuthCredentials authCredentials, org.swordapp.server.SwordConfiguration swordConfiguration) throws org.swordapp.server.SwordError, org.swordapp.server.SwordServerException, org.swordapp.server.SwordAuthException
      Specified by:
      deleteContainer in interface org.swordapp.server.ContainerManager
      Throws:
      org.swordapp.server.SwordError
      org.swordapp.server.SwordServerException
      org.swordapp.server.SwordAuthException
    • useHeaders

      public org.swordapp.server.DepositReceipt useHeaders(String editIRI, org.swordapp.server.Deposit deposit, org.swordapp.server.AuthCredentials authCredentials, org.swordapp.server.SwordConfiguration swordConfiguration) throws org.swordapp.server.SwordError, org.swordapp.server.SwordServerException, org.swordapp.server.SwordAuthException
      Specified by:
      useHeaders in interface org.swordapp.server.ContainerManager
      Throws:
      org.swordapp.server.SwordError
      org.swordapp.server.SwordServerException
      org.swordapp.server.SwordAuthException
    • isStatementRequest

      public boolean isStatementRequest(String editIRI, Map<String,String> map, org.swordapp.server.AuthCredentials authCredentials, org.swordapp.server.SwordConfiguration swordConfiguration) throws org.swordapp.server.SwordError, org.swordapp.server.SwordServerException, org.swordapp.server.SwordAuthException
      Specified by:
      isStatementRequest in interface org.swordapp.server.ContainerManager
      Throws:
      org.swordapp.server.SwordError
      org.swordapp.server.SwordServerException
      org.swordapp.server.SwordAuthException