|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.authorize.PolicySet
public class PolicySet
Was Hack/Tool to set policies for items, bundles, and bitstreams. Now has helpful method, setPolicies();
| Constructor Summary | |
|---|---|
PolicySet()
|
|
| Method Summary | |
|---|---|
static void |
main(String[] argv)
Command line interface to setPolicies - run to see arguments |
static void |
setPolicies(Context c,
int containerType,
int containerID,
int contentType,
int actionID,
int groupID,
boolean isReplace,
boolean clearOnly)
Useful policy wildcard tool. |
static void |
setPoliciesFilter(Context c,
int containerType,
int containerID,
int contentType,
int actionID,
int groupID,
boolean isReplace,
boolean clearOnly,
String filter)
Useful policy wildcard tool. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PolicySet()
| Method Detail |
|---|
public static void main(String[] argv)
throws Exception
Exception
public static void setPolicies(Context c,
int containerType,
int containerID,
int contentType,
int actionID,
int groupID,
boolean isReplace,
boolean clearOnly)
throws SQLException,
AuthorizeException
c - current contextcontainerType - type, Constants.ITEM or Constants.COLLECTIONcontainerID - ID of container (DB primary key)contentType - type (BUNDLE, ITEM, or BITSTREAM)actionID - action IDgroupID - group ID (database key)isReplace - if true, existing policies are removed first,
otherwise add to existing policiesclearOnly - if true, just delete policies for matching
objects
SQLException - if database problem
AuthorizeException - if current user is not authorized to change these policies
public static void setPoliciesFilter(Context c,
int containerType,
int containerID,
int contentType,
int actionID,
int groupID,
boolean isReplace,
boolean clearOnly,
String filter)
throws SQLException,
AuthorizeException
c - current contextcontainerType - type, Constants.ITEM or Constants.COLLECTIONcontainerID - ID of container (DB primary key)contentType - type (BUNDLE, ITEM, or BITSTREAM)actionID - action IDgroupID - group ID (database key)isReplace - if true, existing policies are removed first,
otherwise add to existing policiesclearOnly - if true, just delete policies for matching
objectsfilter - if non-null, only process bitstreams whose names contain filter
SQLException - if database problem
AuthorizeException - if current user is not authorized to change these policies
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||