public class FlowAuthorizationUtils extends Object
| Constructor and Description |
|---|
FlowAuthorizationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.dspace.app.xmlui.aspect.administrative.FlowResult |
processAdvancedPolicyAdd(org.dspace.core.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 org.dspace.app.xmlui.aspect.administrative.FlowResult |
processAdvancedPolicyDelete(org.dspace.core.Context context,
int resourceID,
String[] collectionIDs)
Process the deletion of all authorizations across a set of collections, regardless of associated
actions or groups.
|
static org.dspace.app.xmlui.aspect.administrative.FlowResult |
processDeletePolicies(org.dspace.core.Context context,
String[] policyIDs)
Delete the policies specified by the policyIDs parameter.
|
static org.dspace.app.xmlui.aspect.administrative.FlowResult |
processEditPolicy(org.dspace.core.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 org.dspace.app.xmlui.aspect.administrative.FlowResult |
resolveItemIdentifier(org.dspace.core.Context context,
String identifier)
Resolve an identifier submitted into the item lookup box.
|
public static org.dspace.app.xmlui.aspect.administrative.FlowResult resolveItemIdentifier(org.dspace.core.Context context,
String identifier)
throws SQLException
context - The current DSpace context.identifier - The identifier that is to be resolved.SQLExceptionpublic static org.dspace.app.xmlui.aspect.administrative.FlowResult processEditPolicy(org.dspace.core.Context context,
int objectType,
int objectID,
int policyID,
int groupID,
int actionID,
String name,
String description,
String startDateParam,
String endDateParam)
throws SQLException,
org.dspace.authorize.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 policySQLExceptionorg.dspace.authorize.AuthorizeExceptionpublic static org.dspace.app.xmlui.aspect.administrative.FlowResult processDeletePolicies(org.dspace.core.Context context,
String[] policyIDs)
throws NumberFormatException,
SQLException,
org.dspace.authorize.AuthorizeException
context - The current DSpace contextpolicyIDs - The unique ids of the policies being deleted.NumberFormatExceptionSQLExceptionorg.dspace.authorize.AuthorizeExceptionpublic static org.dspace.app.xmlui.aspect.administrative.FlowResult processAdvancedPolicyAdd(org.dspace.core.Context context,
String[] groupIDs,
int actionID,
int resourceID,
String[] collectionIDs,
String name,
String description,
String startDateParam,
String endDateParam)
throws NumberFormatException,
SQLException,
org.dspace.authorize.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 toNumberFormatExceptionSQLExceptionorg.dspace.authorize.AuthorizeExceptionpublic static org.dspace.app.xmlui.aspect.administrative.FlowResult processAdvancedPolicyDelete(org.dspace.core.Context context,
int resourceID,
String[] collectionIDs)
throws NumberFormatException,
SQLException,
org.dspace.authorize.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 toNumberFormatExceptionSQLExceptionorg.dspace.authorize.AuthorizeExceptionCopyright © 2016 DuraSpace. All rights reserved.