|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.backend.hibernate.MCRHIBURNStore
public class MCRHIBURNStore
This class implements the MCRXMLInterface.
| Field Summary | |
|---|---|
(package private) static Logger |
logger
|
| Constructor Summary | |
|---|---|
MCRHIBURNStore()
The constructor for the class MCRHIBURLStore. |
|
| Method Summary | |
|---|---|
void |
assignURN(String urn,
String id)
Assigns the given urn to the given document ID |
void |
assignURN(String urn,
String id,
String path,
String filename)
Assigns the given urn to the given derivate ID |
void |
create(String urn,
String id)
The method create a new item in the datastore. |
void |
create(String urn,
String id,
String path,
String filename)
The method creates a new item in the datastore. |
void |
delete(String urn)
The method remove a item for the URN from the datastore. |
void |
deleteByObjectID(String objID)
The method remove a item for the URN from the datastore. |
boolean |
exist(String urn)
This method check that the URN exist in this store. |
String |
getDocumentIDforURN(String urn)
Retrieves the URN that is assigned to the given document ID |
String |
getURNforDocument(String id)
Retrieves the URN that is assigned to the given document ID |
boolean |
hasURNAssigned(String id)
Checks wether an object has an urn assigned or not |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static Logger logger
| Constructor Detail |
|---|
public MCRHIBURNStore()
| Method Detail |
|---|
public final void create(String urn,
String id)
throws MCRPersistenceException
urn - a URNid - the MCRObjectID as String
MCRPersistenceException - the method arguments are not correct
public final void create(String urn,
String id,
String path,
String filename)
throws MCRPersistenceException
urn - a URNid - the MCRObjectID as Stringpath - the path of the derivate in the IFS
MCRPersistenceException - the method arguments are not correct
public void assignURN(String urn,
String id)
assignURN in interface MCRURNStoreurn - a URNid - the MCRObjectID as String
MCRPersistenceException - the method arguments are not correct
public void assignURN(String urn,
String id,
String path,
String filename)
assignURN in interface MCRURNStoreurn - a URNid - the MCRObjectID as Stringpath - the path of the derivate
MCRPersistenceException - the method arguments are not correct
public final void delete(String urn)
throws MCRPersistenceException
urn - a URN
MCRPersistenceException - the method argument is not correct
public final void deleteByObjectID(String objID)
throws MCRPersistenceException
objID - an object id
MCRPersistenceException - the method argument is not correctpublic void removeURN(String urn)
removeURN in interface MCRURNStoreurn - a URN
MCRPersistenceException - the method argument is not correct
public final String getURNforDocument(String id)
throws MCRPersistenceException
getURNforDocument in interface MCRURNStoreid - the MCRObjectID as String
MCRPersistenceExceptionpublic void removeURNByObjectID(String objID)
removeURNByObjectID in interface MCRURNStoreurn - a URN
MCRPersistenceException - the method argument is not correct
public final String getDocumentIDforURN(String urn)
throws MCRPersistenceException
getDocumentIDforURN in interface MCRURNStoreurn - the URN as String
MCRPersistenceException
public final boolean hasURNAssigned(String id)
throws MCRPersistenceException
hasURNAssigned in interface MCRURNStoreid - the MCRObjectID as String
MCRPersistenceExceptionpublic final boolean exist(String urn)
public boolean isAssigned(String urn)
isAssigned in interface MCRURNStoreurn - a URN
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||