Package | Description |
---|---|
org.wamblee.security.authorization |
The authorization package provides an authorization service that can be used to
check whether users have the rights to perform certain operations.
|
org.wamblee.security.authorization.jpa |
Modifier and Type | Class and Description |
---|---|
class |
AllOperation
An superclass of all other operations.
|
class |
CreateOperation
Represents an operation to create something.
|
class |
DeleteOperation
Deletes the operation.
|
class |
ReadOperation
Represents a read operation on a resource.
|
class |
WriteOperation
Represents a write operation on a resource.
|
Modifier and Type | Method and Description |
---|---|
Operation[] |
DefaultOperationRegistry.decode(Class aResourceClass,
String aOperationsString) |
Operation[] |
OperationRegistry.decode(Class aResourceClass,
String aOperationsString)
Converts an operations string to an array of operations.
|
Operation[] |
DefaultOperationRegistry.decode(String aOperationsString) |
Operation[] |
OperationRegistry.decode(String aOperationsString)
Converts an operations string to an array of operations.
|
Operation |
AuthorizationException.getOperation() |
Operation[] |
DefaultOperationRegistry.getOperations(Class aResourceClass) |
Operation[] |
OperationRegistry.getOperations(Class aResourceClass)
Gets the supported operations for a given resource class.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
DefaultAuthorizationService.check(T aResource,
Operation aOperation) |
<T> T |
AuthorizationService.check(T aResource,
Operation aOperation)
Checks if the given operation is allowed on the resource.
|
String |
DefaultOperationRegistry.encode(Operation[] aOperations) |
String |
OperationRegistry.encode(Operation[] aOperations)
Converts a number of operations to a string.
|
boolean |
DefaultAuthorizationService.isAllowed(Object aResource,
Operation aOperation) |
boolean |
AuthorizationService.isAllowed(Object aResource,
Operation aOperation)
Checks whether an operation is allowed on a resource.
|
AuthorizationResult |
AuthorizationRule.isAllowed(Object aResource,
Operation aOperation,
String aUser)
Determines whether an operation is allowed on a certain resource.
|
AuthorizationResult |
UrlAuthorizationRule.isAllowed(Object aResource,
Operation aOperation,
String aUser) |
protected AuthorizationResult |
UrlAuthorizationRule.isAllowedWithPath(String aPath,
Operation aOperation,
String aUser)
Determines if the operation is allowed on the resource.
|
boolean |
IsaOperationCondition.matches(Operation aOperation) |
boolean |
OperationCondition.matches(Operation aOperation)
Determines if the operation matches.
|
Constructor and Description |
---|
AuthorizationException(Object aResource,
Operation aOperation)
Creates a new AuthorizationException object.
|
DefaultOperationRegistry(Operation[] aOperations)
Creates a new DefaultOperationRegistry object.
|
Constructor and Description |
---|
IsaOperationCondition(Class<? extends Operation> aOperation)
Constructs the condition.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
JpaAuthorizationService.check(T aResource,
Operation aOperation) |
boolean |
JpaAuthorizationService.isAllowed(Object aResource,
Operation aOperation) |
Copyright © 2022. All rights reserved.