public class AmbariServerSSOConfigurationHandler extends AmbariServerConfigurationHandler
AmbariServerConfigurationHandler
implementation
handing changes to the SSO configurationConstructor and Description |
---|
AmbariServerSSOConfigurationHandler(Clusters clusters,
ConfigHelper configHelper,
AmbariManagementController managementController,
StackAdvisorHelper stackAdvisorHelper,
AmbariConfigurationDAO ambariConfigurationDAO,
AmbariEventPublisher publisher) |
Modifier and Type | Method and Description |
---|---|
protected String |
getServiceVersionNote() |
Set<String> |
getSSOEnabledServices()
Gets the set of services for which the user declared Ambari to enable SSO integration.
|
protected void |
processCluster(Cluster cluster,
StackAdvisorRequest.StackAdvisorRequestType stackAdvisorRequestType)
Build the stack advisor request, call the stack advisor, then automatically
handle the recommendations.
|
protected void |
processClusters(StackAdvisorRequest.StackAdvisorRequestType stackAdvisorRequestType)
Build the stack advisor request, call the stack advisor, then automatically
handle the recommendations on all clusters that managed by Ambari.
|
void |
updateComponentCategory(String categoryName,
Map<String,String> properties,
boolean removePropertiesIfNotSpecified)
Set or update a configuration category with the specified properties.
|
getComponentConfigurations, getConfigurationProperties, getConfigurations, getEnabledServices, performOperation, removeComponentConfiguration
@Inject public AmbariServerSSOConfigurationHandler(Clusters clusters, ConfigHelper configHelper, AmbariManagementController managementController, StackAdvisorHelper stackAdvisorHelper, AmbariConfigurationDAO ambariConfigurationDAO, AmbariEventPublisher publisher)
public void updateComponentCategory(String categoryName, Map<String,String> properties, boolean removePropertiesIfNotSpecified) throws org.apache.ambari.server.AmbariException
If removePropertiesIfNotSpecified
is true
, the persisted category is to include only the specified properties.
If removePropertiesIfNotSpecified
is false
, the persisted category is to include the union of the existing and specified properties.
In any case, existing property values will be overwritten by the one specified in the property map.
updateComponentCategory
in class AmbariServerConfigurationHandler
categoryName
- the category nameproperties
- a map of properties to setremovePropertiesIfNotSpecified
- true
to ensure the set of properties are only those that have be explicitly specified;
false
to update the set of existing properties with the specified set of properties, adding missing properties but not removing any propertiesorg.apache.ambari.server.AmbariException
- in case an error occurred while updating category's propertiespublic Set<String> getSSOEnabledServices()
If Ambari is not managing SSO integration configuration for services the set of names will be empry.
protected String getServiceVersionNote()
protected void processClusters(StackAdvisorRequest.StackAdvisorRequestType stackAdvisorRequestType)
stackAdvisorRequestType
- the stack advisor request typeprotected void processCluster(Cluster cluster, StackAdvisorRequest.StackAdvisorRequestType stackAdvisorRequestType) throws org.apache.ambari.server.AmbariException, StackAdvisorException
Any recommendation coming back from the Stack/service advisor is expected to be only related configurations of the given request type (LDAP/SSO)
If there are no changes to the current configurations, no new configuration versions will be created.
cluster
- the cluster to processstackAdvisorRequestType
- the stack advisor request typeorg.apache.ambari.server.AmbariException
StackAdvisorException
Copyright © 2022 Apache Software Foundation. All rights reserved.