org.mycore.services.urn
Interface MCRURNStore

All Known Implementing Classes:
MCRHIBURNStore

public interface MCRURNStore

Stores the data of URNs and the document IDs assigned to them.

Author:
Frank Lützenkirchen

Method Summary
 void assignURN(String urn, String documentID)
          Assigns the given urn to the given document ID
 void assignURN(String urn, String derivate, String path, String filename)
          Assigns the given urn to the given derivate ID
 String getDocumentIDforURN(String urn)
          Retrieves the document ID that is assigned to the given urn
 String getURNforDocument(String documentID)
          Retrieves the URN that is assigned to the given document ID
 boolean hasURNAssigned(String objId)
          Checks wether an object or derivate has an urn assigned
 boolean isAssigned(String urn)
          Returns true if the given urn is assigned to a document ID
 void removeURN(String urn)
          Removes the urn (and assigned document ID) from the persistent store
 void removeURNByObjectID(String objID)
          Removes the urn (and assigned document ID) from the persistent store by the given object id
 

Method Detail

isAssigned

boolean isAssigned(String urn)
Returns true if the given urn is assigned to a document ID


assignURN

void assignURN(String urn,
               String documentID)
Assigns the given urn to the given document ID


assignURN

void assignURN(String urn,
               String derivate,
               String path,
               String filename)
Assigns the given urn to the given derivate ID


getURNforDocument

String getURNforDocument(String documentID)
Retrieves the URN that is assigned to the given document ID

Returns:
the urn, or null if no urn is assigned to this ID

getDocumentIDforURN

String getDocumentIDforURN(String urn)
Retrieves the document ID that is assigned to the given urn

Returns:
the ID, or null if no ID is assigned to this urn

removeURN

void removeURN(String urn)
Removes the urn (and assigned document ID) from the persistent store


removeURNByObjectID

void removeURNByObjectID(String objID)
Removes the urn (and assigned document ID) from the persistent store by the given object id


hasURNAssigned

boolean hasURNAssigned(String objId)
Checks wether an object or derivate has an urn assigned