public class CheckAuthorizations extends XMLRequest implements 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 |
|---|---|
Iterator<CheckAuthorizations.Candidate> |
iterator() |
int |
size()
Returns the number of candidates.
|
getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, send, showQuarantineNotificationequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic CheckAuthorizations(CheckAuthorizations.Candidate... candidates)
CheckUserAuthorizations request.candidates - Candidates to testpublic Iterator<CheckAuthorizations.Candidate> iterator()
iterator in interface Iterable<CheckAuthorizations.Candidate>public int size()
Copyright © 2021. All rights reserved.