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