|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.server.journal.JournalCreator
public class JournalCreator
This is the worker class to use in Journaling mode (normal mode).
Each time a "writing" Management method is called, create a CreatorJournalEntry and ask it to invoke the method on the ManagementDelegate. If a "read-only" Management method is called, just pass it along to the ManagementDelegate.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
JournalCreator(Map<String,String> parameters,
String role,
ServerInterface server)
Get a JournalWriter to use, based on the server parameters. |
|
| Method Summary | |
|---|---|
String |
addDatastream(Context context,
String pid,
String dsID,
String[] altIDs,
String dsLabel,
boolean versionable,
String MIMEType,
String formatURI,
String location,
String controlGroup,
String dsState,
String checksumType,
String checksum,
String logMessage)
Create a journal entry, add the arguments, and invoke the method. |
boolean |
addRelationship(Context context,
String pid,
String relationship,
String objURI,
boolean isLiteral,
String datatype)
|
String |
compareDatastreamChecksum(Context context,
String pid,
String dsID,
Date versionDate)
Let the delegate do it. |
InputStream |
export(Context context,
String pid,
String format,
String exportContext,
String encoding)
Let the delegate do it. |
Datastream |
getDatastream(Context context,
String pid,
String datastreamID,
Date asOfDateTime)
Let the delegate do it. |
Datastream[] |
getDatastreamHistory(Context context,
String pid,
String datastreamID)
Let the delegate do it. |
Datastream[] |
getDatastreams(Context context,
String pid,
Date asOfDateTime,
String dsState)
Let the delegate do it. |
String[] |
getNextPID(Context context,
int numPIDs,
String namespace)
Create a journal entry, add the arguments, and invoke the method. |
InputStream |
getObjectXML(Context context,
String pid,
String encoding)
Let the delegate do it. |
RelationshipTuple[] |
getRelationships(Context context,
String pid,
String relationship)
Let the delegate do it. |
InputStream |
getTempStream(String id)
Let the delegate do it. |
String |
ingest(Context context,
InputStream serialization,
String logMessage,
String format,
String encoding,
String pid)
Let the delegate do it, and then write a journal entry. |
Date |
modifyDatastreamByReference(Context context,
String pid,
String datastreamID,
String[] altIDs,
String dsLabel,
String mimeType,
String formatURI,
String dsLocation,
String checksumType,
String checksum,
String logMessage,
Date lastModifiedDate)
Create a journal entry, add the arguments, and invoke the method. |
Date |
modifyDatastreamByValue(Context context,
String pid,
String datastreamID,
String[] altIDs,
String dsLabel,
String mimeType,
String formatURI,
InputStream dsContent,
String checksumType,
String checksum,
String logMessage,
Date lastModifiedDate)
Create a journal entry, add the arguments, and invoke the method. |
Date |
modifyObject(Context context,
String pid,
String state,
String label,
String ownerId,
String logMessage,
Date lastModifiedDate)
Create a journal entry, add the arguments, and invoke the method. |
Date[] |
purgeDatastream(Context context,
String pid,
String datastreamID,
Date startDT,
Date endDT,
String logMessage)
Create a journal entry, add the arguments, and invoke the method. |
Date |
purgeObject(Context context,
String pid,
String logMessage)
Create a journal entry, add the arguments, and invoke the method. |
boolean |
purgeRelationship(Context context,
String pid,
String relationship,
String object,
boolean isLiteral,
String datatype)
|
String |
putTempStream(Context context,
InputStream in)
Create a journal entry, add the arguments, and invoke the method. |
Date |
setDatastreamState(Context context,
String pid,
String dsID,
String dsState,
String logMessage)
Create a journal entry, add the arguments, and invoke the method. |
Date |
setDatastreamVersionable(Context context,
String pid,
String dsID,
boolean versionable,
String logMessage)
Create a journal entry, add the arguments, and invoke the method. |
void |
setManagementDelegate(ManagementDelegate delegate)
Receive a ManagementDelegate module to perform the Management operations. |
void |
shutdown()
Server is shutting down, so tell the JournalWriter to shut down. |
Validation |
validate(Context context,
String pid,
Date asOfDateTime)
Let the delegate do it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JournalCreator(Map<String,String> parameters,
String role,
ServerInterface server)
throws ModuleInitializationException
ModuleInitializationException| Method Detail |
|---|
public void setManagementDelegate(ManagementDelegate delegate)
setManagementDelegate in interface JournalWorker
public void shutdown()
throws ModuleShutdownException
shutdown in interface JournalWorkerModuleShutdownException
public String ingest(Context context,
InputStream serialization,
String logMessage,
String format,
String encoding,
String pid)
throws ServerException
ingest in interface ManagementServerException
public Date modifyObject(Context context,
String pid,
String state,
String label,
String ownerId,
String logMessage,
Date lastModifiedDate)
throws ServerException
modifyObject in interface ManagementServerException
public Date purgeObject(Context context,
String pid,
String logMessage)
throws ServerException
purgeObject in interface ManagementServerException
public String addDatastream(Context context,
String pid,
String dsID,
String[] altIDs,
String dsLabel,
boolean versionable,
String MIMEType,
String formatURI,
String location,
String controlGroup,
String dsState,
String checksumType,
String checksum,
String logMessage)
throws ServerException
addDatastream in interface ManagementServerException
public Date modifyDatastreamByValue(Context context,
String pid,
String datastreamID,
String[] altIDs,
String dsLabel,
String mimeType,
String formatURI,
InputStream dsContent,
String checksumType,
String checksum,
String logMessage,
Date lastModifiedDate)
throws ServerException
modifyDatastreamByValue in interface ManagementServerException
public Date modifyDatastreamByReference(Context context,
String pid,
String datastreamID,
String[] altIDs,
String dsLabel,
String mimeType,
String formatURI,
String dsLocation,
String checksumType,
String checksum,
String logMessage,
Date lastModifiedDate)
throws ServerException
modifyDatastreamByReference in interface ManagementServerException
public Date setDatastreamState(Context context,
String pid,
String dsID,
String dsState,
String logMessage)
throws ServerException
setDatastreamState in interface ManagementServerException
public Date setDatastreamVersionable(Context context,
String pid,
String dsID,
boolean versionable,
String logMessage)
throws ServerException
setDatastreamVersionable in interface ManagementServerException
public Date[] purgeDatastream(Context context,
String pid,
String datastreamID,
Date startDT,
Date endDT,
String logMessage)
throws ServerException
purgeDatastream in interface ManagementServerException
public String putTempStream(Context context,
InputStream in)
throws ServerException
putTempStream in interface ManagementServerException
public String[] getNextPID(Context context,
int numPIDs,
String namespace)
throws ServerException
getNextPID in interface ManagementServerException
public boolean addRelationship(Context context,
String pid,
String relationship,
String objURI,
boolean isLiteral,
String datatype)
throws ServerException
addRelationship in interface ManagementServerException
public boolean purgeRelationship(Context context,
String pid,
String relationship,
String object,
boolean isLiteral,
String datatype)
throws ServerException
purgeRelationship in interface ManagementServerException
public String compareDatastreamChecksum(Context context,
String pid,
String dsID,
Date versionDate)
throws ServerException
compareDatastreamChecksum in interface ManagementServerException
public RelationshipTuple[] getRelationships(Context context,
String pid,
String relationship)
throws ServerException
getRelationships in interface ManagementServerException
public InputStream getObjectXML(Context context,
String pid,
String encoding)
throws ServerException
getObjectXML in interface ManagementServerException
public InputStream export(Context context,
String pid,
String format,
String exportContext,
String encoding)
throws ServerException
export in interface ManagementServerException
public Datastream getDatastream(Context context,
String pid,
String datastreamID,
Date asOfDateTime)
throws ServerException
getDatastream in interface ManagementServerException
public Datastream[] getDatastreams(Context context,
String pid,
Date asOfDateTime,
String dsState)
throws ServerException
getDatastreams in interface ManagementServerException
public Datastream[] getDatastreamHistory(Context context,
String pid,
String datastreamID)
throws ServerException
getDatastreamHistory in interface ManagementServerException
public InputStream getTempStream(String id)
throws ServerException
getTempStream in interface ManagementServerException
public Validation validate(Context context,
String pid,
Date asOfDateTime)
throws ServerException
validate in interface ManagementServerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||