Package com.uc4.api.objects
Class ObjectAuthorizations
java.lang.Object
com.uc4.api.objects.ObjectAuthorizations
- All Implemented Interfaces:
Iterable<ObjectRight>
This class serves to define access rights for a UC4Objects.
These rights are an integral part of AE's authorization system.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionCreates a new ObjectAuthorizations object.protectedObjectAuthorizations(com.uc4.util.XMLDocument doc) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRight(ObjectRight right) Adds a new row to the authorizations tab.voidclear()Clears the list of authorizations.iterator()Returns anjava.util.IteratoroverObjectRight.intsize()Returns the number of authorizations for this UC4Object.protected voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ObjectAuthorizations
public ObjectAuthorizations()Creates a new ObjectAuthorizations object. -
ObjectAuthorizations
protected ObjectAuthorizations(com.uc4.util.XMLDocument doc)
-
-
Method Details
-
iterator
Returns anjava.util.IteratoroverObjectRight. The returned Iterator can be used to remove elements by using theremove()method.- Specified by:
iteratorin interfaceIterable<ObjectRight>- Returns:
- Iterator
-
addRight
Adds a new row to the authorizations tab.- Parameters:
right- authorization
-
clear
public void clear()Clears the list of authorizations. -
size
public int size()Returns the number of authorizations for this UC4Object.- Returns:
- Number of authorizations
-
store
-