public class FlowGroupUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FlowGroupUtils.Role |
| Constructor and Description |
|---|
FlowGroupUtils() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static String getName(Context context, int groupID) throws SQLException
context - The current DSpace context.groupID - The group id.SQLExceptionpublic static String[] getEPeopleMembers(Context context, int groupID) throws SQLException
context - The current DSpace contextgroupID - The group's id.SQLExceptionpublic static String[] getGroupMembers(Context context, int groupID) throws SQLException
context - The current DSpace contextgroupID - The group's id.SQLExceptionpublic static String[] addMember(String[] list, String id)
list - The current arrayid - The new elementpublic static String[] removeMember(String[] list, String id)
list - The current arrayid - The id to removepublic 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.SQLExceptionAuthorizeExceptionUIExceptionpublic static FlowResult processDeleteGroups(Context context, String[] groupIDs) throws SQLException, AuthorizeException, IOException
context - The current DSpace contextgroupIDs - A list of groups to be removed.SQLExceptionAuthorizeExceptionIOExceptionpublic 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)
Copyright © 2014 DuraSpace. All Rights Reserved.