|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.app.xmlui.aspect.administrative.FlowAuthorizationUtils
public class FlowAuthorizationUtils
FIXME: add documentation
| Constructor Summary | |
|---|---|
FlowAuthorizationUtils()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FlowAuthorizationUtils()
| Method Detail |
|---|
public static FlowResult resolveItemIdentifier(Context context,
String identifier)
throws SQLException
context - The current DSpace context.identifier - The identifier that is to be resolved.
SQLException
public 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 policy
SQLException
AuthorizeException
public static FlowResult processDeletePolicies(Context context,
String[] policyIDs)
throws NumberFormatException,
SQLException,
AuthorizeException
context - The current DSpace contextpolicyIDs - The unique ids of the policies being deleted.
NumberFormatException
SQLException
AuthorizeException
public 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 to
NumberFormatException
SQLException
AuthorizeException
public 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 to
NumberFormatException
SQLException
AuthorizeException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||