public class PolicySet extends Object
| 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
argv - the command line arguments givenException - if errorpublic 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 error
if database problemAuthorizeException - if authorization error
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 - current contextcontainerType - type, Constants.ITEM or Constants.COLLECTIONcontainerID - ID of container (DB primary key)contentType - ID of container (DB primary key)actionID - action ID (e.g. Constants.READ)groupID - group ID (database key)isReplace - if true, existing policies are removed first,
otherwise add to existing policiesclearOnly - if non-null, only process bitstreams whose names contain filtername - policy namedescription - policy descrptionstartDate - policy start dateendDate - policy end dateSQLException - if database errorAuthorizeException - if authorization errorpublic 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 ID (e.g. Constants.READ)groupID - 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 error
if database problemAuthorizeException - if authorization error
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 - policy namedescription - policy descriptionstartDate - policy start dateendDate - policy end dateSQLException - if database error
if database problemAuthorizeException - if authorization error
if current user is not authorized to change these policiesCopyright © 2019 DuraSpace. All rights reserved.