public class ValidationResourceProvider 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 |
ValidationResourceProvider(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 VALIDATION_ID_PROPERTY_ID
protected static final String VALIDATE_PROPERTY_ID
protected static final String ITEMS_PROPERTY_ID
protected static final String TYPE_PROPERTY_ID
protected static final String LEVE_PROPERTY_ID
protected static final String MESSAGE_PROPERTY_ID
protected static final String COMPONENT_NAME_PROPERTY_ID
protected static final String HOST_PROPERTY_ID
protected static final String CONFIG_TYPE_PROPERTY_ID
protected static final String CONFIG_NAME_PROPERTY_ID
protected static final String HOST_GROUP_PROPERTY_ID
protected static final String HOSTS_PROPERTY_ID
protected static final String SERVICES_PROPERTY_ID
protected static final String RECOMMENDATIONS_PROPERTY_ID
protected static final String ITEMS_TYPE_PROPERTY_ID
protected static final String ITEMS_LEVE_PROPERTY_ID
protected static final String ITEMS_MESSAGE_PROPERTY_ID
protected static final String ITEMS_COMPONENT_NAME_PROPERTY_ID
protected static final String ITEMS_HOST_PROPERTY_ID
protected static final String ITEMS_CONFIG_TYPE_PROPERTY_ID
protected static final String ITEMS_CONFIG_NAME_PROPERTY_ID
protected static final String ITEMS_HOST_GROUP_PROPERTY_ID
protected ValidationResourceProvider(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.