public class CheckAuthorizations extends XMLRequest implements java.lang.Iterable<CheckAuthorizations.Candidate>
Example:
CheckAuthorizations.Candidate check1 = new CheckAuthorizations.Candidate(new UC4UserName("JOBS.R3.NEW.26"), UserRight.Type.JOBS, 'R');
CheckAuthorizations.Candidate check2 = new CheckAuthorizations.Candidate(new UC4UserName("JOBS.R3.NEW.26"), UserRight.Type.JOBS, 'C');
CheckAuthorizations checkAuth = new CheckAuthorizations(check1, check2);
uc4.sendRequestAndWait(checkAuth);
for (CheckAuthorizations.Candidate c : checkAuth) {
System.out.println("Access mode "+c.getAccess()+" for object "+c.getName()+ (c.getResult() ? " is allowed" : " has been denied"));
}
| Modifier and Type | Class and Description |
|---|---|
static class |
CheckAuthorizations.Candidate
This class represents a candidate to test.
|
| Constructor and Description |
|---|
CheckAuthorizations(CheckAuthorizations.Candidate... candidates)
Creates a new
CheckUserAuthorizations request. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator<CheckAuthorizations.Candidate> |
iterator() |
int |
size()
Returns the number of candidates.
|
getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, sendpublic CheckAuthorizations(CheckAuthorizations.Candidate... candidates)
CheckUserAuthorizations request.candidates - Candidates to testpublic java.util.Iterator<CheckAuthorizations.Candidate> iterator()
iterator in interface java.lang.Iterable<CheckAuthorizations.Candidate>public int size()