public class FlowItemUtils extends Object
| Constructor and Description |
|---|
FlowItemUtils() |
| Modifier and Type | Method and Description |
|---|---|
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,
org.apache.cocoon.environment.Request request)
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 |
processPrivateItem(Context context,
int itemID)
Make the specified item Private, this method assumes that the action has been confirmed.
|
static FlowResult |
processPublicItem(Context context,
int itemID)
Make the specified item Private, this method assumes that the action has been confirmed.
|
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.
|
public static FlowResult resolveItemIdentifier(Context context, String identifier) throws SQLException
context - The current DSpace context.identifier - An Internal ID or a handleSQLExceptionpublic 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 requestSQLExceptionAuthorizeExceptionUIExceptionIOExceptionpublic 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 requestSQLExceptionAuthorizeExceptionUIExceptionIOExceptionpublic static FlowResult processWithdrawItem(Context context, int itemID) throws SQLException, AuthorizeException, IOException
context - The DSpace contextitemID - The id of the to-be-withdrawn item.SQLExceptionAuthorizeExceptionIOExceptionpublic static FlowResult processReinstateItem(Context context, int itemID) throws SQLException, AuthorizeException, IOException
context - The DSpace contextitemID - The id of the to-be-reinstated item.SQLExceptionAuthorizeExceptionIOExceptionpublic static FlowResult processPrivateItem(Context context, int itemID) throws SQLException, AuthorizeException, IOException
context - The DSpace contextitemID - The id of the to-be-withdrawn item.SQLExceptionAuthorizeExceptionIOExceptionpublic static FlowResult processPublicItem(Context context, int itemID) throws SQLException, AuthorizeException, IOException
context - The DSpace contextitemID - The id of the to-be-withdrawn item.SQLExceptionAuthorizeExceptionIOExceptionpublic 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 collectionSQLExceptionAuthorizeExceptionIOExceptionpublic static FlowResult processDeleteItem(Context context, int itemID) throws SQLException, AuthorizeException, IOException
context - The DSpace contextitemID - The id of the to-be-deleted item.SQLExceptionAuthorizeExceptionIOExceptionpublic 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.SQLExceptionAuthorizeExceptionIOExceptionpublic static FlowResult processEditBitstream(Context context, int itemID, int bitstreamID, String bitstreamName, String primary, String description, int formatID, String userFormat, org.apache.cocoon.environment.Request request) 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.SQLExceptionAuthorizeExceptionpublic 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.SQLExceptionAuthorizeExceptionIOExceptionUIExceptionpublic static FlowResult processReorderBitstream(Context context, int itemID, org.apache.cocoon.environment.Request request) throws SQLException, AuthorizeException
SQLExceptionAuthorizeExceptionpublic static FlowResult processCurateItem(Context context, int itemID, org.apache.cocoon.environment.Request request) throws AuthorizeException, IOException, SQLException, Exception
context - itemID - request - AuthorizeExceptionIOExceptionSQLExceptionExceptionpublic static FlowResult processQueueItem(Context context, int itemID, org.apache.cocoon.environment.Request request) throws AuthorizeException, IOException, SQLException, Exception
Copyright © 2013 DuraSpace. All Rights Reserved.