INNER CODE UNIT · Java
getPolicy
scalar-labs/scalardb · core/src/main/java/com/scalar/db/api/AbacAdmin.java:52
default Optional<Policy> getPolicy(String policyName) throws ExecutionException {
throw new UnsupportedOperationException(CoreError.ABAC_NOT_ENABLED.buildMessage());
}
/**
* Retrieves all policies.
*
* @return the policies
* @throws ExecutionException if the operation fails
*/
default List<Policy> getPolicies() throws ExecutionException {
throw new UnsupportedOperationException(CoreError.ABAC_NOT_ENABLED.buildMessage());
}
/**
* Creates a level with the given short name, long name and level number for the given policy.
*
* @param policyName the policy name