|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.app.xmlui.aspect.administrative.FlowGroupUtils
public class FlowGroupUtils
Utility methods to processes actions on Groups. These methods are used exclusivly from the administrative flow scripts.
| Nested Class Summary | |
|---|---|
static class |
FlowGroupUtils.Role
|
| Constructor Summary | |
|---|---|
FlowGroupUtils()
|
|
| Method Summary | |
|---|---|
static String[] |
addMember(String[] list,
String id)
Add the given id to the list and return a new list. |
static int |
getCollectionId(String groupName)
Extracts the collection id that may be immbedded in the given group name. |
static FlowGroupUtils.Role |
getCollectionRole(String groupName)
|
static int |
getCommunityId(String groupName)
Extracts the community id that may be embedded in the given group name. |
static FlowGroupUtils.Role |
getCommunityRole(String groupName)
|
static String[] |
getEPeopleMembers(Context context,
int groupID)
Return the list of current epeople ID's that are a member of this group. |
static String[] |
getGroupMembers(Context context,
int groupID)
Return the list of current group id's that are a member of this group. |
static String |
getName(Context context,
int groupID)
Return the current name for the given group ID. |
static FlowResult |
processDeleteGroups(Context context,
String[] groupIDs)
Remove the specified groups. |
static FlowResult |
processSaveGroup(Context context,
int groupID,
String newName,
String[] newEPeopleIDsArray,
String[] newGroupIDsArray)
Save the group. |
static String[] |
removeMember(String[] list,
String id)
Remove all instances of the given id from the member list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FlowGroupUtils()
| Method Detail |
|---|
public static String getName(Context context,
int groupID)
throws SQLException
context - The current DSpace context.groupID - The group id.
SQLException
public static String[] getEPeopleMembers(Context context,
int groupID)
throws SQLException
context - The current DSpace contextgroupID - The group's id.
SQLException
public static String[] getGroupMembers(Context context,
int groupID)
throws SQLException
context - The current DSpace contextgroupID - The group's id.
SQLException
public static String[] addMember(String[] list,
String id)
list - The current arrayid - The new element
public static String[] removeMember(String[] list,
String id)
list - The current arrayid - The id to remove
public static FlowResult processSaveGroup(Context context,
int groupID,
String newName,
String[] newEPeopleIDsArray,
String[] newGroupIDsArray)
throws SQLException,
AuthorizeException,
UIException
context - The current dspace contextgroupID - The group id, or -1 for a new group.newName - The group's new name.newEPeopleIDsArray - All epeople membersnewGroupIDsArray - All group members.
SQLException
AuthorizeException
UIException
public static FlowResult processDeleteGroups(Context context,
String[] groupIDs)
throws SQLException,
AuthorizeException,
IOException
context - The current DSpace contextgroupIDs - A list of groups to be removed.
SQLException
AuthorizeException
IOExceptionpublic static int getCollectionId(String groupName)
groupName - - the name of a group (ie group.getName())
public static FlowGroupUtils.Role getCollectionRole(String groupName)
public static int getCommunityId(String groupName)
groupName - - the name of a group (ie group.getName())
public static FlowGroupUtils.Role getCommunityRole(String groupName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||