public class SupervisorServiceImpl extends Object implements SupervisorService
| Modifier and Type | Field and Description |
|---|---|
protected ItemService |
itemService |
protected ResourcePolicyService |
resourcePolicyService |
POLICY_EDITOR, POLICY_NONE, POLICY_OBSERVER| Modifier | Constructor and Description |
|---|---|
protected |
SupervisorServiceImpl() |
| 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.
|
@Autowired(required=true) protected ItemService itemService
@Autowired(required=true) protected ResourcePolicyService resourcePolicyService
public boolean isOrder(Context context, WorkspaceItem workspaceItem, Group group) throws SQLException
SupervisorServiceisOrder in interface SupervisorServicecontext - the context this object exists inworkspaceItem - the workspace item to be supervisedgroup - the group to be doing the supervisingSQLExceptionpublic void remove(Context context, WorkspaceItem workspaceItem, Group group) throws SQLException, AuthorizeException
SupervisorServiceremove in interface SupervisorServicecontext - the context this object exists inworkspaceItem - the ID of the workspace itemgroup - the ID of the group to be removed from the itemSQLExceptionAuthorizeExceptionpublic void add(Context context, Group group, WorkspaceItem workspaceItem, int policy) throws SQLException, AuthorizeException
SupervisorServiceadd in interface SupervisorServicecontext - 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.