Package com.uc4.api.objects
Class UserGroupAssignment
- java.lang.Object
-
- com.uc4.api.objects.UserGroupAssignment
-
public class UserGroupAssignment extends java.lang.Object
This class enables the assignment of single users to user groups.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UserGroupAssignment(com.uc4.util.XMLDocument doc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addUserToGroup(UC4ObjectName userGroup)
Adds this User to the specified User Group.int
getMemberListSize()
int
getNoMemberListSize()
java.util.Iterator<UC4ObjectName>
memberListIterator()
Returns a list of the client's user groups in which the user is a member.java.util.Iterator<UC4ObjectName>
noMemberListIterator()
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
store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement)
-
-
-
Method Detail
-
memberListIterator
public java.util.Iterator<UC4ObjectName> 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
public java.util.Iterator<UC4ObjectName> 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
public boolean addUserToGroup(UC4ObjectName userGroup)
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
public boolean removeUserGroup(UC4ObjectName userGroup)
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
protected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement)
-
-