|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.deployment.Configuration
public final class Configuration
Metadata source configuration which defines the properties required to query metadata describing a SAS Foundation Services deployment from a SAS Metadata Server.
MetadataSourceFactory
Constructor Summary | |
---|---|
Configuration(com.sas.metadata.remote.SoftwareComponent softwareComponent)
Constructs a default instance. |
Method Summary | |
---|---|
java.lang.String |
getContainerType()
Gets the container type. |
java.lang.String |
getDescForProperty(java.lang.String propertyName)
Gets a localized description for the specified property. |
java.util.Properties |
getProperties()
Gets properties which may be used to configure a file that describes a SAS Foundation Services deployment which is to be deployed in an IOC container. |
com.sas.metadata.remote.SoftwareComponent |
getSoftwareComponent()
Gets the software component. |
java.lang.String |
localizePropertyGroupName(int groupIndex)
Gets a localized name for the specified group property. |
java.lang.String |
localizePropertyMode(java.lang.String mode)
Gets a localized name for the mode property. |
java.lang.String |
localizePropertyName(java.lang.String propertyName)
Gets a localized name for the specified property. |
void |
setContainerType(java.lang.String containerType)
Sets the container type. |
void |
setDeploymentGroups(java.util.Set groupNames)
Sets the groups of services which are enabled for deployment. |
void |
setHost(java.lang.String host)
Sets the Metadata Server's host. |
void |
setMode(java.lang.String mode)
Sets the mode that indicates whether the SAS Foundation Services deployment metadata is to be queried from a Metadata Repository or from a URL. |
void |
setPort(java.lang.String port)
Sets the port on which the SAS Metadata Server is listening for connections. |
void |
setRepository(java.lang.String repository)
Sets the name of the metadata repository which is to be queried to read a SAS Foundation Services deployment. |
void |
setSecurityPackageList(java.lang.String secpackagelist)
Sets the secpackagelist. |
void |
setSecuritySPN(java.lang.String metaspn)
Sets the service principal name ("metaspn"). |
void |
setSoftwareComponent(com.sas.metadata.remote.SoftwareComponent softwareComponent)
Sets the software component. |
void |
setURL(java.lang.String url)
Sets the URL that can be read to obtain SAS Foundation Services deployment metadata. |
void |
setUserId(java.lang.String userId)
Sets the user ID which will be used to connect to the SAS Metadata Server. |
void |
setUserPassword(java.lang.String userPassword)
Sets the user's password which will be used to connect to the SAS Metadata Server. |
Constructor Detail |
---|
public Configuration(com.sas.metadata.remote.SoftwareComponent softwareComponent) throws com.sas.metadata.remote.MdException
softwareComponent
- Metatata software component that represents the SAS Foundation Services deployment.
com.sas.metadata.remote.MdException
- if unable to construct an instance.Method Detail |
---|
public com.sas.metadata.remote.SoftwareComponent getSoftwareComponent()
public java.util.Properties getProperties()
Property Key | Property Value |
---|---|
MetadataSourceFactory.PROPERTY_SOFTWARECOMPONENT |
String name of the SoftwareComponent |
public void setSoftwareComponent(com.sas.metadata.remote.SoftwareComponent softwareComponent) throws com.sas.metadata.remote.MdException
softwareComponent
- Metatata software component that represents the SAS Foundation Services deployment.
com.sas.metadata.remote.MdException
- if a unable to access metadata.public void setContainerType(java.lang.String containerType) throws java.lang.IllegalArgumentException
containerType
- Container type. One of DeploymentContextFactory.CONTAINER_JBOSSMC
or
DeploymentContextFactory.CONTAINER_SPRING
.
java.lang.IllegalArgumentException
- if an invalid container type is specified.public java.lang.String getContainerType()
DeploymentContextFactory.CONTAINER_JBOSSMC
or
DeploymentContextFactory.CONTAINER_SPRING
or null
if undefined.public void setRepository(java.lang.String repository)
repository
- Name of the repository that will be queried to read a SAS Foundation Services deployment.public void setSecuritySPN(java.lang.String metaspn)
metaspn
- Security service principal name.MetadataSourceFactory.PROPERTY_SSO_SECPACKAGELIST
public void setSecurityPackageList(java.lang.String secpackagelist)
secpackagelist
- Security package list.
A null
may be specified (e.g. login credential is used).MetadataSourceFactory.PROPERTY_SSO_SECPACKAGELIST
public void setUserId(java.lang.String userId)
userId
- Login ID used to connect to the SAS Metadata Server.
A null
may be specified (e.g. single sign-on).public void setUserPassword(java.lang.String userPassword)
userPassword
- Login ID password used to connect to the SAS Metadata Server.
A null
may be specified (e.g. single sign-on).public void setHost(java.lang.String host)
host
- Metadata Server's host.public void setPort(java.lang.String port)
port
- SAS Metadata Server's port.public void setURL(java.lang.String url)
url
- URL to a SAS Foundation Services deployment.public void setMode(java.lang.String mode)
mode
- Specify MetadataSourceFactory.PROPERTY_METADATASERVER_REPOSITORY
if SAS Foundation Services metadata is to be queried from a SAS Metdata
Repository or MetadataSourceFactory.PROPERTY_URL
if the
metadata is to be queried from a URL.public void setDeploymentGroups(java.util.Set groupNames)
groupNames
- Collection of String
elements representing the
names of the service deployment groups which are enabled for
deployment. An empty collection indicates that all services
are enabled for deployment.public java.lang.String localizePropertyName(java.lang.String propertyName)
propertyName
- Name of the property which is to be localized.
public java.lang.String getDescForProperty(java.lang.String propertyName)
propertyName
-
public java.lang.String localizePropertyGroupName(int groupIndex)
groupIndex
-
public java.lang.String localizePropertyMode(java.lang.String mode)
mode
- The source from which SAS Foundation Services metadata is
to be queried.
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |