|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.server.journal.entry.JournalEntry
public abstract class JournalEntry
An abstract base class for the JournalEntry classes.
At this level, a JournalEntry is a method name, a method adapter, and a map of arguments.
NOTE: when finished with the JournalEntry, call close(). This will release any temporary files associated with the entry.
| Constructor Summary | |
|---|---|
protected |
JournalEntry(String methodName,
JournalEntryContext context)
|
| Method Summary | |
|---|---|
void |
addArgument(String key,
boolean value)
|
void |
addArgument(String key,
InputStream stream)
If handed an InputStream as an argument, copy it to a temp file and store that File in the arguments map instead. |
void |
addArgument(String key,
int value)
|
void |
addArgument(String key,
Object value)
|
void |
close()
This should be called when usage of the object is complete, to clean up any temporary files that were created for the journal entry to use. |
Map<String,Object> |
getArgumentsMap()
|
boolean |
getBooleanArgument(String name)
|
JournalEntryContext |
getContext()
|
Date |
getDateArgument(String name)
|
int |
getIntegerArgument(String name)
|
ManagementMethod |
getMethod()
|
String |
getMethodName()
|
InputStream |
getStreamArgument(String name)
If they ask for an InputStream argument, get the File from the arguments map and create an InputStream on that file. |
String |
getStringArgument(String name)
|
String[] |
getStringArrayArgument(String name)
|
void |
setRecoveryValue(String attribute,
String value)
|
void |
setRecoveryValues(String attribute,
String[] values)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected JournalEntry(String methodName,
JournalEntryContext context)
| Method Detail |
|---|
public JournalEntryContext getContext()
public ManagementMethod getMethod()
public String getMethodName()
public Map<String,Object> getArgumentsMap()
public void addArgument(String key,
boolean value)
public void addArgument(String key,
int value)
public void addArgument(String key,
Object value)
public void addArgument(String key,
InputStream stream)
throws JournalException
JournalException
public void setRecoveryValue(String attribute,
String value)
public void setRecoveryValues(String attribute,
String[] values)
public int getIntegerArgument(String name)
public boolean getBooleanArgument(String name)
public String getStringArgument(String name)
public Date getDateArgument(String name)
public String[] getStringArrayArgument(String name)
public InputStream getStreamArgument(String name)
throws JournalException
JournalExceptionpublic void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||