|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.eperson.Supervisor
public class Supervisor
Class to represent the supervisor, primarily for use in applying supervisor activities to the database, such as setting and unsetting supervision orders and so forth.
| Field Summary | |
|---|---|
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 |
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int POLICY_NONE
public static int POLICY_EDITOR
public static int POLICY_OBSERVER
| Method Detail |
|---|
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 supervising
SQLException
public 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 item
SQLException
AuthorizeException
public static void removeRedundant(Context context)
throws SQLException
context - the context this object exists in
SQLException
public 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 used
SQLException
AuthorizeException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||