Package com.uc4.communication.requests
Class CheckAuthorizations.Candidate
- java.lang.Object
-
- com.uc4.communication.requests.CheckAuthorizations.Candidate
-
- Enclosing class:
- CheckAuthorizations
public static class CheckAuthorizations.Candidate extends java.lang.ObjectThis class represents a candidate to test.
-
-
Constructor Summary
Constructors Constructor Description Candidate(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object object)chargetAccess()Returns the access mode.IFoldergetFolder()Returns the name of the Folder.UC4ObjectNamegetName()Returns the name of the Object.UserRight.TypegetObjectType()Returns the object Type.booleangetResult()Returns the result of this check.intgetRunId()Returns the run id of an execution.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
Candidate
public Candidate(UC4ObjectName obj, UserRight.Type objectType, char access)
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
public Candidate(UC4ObjectName obj, char access)
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
public Candidate(IFolder folder, UserRight.Type objectType, char access)
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
public Candidate(GetObjectProperties properties, UserRight.Type objectType, char access)
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 Detail
-
getResult
public boolean getResult()
Returns the result of this check.- Returns:
trueif the authorization check was successful,falseif not.
-
getName
public UC4ObjectName getName()
Returns the name of the Object.- Returns:
- user
-
getFolder
public IFolder getFolder()
Returns the name of the Folder.- Returns:
- folder
-
getObjectType
public UserRight.Type 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()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-