public class FlowAuthorizationUtils extends Object
| Constructor and Description |
|---|
FlowAuthorizationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static FlowResult |
processAdvancedPolicyAdd(Context context,
String[] groupIDs,
int actionID,
int resourceID,
String[] collectionIDs,
String name,
String description,
String startDateParam,
String endDateParam)
Process addition of a several authorizations at once, as entered in the wildcard/advanced authorizations tool
|
static FlowResult |
processAdvancedPolicyDelete(Context context,
int resourceID,
String[] collectionIDs)
Process the deletion of all authorizations across a set of collections, regardless of associated
actions or groups.
|
static FlowResult |
processDeletePolicies(Context context,
String[] policyIDs)
Delete the policies specified by the policyIDs parameter.
|
static FlowResult |
processEditPolicy(Context context,
int objectType,
int objectID,
int policyID,
int groupID,
int actionID,
String name,
String description,
String startDateParam,
String endDateParam)
Process the editing of an existing or a newly created policy.
|
static FlowResult |
resolveItemIdentifier(Context context,
String identifier)
Resolve an identifier submitted into the item lookup box.
|
public static FlowResult resolveItemIdentifier(Context context, String identifier) throws SQLException
context - The current DSpace context.identifier - The identifier that is to be resolved.SQLExceptionpublic static FlowResult processEditPolicy(Context context, int objectType, int objectID, int policyID, int groupID, int actionID, String name, String description, String startDateParam, String endDateParam) throws SQLException, AuthorizeException
context - The current DSpace context.objectType - The type of the policy's parent object (ITEM, COLLECTION, COMMUNITY)objectID - The ID of the policy's parent objectpolicyID - The ID of the policy being edited (-1 if a new policy is being created)groupID - The ID of the group to be associated with this policyactionID - The ID of the action (dependent on the objectType) to be associated with this policySQLExceptionAuthorizeExceptionpublic static FlowResult processDeletePolicies(Context context, String[] policyIDs) throws NumberFormatException, SQLException, AuthorizeException
context - The current DSpace contextpolicyIDs - The unique ids of the policies being deleted.NumberFormatExceptionSQLExceptionAuthorizeExceptionpublic static FlowResult processAdvancedPolicyAdd(Context context, String[] groupIDs, int actionID, int resourceID, String[] collectionIDs, String name, String description, String startDateParam, String endDateParam) throws NumberFormatException, SQLException, AuthorizeException
context - The current DSpace context.groupIDs - The IDs of the groups to be associated with the newly created policiesactionID - The ID of the action to be associated with the policiesresourceID - Whether the policies will apply to Items or BitstreamscollectionIDs - The IDs of the collections that the policies will be applied toNumberFormatExceptionSQLExceptionAuthorizeExceptionpublic static FlowResult processAdvancedPolicyDelete(Context context, int resourceID, String[] collectionIDs) throws NumberFormatException, SQLException, AuthorizeException
context - The current DSpace context.resourceID - Whether the policies will apply to Items or BitstreamscollectionIDs - The IDs of the collections that the policy wipe will be applied toNumberFormatExceptionSQLExceptionAuthorizeExceptionCopyright © 2013 DuraSpace. All Rights Reserved.