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.Object
This class represents a candidate to test.
-
-
Constructor Summary
Constructors Constructor Description Candidate(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object object)
char
getAccess()
Returns the access mode.IFolder
getFolder()
Returns the name of the Folder.UC4ObjectName
getName()
Returns the name of the Object.UserRight.Type
getObjectType()
Returns the object Type.boolean
getResult()
Returns the result of this check.int
getRunId()
Returns the run id of an execution.int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Candidate
public Candidate(UC4ObjectName obj, UserRight.Type objectType, char access)
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
public Candidate(UC4ObjectName obj, char access)
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
public Candidate(IFolder folder, UserRight.Type objectType, char access)
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
public Candidate(GetObjectProperties properties, UserRight.Type objectType, char access)
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 Detail
-
getResult
public boolean getResult()
Returns the result of this check.- Returns:
true
if the authorization check was successful,false
if 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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-