public class CredentialResourceProvider extends AbstractControllerResourceProvider
AbstractResourceProvider.Command<T>| Modifier and Type | Field and Description |
|---|---|
static String |
CREDENTIAL_ALIAS_PROPERTY_ID |
static String |
CREDENTIAL_CLUSTER_NAME_PROPERTY_ID |
static String |
CREDENTIAL_KEY_PROPERTY_ID |
static String |
CREDENTIAL_PRINCIPAL_PROPERTY_ID |
static String |
CREDENTIAL_TYPE_PROPERTY_ID |
keyPropertyIds, PROPERTIES_ATTRIBUTES_REGEX| Constructor and Description |
|---|
CredentialResourceProvider(AmbariManagementController managementController)
Create a new resource provider.
|
| Modifier and Type | Method and Description |
|---|---|
protected RequestStatus |
createResourcesAuthorized(Request request)
Create the resources defined by the properties in the given request object if authorization was
granted to the authenticated user.
|
protected RequestStatus |
deleteResourcesAuthorized(Request request,
Predicate predicate)
Delete the resources selected by the given predicate if the authenticated user is authorized
to do so.
|
protected Set<String> |
getPKPropertyIds()
Get the set of property ids that uniquely identify the resources
of this provider.
|
protected 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. |
protected RequestStatus |
updateResourcesAuthorized(Request request,
Predicate predicate)
Update the resources selected by the given predicate with the properties from the given request
object if the authenticated user is authorized to do so.
|
getClusterId, getClusterResourceId, getClusterResourceId, getManagementController, getResourceProvider, getResourceProvider, initcreateResources, deleteResources, getRequiredCreateAuthorizations, getRequiredDeleteAuthorizations, getRequiredGetAuthorizations, getRequiredUpdateAuthorizations, getResourceId, getResources, getResourceType, isAuthorizedToCreateResources, isAuthorizedToDeleteResources, isAuthorizedToGetResources, isAuthorizedToUpdateResources, setRequiredCreateAuthorizations, setRequiredDeleteAuthorizations, setRequiredGetAuthorizations, setRequiredUpdateAuthorizations, updateResourcesaddObserver, createResources, getConfigurationRequests, getKeyPropertyIds, getPropertyMaps, getPropertyMaps, getQueryParameterValue, getRequestStatus, getRequestStatus, getRequestStatus, getResources, modifyResources, notifyCreate, notifyDelete, notifyUpdate, parseProperties, updateObserverscheckCategory, checkConfigPropertyIds, checkPropertyIds, containsArguments, getCategoryIds, getPropertyIds, getRegexEntry, getRegexGroups, getRequestPropertyIds, isPatternKey, isPropertyCategoryRequested, isPropertyEntryRequested, isPropertyRequested, setResourcePropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckPropertyIdspublic static final String CREDENTIAL_CLUSTER_NAME_PROPERTY_ID
public static final String CREDENTIAL_ALIAS_PROPERTY_ID
public static final String CREDENTIAL_PRINCIPAL_PROPERTY_ID
public static final String CREDENTIAL_KEY_PROPERTY_ID
public static final String CREDENTIAL_TYPE_PROPERTY_ID
public CredentialResourceProvider(AmbariManagementController managementController)
protected RequestStatus createResourcesAuthorized(Request request) throws SystemException, UnsupportedPropertyException, ResourceAlreadyExistsException, NoSuchParentResourceException
AbstractAuthorizedResourceProviderAbstractAuthorizedResourceProvider.createResources(Request) is not overwritten.createResourcesAuthorized 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 existAbstractAuthorizedResourceProvider.createResources(Request)protected 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)protected RequestStatus updateResourcesAuthorized(Request request, Predicate predicate) throws SystemException, UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException
AbstractAuthorizedResourceProviderAbstractAuthorizedResourceProvider.updateResources(Request, Predicate) is not overwritten.updateResourcesAuthorized 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 existAbstractAuthorizedResourceProvider.updateResources(Request, Predicate)protected RequestStatus deleteResourcesAuthorized(Request request, Predicate predicate) throws SystemException, UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException
AbstractAuthorizedResourceProviderResourceProvider.deleteResources(Request, Predicate) is not overwritten.deleteResourcesAuthorized in class AbstractAuthorizedResourceProviderpredicate - 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 existResourceProvider.deleteResources(Request, Predicate)protected Set<String> getPKPropertyIds()
AbstractResourceProvidergetPKPropertyIds in class AbstractResourceProviderCopyright © 2022 Apache Software Foundation. All rights reserved.