public interface AuthorizationList extends OsidList
Like all OsidLists, AuthorizationList
provides a means for accessing Authorization elements
sequentially either one at a time or many at a time. Examples:
while (al.hasNext()) {
Authorization authorization = al.getNextAuthorization();
}
or
while (al.hasNext()) {
Authorization[] authorizations = al.getNextAuthorizations(al.available());
}
| Modifier and Type | Method and Description |
|---|---|
Authorization |
getNextAuthorization()
Gets the next
Authorization in this list. |
Authorization[] |
getNextAuthorizations(long n)
Gets the next set of
Authorization elements in this
list which must be less than or equal to the number returned from
available(). |
Authorization getNextAuthorization() throws OperationFailedException
Authorization in this list. Authorization in this list. The
hasNext() method should be used to test that a next
Authorization is available before calling this
method.IllegalStateException - no more elements available in
this listOperationFailedException - unable to complete requestmandatory - This method must be implemented. Authorization[] getNextAuthorizations(long n) throws OperationFailedException
Authorization elements in this
list which must be less than or equal to the number returned from
available(). n - the number of Authorization elements
requested which should be less than or equal to
available() Authorization elements.
The length of the array is less than or equal to the
number specified.IllegalStateException - no more elements available in
this listOperationFailedException - unable to complete requestmandatory - This method must be implemented.