Package org.rundeck.core.auth.access
Interface Accessor<T>
-
- Type Parameters:
T- resource type
public interface Accessor<T>Accessor of an authorized resource of a given Type
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidauthorize()check authorization and existence onlyTgetResource()booleanisAllowed()booleanisExists()
-
-
-
Method Detail
-
getResource
T getResource() throws UnauthorizedAccess, NotFound
- Returns:
- resource if authorized and it exists
- Throws:
UnauthorizedAccess- if unauthorizedNotFound- if not found
-
authorize
void authorize() throws UnauthorizedAccess, NotFoundcheck authorization and existence only- Throws:
UnauthorizedAccess- if unauthorizedNotFound- if not found
-
isExists
boolean isExists()
- Returns:
- true if the resource exists
-
-