Package com.uc4.communication.requests
Class CheckAuthorizations.Candidate
java.lang.Object
com.uc4.communication.requests.CheckAuthorizations.Candidate
- Enclosing class:
- CheckAuthorizations
This class represents a candidate to test.
-
Constructor Summary
ConstructorsConstructorDescriptionCandidate(int runId, char access) Creates a newCandidateinstance considering executions.Candidate(IFolder folder, UserRight.Type objectType, char access) Creates a newCandidateinstance.Candidate(UC4ObjectName obj, char access) Creates a newCandidateinstance.Candidate(UC4ObjectName obj, UserRight.Type objectType, char access) Creates a newCandidateinstance.Candidate(GetObjectProperties properties, UserRight.Type objectType, char access) Creates a newCandidateinstance based on the result of theGetObjectPropertiesrequest. -
Method Summary
-
Constructor Details
-
Candidate
Creates a newCandidateinstance.- Parameters:
obj- Name of the objectobjectType- Object typeaccess-- R...Read
- W...Write
- X...Execute
- D...Delete
- C...Cancel
- S...Statistics
- P...Reports
- M...Modify hat runtime
- L...Define SLA
-
Candidate
Creates a newCandidateinstance.- Parameters:
obj- Name of the objectaccess-- R...Read
- W...Write
- X...Execute
- D...Delete
- C...Cancel
- S...Statistics
- P...Reports
- M...Modify hat runtime
- L...Define SLA
-
Candidate
Creates a newCandidateinstance.- Parameters:
folder- Path to a folderobjectType- Object typeaccess-- R...Read
- W...Write
- X...Execute
- D...Delete
- C...Cancel
- S...Statistics
- P...Reports
- M...Modify hat runtime
- L...Define SLA
-
Candidate
Creates a newCandidateinstance based on the result of theGetObjectPropertiesrequest.- Parameters:
properties- The result of anGetObjectPropertiesrequestobjectType- Object typeaccess-- R...Read
- W...Write
- X...Execute
- D...Delete
- C...Cancel
- S...Statistics
- P...Reports
- M...Modify hat runtime
- L...Define SLA
-
Candidate
public Candidate(int runId, char access) Creates a newCandidateinstance considering executions.- Parameters:
runId- run id of an executionaccess-- R...Read
- W...Write
- X...Execute
- D...Delete
- C...Cancel
- S...Statistics
- P...Reports
- M...Modify hat runtime
- L...Define SLA
-
-
Method Details
-
getResult
public boolean getResult()Returns the result of this check.- Returns:
trueif the authorization check was successful,falseif not.
-
getName
Returns the name of the Object.- Returns:
- user
-
getFolder
Returns the name of the Folder.- Returns:
- folder
-
getObjectType
Returns the object Type.- Returns:
- Type
-
getAccess
public char getAccess()Returns the access mode.- Returns:
- R...read
- W...write
- X...execute
- D...delete
- C...cancel
- S...Statistics
- P...Reports
- M...Modify hat runtime
-
getRunId
public int getRunId()Returns the run id of an execution.- Returns:
- run id or -1 if not available.
-
hashCode
public int hashCode() -
equals
-
toString
-