public class FlowItemUtils
extends java.lang.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,
java.lang.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,
java.lang.String bitstreamName,
java.lang.String primary,
java.lang.String description,
int formatID,
java.lang.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,
java.lang.String identifier)
Resolve the given identifier to an item.
|
public static FlowResult resolveItemIdentifier(Context context, java.lang.String identifier) throws java.sql.SQLException
context - The current DSpace context.identifier - An Internal ID or a handlejava.sql.SQLExceptionpublic static FlowResult processEditItem(Context context, int itemID, org.apache.cocoon.environment.Request request) throws java.sql.SQLException, AuthorizeException, UIException, java.io.IOException
context - The current DSpace contextitemID - internal item idrequest - the Cocoon requestjava.sql.SQLExceptionAuthorizeExceptionUIExceptionjava.io.IOExceptionpublic static FlowResult processAddMetadata(Context context, int itemID, org.apache.cocoon.environment.Request request) throws java.sql.SQLException, AuthorizeException, UIException, java.io.IOException
context - The current DSpace contextitemID - internal item idrequest - the Cocoon requestjava.sql.SQLExceptionAuthorizeExceptionUIExceptionjava.io.IOExceptionpublic static FlowResult processWithdrawItem(Context context, int itemID) throws java.sql.SQLException, AuthorizeException, java.io.IOException
context - The DSpace contextitemID - The id of the to-be-withdrawn item.java.sql.SQLExceptionAuthorizeExceptionjava.io.IOExceptionpublic static FlowResult processReinstateItem(Context context, int itemID) throws java.sql.SQLException, AuthorizeException, java.io.IOException
context - The DSpace contextitemID - The id of the to-be-reinstated item.java.sql.SQLExceptionAuthorizeExceptionjava.io.IOExceptionpublic static FlowResult processPrivateItem(Context context, int itemID) throws java.sql.SQLException, AuthorizeException, java.io.IOException
context - The DSpace contextitemID - The id of the to-be-withdrawn item.java.sql.SQLExceptionAuthorizeExceptionjava.io.IOExceptionpublic static FlowResult processPublicItem(Context context, int itemID) throws java.sql.SQLException, AuthorizeException, java.io.IOException
context - The DSpace contextitemID - The id of the to-be-withdrawn item.java.sql.SQLExceptionAuthorizeExceptionjava.io.IOExceptionpublic static FlowResult processMoveItem(Context context, int itemID, int collectionID, boolean inherit) throws java.sql.SQLException, AuthorizeException, java.io.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 collectionjava.sql.SQLExceptionAuthorizeExceptionjava.io.IOExceptionpublic static FlowResult processDeleteItem(Context context, int itemID) throws java.sql.SQLException, AuthorizeException, java.io.IOException
context - The DSpace contextitemID - The id of the to-be-deleted item.java.sql.SQLExceptionAuthorizeExceptionjava.io.IOExceptionpublic static FlowResult processAddBitstream(Context context, int itemID, org.apache.cocoon.environment.Request request) throws java.sql.SQLException, AuthorizeException, java.io.IOException
context - The DSpace contentitemID - The item to add a new bitstream toorequest - The request.java.sql.SQLExceptionAuthorizeExceptionjava.io.IOExceptionpublic static FlowResult processEditBitstream(Context context, int itemID, int bitstreamID, java.lang.String bitstreamName, java.lang.String primary, java.lang.String description, int formatID, java.lang.String userFormat, org.apache.cocoon.environment.Request request) throws java.sql.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.java.sql.SQLExceptionAuthorizeExceptionpublic static FlowResult processDeleteBitstreams(Context context, int itemID, java.lang.String[] bitstreamIDs) throws java.sql.SQLException, AuthorizeException, java.io.IOException, UIException
context - Current dspace contentitemID - The item id from which to remove bitstreamsbitstreamIDs - A bundleID slash bitstreamID pair of bitstreams to be removed.java.sql.SQLExceptionAuthorizeExceptionjava.io.IOExceptionUIExceptionpublic static FlowResult processReorderBitstream(Context context, int itemID, org.apache.cocoon.environment.Request request) throws java.sql.SQLException, AuthorizeException
java.sql.SQLExceptionAuthorizeExceptionpublic static FlowResult processCurateItem(Context context, int itemID, org.apache.cocoon.environment.Request request) throws AuthorizeException, java.io.IOException, java.sql.SQLException, java.lang.Exception
context - itemID - request - AuthorizeExceptionjava.io.IOExceptionjava.sql.SQLExceptionjava.lang.Exceptionpublic static FlowResult processQueueItem(Context context, int itemID, org.apache.cocoon.environment.Request request) throws AuthorizeException, java.io.IOException, java.sql.SQLException, java.lang.Exception
AuthorizeExceptionjava.io.IOExceptionjava.sql.SQLExceptionjava.lang.ExceptionCopyright © 2014 DuraSpace. All Rights Reserved.