public class Supervisor extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
POLICY_EDITOR
value to use for editor policies
|
static int |
POLICY_NONE
value to use for no policy set
|
static int |
POLICY_OBSERVER
value to use for observer policies
|
| Modifier and Type | Method and Description |
|---|---|
static void |
add(Context context,
int groupID,
int wsItemID,
int policy)
adds a supervision order to the database
|
static boolean |
isOrder(Context context,
int wsItemID,
int groupID)
finds out if there is a supervision order that matches this set
of values
|
static void |
remove(Context context,
int wsItemID,
int groupID)
removes the requested group from the requested workspace item in terms
of supervision.
|
static void |
removeRedundant(Context context)
removes redundant entries in the supervision orders database
|
public static final int POLICY_NONE
public static final int POLICY_EDITOR
public static final int POLICY_OBSERVER
public static boolean isOrder(Context context, int wsItemID, int groupID) throws SQLException
context - the context this object exists inwsItemID - the workspace item to be supervisedgroupID - the group to be doing the supervisingSQLExceptionpublic static void remove(Context context, int wsItemID, int groupID) throws SQLException, AuthorizeException
context - the context this object exists inwsItemID - the ID of the workspace itemgroupID - the ID of the group to be removed from the itemSQLExceptionAuthorizeExceptionpublic static void removeRedundant(Context context) throws SQLException
context - the context this object exists inSQLExceptionpublic static void add(Context context, int groupID, int wsItemID, int policy) throws SQLException, AuthorizeException
context - the context this object exists ingroupID - the ID of the group which will supervisewsItemID - the ID of the workspace item to be supervisedpolicy - String containing the policy type to be usedSQLExceptionAuthorizeExceptionCopyright © 2015 DuraSpace. All Rights Reserved.