Package com.uc4.api.objects
Class UserGroupAssignment
java.lang.Object
com.uc4.api.objects.UserGroupAssignment
This class enables the assignment of single users to user groups.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
addUserToGroup
(UC4ObjectName userGroup) Adds this User to the specified User Group.int
int
Returns a list of the client's user groups in which the user is a member.Returns a list of the client's user groups in which the user is not a member.boolean
removeUserGroup
(UC4ObjectName userGroup) Removes this User from the specified User Group.protected void
-
Constructor Details
-
UserGroupAssignment
protected UserGroupAssignment(com.uc4.util.XMLDocument doc)
-
-
Method Details
-
memberListIterator
Returns a list of the client's user groups in which the user is a member. The returnedjava.util.Iterator
cannot be used to remove user groups.- Returns:
- Iterator to get a list of object names
-
noMemberListIterator
Returns a list of the client's user groups in which the user is not a member. The returnedjava.util.Iterator
cannot be used to remove user groups.- Returns:
- Iterator to get a list of object names
-
getMemberListSize
public int getMemberListSize()- Returns:
- Number of User Groups in the member list
-
getNoMemberListSize
public int getNoMemberListSize()- Returns:
- Number of User Groups which are not in the member list
-
addUserToGroup
Adds this User to the specified User Group.- Parameters:
userGroup
- Name of the User Group- Returns:
- true if successful, false if the operation failed
-
removeUserGroup
Removes this User from the specified User Group.- Parameters:
userGroup
- Name of the User Group- Returns:
- true if successful, false if the operation failed
-
store
-