|
||||||||||
| 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 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. |
| 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 java.lang.String getName(Context context,
int groupID)
throws java.sql.SQLException
context - The current DSpace context.groupID - The group id.
java.sql.SQLException
public static java.lang.String[] getEPeopleMembers(Context context,
int groupID)
throws java.sql.SQLException
context - The current DSpace contextgroupID - The group's id.
java.sql.SQLException
public static java.lang.String[] getGroupMembers(Context context,
int groupID)
throws java.sql.SQLException
context - The current DSpace contextgroupID - The group's id.
java.sql.SQLException
public static java.lang.String[] addMember(java.lang.String[] list,
java.lang.String id)
list - The current arrayid - The new element
public static java.lang.String[] removeMember(java.lang.String[] list,
java.lang.String id)
list - The current arrayid - The id to remove
public 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.SQLException
AuthorizeException
UIException
public 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.SQLException
AuthorizeException
java.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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||