public interface JobOwner
UserIdentifier
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getDataToSave()
Gets all user data to save (including ID and pseudo/name).
|
java.lang.String |
getID()
Unique ID of a user.
|
java.lang.String |
getPseudo()
Pseudo of a user.
|
boolean |
hasExecutePermission(UWSJob job)
Tells whether this user has the right to execute and to abort the given job.
|
boolean |
hasReadPermission(JobList jl)
Tells whether this user has the right to list the jobs of the given jobs list.
|
boolean |
hasReadPermission(UWSJob job)
Tells whether this user has the right to read all parameters, errors and results of the given job.
|
boolean |
hasWritePermission(JobList jl)
Tells whether this user has the right to add/remove jobs to/from the given jobs list.
|
boolean |
hasWritePermission(UWSJob job)
Tells whether this user has the right to destroy the given job and to change the value of its parameters.
|
void |
restoreData(java.util.Map<java.lang.String,java.lang.Object> data)
Restores any additional user data from the given map.
|
java.lang.String getID()
java.lang.String getPseudo()
boolean hasReadPermission(JobList jl)
jl
- A jobs list.boolean hasWritePermission(JobList jl)
jl
- A jobs list.boolean hasReadPermission(UWSJob job)
job
- A job.boolean hasWritePermission(UWSJob job)
job
- A job.boolean hasExecutePermission(UWSJob job)
job
- A job.java.util.Map<java.lang.String,java.lang.Object> getDataToSave()
void restoreData(java.util.Map<java.lang.String,java.lang.Object> data)
data
- A map with some key/value pairs, null or an empty map if no additional user data.