public interface SupervisorService
| 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 |
|---|---|
void |
add(Context context,
Group group,
WorkspaceItem workspaceItem,
int policy)
adds a supervision order to the database
|
boolean |
isOrder(Context context,
WorkspaceItem workspaceItem,
Group group)
finds out if there is a supervision order that matches this set
of values
|
void |
remove(Context context,
WorkspaceItem workspaceItem,
Group group)
removes the requested group from the requested workspace item in terms
of supervision.
|
static final int POLICY_NONE
static final int POLICY_EDITOR
static final int POLICY_OBSERVER
boolean isOrder(Context context, WorkspaceItem workspaceItem, Group group) throws SQLException
context - the context this object exists inworkspaceItem - the workspace item to be supervisedgroup - the group to be doing the supervisingSQLExceptionvoid remove(Context context, WorkspaceItem workspaceItem, Group group) throws SQLException, AuthorizeException
context - the context this object exists inworkspaceItem - the ID of the workspace itemgroup - the ID of the group to be removed from the itemSQLExceptionAuthorizeExceptionvoid add(Context context, Group group, WorkspaceItem workspaceItem, int policy) throws SQLException, AuthorizeException
context - the context this object exists ingroup - the ID of the group which will superviseworkspaceItem - the ID of the workspace item to be supervisedpolicy - String containing the policy type to be usedSQLExceptionAuthorizeExceptionCopyright © 2016 DuraSpace. All rights reserved.