public class ServiceConfigVersionResourceProvider extends AbstractControllerResourceProvider
AbstractResourceProvider.Command<T>| Modifier and Type | Field and Description |
|---|---|
static String |
APPLIED_TIME_PROPERTY_ID |
static String |
CLUSTER_NAME_PROPERTY_ID |
static String |
CONFIGURATIONS_PROPERTY_ID |
static String |
CREATE_TIME_PROPERTY_ID |
static String |
GROUP_ID_PROPERTY_ID |
static String |
GROUP_NAME_PROPERTY_ID |
static String |
HOSTS_PROPERTY_ID |
static String |
IS_COMPATIBLE_PROPERTY_ID |
static String |
IS_CURRENT_PROPERTY_ID |
static String |
SERVICE_CONFIG_VERSION_NOTE_PROPERTY_ID |
static String |
SERVICE_CONFIG_VERSION_PROPERTY_ID |
static String |
SERVICE_NAME_PROPERTY_ID |
static String |
STACK_ID_PROPERTY_ID |
static String |
USER_PROPERTY_ID |
keyPropertyIds, LOG, PROPERTIES_ATTRIBUTES_REGEX| Modifier and Type | Method and Description |
|---|---|
Set<String> |
checkPropertyIds(Set<String> propertyIds)
Check whether the set of given property ids is supported by this resource
provider.
|
RequestStatus |
createResources(Request request)
Create the resources defined by the properties in the given request object.
|
RequestStatus |
deleteResources(Request request,
Predicate predicate)
Delete the resources selected by the given predicate.
|
protected Set<String> |
getPKPropertyIds()
Get the set of property ids that uniquely identify the resources
of this provider.
|
Set<Resource> |
getResourcesAuthorized(Request request,
Predicate predicate)
Get a set of
resources based on the given request and predicate
information if the authenticated user is authorized to do so. |
RequestStatus |
updateResources(Request request,
Predicate predicate)
Update the resources selected by the given predicate with the properties
from the given request object.
|
getClusterId, getClusterResourceId, getClusterResourceId, getManagementController, getResourceProvider, getResourceProvider, initcreateResourcesAuthorized, deleteResourcesAuthorized, getRequiredCreateAuthorizations, getRequiredDeleteAuthorizations, getRequiredGetAuthorizations, getRequiredUpdateAuthorizations, getResourceId, getResources, getResourceType, isAuthorizedToCreateResources, isAuthorizedToDeleteResources, isAuthorizedToGetResources, isAuthorizedToUpdateResources, setRequiredCreateAuthorizations, setRequiredDeleteAuthorizations, setRequiredGetAuthorizations, setRequiredUpdateAuthorizations, updateResourcesAuthorizedaddObserver, createResources, getConfigurationRequests, getKeyPropertyIds, getPropertyMaps, getPropertyMaps, getQueryParameterValue, getRequestStatus, getRequestStatus, getRequestStatus, getResources, modifyResources, notifyCreate, notifyDelete, notifyUpdate, parseProperties, updateObserverscheckCategory, checkConfigPropertyIds, containsArguments, getCategoryIds, getPropertyIds, getRegexEntry, getRegexGroups, getRequestPropertyIds, isPatternKey, isPropertyCategoryRequested, isPropertyEntryRequested, isPropertyRequested, setResourcePropertypublic static final String CLUSTER_NAME_PROPERTY_ID
public static final String SERVICE_CONFIG_VERSION_PROPERTY_ID
public static final String SERVICE_NAME_PROPERTY_ID
public static final String CREATE_TIME_PROPERTY_ID
public static final String USER_PROPERTY_ID
public static final String SERVICE_CONFIG_VERSION_NOTE_PROPERTY_ID
public static final String GROUP_ID_PROPERTY_ID
public static final String GROUP_NAME_PROPERTY_ID
public static final String STACK_ID_PROPERTY_ID
public static final String IS_CURRENT_PROPERTY_ID
public static final String IS_COMPATIBLE_PROPERTY_ID
public static final String HOSTS_PROPERTY_ID
public static final String CONFIGURATIONS_PROPERTY_ID
public static final String APPLIED_TIME_PROPERTY_ID
protected Set<String> getPKPropertyIds()
AbstractResourceProvidergetPKPropertyIds in class AbstractResourceProviderpublic RequestStatus createResources(Request request) throws SystemException, UnsupportedPropertyException, ResourceAlreadyExistsException, NoSuchParentResourceException
AbstractAuthorizedResourceProvidercreateResources in interface ResourceProvidercreateResources in class AbstractAuthorizedResourceProviderrequest - 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 existpublic Set<Resource> getResourcesAuthorized(Request request, Predicate predicate) throws SystemException, UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException
AbstractAuthorizedResourceProviderresources based on the given request and predicate
information if the authenticated user is authorized to do so.
This method must be overwritten if AbstractAuthorizedResourceProvider.getResources(Request, Predicate) is not overwritten.getResourcesAuthorized in class AbstractAuthorizedResourceProviderrequest - the request object which defines the desired set of propertiespredicate - the predicate object which can be used to filter which resources are returnedSystemException - an internal system exception occurredAuthorizationException - if the authenticated user is not authorized to perform this operationUnsupportedPropertyException - the request contains unsupported property idsNoSuchResourceException - the requested resource instance doesn't existNoSuchParentResourceException - a parent resource of the requested resource doesn't existAbstractAuthorizedResourceProvider.getResources(Request, Predicate)public RequestStatus updateResources(Request request, Predicate predicate) throws SystemException, UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException
AbstractAuthorizedResourceProviderupdateResources in interface ResourceProviderupdateResources in class AbstractAuthorizedResourceProviderrequest - the request object which defines the set of properties
for the resources to be updatedpredicate - the predicate object which can be used to filter which
resources are updatedSystemException - an internal system exception occurredAuthorizationException - if the authenticated user is not authorized to perform this operationUnsupportedPropertyException - the request contains unsupported property idsNoSuchResourceException - the resource instance to be updated doesn't existNoSuchParentResourceException - a parent resource of the resource doesn't existpublic RequestStatus deleteResources(Request request, Predicate predicate) throws SystemException, UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException
AbstractAuthorizedResourceProviderdeleteResources in interface ResourceProviderdeleteResources in class AbstractAuthorizedResourceProviderrequest - the request object which defines the set of properties
for the resources to be updatedpredicate - the predicate object which can be used to filter which
resources are deletedSystemException - an internal system exception occurredAuthorizationException - if the authenticated user is not authorized to perform this operationUnsupportedPropertyException - the request contains unsupported property idsNoSuchResourceException - the resource instance to be deleted doesn't existNoSuchParentResourceException - a parent resource of the resource doesn't existpublic Set<String> checkPropertyIds(Set<String> propertyIds)
ResourceProvidercheckPropertyIds in interface ResourceProvidercheckPropertyIds in class BaseProviderCopyright © 2022 Apache Software Foundation. All rights reserved.