public class Entitlements
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Entitlements.EntitlementClassesEnum |
static interface |
Entitlements.EntitlementClassesHandler<T> |
static class |
Entitlements.EntityAndItem<T> |
static class |
Entitlements.FineGrainedEntitlements |
static class |
Entitlements.LifecycleEffectors
These lifecycle operations are currently treated as effectors.
|
static class |
Entitlements.StringAndArgument |
static class |
Entitlements.TaskAndItem<T> |
Constructor and Description |
---|
Entitlements() |
Modifier and Type | Method and Description |
---|---|
static <T> void |
checkEntitled(EntitlementManager checker,
EntitlementClass<T> permission,
T typeArgument)
throws
NotEntitledException if entitlement not available for current getEntitlementContext() |
static void |
clearEntitlementContext() |
static EntitlementContext |
getEntitlementContext()
Finds the currently applicable
EntitlementContext by examining the current thread
then by investigating the current task, its submitter, etc. |
static <T> boolean |
isEntitled(EntitlementManager checker,
EntitlementClass<T> permission,
T typeArgument) |
static EntitlementManager |
load(ManagementContext mgmt,
BrooklynProperties brooklynProperties,
java.lang.String type) |
static EntitlementManager |
minimal() |
static EntitlementManager |
newManager(ManagementContext mgmt,
BrooklynProperties brooklynProperties) |
static EntitlementManager |
readOnly()
allow read-only
|
static EntitlementManager |
root() |
static EntitlementManager |
serverStatusOnly()
allow healthcheck
|
static void |
setEntitlementContext(EntitlementContext context) |
static EntitlementManager |
user() |
public static EntitlementClass<java.lang.String> SEE_CATALOG_ITEM
public static EntitlementClass<java.lang.Object> ADD_CATALOG_ITEM
public static EntitlementClass<Entitlements.StringAndArgument> MODIFY_CATALOG_ITEM
public static EntitlementClass<Entity> SEE_ENTITY
public static EntitlementClass<Entity> RENAME_ENTITY
public static EntitlementClass<Entitlements.EntityAndItem<java.lang.String>> SEE_SENSOR
public static EntitlementClass<Entitlements.EntityAndItem<java.lang.String>> SEE_CONFIG
public static EntitlementClass<Entitlements.TaskAndItem<java.lang.String>> SEE_ACTIVITY_STREAMS
public static EntitlementClass<Entitlements.EntityAndItem<Entitlements.StringAndArgument>> INVOKE_EFFECTOR
public static EntitlementClass<Entity> MODIFY_ENTITY
public static EntitlementClass<EntityAdjunct> DELETE_ADJUNCT
public static EntitlementClass<Entitlements.StringAndArgument> ADD_LOCATION
public static EntitlementClass<Entitlements.StringAndArgument> DELETE_LOCATION
public static EntitlementClass<Entitlements.StringAndArgument> SEE_LOCATION
public static EntitlementClass<Entitlements.StringAndArgument> ADD_POLICY
public static EntitlementClass<Policy> DELETE_POLICY
public static EntitlementClass<Policy> START_POLICY
public static EntitlementClass<Policy> STOP_POLICY
public static EntitlementClass<java.lang.Void> SYSTEM_ADMIN
public static EntitlementClass<java.lang.Void> HA_STATS
public static EntitlementClass<java.lang.Void> HA_ADMIN
public static EntitlementClass<java.lang.Void> SHUTDOWN
public static EntitlementClass<java.lang.Void> USAGE
public static EntitlementClass<java.lang.Object> DEPLOY_APPLICATION
public static EntitlementClass<java.lang.Void> SEE_ALL_SERVER_INFO
SERVER_STATUS
.
NB: this may be refactored and deprecated in futurepublic static EntitlementClass<java.lang.Void> SERVER_STATUS
SEE_ALL_SERVER_INFO
public static EntitlementClass<java.lang.Void> ROOT
public static final java.lang.String ENTITLEMENTS_CONFIG_PREFIX
public static final ConfigKey<java.lang.String> GLOBAL_ENTITLEMENT_MANAGER
public static EntitlementManager root()
public static EntitlementManager user()
ROOT
and SEE_ALL_SERVER_INFO
.public static EntitlementManager minimal()
public static EntitlementManager readOnly()
public static EntitlementManager serverStatusOnly()
public static EntitlementContext getEntitlementContext()
EntitlementContext
by examining the current thread
then by investigating the current task, its submitter, etc.public static void setEntitlementContext(EntitlementContext context)
public static void clearEntitlementContext()
public static <T> boolean isEntitled(EntitlementManager checker, EntitlementClass<T> permission, T typeArgument)
public static <T> void checkEntitled(EntitlementManager checker, EntitlementClass<T> permission, T typeArgument)
NotEntitledException
if entitlement not available for current getEntitlementContext()
public static EntitlementManager newManager(ManagementContext mgmt, BrooklynProperties brooklynProperties)
public static EntitlementManager load(@Nullable ManagementContext mgmt, BrooklynProperties brooklynProperties, java.lang.String type)