public class EnvironmentModel extends Object implements oracle.fmwplatform.envspec.common.EnvironmentSpecification
Constructor and Description |
---|
EnvironmentModel()
Creates an empty EnvironmentModel
|
Modifier and Type | Method and Description |
---|---|
Object |
convertSettingValueToAliasType(String value,
oracle.fmwplatform.envspec.lookup.AliasEntry alias)
Converts the passed in String value contained in a
Setting as specified in the topology to the actual
Java data type representation. |
static EnvironmentModel |
createEnvironmentModel(Topology topology,
oracle.fmwplatform.credentials.credential.Credentials credentials)
Returns a new environment model created with the specified topology and credentials.
|
List<Application> |
getApplicationsInDomain(Domain domain)
Returns all applications associated with the Domain specified or an empty list if none are found.
|
List<Application> |
getApplicationsInDomain(String domainId)
Returns all applications associated with the Domain specified or an empty list if none are found.
|
Template |
getBaseTemplateForDomain(String domainId)
Returns the base Template from the Domain specified or null if no match is found.
|
ClusterBinding |
getClusterBindingByNameForDomain(String clusterBindingName,
Domain domain)
Returns the ClusterBinding for the name specified or null if no match is found.
|
ClusterBinding |
getClusterBindingByNameForDomain(String clusterBindingName,
String domainId)
Returns the ClusterBinding for the name and Domain id specified or an empty list if no match is found
|
List<ClusterBinding> |
getClusterBindingsForDomain(Domain domain)
Returns the ClusterBindings for the Domain specified or an empty list if no match is found.
|
List<ClusterBinding> |
getClusterBindingsForDomain(String domainId)
Returns the ClusterBindings associated with the domain specified or an empty list if no match is found.
|
List<String> |
getClusterIdsInDomain(Domain domain)
Returns the Cluster ids associated with the Domain specified or an empty list if no match is found.
|
List<String> |
getClusterIdsInDomain(String domainId)
Returns the Cluster ids associated with the Domain specified or an empty list if no match is found.
|
List<Cluster> |
getClustersInDomain(Domain domain)
Returns the Clusters associated with the Domain specified or an empty list if no match is found.
|
List<Cluster> |
getClustersInDomain(String domainId)
Returns the Clusters associated with the Domain specified or an empty list if no match is found.
|
oracle.fmwplatform.credentials.credential.Credential |
getCredentialByAlias(String alias)
Returns the Credential from the Credentials of this EnvironmentModel for the provided alias or null if no match is
found.
|
oracle.fmwplatform.credentials.credential.Credentials |
getCredentials()
Returns the Credentials associated with this EnvironmentModel or null if none are found.
|
Database |
getDatabaseById(String databaseId)
Returns the Database for the databaseId specified or null if it is not found.
|
List<String> |
getDatabaseIds()
Returns the Database ids associated with the Topology in this EnvironmentModel or an empty list if none are found.
|
List<Database> |
getDatabases()
Returns the Databases ids associated with the Topology in this EnvironmentModel or an empty list if none are found
|
List<DataSourceBinding> |
getDataSourceBindingsInDomain(Domain domain)
Returns the DataSourceBindings associated with the Domain specified or an empty list if no match is found
|
List<DataSourceBinding> |
getDataSourceBindingsInDomain(String domainId)
Returns the DataSourceBindings associated with the Domain specified or an empty list if no match is found.
|
DataSourceBinding |
getDataSourceInDomainForName(Domain domain,
String name)
Returns the DataSource for the name in the specified domain
|
DataSourceBinding |
getDataSourceInDomainForName(String id,
String name)
Returns the DataSource for the name in the specified domain
|
List<String> |
getDataSourceNamesInDomain(Domain domain)
Returns the DataSource names associated with the Domain specified or an empty list if no match is found.
|
List<String> |
getDataSourceNamesInDomain(String domainId)
Returns the DataSource names associated with the Domain specified or an empty list if no match is found.
|
Domain |
getDomainById(String domainId)
Returns the Domain for the domainId specified or null if it is not found.
|
List<String> |
getDomainIds()
Returns the Domain ids associated with the Topology in this EnvironmentModel or an empty list if none are found.
|
List<Domain> |
getDomains()
Returns the Domains associated with the Topology in this EnvironmentModel or an empty list if none are found.
|
List<Domain> |
getDomainsByName(String domainName) |
List<Domain> |
getDomainsForNodeManagerId(String nodeManagerId)
Returns the Domains that are associated with the NodeManager specified
or an empty list if no matches are found.
|
List<Domain> |
getDomainsForNodeManagerId(String nodeManagerId,
boolean localOnly)
Returns the Domains that are associated with the NodeManager specified
or an empty list if no matches are found.
|
List<Domain> |
getDomainsOnHost(Host host)
Returns the Domains associated with the Topology in this EnvironmentModel that match the Host specified or an empty
list if no match is found.
|
List<Domain> |
getDomainsOnHost(String hostId)
Returns the Domains associated with the Topology in this EnvironmentModel that match the Host specified or an empty
list if no match is found.
|
List<Domain> |
getDomainsUsingOracleHome(OracleHome oracleHome)
Returns the Domains using the OracleHome specified or an empty list if no matches are found.
|
List<Domain> |
getDomainsUsingOracleHome(String oracleHomeId)
Returns the Domains that are associated with the OracleHome specified or an empty list if no matches are found
|
List<Template> |
getExtensionTemplatesForDomain(String domainId)
Returns the extension Templates for the Domain specified or an empty list if none are found.
|
Host |
getHostById(String hostId)
Returns the Host for the hostId specified or null if it is not found.
|
Host |
getHostForDomainAndServer(String domainId,
String serverName)
Returns the host mapped to this domain and server
|
Host |
getHostForNodeManager(String nodeManagerId)
Returns the Host associated to the NodeManager specified or null if no match is found.
|
List<String> |
getHostIds()
Returns the Host ids associated with the Topology in this EnvironmentModel or an empty list if none are found.
|
List<String> |
getHostIdsHostingDomain(Domain domain)
Returns the Host ids associated with the Domain specified or an empty list if none are found
|
List<String> |
getHostIdsHostingDomain(String domainId)
Returns the Host ids associated with the Domain specified or an empty list if none are found.
|
List<String> |
getHostIdsHostingOracleHome(OracleHome oracleHome)
Returns the Host ids associated with the OracleHome specified or an empty list if none are found.
|
List<String> |
getHostIdsHostingOracleHome(String oracleHomeId)
Returns the Host ids associated with the OracleHome specified or an empty list if none are found
|
List<Host> |
getHosts()
Returns the Hosts associated with the Topology in this EnvironmentModel or an empty list if none are found.
|
List<Host> |
getHostsHostingDomain(Domain domain)
Returns the Hosts associated with the Domain specified or an empty list if none are found.
|
List<Host> |
getHostsHostingDomain(String domainId)
Returns the Hosts associated with the Domain specified or an empty list if none are found.
|
List<Host> |
getHostsHostingOracleHome(OracleHome oracleHome)
Returns the Hosts associated with the OracleHome specified or an empty list if none are found.
|
List<Host> |
getHostsHostingOracleHome(String oracleHomeId)
Returns the Hosts associated with the OracleHome specified or an empty list if none are found.
|
List<Library> |
getLibrariesInDomain(Domain domain)
Returns all shared libraries associated with the Domain specified or an empty list if none are found.
|
List<Library> |
getLibrariesInDomain(String domainId)
Returns all shared libraries associated with the Domain specified or an empty list if none are found.
|
MappedDomain |
getMappedDomainForHostAndDomain(String hostId,
String domainId)
Returns the MappedDomain that is associated to the Domain and Host specified or null if no match is found.
|
MappedOracleHome |
getMappedOracleHomeForHostAndOracleHome(String hostId,
String oracleHomeId)
Returns The MappedOracleHome for the Host and OracleHome specified or null if no match is found.
|
NodeManager |
getNodeManagerById(String nodeManagerId)
Returns the NodeManager for the nodeManagerId specified or null if it is not found.
|
List<NodeManager> |
getNodeManagerByName(String nodeManagerName) |
NodeManager |
getNodeManagerForDomainAndServer(String domainId,
String serverName)
Returns the NodeManager associated with the Domain and Server specified or null if it is not found.
|
List<String> |
getNodeManagerIds()
Returns the NodeManager ids associated with the Topology in this EnvironmentModel or an empty list if none are
found.
|
List<NodeManager> |
getNodeManagers()
Returns the NodeManagers associated with the Topology in this EnvironmentModel or an empty list if none are found.
|
List<NodeManager> |
getNodeManagersForDomain(String domainId)
Returns the NodeManagers associated with the Domain specified or null if it is not found.
|
OracleHome |
getOracleHomeById(String oracleHomeId)
Returns the OracleHome for the oracleHomeId specified or null if it is not found.
|
OracleHome |
getOracleHomeForAdminServerOfDomain(String domainId)
Returns the OracleHome mapped to the AdminServer of the Domain specified or null if no match is found.
|
OracleHome |
getOracleHomeForNodeManager(String nodeManagerId)
Return the OracleHome that was targeted in the model
|
OracleHome |
getOracleHomeForServerInDomain(String serverId,
Domain domain)
Returns the OracleHome mapped to the Server of the Domain specified or null if no match is found.
|
OracleHome |
getOracleHomeForServerInDomain(String serverId,
String domainId)
Returns the OracleHome mapped to the Server of the Domain specified or null if no match is found.
|
List<String> |
getOracleHomeIds()
Returns the OracleHome ids associated with the Topology in this EnvironmentModel or an empty list if none are
found.
|
List<OracleHome> |
getOracleHomes()
Returns the OracleHomes associated with the Topology in this EnvironmentModel or an empty list if none are found
|
List<ServerBinding> |
getServerBindingsInClusterForDomain(String clusterName,
String domainId)
Returns the ServerBindings associated with the Domain and Cluster specified or an empty list if none are found
|
List<ServerBinding> |
getServerBindingsOnHost(Host host)
Returns the ServerBindings associated with the Host specified or an empty list if none are found.
|
List<ServerBinding> |
getServerBindingsOnHost(String hostId)
Returns the ServerBindings associated with the Host specified or an empty list if none are found Returns an empty
list if none found.
|
List<ServerBinding> |
getServerBindingsOnHostAndDomain(String hostId,
String domainId)
Returns the ServerBindings associated with the Domain and Host specified or an empty list if none are found.
|
List<String> |
getServerGroups(String domainId,
String serverName)
Returns the Server group names for the specified Domain and Server or and empty list is none are found.
|
List<String> |
getServerIdsInDomain(Domain domain)
Returns the Server ids associated with the Domain specified or an empty list if none are found.
|
List<String> |
getServerIdsInDomain(String domainId)
Returns the Server ids associated with the Domain specified or an empty list if none are found.
|
List<Server> |
getServersInDomain(Domain domain)
Returns the Servers associated with the Domain specified or an empty list if none are found.
|
List<Server> |
getServersInDomain(String domainId)
Returns the Servers associated with the Domain specified or an empty list if none are found.
|
Service |
getServiceById(String serviceId) |
List<Service> |
getServices() |
List<ShutdownClass> |
getShutdownClassesInDomain(Domain domain)
Returns all shutdown classes associated with the Domain specified or an empty list if none are found.
|
List<ShutdownClass> |
getShutdownClassesInDomain(String domainId)
Returns all shutdown classes associated with the Domain specified or an empty list if none are found.
|
List<StartupClass> |
getStartupClassesInDomain(Domain domain)
Returns all startup classes associated with the Domain specified or an empty list if none are found.
|
List<StartupClass> |
getStartupClassesInDomain(String domainId)
Returns all startup classes associated with the Domain specified or an empty list if none are found.
|
SystemComponent |
getSystemComponentById(String systemComponentId)
Returns the SystemComponent for the systemComponentId specified or null
if it is not found.
|
List<String> |
getSystemComponentIds()
Returns the SystemComponent ids associated with the Topology in this
EnvironmentModel or an empty list if none are found.
|
List<SystemComponent> |
getSystemComponents()
Returns the SystemComponents associated with the Topology in this
EnvironmentModel or an empty list if none are found.
|
List<SystemComponent> |
getSystemComponentsByName(String systemComponentName)
Returns the list of SystemComponents having same name attribute to as
that of the input.
|
List<SystemComponent> |
getSystemComponentsForDomain(String domainId)
Returns the SystemComponents associated with the Domain specified or null
if it is not found.
|
List<SystemComponent> |
getSystemComponentsForDomainAndNodeManager(String domainId,
String nodeManagerName)
Returns the SystemComponent associated with the Domain and NodeManager
specified or null if it is not found.
|
List<String> |
getTargetsForDomainResource(String domainId,
String resourceId)
Returns a list of targets for a given resource ID (application, JDBC, ...).
|
List<String> |
getTemplateNamesInDomain(Domain domain)
Returns the Templates associated with the Domain specified or an empty list if none are found.
|
List<String> |
getTemplateNamesInDomain(String domainId)
Returns the Template names associated with the Domain specified or an empty list if none are found.
|
List<Template> |
getTemplatesInDomain(Domain domain)
Returns the Templates associated with the Domain specified or an empty list if none are found.
|
List<Template> |
getTemplatesInDomain(String domainId)
Returns the Templates associated with the Domain specified or an empty list if none are found.
|
Topology |
getTopology()
Returns the Topology associated with this EnvironmentModel or null if it has not been set.
|
WebTier |
getWebTierById(String webTierId)
Returns the WebTier for the webTierId specified or null if it is not found.
|
List<WebTier> |
getWebTiers()
Returns the WebTiers associated with the Topology in this EnvironmentModel or an empty list if none are found.
|
List<WebTier> |
getWebTiersForDomain(String domainId)
Returns the list of WebTier objects for the specified domain
|
void |
setCredentials(oracle.fmwplatform.credentials.credential.Credentials credentials)
Sets the Credentials associated with this EnvironmentModel.
|
void |
setTopology(Topology topology)
Sets the Topology associated with this EnvironmentModel.
|
List<oracle.fmwplatform.util.validation.ValidationMessage> |
validate()
Performs basic validation without reference to any actual environment.
|
List<oracle.fmwplatform.util.validation.ValidationMessage> |
validate(ModelTarget target)
Validates a single environment model target against this model.
|
public static EnvironmentModel createEnvironmentModel(Topology topology, oracle.fmwplatform.credentials.credential.Credentials credentials)
topology
- the Topology to be wrapped by this EnvironmentModelcredentials
- the Credentials to be wrapped by this EnvironmentModelpublic Template getBaseTemplateForDomain(String domainId) throws FMWEnvSpecException
domainId
- the id representing the Domain who's base Template is to be returnedFMWEnvSpecException
- If any external file references cannot be read or when a custom template does not have location specifiedpublic ClusterBinding getClusterBindingByNameForDomain(String clusterBindingName, Domain domain)
clusterBindingName
- the name of the cluster who's ClusterBinding is to be returneddomain
- the Domain representing the Domain who's ClusterBinding is to be returnedpublic ClusterBinding getClusterBindingByNameForDomain(String clusterBindingName, String domainId)
clusterBindingName
- the name of the Cluster who's ClusterBinding is to be returneddomainId
- the id representing the Domain who's ClusterBinding is to be returnedpublic List<ClusterBinding> getClusterBindingsForDomain(Domain domain)
domain
- the Domain Domain who's ClusterBinding is to be returnedpublic List<ClusterBinding> getClusterBindingsForDomain(String domainId)
domainId
- the id representing the Domain who's ClusterBindings are to be returnedpublic List<String> getClusterIdsInDomain(Domain domain) throws FMWEnvSpecException
domain
- the Domain who's Cluster ids are to be returnedFMWEnvSpecException
- When any external domain profile references cannot be readpublic List<String> getClusterIdsInDomain(String domainId) throws FMWEnvSpecException
domainId
- the id representing the Domain who's Cluster ids are to be returnedFMWEnvSpecException
- When any external domain profile references cannot be readpublic List<Cluster> getClustersInDomain(Domain domain) throws FMWEnvSpecException
domain
- the Domain who's Clusters are to be returnedFMWEnvSpecException
- When any external domain profile references cannot be readpublic List<Cluster> getClustersInDomain(String domainId) throws FMWEnvSpecException
domainId
- the id representing the Domain who's Clusters are to be returnedFMWEnvSpecException
- When any external domain profile references cannot be readpublic oracle.fmwplatform.credentials.credential.Credentials getCredentials()
public oracle.fmwplatform.credentials.credential.Credential getCredentialByAlias(String alias)
alias
- the Alias representing the specific Credential from this EnvironmentModels Credentialspublic Database getDatabaseById(String databaseId)
databaseId
- The Database associated with the Topology in this EnvironmentModel for the id specified or null if no
match is foundpublic List<String> getDatabaseIds()
public List<Database> getDatabases()
public List<DataSourceBinding> getDataSourceBindingsInDomain(Domain domain)
domain
- the Domain who's DataSourceBindings are to be returnedpublic List<DataSourceBinding> getDataSourceBindingsInDomain(String domainId)
domainId
- the id representing the Domain who's DataSourceBindings are to be returnedpublic List<String> getDataSourceNamesInDomain(Domain domain)
domain
- the Domain who's DataSource names are to be returnedpublic List<String> getDataSourceNamesInDomain(String domainId)
domainId
- the id representing the Domain who's DataSource names are to be returnedpublic DataSourceBinding getDataSourceInDomainForName(Domain domain, String name)
domain
- where to retrieve datasourcesname
- of the datasourcepublic DataSourceBinding getDataSourceInDomainForName(String id, String name)
id
- of the domainname
- of the datasourcepublic Domain getDomainById(String domainId)
domainId
- the id representing the Domain that is to be returnedpublic List<String> getDomainIds()
public List<Domain> getDomains()
public List<Domain> getDomainsOnHost(Host host)
host
- the host containing the Domains that are to be returnedpublic List<Domain> getDomainsOnHost(String hostId)
hostId
- the id representing the host who's Domains are to be returnedpublic List<Domain> getDomainsUsingOracleHome(OracleHome oracleHome)
oracleHome
- the OracleHome who's Domains that are to be returnedpublic List<Domain> getDomainsForNodeManagerId(String nodeManagerId)
nodeManagerId
- the id representing the NodeManager who's Domains are to be returnedpublic List<Domain> getDomainsForNodeManagerId(String nodeManagerId, boolean localOnly)
nodeManagerId
- the id representing the NodeManager who's Domains are to be returnedlocalOnly
- only return domains for hosts that are local to current runtime
ex: 127.0.0.1 , localhost, hostname mapped to local network interfacepublic List<Domain> getDomainsUsingOracleHome(String oracleHomeId)
oracleHomeId
- the id representing the OracleHome who's Domains are to be returnedpublic List<Template> getExtensionTemplatesForDomain(String domainId) throws FMWEnvSpecException
domainId
- the id representing the Domain who's Templates are to be returnedFMWEnvSpecException
- When any external file references cannot be read or when a custom template does not have location
specifiedpublic Host getHostById(String hostId)
hostId
- The id representing the Host to be returnedpublic Host getHostForNodeManager(String nodeManagerId)
nodeManagerId
- the id representing the NodeManager mapped to the Host that is to be returnedpublic OracleHome getOracleHomeForNodeManager(String nodeManagerId)
nodeManagerId
- the id of the NodeManagerpublic List<String> getHostIds()
public List<String> getHostIdsHostingDomain(Domain domain)
domain
- the Domain who's Host ids are to be returnedpublic List<String> getHostIdsHostingDomain(String domainId)
domainId
- the id representing the Domain who's Host ids are to be returnedpublic List<String> getHostIdsHostingOracleHome(OracleHome oracleHome)
oracleHome
- the OracleHome who's Host ids are to be returnedpublic List<String> getHostIdsHostingOracleHome(String oracleHomeId)
oracleHomeId
- the id representing the OracleHome who's Host ids are to be returnedpublic List<Host> getHosts()
public List<Host> getHostsHostingDomain(Domain domain)
domain
- the Domain who's Hosts are to be returnedpublic List<Host> getHostsHostingDomain(String domainId)
domainId
- the id representing the Domain who's Hosts are to be returnedpublic List<Host> getHostsHostingOracleHome(OracleHome oracleHome)
oracleHome
- the OracleHome who's Hosts are to be returnedpublic List<Host> getHostsHostingOracleHome(String oracleHomeId)
oracleHomeId
- the id representing the OracleHome who's Hosts are to be returnedpublic Host getHostForDomainAndServer(String domainId, String serverName)
domainId
- id of the requested domainserverName
- name of the ServerBindingpublic NodeManager getNodeManagerById(String nodeManagerId)
nodeManagerId
- the id representing the NodeManager to be returnedpublic List<NodeManager> getNodeManagerByName(String nodeManagerName)
public NodeManager getNodeManagerForDomainAndServer(String domainId, String serverName)
domainId
- the id representing the Domain who's NodeManager is to be returnedserverName
- The name of the Serverpublic List<String> getNodeManagerIds()
public List<NodeManager> getNodeManagers()
public List<NodeManager> getNodeManagersForDomain(String domainId)
domainId
- the id representing the Domain who's NodeManagers are to be returnedpublic OracleHome getOracleHomeById(String oracleHomeId)
oracleHomeId
- the id representing the OracleHome that is to be returnedpublic List<OracleHome> getOracleHomes()
public List<ServerBinding> getServerBindingsInClusterForDomain(String clusterName, String domainId) throws FMWEnvSpecException
clusterName
- the name of the Cluster who's ServerBindings are to be returneddomainId
- the id representing the Domain who's ServerBindings are to be returnedFMWEnvSpecException
- When any external domain profile references cannot be readpublic List<ServerBinding> getServerBindingsOnHost(Host host)
host
- the host from which the ServerBindings are to be returnedpublic List<ServerBinding> getServerBindingsOnHost(String hostId)
hostId
- the id representing the Host from which the ServerBindings are to be returnedpublic List<ServerBinding> getServerBindingsOnHostAndDomain(String hostId, String domainId)
hostId
- the id representing the Host from which the ServerBindings are to be returneddomainId
- the ServerBindings associated with the Domain and Host specified or an empty list if none are foundpublic List<String> getServerIdsInDomain(Domain domain) throws FMWEnvSpecException
domain
- the Domain who's Server ids are to be returnedFMWEnvSpecException
- When any external domain profile references cannot be readpublic List<String> getServerIdsInDomain(String domainId) throws FMWEnvSpecException
domainId
- the id representing the Domain who's Server ids are to be returnedFMWEnvSpecException
- When any external domain profile references cannot be readpublic List<Server> getServersInDomain(Domain domain) throws FMWEnvSpecException
domain
- the Domain who's Servers are to be returnedFMWEnvSpecException
- When any external domain profile references cannot be readpublic List<Server> getServersInDomain(String domainId) throws FMWEnvSpecException
domainId
- the id representing the Domain who's Servers are to be returnedFMWEnvSpecException
- When any external domain profile references cannot be readpublic List<String> getTemplateNamesInDomain(Domain domain) throws FMWEnvSpecException
domain
- the Domain who's Template names are to be returnedFMWEnvSpecException
- When external file references cannot be read or when a custom template does not have location specifiedpublic List<String> getTemplateNamesInDomain(String domainId) throws FMWEnvSpecException
domainId
- the id representing the Domain who's Template names are to be returnedFMWEnvSpecException
- When external file references cannot be read or when a custom template does not have location specifiedpublic List<Template> getTemplatesInDomain(Domain domain) throws FMWEnvSpecException
domain
- the Domain who's Templates are to be returnedFMWEnvSpecException
- When external file references cannot be read or when a custom template does not have location specifiedpublic List<Template> getTemplatesInDomain(String domainId) throws FMWEnvSpecException
domainId
- the id representing the Domain who's Templates are to be returnedFMWEnvSpecException
- When external file references cannot be read or when a custom template does not have location specifiedpublic MappedDomain getMappedDomainForHostAndDomain(String hostId, String domainId)
hostId
- The id representing the Host who's MappedDomain is to be returneddomainId
- the id representing the Domain who's MappedDomain is to be returnedpublic OracleHome getOracleHomeForServerInDomain(String serverId, Domain domain) throws FMWEnvSpecException
serverId
- the id representing the Server who's OracleHome is to be returneddomain
- the domain object containing the Server referenced by serverIdFMWEnvSpecException
- When any external domain profile references cannot be readpublic OracleHome getOracleHomeForAdminServerOfDomain(String domainId) throws FMWEnvSpecException
domainId
- the id representing the Domain who's OracleHome is to be returnedFMWEnvSpecException
- When any external domain profile references cannot be readpublic OracleHome getOracleHomeForServerInDomain(String serverId, String domainId) throws FMWEnvSpecException
serverId
- the id representing the Server who's OracleHome is to be returneddomainId
- the id representing the Domain containing the Server referenced by serverIdFMWEnvSpecException
- When any external domain profile references cannot be readpublic List<String> getOracleHomeIds()
public List<Library> getLibrariesInDomain(Domain domain) throws FMWEnvSpecException
domain
- to retrieve the librariesFMWEnvSpecException
- an exception occurred resolving the domain profile referencespublic List<Library> getLibrariesInDomain(String domainId) throws FMWEnvSpecException
domainId
- the Id of the domain in the modelFMWEnvSpecException
- an exception occurred resolving the domain profile referencespublic List<Application> getApplicationsInDomain(Domain domain) throws FMWEnvSpecException
domain
- to retrieve the applicationsFMWEnvSpecException
- an exception occurred resolving the domain profile referencespublic List<Application> getApplicationsInDomain(String domainId) throws FMWEnvSpecException
domainId
- the Id of the domain in the modelFMWEnvSpecException
- an exception occurred resolving the domain profile referencespublic List<StartupClass> getStartupClassesInDomain(Domain domain) throws FMWEnvSpecException
domain
- to retrieve the startup classesFMWEnvSpecException
- an exception occurred resolving the domain profile referencespublic List<StartupClass> getStartupClassesInDomain(String domainId) throws FMWEnvSpecException
domainId
- the Id of the domain in the modelFMWEnvSpecException
- an exception occurred resolving the domain profile referencespublic List<ShutdownClass> getShutdownClassesInDomain(Domain domain) throws FMWEnvSpecException
domain
- to retrieve the shutdown classesFMWEnvSpecException
- an exception occurred resolving the domain profile referencespublic List<ShutdownClass> getShutdownClassesInDomain(String domainId) throws FMWEnvSpecException
domainId
- the Id of the domain in the modelFMWEnvSpecException
- an exception occurred resolving the domain profile referencespublic List<String> getTargetsForDomainResource(String domainId, String resourceId)
domainId
- the domain to searchresourceId
- the resource (application, library, ...) to search forpublic MappedOracleHome getMappedOracleHomeForHostAndOracleHome(String hostId, String oracleHomeId)
hostId
- The id representing the Host who's MappedOracleHome is to be returnedoracleHomeId
- The id of the OracleHome that the MappedOracleHome is associated topublic Topology getTopology()
public void setCredentials(oracle.fmwplatform.credentials.credential.Credentials credentials)
credentials
- the Credentials that are to be wrapped by this EnvironmentModelpublic void setTopology(Topology topology)
topology
- the Topology that is to be associated with this EnvironmentModelpublic List<oracle.fmwplatform.util.validation.ValidationMessage> validate() throws FMWEnvSpecException
EnvironmentModelValidator.validate(EnvironmentModel)
FMWEnvSpecException
- When any external file references cannot be readpublic List<oracle.fmwplatform.util.validation.ValidationMessage> validate(ModelTarget target)
target
- a ModelTarget object to use for validationpublic List<String> getServerGroups(String domainId, String serverName) throws FMWEnvSpecException
domainId
- the id representing the Domain who's Server group names are to be returnedserverName
- The name of the ServerFMWEnvSpecException
- if a model file could not be found in the search pathpublic List<WebTier> getWebTiers()
public WebTier getWebTierById(String webTierId)
webTierId
- the id representing the WebTier that is to be returnedpublic List<WebTier> getWebTiersForDomain(String domainId)
domainId
- the id of the Domain whose WebTiers are to be returnedpublic Object convertSettingValueToAliasType(String value, oracle.fmwplatform.envspec.lookup.AliasEntry alias)
Setting
as specified in the topology to the actual
Java data type representation. Determined by AliasEntry
that is derived for the corresponding Setting
value
- - String value present in the modelalias
- - AliasEntry
corresponding to the Setting
that the value pertains toAliasEntry.getAliasType()
,
AliasDataType.getJavaType()
public SystemComponent getSystemComponentById(String systemComponentId)
systemComponentId
- the id representing the SystemComponent to be returnedpublic List<SystemComponent> getSystemComponentsByName(String systemComponentName)
systemComponentName
- - the name to be matched for the SystemComponents to be
returnedpublic List<SystemComponent> getSystemComponentsForDomainAndNodeManager(String domainId, String nodeManagerName)
domainId
- the id representing the Domain who's SystemComponent is to be
returnednodeManagerName
- The name of the NodeManagerpublic List<String> getSystemComponentIds()
public List<SystemComponent> getSystemComponents()
public List<SystemComponent> getSystemComponentsForDomain(String domainId)
domainId
- the id representing the Domain who's SystemComponents are to
be returned