public class FlowItemUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static AuthorizeService |
authorizeService |
protected static BitstreamFormatService |
bitstreamFormatService |
protected static BitstreamService |
bitstreamService |
protected static BundleService |
bundleService |
protected static CollectionService |
collectionService |
protected static HandleService |
handleService |
protected static ItemService |
itemService |
protected static MetadataFieldService |
metadataFieldService |
| Constructor and Description |
|---|
FlowItemUtils() |
| Modifier and Type | Method and Description |
|---|---|
static FlowResult |
processAddBitstream(Context context,
UUID itemID,
org.apache.cocoon.environment.Request request)
Add a new bitstream to the item.
|
static FlowResult |
processAddMetadata(Context context,
UUID itemID,
org.apache.cocoon.environment.Request request)
Process the request parameters to add a new metadata entry for the item.
|
static FlowResult |
processCurateItem(Context context,
UUID itemID,
org.apache.cocoon.environment.Request request)
processCurateDSO
Utility method to process curation tasks submitted via the DSpace GUI.
|
static FlowResult |
processDeleteBitstreams(Context context,
UUID itemID,
String[] bitstreamIDs)
Delete the given bitstreams from the bundle and item.
|
static FlowResult |
processDeleteItem(Context context,
UUID itemID)
Permanently delete the specified item, this method assumes that
the action has been confirmed.
|
static FlowResult |
processEditBitstream(Context context,
UUID itemID,
UUID 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,
UUID 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,
UUID itemID,
UUID collectionID,
boolean inherit)
Move the specified item to another collection.
|
static FlowResult |
processPrivateItem(Context context,
UUID itemID)
Make the specified item Private, this method assumes that the action has been confirmed.
|
static FlowResult |
processPublicItem(Context context,
UUID itemID)
Make the specified item Private, this method assumes that the action has been confirmed.
|
static FlowResult |
processQueueItem(Context context,
UUID itemID,
org.apache.cocoon.environment.Request request)
queues curation tasks.
|
static FlowResult |
processReinstateItem(Context context,
UUID itemID)
Reinstate the specified item, this method assumes that the action has been confirmed.
|
static FlowResult |
processReorderBitstream(Context context,
UUID itemID,
org.apache.cocoon.environment.Request request) |
static FlowResult |
processWithdrawItem(Context context,
UUID 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.
|
protected static final AuthorizeService authorizeService
protected static final ItemService itemService
protected static final BundleService bundleService
protected static final BitstreamService bitstreamService
protected static final CollectionService collectionService
protected static final MetadataFieldService metadataFieldService
protected static final BitstreamFormatService bitstreamFormatService
protected static final HandleService handleService
public static FlowResult resolveItemIdentifier(Context context, String identifier) throws SQLException
context - The current DSpace context.identifier - An Internal ID or a handleSQLException - passed through.public static FlowResult processEditItem(Context context, UUID itemID, org.apache.cocoon.environment.Request request) throws SQLException, AuthorizeException, UIException, IOException
context - The current DSpace contextitemID - internal item idrequest - the Cocoon requestSQLException - passed through.AuthorizeException - passed through.UIException - passed through.IOException - passed through.public static FlowResult processAddMetadata(Context context, UUID itemID, org.apache.cocoon.environment.Request request) throws SQLException, AuthorizeException, UIException, IOException
context - The current DSpace contextitemID - internal item idrequest - the Cocoon requestSQLException - passed through.AuthorizeException - passed through.UIException - passed through.IOException - passed through.public static FlowResult processWithdrawItem(Context context, UUID itemID) throws SQLException, AuthorizeException, IOException
context - The DSpace contextitemID - The id of the to-be-withdrawn item.SQLException - passed through.AuthorizeException - passed through.IOException - passed through.public static FlowResult processReinstateItem(Context context, UUID itemID) throws SQLException, AuthorizeException, IOException
context - The DSpace contextitemID - The id of the to-be-reinstated item.SQLException - passed through.AuthorizeException - passed through.IOException - passed through.public static FlowResult processPrivateItem(Context context, UUID itemID) throws SQLException, AuthorizeException, IOException
context - The DSpace contextitemID - The id of the to-be-withdrawn item.SQLException - passed through.AuthorizeException - passed through.IOException - passed through.public static FlowResult processPublicItem(Context context, UUID itemID) throws SQLException, AuthorizeException, IOException
context - The DSpace contextitemID - The id of the to-be-withdrawn item.SQLException - passed through.AuthorizeException - passed through.IOException - passed through.public static FlowResult processMoveItem(Context context, UUID itemID, UUID 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 collectionSQLException - passed through.AuthorizeException - passed through.IOException - passed through.public static FlowResult processDeleteItem(Context context, UUID itemID) throws SQLException, AuthorizeException, IOException
context - The DSpace contextitemID - The id of the to-be-deleted item.SQLException - passed through.AuthorizeException - passed through.IOException - passed through.public static FlowResult processAddBitstream(Context context, UUID 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 - passed through.AuthorizeException - passed through.IOException - passed through.public static FlowResult processEditBitstream(Context context, UUID itemID, UUID 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.bitstreamName - the bitstream's name.primary - "yes" or "no": is bitstream primary?description - The new description of the bitstreamformatID - The new format ID of the bitstreamuserFormat - Any user supplied formats.request - user request.SQLException - passed through.AuthorizeException - passed through.public static FlowResult processDeleteBitstreams(Context context, UUID 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 - passed through.AuthorizeException - passed through.IOException - passed through.UIException - if bitstreamIDs cannot be parsed.public static FlowResult processReorderBitstream(Context context, UUID itemID, org.apache.cocoon.environment.Request request) throws SQLException, AuthorizeException
SQLExceptionAuthorizeExceptionpublic static FlowResult processCurateItem(Context context, UUID itemID, org.apache.cocoon.environment.Request request) throws AuthorizeException, IOException, SQLException, Exception
context - session context.itemID - the Item to be curated.request - user request.AuthorizeException - passed through.IOException - passed through.SQLException - passed through.Exceptionpublic static FlowResult processQueueItem(Context context, UUID itemID, org.apache.cocoon.environment.Request request) throws AuthorizeException, IOException, SQLException, Exception
context - session context.itemID - the Item to be curated.request - user request.AuthorizeException - passed through.IOException - passed through.SQLException - passed through.ExceptionCopyright © 2016 DuraSpace. All rights reserved.