public class FlowGroupUtils
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FlowGroupUtils.Role |
| Constructor and Description |
|---|
FlowGroupUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String[] |
addMember(java.lang.String[] list,
java.lang.String id)
Add the given id to the list and return a new list.
|
static int |
getCollectionId(java.lang.String groupName)
Extracts the collection id that may be immbedded in the given group name.
|
static FlowGroupUtils.Role |
getCollectionRole(java.lang.String groupName) |
static int |
getCommunityId(java.lang.String groupName)
Extracts the community id that may be embedded in the given group name.
|
static FlowGroupUtils.Role |
getCommunityRole(java.lang.String groupName) |
static java.lang.String[] |
getEPeopleMembers(Context context,
int groupID)
Return the list of current epeople ID's that are a member of this group.
|
static java.lang.String[] |
getGroupMembers(Context context,
int groupID)
Return the list of current group id's that are a member of this group.
|
static java.lang.String |
getName(Context context,
int groupID)
Return the current name for the given group ID.
|
static FlowResult |
processDeleteGroups(Context context,
java.lang.String[] groupIDs)
Remove the specified groups.
|
static FlowResult |
processSaveGroup(Context context,
int groupID,
java.lang.String newName,
java.lang.String[] newEPeopleIDsArray,
java.lang.String[] newGroupIDsArray)
Save the group.
|
static java.lang.String[] |
removeMember(java.lang.String[] list,
java.lang.String id)
Remove all instances of the given id from the member list.
|
public static java.lang.String getName(Context context, int groupID) throws java.sql.SQLException
context - The current DSpace context.groupID - The group id.java.sql.SQLExceptionpublic static java.lang.String[] getEPeopleMembers(Context context, int groupID) throws java.sql.SQLException
context - The current DSpace contextgroupID - The group's id.java.sql.SQLExceptionpublic static java.lang.String[] getGroupMembers(Context context, int groupID) throws java.sql.SQLException
context - The current DSpace contextgroupID - The group's id.java.sql.SQLExceptionpublic static java.lang.String[] addMember(java.lang.String[] list,
java.lang.String id)
list - The current arrayid - The new elementpublic static java.lang.String[] removeMember(java.lang.String[] list,
java.lang.String id)
list - The current arrayid - The id to removepublic static FlowResult processSaveGroup(Context context, int groupID, java.lang.String newName, java.lang.String[] newEPeopleIDsArray, java.lang.String[] newGroupIDsArray) throws java.sql.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.java.sql.SQLExceptionAuthorizeExceptionUIExceptionpublic static FlowResult processDeleteGroups(Context context, java.lang.String[] groupIDs) throws java.sql.SQLException, AuthorizeException, java.io.IOException
context - The current DSpace contextgroupIDs - A list of groups to be removed.java.sql.SQLExceptionAuthorizeExceptionjava.io.IOExceptionpublic static int getCollectionId(java.lang.String groupName)
groupName - - the name of a group (ie group.getName())public static FlowGroupUtils.Role getCollectionRole(java.lang.String groupName)
public static int getCommunityId(java.lang.String groupName)
groupName - - the name of a group (ie group.getName())public static FlowGroupUtils.Role getCommunityRole(java.lang.String groupName)
Copyright © 2014 DuraSpace. All Rights Reserved.