public class DomainProfile extends Object implements oracle.fmwplatform.envspec.common.Versioned, oracle.fmwplatform.util.validation.ValidationParticipant
Constructor and Description |
---|
DomainProfile() |
Modifier and Type | Method and Description |
---|---|
boolean |
addAllBlueprints(List<Blueprint> blueprints)
Add a list of Blueprints to the existing list of blueprints in this domain profile.
|
boolean |
addAllClusters(List<Cluster> clusters)
Add a list of clusters to the existing list of clusters in this domain profile.
|
boolean |
addAllServers(List<Server> servers)
Adds a list of Server objects to the list of Servers in this DomainProfile
|
boolean |
addAllTargets(List<Target> targets)
Adds a list of Target objects to the list of Targets in this DomainProfile
|
boolean |
addBlueprint(Blueprint blueprint)
Add a blueprint to the list of blueprints in this domain profile.
|
boolean |
addBlueprint(String blueprintName)
Add a blueprint to the list of blueprints in this domain profile identified by the blueprintName.
|
boolean |
addBlueprint(String blueprintName, String version, EnvironmentModelFileLocator locator)
Add a blueprint to the list of blueprints in this domain profile identified by the blueprintName.
|
boolean |
addCluster(Cluster cluster)
Add a Cluster to the list of clusters in this domain profile.
|
boolean |
addServer(Server server)
Adds a Server to the list of Servers in this DomainProfile
|
boolean |
addTarget(Target target)
Adds a Target to the list of Targets in this DomainProfile
|
List<Blueprint> |
getBlueprints()
Get the list of Blueprints available in this DomainProfile.
|
List<Cluster> |
getClusters()
Returns the list of clusters defined in this domain profile.
|
DomainProfile |
getDomainProfile()
Returns the domain profile from any domain profile reference this domain profile may have.
|
String |
getFMWVersionRange()
Returns the range of FMW releases that this model object is supported under.
|
String |
getName()
Returns the name.
|
String |
getSchemaVersion()
Returns the version of the EnvSpec (XML) schema that applies to this model.
|
List<Server> |
getServers()
Returns the list of servers defined in this domain profile.
|
List<Target> |
getTargets()
Returns the list of targets defined in this domain profile.
|
String |
getVersion()
Returns the consumer specified version of the this model file.
|
DomainProfile |
removeDomainProfile()
Removes the domainProfile of this DomainProfile
|
DomainProfile |
removeServers()
Removes the servers of this DomainProfile
|
DomainProfile |
setBlueprints(List<Blueprint> blueprints)
Sets a list of Blueprints replacing the existing list of blueprints in this domain profile.
|
DomainProfile |
setClusters(List<Cluster> clusters)
Sets the list of Clusters in this DomainProfile.
|
DomainProfile |
setDomainProfile(DomainProfile domainProfile)
Set the child domain profile to the domain profile specified in domainProfile.
|
DomainProfile |
setDomainProfile(String domainProfileName)
Set the child domain profile by loading the domain profile identified by the domainProfileName.
|
DomainProfile |
setDomainProfile(String domainProfileName, String version, EnvironmentModelFileLocator locator)
Set the child domain profile by loading the domain profile identified by the domainProfileName.
|
DomainProfile |
setFMWVersionRange(String fmwVersionRange)
Sets the the range of FMW releases that this model object is supported under.
|
DomainProfile |
setName(String name)
Sets the name.
|
DomainProfile |
setSchemaVersion(String schemaVersion)
Sets the version of the EnvSpec (XML) schema that applies to this model.
|
DomainProfile |
setServers(List<Server> servers)
Sets the list of Servers in this DomainProfile.
|
DomainProfile |
setTargets(List<Target> targets)
Sets the list of targets defined in this DomainProfile.
|
DomainProfile |
setVersion(String version)
Sets the consumer specified version of the their model file.
|
String |
toCompactString()
Returns a compact string representation of the object in JSON format.
|
String |
toString()
Returns a string representation of the object in JSON format.
|
String |
toXmlCompactString()
Returns a compact string representation of the object in XML format.
|
String |
toXmlString()
Returns a string representation of the object in XML format.
|
void |
validate(oracle.fmwplatform.util.validation.Validate validate) |
public boolean addBlueprint(Blueprint blueprint) throws IllegalArgumentException
blueprint
- The blueprint to be addedtrue
if the list of Blueprints changed as a result of this callIllegalArgumentException
- if input parameter is nullpublic DomainProfile setBlueprints(List<Blueprint> blueprints)
blueprints
- A List of Blueprint objects to be addedtrue
if the list of Blueprints changed as a result of this callIllegalArgumentException
- if input parameter is nullpublic boolean addAllBlueprints(List<Blueprint> blueprints) throws IllegalArgumentException
blueprints
- A List of Blueprint objects to be addedtrue
if the list of Blueprints changed as a result of this callIllegalArgumentException
- if input parameter is nullpublic boolean addBlueprint(String blueprintName, String version, EnvironmentModelFileLocator locator) throws FMWEnvSpecException, IllegalArgumentException
blueprintName
- The name of the blueprint to be addedversion
- The version of the blueprint to be added or null if any version is acceptablelocator
- An EnvironmentModelFileLocator locator that has been initialized with the paths that are to be searched when finding the blueprint or null if only the Oracle Home needs to be searchedtrue
if the list of Blueprints changed as a result of this callFMWEnvSpecException
- The blueprint could not be loadedIllegalArgumentException
- if blueprintName parameter is nullpublic boolean addBlueprint(String blueprintName) throws FMWEnvSpecException
blueprintName
- the name of the Blueprint to be addedtrue
if the list of Blueprints changed as a result of this callFMWEnvSpecException
- The blueprint could not be loadedpublic List<Blueprint> getBlueprints()
public List<Cluster> getClusters()
public DomainProfile getDomainProfile() throws FMWEnvSpecException
FMWEnvSpecException
- if domain profile reference cannot be read.public String getName()
oracle.fmwplatform.envspec.common.Versioned
getName
in interface oracle.fmwplatform.envspec.common.Versioned
public String getSchemaVersion()
oracle.fmwplatform.envspec.common.Versioned
getSchemaVersion
in interface oracle.fmwplatform.envspec.common.Versioned
public List<Server> getServers()
public List<Target> getTargets()
public String getVersion()
oracle.fmwplatform.envspec.common.Versioned
getVersion
in interface oracle.fmwplatform.envspec.common.Versioned
public String getFMWVersionRange()
oracle.fmwplatform.envspec.common.Versioned
getFMWVersionRange
in interface oracle.fmwplatform.envspec.common.Versioned
public DomainProfile setFMWVersionRange(String fmwVersionRange)
oracle.fmwplatform.envspec.common.Versioned
setFMWVersionRange
in interface oracle.fmwplatform.envspec.common.Versioned
fmwVersionRange
- the range of FMW releases that this model object is supported underpublic DomainProfile setClusters(List<Cluster> clusters)
clusters
- the list of Clusters to be added this DomainProfilepublic boolean addCluster(Cluster cluster) throws IllegalArgumentException
cluster
- The Cluster to be addedtrue
if the list of Blueprints changed as a result of this callIllegalArgumentException
- if input parameter is nullpublic boolean addAllClusters(List<Cluster> clusters) throws IllegalArgumentException
clusters
- A List of Cluster objects to be addedtrue
if the list of Blueprints changed as a result of this callIllegalArgumentException
- if input parameter is nullpublic DomainProfile setDomainProfile(DomainProfile domainProfile) throws IllegalArgumentException
domainProfile
- The domain profile to be set as the child of this domain profileIllegalArgumentException
public DomainProfile removeDomainProfile()
public DomainProfile setDomainProfile(String domainProfileName, String version, EnvironmentModelFileLocator locator) throws FMWEnvSpecException
domainProfileName
- The name of the domain profile to be set as the child domain profileversion
- The version of the domain profile to be added or null if any version is acceptablelocator
- An EnvironmentModelFileLocator locator that has been initialized with the paths that are to be searched when finding the domain profile or null if only the Oracle Home needs to be searchedFMWEnvSpecException
- The domain profile could not be loadedpublic DomainProfile setDomainProfile(String domainProfileName) throws FMWEnvSpecException
domainProfileName
- The name of the domain profile to be addedFMWEnvSpecException
- The domain profile could not be loadedpublic DomainProfile setName(String name)
oracle.fmwplatform.envspec.common.Versioned
setName
in interface oracle.fmwplatform.envspec.common.Versioned
name
- the namepublic DomainProfile setSchemaVersion(String schemaVersion)
oracle.fmwplatform.envspec.common.Versioned
setSchemaVersion
in interface oracle.fmwplatform.envspec.common.Versioned
schemaVersion
- the version of the EnvSpec (XML) schema that applies to this modelpublic DomainProfile setServers(List<Server> servers) throws IllegalArgumentException
servers
- the Servers that are to be contained in this DomainProfileIllegalArgumentException
public DomainProfile removeServers()
public boolean addAllServers(List<Server> servers) throws IllegalArgumentException
servers
- list of String objects to addtrue
if the list of servers changed as a result of this callIllegalArgumentException
- if input parameter is nullpublic boolean addServer(Server server) throws IllegalArgumentException
server
- the Cluster object to addtrue
if the list of servers changed as a result of this callIllegalArgumentException
- if input parameter is nullpublic DomainProfile setTargets(List<Target> targets)
targets
- the list of targets for this DomainProfilepublic boolean addAllTargets(List<Target> targets) throws IllegalArgumentException
targets
- list of String objects to addtrue
if the list of servers changed as a result of this callIllegalArgumentException
- if input parameter is nullpublic boolean addTarget(Target target) throws IllegalArgumentException
target
- the Cluster object to addtrue
if the list of servers changed as a result of this callIllegalArgumentException
- if input parameter is nullpublic DomainProfile setVersion(String version)
oracle.fmwplatform.envspec.common.Versioned
setVersion
in interface oracle.fmwplatform.envspec.common.Versioned
version
- the consumer specified version of the their model file.public void validate(oracle.fmwplatform.util.validation.Validate validate)
validate
in interface oracle.fmwplatform.util.validation.ValidationParticipant
public String toXmlCompactString()
public String toXmlString()
public String toCompactString()