| java.lang.Object org.dspace.app.xmlui.aspect.administrative.FlowAuthorizationUtils
FlowAuthorizationUtils | public class FlowAuthorizationUtils (Code) | | FIXME: add documentation
author: Alexey maslov |
Method Summary | |
public static FlowResult | processAdvancedPolicyAdd(Context context, String[] groupIDs, int actionID, int resourceID, String[] collectionIDs) | public 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. | public static FlowResult | processDeletePolicies(Context context, String[] policyIDs) Delete the policies specified by the policyIDs parameter. | public 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. | public static FlowResult | resolveItemIdentifier(Context context, String identifier) Resolve an identifier submitted into the item lookup box. |
processAdvancedPolicyAdd | public static FlowResult processAdvancedPolicyAdd(Context context, String[] groupIDs, int actionID, int resourceID, String[] collectionIDs) throws NumberFormatException, SQLException, AuthorizeException(Code) | | Process addition of a several authorizations at once, as entered in the wildcard/advanced authorizations tool
Parameters: context - The current DSpace context. Parameters: groupIDs - The IDs of the groups to be associated with the newly created policies Parameters: actionID - The ID of the action to be associated with the policies Parameters: resourceID - Whether the policies will apply to Items or Bitstreams Parameters: collectionIDs - The IDs of the collections that the policies will be applied to A process result's object. |
processAdvancedPolicyDelete | public static FlowResult processAdvancedPolicyDelete(Context context, int resourceID, String[] collectionIDs) throws NumberFormatException, SQLException, AuthorizeException(Code) | | Process the deletion of all authorizations across a set of collections, regardless of associated
actions or groups. This functionality should probably not be used, ever, unless the goal to
completely reset a collection for one reason or another.
Parameters: context - The current DSpace context. Parameters: resourceID - Whether the policies will apply to Items or Bitstreams Parameters: collectionIDs - The IDs of the collections that the policy wipe will be applied to A process result's object. |
processDeletePolicies | public static FlowResult processDeletePolicies(Context context, String[] policyIDs) throws NumberFormatException, SQLException(Code) | | Delete the policies specified by the policyIDs parameter. This assumes that the
deletion has been confirmed.
Parameters: context - The current DSpace context Parameters: policyIDs - The unique ids of the policies being deleted. A process result's object. |
processEditPolicy | public static FlowResult processEditPolicy(Context context, int objectType, int objectID, int policyID, int groupID, int actionID) throws SQLException, AuthorizeException(Code) | | Process the editing of an existing or a newly created policy.
Parameters: context - The current DSpace context. Parameters: objectType - The type of the policy's parent object (ITEM, COLLECTION, COMMUNITY) Parameters: objectID - The ID of the policy's parent object Parameters: policyID - The ID of the policy being edited (-1 if a new policy is being created) Parameters: groupID - The ID of the group to be associated with this policy Parameters: actionID - The ID of the action (dependent on the objectType) to be associated with this policy A process result's object. |
resolveItemIdentifier | public static FlowResult resolveItemIdentifier(Context context, String identifier) throws SQLException(Code) | | Resolve an identifier submitted into the item lookup box. If it contains a slash, it's assumed to be a
handle and is resolved by that mechanism into an item, collection or community. Otherwise, it's assumed
to be an item and looked up by ID.
Parameters: context - The current DSpace context. Parameters: identifier - The identifier that is to be resolved. A process result's object. |
|
|