|
||||||||||
| 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,
java.lang.String[] groupIDs,
int actionID,
int resourceID,
java.lang.String[] collectionIDs)
Process addition of a several authorizations at once, as entered in the wildcard/advanced authorizations tool |
static FlowResult |
processAdvancedPolicyDelete(Context context,
int resourceID,
java.lang.String[] collectionIDs)
Process the deletion of all authorizations across a set of collections, regardless of associated actions or groups. |
static FlowResult |
processDeletePolicies(Context context,
java.lang.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)
Process the editing of an existing or a newly created policy. |
static FlowResult |
resolveItemIdentifier(Context context,
java.lang.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,
java.lang.String identifier)
throws java.sql.SQLException
context - The current DSpace context.identifier - The identifier that is to be resolved.
java.sql.SQLException
public static FlowResult processEditPolicy(Context context,
int objectType,
int objectID,
int policyID,
int groupID,
int actionID)
throws java.sql.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
java.sql.SQLException
AuthorizeException
public static FlowResult processDeletePolicies(Context context,
java.lang.String[] policyIDs)
throws java.lang.NumberFormatException,
java.sql.SQLException,
AuthorizeException
context - The current DSpace contextpolicyIDs - The unique ids of the policies being deleted.
java.lang.NumberFormatException
java.sql.SQLException
AuthorizeException
public static FlowResult processAdvancedPolicyAdd(Context context,
java.lang.String[] groupIDs,
int actionID,
int resourceID,
java.lang.String[] collectionIDs)
throws java.lang.NumberFormatException,
java.sql.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
java.lang.NumberFormatException
java.sql.SQLException
AuthorizeException
public static FlowResult processAdvancedPolicyDelete(Context context,
int resourceID,
java.lang.String[] collectionIDs)
throws java.lang.NumberFormatException,
java.sql.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
java.lang.NumberFormatException
java.sql.SQLException
AuthorizeException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||