Package com.uc4.api.objects
Class UserAssignment
- java.lang.Object
- 
- com.uc4.api.objects.UserAssignment
 
- 
 public class UserAssignment extends java.lang.ObjectThis class enables the assignment of single users to this User Group.
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedUserAssignment(com.uc4.util.XMLDocument doc)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddUser(UC4UserName userName)Adds a user to this UserGroup.intgetMemberListSize()intgetNoMemberListSize()booleanisRevision()Returns the Revision from this UserGroup.java.util.Iterator<UC4UserName>memberListIterator()Returns a list of users who are members of this User Group The returnedjava.util.Iteratorcannot be used to remove users.java.util.Iterator<UC4UserName>noMemberListIterator()Returns a list of users who are not members of this User Group The returnedjava.util.Iteratorcannot be used to remove users.voidremoveAllUsers()booleanremoveUser(UC4UserName userName)Removes a user from this UserGroup.protected voidstore(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement)
 
- 
- 
- 
Method Detail- 
memberListIteratorpublic java.util.Iterator<UC4UserName> memberListIterator() Returns a list of users who are members of this User Group The returnedjava.util.Iteratorcannot be used to remove users.- Returns:
- Iterator to get a list of user names
 
 - 
noMemberListIteratorpublic java.util.Iterator<UC4UserName> noMemberListIterator() Returns a list of users who are not members of this User Group The returnedjava.util.Iteratorcannot be used to remove users.- Returns:
- Iterator to get a list of user names
 
 - 
getMemberListSizepublic int getMemberListSize() - Returns:
- Number of Users who are part of this User Group.
 
 - 
getNoMemberListSizepublic int getNoMemberListSize() - Returns:
- Number of Users who are not part of this User Group.
 
 - 
removeAllUserspublic void removeAllUsers() 
 - 
addUserpublic boolean addUser(UC4UserName userName) Adds a user to this UserGroup.- Parameters:
- userName- Name of the user
- Returns:
- true if successful, false if the operation failed
- Throws:
- java.lang.IllegalStateException- when revisioning is set
 
 - 
removeUserpublic boolean removeUser(UC4UserName userName) Removes a user from this UserGroup.- Parameters:
- userName- Name of the user
- Returns:
- true if successful, false if the operation failed
- Throws:
- java.lang.IllegalStateException- when revisioning is set
 
 - 
isRevisionpublic boolean isRevision() Returns the Revision from this UserGroup.- Returns:
- true/false
 
 - 
storeprotected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement)
 
- 
 
-