Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
LoggingService.getSearchEngine(String body,
javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo uri) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
ViewInstanceService.createService(String body,
javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo ui,
String viewName,
String version,
String instanceName)
Handles: POST /views/{viewName}/versions/{version}/instances/{instanceId}
Create a specific instance.
|
javax.ws.rs.core.Response |
ViewInstanceService.createServices(String body,
javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo ui,
String viewName,
String version)
Handles: POST /views/{viewName}/versions/{version}/instances
Create multiple instances.
|
javax.ws.rs.core.Response |
ViewInstanceService.deleteService(javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo ui,
String viewName,
String version,
String instanceName)
Handles: DELETE /views/{viewName}/versions/{version}/instances/{instanceId}
Delete a specific instance.
|
javax.ws.rs.core.Response |
ViewInstanceService.getService(String body,
javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo ui,
String viewName,
String version,
String instanceName)
Handles URL: /views/{viewName}/versions/{version}/instances/{instanceID}
Get a specific instance.
|
javax.ws.rs.core.Response |
ViewInstanceService.getServices(String body,
javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo ui,
String viewName,
String version)
Handles URL: /views/{viewName}/versions/{version}/instances
Get all instances for a view.
|
javax.ws.rs.core.Response |
ViewInstanceService.updateService(String body,
javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo ui,
String viewName,
String version,
String instanceName)
Handles: PUT /views/{viewName}/versions/{version}/instances/{instanceId}
Update a specific instance.
|
javax.ws.rs.core.Response |
ViewInstanceService.updateServices(String body,
javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo ui,
String viewName,
String version)
Handles: PUT /views/{viewName}/versions/{version}/instances
Update multiple instances.
|
Modifier and Type | Method and Description |
---|---|
void |
AmbariManagementController.createCluster(ClusterRequest request)
Create the cluster defined by the attributes in the given request object.
|
ConfigurationResponse |
AmbariManagementController.createConfiguration(ConfigurationRequest request)
Creates a configuration.
|
ConfigurationResponse |
AmbariManagementControllerImpl.createConfiguration(ConfigurationRequest request)
Creates a configuration.
|
void |
AmbariManagementController.createHostComponents(Set<ServiceComponentHostRequest> requests)
Create the host component defined by the attributes in the given request object.
|
void |
AmbariManagementControllerImpl.createHostComponents(Set<ServiceComponentHostRequest> requests) |
void |
AmbariManagementController.createHostComponents(Set<ServiceComponentHostRequest> requests,
boolean isBlueprintProvisioned)
Create the host component defined by the attributes in the given request object.
|
void |
AmbariManagementControllerImpl.createHostComponents(Set<ServiceComponentHostRequest> requests,
boolean isBlueprintProvisioned) |
Set<ServiceConfigVersionResponse> |
AmbariManagementController.createServiceConfigVersion(Set<ServiceConfigVersionRequest> requests)
Creates serviceconfigversions and corresponding new configurations if it is an initial request
OR
Rollbacks to an existing serviceconfigversion if request specifies.
|
Set<ServiceConfigVersionResponse> |
AmbariManagementControllerImpl.createServiceConfigVersion(Set<ServiceConfigVersionRequest> requests) |
DeleteStatusMetaData |
AmbariManagementController.deleteHostComponents(Set<ServiceComponentHostRequest> requests)
Delete the host component identified by the given request object.
|
DeleteStatusMetaData |
AmbariManagementControllerImpl.deleteHostComponents(Set<ServiceComponentHostRequest> requests) |
Set<ClusterResponse> |
AmbariManagementController.getClusters(Set<ClusterRequest> requests)
Get the clusters identified by the given request objects.
|
Set<ClusterResponse> |
AmbariManagementControllerImpl.getClusters(Set<ClusterRequest> requests) |
MpackResponse |
AmbariManagementController.registerMpack(MpackRequest request)
Register the mpack defined by the attributes in the given request object.
|
MpackResponse |
AmbariManagementControllerImpl.registerMpack(MpackRequest request)
Register the mpack defined by the attributes in the given request object.
|
RequestStatusResponse |
AmbariManagementController.updateClusters(Set<ClusterRequest> requests,
Map<String,String> requestProperties)
Update the cluster identified by the given request object with the
values carried by the given request object.
|
RequestStatusResponse |
AmbariManagementControllerImpl.updateClusters(Set<ClusterRequest> requests,
Map<String,String> requestProperties) |
RequestStatusResponse |
AmbariManagementController.updateClusters(Set<ClusterRequest> requests,
Map<String,String> requestProperties,
boolean fireAgentUpdates)
Update the cluster identified by the given request object with the
values carried by the given request object.
|
RequestStatusResponse |
AmbariManagementControllerImpl.updateClusters(Set<ClusterRequest> requests,
Map<String,String> requestProperties,
boolean fireAgentUpdates) |
protected void |
AmbariManagementControllerImpl.validateAuthorizationToManageServiceAutoStartConfiguration(Cluster cluster,
String configType,
Map<String,String[]> propertyChanges)
Validates that the authenticated user can manage the cluster-wide configuration for a service's
ability to be set to auto-start.
|
protected void |
AmbariManagementControllerImpl.validateAuthorizationToUpdateServiceUsersAndGroups(Cluster cluster,
String configType,
Map<String,String[]> propertyChanges)
Validates that the authenticated user can set a service's (run-as) user and group.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
AbstractPropertyProvider.checkAuthorizationForMetrics(Set<Resource> resources,
String clusterNamePropertyId)
Check the User's authorization for retrieving the Metrics.
|
void |
ComponentResourceProvider.createComponents(Set<ServiceComponentRequest> requests) |
void |
HostResourceProvider.createHosts(Request request)
Accepts a request with registered hosts and if the request contains a cluster name then will map all of the
hosts onto that cluster.
|
void |
ServiceResourceProvider.createServices(Set<ServiceRequest> requests) |
protected UpgradeEntity |
UpgradeResourceProvider.createUpgrade(UpgradeContext upgradeContext)
Creates the upgrade.
|
protected RequestStatusResponse |
ComponentResourceProvider.deleteComponents(Set<ServiceComponentRequest> requests) |
protected RequestStatusResponse |
ServiceResourceProvider.deleteServices(Set<ServiceRequest> request) |
T |
AbstractResourceProvider.Command.invoke()
Invoke this command.
|
protected RequestStatusResponse |
ComponentResourceProvider.updateComponents(Set<ServiceComponentRequest> requests,
Map<String,String> requestProperties,
boolean runSmokeTest) |
protected RequestStageContainer |
HostComponentResourceProvider.updateHostComponents(RequestStageContainer stages,
Set<ServiceComponentHostRequest> requests,
Map<String,String> requestProperties,
boolean runSmokeTest,
boolean useGeneratedConfigs,
boolean useClusterHostInfo)
Update the host component identified by the given request object with the
values carried by the given request object.
|
protected void |
HostResourceProvider.updateHosts(Set<HostRequest> requests) |
protected RequestStageContainer |
ServiceResourceProvider.updateServices(RequestStageContainer requestStages,
Set<ServiceRequest> requests,
Map<String,String> requestProperties,
boolean runSmokeTest,
boolean reconfigureClients,
boolean startDependencies) |
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.verifyExecuteAuthorization(AlertDefinitionEntity entity)
Tests if the authenticated user is authorized to execute service- or cluster-level alert data.
|
static void |
AlertResourceProviderUtils.verifyExecuteAuthorization(String serviceName,
Long clusterResourceId)
Tests if the authenticated user is authorized to execute service- or cluster-level alert data.
|
static void |
AlertResourceProviderUtils.verifyManageAuthorization(AlertDefinitionEntity entity)
Tests if the authenticated user is authorized to manage service- or cluster-level alert data.
|
static void |
AlertResourceProviderUtils.verifyManageAuthorization(AlertGroupEntity entity,
Long clusterResourceId)
Tests if the authenticated user is authorized to manage service- or cluster-level alert data.
|
static void |
AlertResourceProviderUtils.verifyManageAuthorization(String serviceName,
Long clusterResourceId)
Tests if the authenticated user is authorized to manage service- or cluster-level alert data.
|
static void |
AlertResourceProviderUtils.verifyToggleAuthorization(AlertDefinitionEntity entity)
Tests if the authenticated user is authorized to toggle service- or cluster-level alert data.
|
static void |
AlertResourceProviderUtils.verifyToggleAuthorization(String serviceName,
Long clusterResourceId)
Tests if the authenticated user is authorized to toggle service- or cluster-level alert data.
|
static void |
AlertResourceProviderUtils.verifyViewAuthorization(AlertCurrentEntity entity)
Tests if the authenticated user is authorized to view service- or cluster-level alert data.
|
static void |
AlertResourceProviderUtils.verifyViewAuthorization(AlertDefinitionEntity entity)
Tests if the authenticated user is authorized to view service- or cluster-level alert data.
|
static void |
AlertResourceProviderUtils.verifyViewAuthorization(AlertGroupEntity entity,
Long clusterResourceId)
Tests if the authenticated user is authorized to view service- or cluster-level alert data.
|
static void |
AlertResourceProviderUtils.verifyViewAuthorization(AlertHistoryEntity entity)
Tests if the authenticated user is authorized to view service- or cluster-level alert data.
|
static void |
AlertResourceProviderUtils.verifyViewAuthorization(String serviceName,
Long clusterResourceId)
Tests if the authenticated user is authorized to view service- or cluster-level alert data.
|
Modifier and Type | Method and Description |
---|---|
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.