*** This class provides Binary Compatibility only, not Source Compatibility ***
Package com.sas.services
Class ServiceAggregateConfig
java.lang.Object
com.sas.services.ServiceAggregateConfig
@SASScope("ALL")
@BinaryCompatibilityOnly
public final class ServiceAggregateConfig
extends Object
An aggregation of a service's base and 0..* application configurations.
- Since:
- 9.2
-
Constructor Summary
ConstructorsConstructorDescriptionServiceAggregateConfig(com.sas.metadata.remote.ServiceComponent serviceComponent) Constructs a configuration for the specified service. -
Method Summary
Modifier and TypeMethodDescriptioncreateAggregateConfig(boolean isIncludingBaseConfig, List<String> appConfigNames) Creates an aggregated configuration for the specified service configuration(s).Gets the service's aggregate configuration.Gets the base service configuration document.StringGets the service configuration's name.StringGets the fully-qualified name of the Java class that is used to render the service configuration.com.sas.metadata.remote.ServiceComponentGets the metadata object that represents the service.Gets the service configuration for the property.getServiceConfigDocument(String configName) Gets the service configuration document for the specified configuration name.List<ServiceConfigDocument> Returns a copy of the list of service configuration documents.List<ServiceConfigDocument> getServiceConfigDocuments(List<String> configNames) Gets a list of service configurationdocumentsfor the specified configuration names.com.sas.metadata.remote.PropertyGets a property associated with the selected service configuration.Gets the service's factory.booleanDetermines if this is the service's base configuration.voidsetConfigName(String configName) Sets the name of the service configuration.voidsetServiceConfigProperty(com.sas.metadata.remote.Property serviceConfigProperty) Specifies the property representing the service configuration which is being edited.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ServiceAggregateConfig
public ServiceAggregateConfig(com.sas.metadata.remote.ServiceComponent serviceComponent) throws IllegalArgumentException, ServiceException Constructs a configuration for the specified service.- Parameters:
serviceComponent- The service.- Throws:
ServiceException- if unable to determine the service's configuration properties.IllegalArgumentException- if an invalid parameter value is specified.
-
-
Method Details
-
getBaseServiceConfig
Gets the base service configuration document.- Returns:
- Base service configuration document or
nullif a base configuration is not defined.
-
createAggregateConfig
public AbstractServiceComponentConfig createAggregateConfig(boolean isIncludingBaseConfig, List<String> appConfigNames) throws ServiceException Creates an aggregated configuration for the specified service configuration(s).- Parameters:
isIncludingBaseConfig-trueif the service's base configuration should be included.appConfigNames- Collection of elements of typeStringrepresenting the names of the service's application configuration(s) which are to be aggregated.- Returns:
- Aggregated service configuration.
- Throws:
ServiceException- if unable to create a configuration.
-
getServiceConfigDocuments
public List<ServiceConfigDocument> getServiceConfigDocuments(List<String> configNames) throws ServiceException Gets a list of service configurationdocumentsfor the specified configuration names.- Parameters:
configNames- Collection of configuration names that are of typeString.- Returns:
- Collection of service configuration
documentsfor the specified configuration names. - Throws:
ServiceException- if unable to get the service configuration documents for all specified names.
-
getServiceConfigDocument
Gets the service configuration document for the specified configuration name.- Parameters:
configName- Name of the desired service configuration.- Returns:
- Service configuration document matching the specified name
or
nullif a configuration is not defined. - Throws:
ServiceException- if unable to get a service configuration document.
-
getServiceComponent
public com.sas.metadata.remote.ServiceComponent getServiceComponent()Gets the metadata object that represents the service.- Returns:
- Service component.
-
getServiceConfigDocuments
Returns a copy of the list of service configuration documents.- Returns:
- List of service configuration documents. Each list item
will be of type
ServiceConfigDocument.
-
getServiceConfigProperty
public com.sas.metadata.remote.Property getServiceConfigProperty()Gets a property associated with the selected service configuration.- Returns:
- Property associated with the selected service configuration or
null.
-
setServiceConfigProperty
public void setServiceConfigProperty(com.sas.metadata.remote.Property serviceConfigProperty) throws ServiceException Specifies the property representing the service configuration which is being edited.- Parameters:
serviceConfigProperty-- Throws:
ServiceException- if unable to set the service configuration property.
-
getConfigUserInterfaceClassName
Gets the fully-qualified name of the Java class that is used to render the service configuration.- Returns:
- Fully-qualified name of the Java class that is used to render the service configuration.
- Throws:
ServiceException- if unable to get the user interface class name.
-
setConfigName
public void setConfigName(String configName) throws com.sas.metadata.remote.MdException Sets the name of the service configuration.- Parameters:
configName- Service configuration's name.- Throws:
com.sas.metadata.remote.MdException- if unable to set the name.
-
getConfigName
public String getConfigName() throws com.sas.metadata.remote.MdExceptionGets the service configuration's name.- Returns:
- Service configuration's name.
- Throws:
com.sas.metadata.remote.MdException- if unable to read the name.
-
isBaseConfig
public boolean isBaseConfig()Determines if this is the service's base configuration.- Returns:
Boolean.TRUEif this is the service's base configuration,Boolean.FALSEif this is an application configuration, ornullif this service does not have a configuration.
-
getServiceConfig
Gets the service configuration for the property.- Returns:
- Service configuration associated with the currently selected property
or
nullif there is no service configuration.
-
getAggregateServiceConfig
Gets the service's aggregate configuration.- Returns:
- Service configuration associated with the currently selected property
or
nullif there is no service configuration. - Throws:
ServiceException- if unable to get the aggregate service configuration.
-
getServiceFactory
Gets the service's factory.- Returns:
- Factory which can be used to create an instance of the service.
-