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 newCandidate
instance considering executions.Candidate
(IFolder folder, UserRight.Type objectType, char access) Creates a newCandidate
instance.Candidate
(UC4ObjectName obj, char access) Creates a newCandidate
instance.Candidate
(UC4ObjectName obj, UserRight.Type objectType, char access) Creates a newCandidate
instance.Candidate
(GetObjectProperties properties, UserRight.Type objectType, char access) Creates a newCandidate
instance based on the result of theGetObjectProperties
request. -
Method Summary
-
Constructor Details
-
Candidate
Creates a newCandidate
instance.- 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 newCandidate
instance.- 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 newCandidate
instance.- 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 newCandidate
instance based on the result of theGetObjectProperties
request.- Parameters:
properties
- The result of anGetObjectProperties
requestobjectType
- 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 newCandidate
instance 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:
true
if the authorization check was successful,false
if 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
-