org.wamblee.security.authorization
Interface OperationRegistry

All Known Implementing Classes:
DefaultOperationRegistry

public interface OperationRegistry

Utility to map between a list of operations and a string based on the names of the operations.

Author:
Erik Brakkee

Method Summary
 Operation[] decode(java.lang.Class aResourceClass, java.lang.String aOperationsString)
          Converts an operations string to an array of operations.
 Operation[] decode(java.lang.String aOperationsString)
          Converts an operations string to an array of operations.
 java.lang.String encode(Operation[] aOperations)
          Converts a number of operations to a string.
 Operation[] getOperations(java.lang.Class aResourceClass)
          Gets the supported operations for a given resource class.
 

Method Detail

getOperations

Operation[] getOperations(java.lang.Class aResourceClass)
Gets the supported operations for a given resource class.

Parameters:
aResourceClass - Resource class.
Returns:
Supported operations for that class.

encode

java.lang.String encode(Operation[] aOperations)
Converts a number of operations to a string.

Parameters:
aOperations - Operations to convert.
Returns:
String representation of the allowed operations.

decode

Operation[] decode(java.lang.Class aResourceClass,
                   java.lang.String aOperationsString)
Converts an operations string to an array of operations.

Parameters:
aResourceClass - Resource class.
aOperationsString - Operations string as returned by encode(Operation[]).
Returns:
Operations array.

decode

Operation[] decode(java.lang.String aOperationsString)
Converts an operations string to an array of operations.

Parameters:
aOperationsString - Operations string as returned by encode(Operation[]).
Returns:
Operations array.


Copyright © 2022. All Rights Reserved.