Modifier and Type | Method and Description |
---|---|
Set<RoleAuthorization> |
AbstractAuthorizedResourceProvider.getRequiredCreateAuthorizations()
Gets the authorizations for which one is needed to the grant access to create resources
or a particular resource.
|
Set<RoleAuthorization> |
AbstractAuthorizedResourceProvider.getRequiredDeleteAuthorizations()
Gets the authorizations for which one is needed to the grant access to delete resources
or a particular resource.
|
Set<RoleAuthorization> |
AbstractAuthorizedResourceProvider.getRequiredGetAuthorizations()
Gets the authorizations for which one is needed to the grant access to get resources
or a particular resource.
|
Set<RoleAuthorization> |
AbstractAuthorizedResourceProvider.getRequiredUpdateAuthorizations()
Gets the authorizations for which one is needed to the grant access to update resources
or a particular resource.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
AlertResourceProviderUtils.hasAuthorization(String serviceName,
Long clusterResourceId,
Set<RoleAuthorization> clusterLevelAuthorizations,
Set<RoleAuthorization> serviceLevelAuthorizations)
Tests if the authenticated user is authorized to for either service- or cluster-level access to
alert data.
|
static boolean |
AlertResourceProviderUtils.hasAuthorization(String serviceName,
Long clusterResourceId,
Set<RoleAuthorization> clusterLevelAuthorizations,
Set<RoleAuthorization> serviceLevelAuthorizations)
Tests if the authenticated user is authorized to for either service- or cluster-level access to
alert data.
|
void |
AbstractAuthorizedResourceProvider.setRequiredCreateAuthorizations(Set<RoleAuthorization> requiredCreateAuthorizations)
Sets the authorizations for which one is needed to the grant access to create resources
or a particular resource.
|
void |
AbstractAuthorizedResourceProvider.setRequiredDeleteAuthorizations(Set<RoleAuthorization> requiredDeleteAuthorizations)
Sets the authorizations for which one is needed to the grant access to delete resources
or a particular resource.
|
void |
AbstractAuthorizedResourceProvider.setRequiredGetAuthorizations(Set<RoleAuthorization> requiredGetAuthorizations)
Sets the authorizations for which one is needed to the grant access to get resources
or a particular resource.
|
void |
AbstractAuthorizedResourceProvider.setRequiredUpdateAuthorizations(Set<RoleAuthorization> requiredUpdateAuthorizations)
Sets the authorizations for which one is needed to the grant access to update resources
or a particular resource.
|
static void |
AlertResourceProviderUtils.verifyAuthorization(AlertDefinitionEntity entity,
Set<RoleAuthorization> clusterLevelAuthorizations,
Set<RoleAuthorization> serviceLevelAuthorizations,
String operation)
Tests if the authenticated user is authorized to for either service- or cluster-level access to
alert data.
|
static void |
AlertResourceProviderUtils.verifyAuthorization(AlertDefinitionEntity entity,
Set<RoleAuthorization> clusterLevelAuthorizations,
Set<RoleAuthorization> serviceLevelAuthorizations,
String operation)
Tests if the authenticated user is authorized to for either service- or cluster-level access to
alert data.
|
static void |
AlertResourceProviderUtils.verifyAuthorization(String serviceName,
Long clusterResourceId,
Set<RoleAuthorization> clusterLevelAuthorizations,
Set<RoleAuthorization> serviceLevelAuthorizations,
String operation)
Tests if the authenticated user is authorized to for either service- or cluster-level access to
alert data.
|
static void |
AlertResourceProviderUtils.verifyAuthorization(String serviceName,
Long clusterResourceId,
Set<RoleAuthorization> clusterLevelAuthorizations,
Set<RoleAuthorization> serviceLevelAuthorizations,
String operation)
Tests if the authenticated user is authorized to for either service- or cluster-level access to
alert data.
|
Modifier and Type | Method and Description |
---|---|
Set<RoleAuthorization> |
ActionDefinition.getPermissions() |
Modifier and Type | Method and Description |
---|---|
void |
ActionDefinition.setPermissions(Set<RoleAuthorization> permissions) |
Constructor and Description |
---|
ActionDefinition(String actionName,
ActionType actionType,
String inputs,
String targetService,
String targetComponent,
String description,
TargetHostType targetType,
Integer defaultTimeout,
Set<RoleAuthorization> permissions)
Create an instance of ActionDefinition
|
Modifier and Type | Method and Description |
---|---|
void |
PermissionEntity.addAuthorizations(Collection<RoleAuthorization> roleAuthorizations)
Add multiple role authorizations
|
Modifier and Type | Field and Description |
---|---|
static Set<RoleAuthorization> |
RoleAuthorization.AUTHORIZATIONS_UPDATE_CLUSTER |
static Set<RoleAuthorization> |
RoleAuthorization.AUTHORIZATIONS_UPDATE_SERVICE |
static Set<RoleAuthorization> |
RoleAuthorization.AUTHORIZATIONS_VIEW_CLUSTER |
static Set<RoleAuthorization> |
RoleAuthorization.AUTHORIZATIONS_VIEW_SERVICE |
Modifier and Type | Method and Description |
---|---|
static RoleAuthorization |
RoleAuthorization.translate(String authenticationId)
Safely translates a role authorization Id to a RoleAuthorization
|
static RoleAuthorization |
RoleAuthorization.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RoleAuthorization[] |
RoleAuthorization.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
AuthorizationHelper.isAuthorized(org.springframework.security.core.Authentication authentication,
ResourceType resourceType,
Long resourceId,
RoleAuthorization requiredAuthorization)
Determines if the specified authenticated user is authorized to perform an operation on the
specific resource by matching the authenticated user's authorizations with the one indicated.
|
static boolean |
AuthorizationHelper.isAuthorized(ResourceType resourceType,
Long resourceId,
RoleAuthorization requiredAuthorization)
Determines if the authenticated user (from application's security context) is authorized to
perform an operation on the specific resource by matching the authenticated user's
authorizations with the one indicated.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
AuthorizationHelper.isAuthorized(org.springframework.security.core.Authentication authentication,
ResourceType resourceType,
Long resourceId,
Set<RoleAuthorization> requiredAuthorizations)
Determines if the specified authenticated user is authorized to perform an operation on the
the specific resource by matching the authenticated user's authorizations with one from the
provided set of authorizations.
|
static boolean |
AuthorizationHelper.isAuthorized(ResourceType resourceType,
Long resourceId,
Set<RoleAuthorization> requiredAuthorizations)
Determines if the authenticated user (from application's security context) is authorized to
perform an operation on the specific resource by matching the authenticated user's
authorizations with one from the provided set of authorizations.
|
static void |
AuthorizationHelper.verifyAuthorization(org.springframework.security.core.Authentication authentication,
ResourceType resourceType,
Long resourceId,
Set<RoleAuthorization> requiredAuthorizations)
Determines if the specified authenticated user is authorized to perform an operation on the
the specific resource by matching the authenticated user's authorizations with one from the
provided set of authorizations.
|
static void |
AuthorizationHelper.verifyAuthorization(ResourceType resourceType,
Long resourceId,
Set<RoleAuthorization> requiredAuthorizations)
Determines if the authenticated user (from application's security context) is authorized to
perform an operation on the the specific resource by matching the authenticated user's
authorizations with one from the provided set of authorizations.
|
Copyright © 2022 Apache Software Foundation. All rights reserved.