public class StandardParameterContext extends Object implements ParameterContext
| Modifier and Type | Field and Description |
|---|---|
private String |
description |
private String |
id |
private static org.slf4j.Logger |
logger |
private String |
name |
private ParameterReferenceManager |
parameterReferenceManager |
private Map<ParameterDescriptor,Parameter> |
parameters |
private Authorizable |
parentAuthorizable |
private Lock |
readLock |
private ReadWriteLock |
rwLock |
private long |
version |
private Lock |
writeLock |
EMPTY| Constructor and Description |
|---|
StandardParameterContext(String id,
String name,
ParameterReferenceManager parameterReferenceManager,
Authorizable parentAuthorizable) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitauthorize, authorize, checkAuthorization, checkAuthorization, getRequestedResource, isAuthorizedprivate static final org.slf4j.Logger logger
private final String id
private final ParameterReferenceManager parameterReferenceManager
private final Authorizable parentAuthorizable
private String name
private long version
private final Map<ParameterDescriptor,Parameter> parameters
private volatile String description
private final ReadWriteLock rwLock
private final Lock readLock
private final Lock writeLock
public StandardParameterContext(String id, String name, ParameterReferenceManager parameterReferenceManager, Authorizable parentAuthorizable)
public String getIdentifier()
getIdentifier in interface ComponentAuthorizablegetIdentifier in interface ParameterContextpublic String getProcessGroupIdentifier()
getProcessGroupIdentifier in interface ComponentAuthorizablepublic String getName()
getName in interface ParameterContextpublic void setName(String name)
setName in interface ParameterContextpublic void setDescription(String description)
setDescription in interface ParameterContextpublic String getDescription()
getDescription in interface ParameterContextpublic void setParameters(Map<String,Parameter> updatedParameters)
setParameters in interface ParameterContextprivate Parameter createFullyPopulatedParameter(Parameter proposedParameter)
setParameters(Map) that includes
a Parameter whose value is null. If we encounter this, we do not want to change the value of the Parameter, so we want to insert into our Map
a Parameter object whose value is equal to the current value for that Parameter (if any). This method, then, takes a Parameter whose value may or may not be
populated and returns a Parameter whose value is populated, if there is an appropriate value to populate it with.proposedParameter - the proposed parameterprivate ParameterDescriptor getFullyPopulatedDescriptor(Parameter proposedParameter)
public long getVersion()
getVersion in interface ParameterLookuppublic Optional<Parameter> getParameter(String parameterName)
getParameter in interface ParameterLookuppublic boolean isEmpty()
isEmpty in interface ParameterLookuppublic Optional<Parameter> getParameter(ParameterDescriptor parameterDescriptor)
getParameter in interface ParameterContextpublic Map<ParameterDescriptor,Parameter> getParameters()
getParameters in interface ParameterContextpublic ParameterReferenceManager getParameterReferenceManager()
getParameterReferenceManager in interface ParameterContextpublic void verifyCanSetParameters(Map<String,Parameter> updatedParameters)
verifyCanSetParameters in interface ParameterContextprivate void validateSensitiveFlag(Parameter updatedParameter)
private void validateReferencingComponents(String parameterName, Parameter parameter, String parameterAction)
private void validateParameterSensitivity(Parameter parameter, ComponentNode componentNode)
public Authorizable getParentAuthorizable()
getParentAuthorizable in interface Authorizablepublic Resource getResource()
getResource in interface AuthorizableCopyright © 2021 Apache NiFi Project. All rights reserved.