|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--au.com.prunge.jgenfile.impl.AbstractOperation | +--au.com.prunge.jgenfile.impl.AbstractItemOperation | +--au.com.prunge.jgenfile.impl.local.LocalSetMetadataOperation
An operation that sets elements of metadata for local items.
Constructor Summary | |
LocalSetMetadataOperation(LocalItem item,
Map metadataToModifyMap)
Constructs a LocalSetMetadataOperation . |
Method Summary | |
Set |
getMetadataModifiedSet()
Returns a set of MetadataKey objects that were successfully modified. |
Map |
getMetadataToModifyMap()
Returns a map of metadata keys to values that this operation is setting for the item. |
void |
runImpl()
The actual run() implementation goes in this method. |
Methods inherited from class au.com.prunge.jgenfile.impl.AbstractItemOperation |
getItem |
Methods inherited from class au.com.prunge.jgenfile.impl.AbstractOperation |
abort, addOperationHints, checkRun, getLastRunException, getOperationHint, getOperationHints, hasRun, run, setLastRunException, setOperationHint, setOperationHints |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface au.com.prunge.jgenfile.ItemOperation |
getItem |
Methods inherited from interface au.com.prunge.jgenfile.Operation |
abort, addOperationHints, getLastRunException, getOperationHint, getOperationHints, hasRun, run, setOperationHint, setOperationHints |
Constructor Detail |
public LocalSetMetadataOperation(LocalItem item, Map metadataToModifyMap) throws NullPointerException
LocalSetMetadataOperation
.
item
- the item this operation is for.
NullPointerException
- if metadataToModifyMap
is null.Method Detail |
public Map getMetadataToModifyMap()
SetMetadataOperation
getMetadataToModifyMap
in interface SetMetadataOperation
SetMetadataOperation.getMetadataToModifyMap()
public Set getMetadataModifiedSet() throws OperationNotFinishedException, JGenFileException
SetMetadataOperation
getMetadataModifiedSet
in interface SetMetadataOperation
JGenFileException
- if another error occurs.
OperationNotFinishedException
- if this method
was called and the run() method has not
finished or has not been called.SetMetadataOperation.getMetadataModifiedSet()
public void runImpl() throws JGenFileException
AbstractOperation
If this method completes successfully (i.e. without throwing an exception), the last run exception is set to null indicating no exception occurred and subsequent calls to hasRun() will return true.
If this method throws an exception, the last run exception is filled in and hasRun() subsequent calls to hasRun() will return false.
runImpl
in class AbstractOperation
JGenFileException
- if an error occurs.au.com.prunge.jgenfile.AbstractOperation#runImpl()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |