public class RecommendationResourceProvider extends StackAdvisorResourceProvider
AbstractResourceProvider.Command<T>
CONFIGURATIONS_PROPERTY_ID, saHelper, STACK_NAME_PROPERTY_ID, STACK_VERSION_PROPERTY_ID, USER_CONTEXT_OPERATION_DETAILS_PROPERTY, USER_CONTEXT_OPERATION_PROPERTY
PROPERTIES_ATTRIBUTES_REGEX
Modifier | Constructor and Description |
---|---|
protected |
RecommendationResourceProvider(AmbariManagementController managementController) |
Modifier and Type | Method and Description |
---|---|
RequestStatus |
createResources(Request request)
Create the resources defined by the properties in the given request object.
|
protected Set<String> |
getPKPropertyIds()
Get the set of property ids that uniquely identify the resources
of this provider.
|
protected String |
getRequestTypePropertyId() |
calculateChangedConfigurations, calculateConfigGroups, calculateConfigGroups, calculateConfigurations, calculateConfigurations, getRequestProperty, init, prepareStackAdvisorRequest, readUserContext
amendPredicate, deleteResources, getResources, updateResources
getClusterId, getClusterResourceId, getClusterResourceId, getManagementController, getResourceProvider, getResourceProvider, init
createResourcesAuthorized, deleteResourcesAuthorized, getRequiredCreateAuthorizations, getRequiredDeleteAuthorizations, getRequiredGetAuthorizations, getRequiredUpdateAuthorizations, getResourceId, getResourcesAuthorized, getResourceType, isAuthorizedToCreateResources, isAuthorizedToDeleteResources, isAuthorizedToGetResources, isAuthorizedToUpdateResources, setRequiredCreateAuthorizations, setRequiredDeleteAuthorizations, setRequiredGetAuthorizations, setRequiredUpdateAuthorizations, updateResourcesAuthorized
addObserver, createResources, getConfigurationRequests, getKeyPropertyIds, getPropertyMaps, getPropertyMaps, getQueryParameterValue, getRequestStatus, getRequestStatus, getRequestStatus, getResources, modifyResources, notifyCreate, notifyDelete, notifyUpdate, parseProperties, updateObservers
checkCategory, checkConfigPropertyIds, checkPropertyIds, containsArguments, getCategoryIds, getPropertyIds, getRegexEntry, getRegexGroups, getRequestPropertyIds, isPatternKey, isPropertyCategoryRequested, isPropertyEntryRequested, isPropertyRequested, setResourceProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPropertyIds
protected static final String RECOMMENDATION_ID_PROPERTY_ID
protected static final String CLUSTER_ID_PROPERTY_ID
protected static final String SERVICE_NAME_PROPERTY_ID
protected static final String AUTO_COMPLETE_PROPERTY_ID
protected static final String CONFIGS_RESPONSE_PROPERTY_ID
protected static final String HOSTS_PROPERTY_ID
protected static final String SERVICES_PROPERTY_ID
protected static final String RECOMMEND_PROPERTY_ID
protected static final String RECOMMENDATIONS_PROPERTY_ID
protected static final String CONFIG_GROUPS_PROPERTY_ID
protected static final String BLUEPRINT_PROPERTY_ID
protected static final String BLUEPRINT_CONFIGURATIONS_PROPERTY_ID
protected static final String BLUEPRINT_HOST_GROUPS_PROPERTY_ID
protected static final String BLUEPRINT_HOST_GROUPS_NAME_PROPERTY_ID
protected static final String BLUEPRINT_HOST_GROUPS_COMPONENTS_PROPERTY_ID
protected static final String BINDING_HOST_GROUPS_PROPERTY_ID
protected static final String BINDING_HOST_GROUPS_NAME_PROPERTY_ID
protected static final String BINDING_HOST_GROUPS_HOSTS_PROPERTY_ID
protected static final String CHANGED_CONFIGURATIONS_PROPERTY_ID
protected static final String BINDING_PROPERTY_ID
protected static final String USER_CONTEXT_PROPERTY_ID
protected static final String USER_CONTEXT_OPERATION_PROPERTY_ID
protected static final String USER_CONTEXT_OPERATION_DETAILS_PROPERTY_ID
protected RecommendationResourceProvider(AmbariManagementController managementController)
protected String getRequestTypePropertyId()
getRequestTypePropertyId
in class StackAdvisorResourceProvider
public RequestStatus createResources(Request request) throws SystemException, UnsupportedPropertyException, ResourceAlreadyExistsException, NoSuchParentResourceException
AbstractAuthorizedResourceProvider
createResources
in interface ResourceProvider
createResources
in class ReadOnlyResourceProvider
request
- the request object which defines the set of properties
for the resources to be createdSystemException
- an internal system exception occurredAuthorizationException
- if the authenticated user is not authorized to perform this operationUnsupportedPropertyException
- the request contains unsupported property idsResourceAlreadyExistsException
- attempted to create a resource which already existsNoSuchParentResourceException
- a parent resource of the resource to create doesn't existprotected Set<String> getPKPropertyIds()
AbstractResourceProvider
getPKPropertyIds
in class AbstractResourceProvider
Copyright © 2022 Apache Software Foundation. All rights reserved.