Package com.uc4.api.objects
Class UserAuthorizations
- java.lang.Object
-
- com.uc4.api.objects.UserAuthorizations
-
- All Implemented Interfaces:
java.lang.Iterable<UserRight>
public class UserAuthorizations extends java.lang.Object implements java.lang.Iterable<UserRight>
This class serves to define access rights for objects, files, statistics and reports. These rights are an integral part of the authorization system.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UserAuthorizations(com.uc4.util.XMLDocument doc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRight(UserRight right)
Adds a new row the authorizations tab.void
clear()
Clears the list of authorizations.java.util.Iterator<UserRight>
iterator()
Returns anjava.util.Iterator
overUserRight
.int
size()
Returns the number of authorizations in this user object.protected void
store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement)
-
-
-
Method Detail
-
addRight
public void addRight(UserRight right)
Adds a new row the authorizations tab.- Parameters:
right
- authorization
-
iterator
public java.util.Iterator<UserRight> iterator()
Returns anjava.util.Iterator
overUserRight
. The returned Iterator can be used to remove elements by using theremove()
method.- Specified by:
iterator
in interfacejava.lang.Iterable<UserRight>
- Returns:
- Iterator
-
clear
public void clear()
Clears the list of authorizations.
-
size
public int size()
Returns the number of authorizations in this user object.- Returns:
- Number of authorizations
-
store
protected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement)
-
-