public class PolicySet extends Object
| Constructor and Description |
|---|
PolicySet() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] argv)
Command line interface to setPolicies - run to see arguments
|
static void |
setPolicies(Context c,
int containerType,
UUID containerID,
int contentType,
int actionID,
UUID groupID,
boolean isReplace,
boolean clearOnly)
Useful policy wildcard tool.
|
static void |
setPolicies(Context c,
int containerType,
UUID containerID,
int contentType,
int actionID,
UUID groupID,
boolean isReplace,
boolean clearOnly,
String name,
String description,
Date startDate,
Date endDate) |
static void |
setPoliciesFilter(Context c,
int containerType,
UUID containerID,
int contentType,
int actionID,
UUID groupID,
boolean isReplace,
boolean clearOnly,
String filter)
Useful policy wildcard tool.
|
static void |
setPoliciesFilter(Context c,
int containerType,
UUID containerID,
int contentType,
int actionID,
UUID groupID,
boolean isReplace,
boolean clearOnly,
String filter,
String name,
String description,
Date startDate,
Date endDate)
Useful policy wildcard tool.
|
public static void main(String[] argv) throws Exception
Exceptionpublic static void setPolicies(Context c, int containerType, UUID containerID, int contentType, int actionID, UUID 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
objectsSQLException - if database problemAuthorizeException - if current user is not authorized to change these policiespublic static void setPolicies(Context c, int containerType, UUID containerID, int contentType, int actionID, UUID groupID, boolean isReplace, boolean clearOnly, String name, String description, Date startDate, Date endDate) throws SQLException, AuthorizeException
c - containerType - containerID - contentType - actionID - groupID - isReplace - clearOnly - name - description - startDate - endDate - SQLExceptionAuthorizeExceptionpublic static void setPoliciesFilter(Context c, int containerType, UUID containerID, int contentType, int actionID, UUID 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 filterSQLException - if database problemAuthorizeException - if current user is not authorized to change these policiespublic static void setPoliciesFilter(Context c, int containerType, UUID containerID, int contentType, int actionID, UUID groupID, boolean isReplace, boolean clearOnly, String filter, String name, String description, Date startDate, Date endDate) 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 filtername - description - startDate - endDate - SQLException - if database problemAuthorizeException - if current user is not authorized to change these policiesCopyright © 2016 DuraSpace. All Rights Reserved.