|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.app.xmlui.aspect.administrative.FlowItemUtils
public class FlowItemUtils
Utility methods to processes actions on Groups. These methods are used exclusivly from the administrative flow scripts.
| Constructor Summary | |
|---|---|
FlowItemUtils()
|
|
| Method Summary | |
|---|---|
static FlowResult |
processAddBitstream(Context context,
int itemID,
org.apache.cocoon.environment.Request request)
Add a new bitstream to the item. |
static FlowResult |
processAddMetadata(Context context,
int itemID,
org.apache.cocoon.environment.Request request)
Process the request paramaters to add a new metadata entry for the item. |
static FlowResult |
processCurateItem(Context context,
int itemID,
org.apache.cocoon.environment.Request request)
processCurateDSO Utility method to process curation tasks submitted via the DSpace GUI |
static FlowResult |
processDeleteBitstreams(Context context,
int itemID,
String[] bitstreamIDs)
Delete the given bitstreams from the bundle and item. |
static FlowResult |
processDeleteItem(Context context,
int itemID)
Permanently delete the specified item, this method assumes that the action has been confirmed. |
static FlowResult |
processEditBitstream(Context context,
int itemID,
int bitstreamID,
String bitstreamName,
String primary,
String description,
int formatID,
String userFormat)
Update a bitstream's metadata. |
static FlowResult |
processEditItem(Context context,
int itemID,
org.apache.cocoon.environment.Request request)
Process the request parameters to update the item's metadata and remove any selected bitstreams. |
static FlowResult |
processMoveItem(Context context,
int itemID,
int collectionID,
boolean inherit)
Move the specified item to another collection. |
static FlowResult |
processQueueItem(Context context,
int itemID,
org.apache.cocoon.environment.Request request)
queues curation tasks |
static FlowResult |
processReinstateItem(Context context,
int itemID)
Reinstate the specified item, this method assumes that the action has been confirmed. |
static FlowResult |
processReorderBitstream(Context context,
int itemID,
org.apache.cocoon.environment.Request request)
|
static FlowResult |
processWithdrawItem(Context context,
int itemID)
Withdraw the specified item, this method assumes that the action has been confirmed. |
static FlowResult |
resolveItemIdentifier(Context context,
String identifier)
Resolve the given identifier to an item. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FlowItemUtils()
| Method Detail |
|---|
public static FlowResult resolveItemIdentifier(Context context,
String identifier)
throws SQLException
context - The current DSpace context.identifier - An Internal ID or a handle
SQLException
public static FlowResult processEditItem(Context context,
int itemID,
org.apache.cocoon.environment.Request request)
throws SQLException,
AuthorizeException,
UIException,
IOException
context - The current DSpace contextitemID - internal item idrequest - the Cocoon request
SQLException
AuthorizeException
UIException
IOException
public static FlowResult processAddMetadata(Context context,
int itemID,
org.apache.cocoon.environment.Request request)
throws SQLException,
AuthorizeException,
UIException,
IOException
context - The current DSpace contextitemID - internal item idrequest - the Cocoon request
SQLException
AuthorizeException
UIException
IOException
public static FlowResult processWithdrawItem(Context context,
int itemID)
throws SQLException,
AuthorizeException,
IOException
context - The DSpace contextitemID - The id of the to-be-withdrawn item.
SQLException
AuthorizeException
IOException
public static FlowResult processReinstateItem(Context context,
int itemID)
throws SQLException,
AuthorizeException,
IOException
context - The DSpace contextitemID - The id of the to-be-reinstated item.
SQLException
AuthorizeException
IOException
public static FlowResult processMoveItem(Context context,
int itemID,
int collectionID,
boolean inherit)
throws SQLException,
AuthorizeException,
IOException
context - The DSpace contextitemID - The id of the to-be-moved item.collectionID - The id of the destination collection.inherit - Whether to inherit the policies of the destination collection
SQLException
AuthorizeException
IOException
public static FlowResult processDeleteItem(Context context,
int itemID)
throws SQLException,
AuthorizeException,
IOException
context - The DSpace contextitemID - The id of the to-be-deleted item.
SQLException
AuthorizeException
IOException
public static FlowResult processAddBitstream(Context context,
int itemID,
org.apache.cocoon.environment.Request request)
throws SQLException,
AuthorizeException,
IOException
context - The DSpace contentitemID - The item to add a new bitstream toorequest - The request.
SQLException
AuthorizeException
IOException
public static FlowResult processEditBitstream(Context context,
int itemID,
int bitstreamID,
String bitstreamName,
String primary,
String description,
int formatID,
String userFormat)
throws SQLException,
AuthorizeException
context - The DSpace contentitemID - The item to which the bitstream belongsbitstreamID - The bitstream being updated.description - The new description of the bitstreamformatID - The new format ID of the bitstreamuserFormat - Any user supplied formats.
SQLException
AuthorizeException
public static FlowResult processDeleteBitstreams(Context context,
int itemID,
String[] bitstreamIDs)
throws SQLException,
AuthorizeException,
IOException,
UIException
context - Current dspace contentitemID - The item id from which to remove bitstreamsbitstreamIDs - A bundleID slash bitstreamID pair of bitstreams to be removed.
SQLException
AuthorizeException
IOException
UIException
public static FlowResult processReorderBitstream(Context context,
int itemID,
org.apache.cocoon.environment.Request request)
throws SQLException,
AuthorizeException
SQLException
AuthorizeException
public static FlowResult processCurateItem(Context context,
int itemID,
org.apache.cocoon.environment.Request request)
throws AuthorizeException,
IOException,
SQLException,
Exception
context - itemID - request -
AuthorizeException
IOException
SQLException
Exception
public static FlowResult processQueueItem(Context context,
int itemID,
org.apache.cocoon.environment.Request request)
throws AuthorizeException,
IOException,
SQLException,
Exception
AuthorizeException
IOException
SQLException
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||