public class PerUserEntitlementManager extends java.lang.Object implements EntitlementManager
Modifier and Type | Field and Description |
---|---|
static ConfigKey<java.lang.String> |
DEFAULT_MANAGER |
static java.lang.String |
PER_USER_ENTITLEMENTS_CONFIG_PREFIX |
Constructor and Description |
---|
PerUserEntitlementManager(BrooklynProperties properties) |
PerUserEntitlementManager(EntitlementManager defaultManager) |
Modifier and Type | Method and Description |
---|---|
void |
addUser(java.lang.String user,
EntitlementManager managerForThisUser) |
<T> boolean |
isEntitled(EntitlementContext context,
EntitlementClass<T> entitlementClass,
T entitlementClassArgument) |
public static final java.lang.String PER_USER_ENTITLEMENTS_CONFIG_PREFIX
public static final ConfigKey<java.lang.String> DEFAULT_MANAGER
public PerUserEntitlementManager(BrooklynProperties properties)
public PerUserEntitlementManager(EntitlementManager defaultManager)
public void addUser(java.lang.String user, EntitlementManager managerForThisUser)
public <T> boolean isEntitled(EntitlementContext context, EntitlementClass<T> entitlementClass, T entitlementClassArgument)
isEntitled
in interface EntitlementManager