|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.northwestern.at.wordhoard.swing.calculator.modelutils.UserGroupUtils
public class UserGroupUtils
Work set utilities.
Constructor Summary | |
---|---|
protected |
UserGroupUtils()
Don't allow instantiation but do allow overrides. |
Method Summary | |
---|---|
static UserGroup |
createUserGroup(UserGroup userGroup)
Create a new UserGroup. |
static boolean |
deleteUserGroup(UserGroup userGroup)
Delete a UserGroup. |
static java.util.Collection |
getUserGroups()
Get all usergroups. |
static java.util.Collection |
getUserGroups(java.lang.String member)
Get all usergroups associated with a specific user. |
static boolean |
updateUserGroup(UserGroup userGroup)
Update UserGroup. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected UserGroupUtils()
Method Detail |
---|
public static UserGroup createUserGroup(UserGroup userGroup) throws BadOwnerException
userGroup
- The group.
BadOwnerException
- if the owner is null or empty. public static boolean updateUserGroup(UserGroup userGroup) throws BadOwnerException
BadOwnerException
- if the owner is null or empty or not admin. public static boolean deleteUserGroup(UserGroup userGroup)
userGroup
- The UserGroup to delete.
The currently logged in user must be the owner to delete an UserGroup.
public static java.util.Collection getUserGroups(java.lang.String member)
member
- The tag of the user group member.
public static java.util.Collection getUserGroups()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |