Oracle Fusion Middleware
Java API Reference for Oracle BPM Suite
11g Release 1 (11.1.1.7.0)
E25378-07

oracle.tip.pc.services.identity.config
Class Configuration

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<java.lang.Object,java.lang.Object>
          extended by java.util.Properties
              extended by oracle.tip.pc.services.identity.config.ConfigurationProperties
                  extended by oracle.tip.pc.services.identity.config.Configuration
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,java.lang.Object>

public class Configuration
extends ConfigurationProperties

This class represents configuration as described in the configuration file.

Since:
release specific (what release of product did this appear in)
See Also:
Serialized Form

Constructor Summary
Configuration(org.w3c.dom.Element element)
          Constructor Constructs a Configuration object out of the XML element.
Configuration(ISConfiguration isconfig, oracle.soa.management.config.identity.ConfigurationType config)
          Constructor Constructs a Configuration object out of the JAXB model object.
Configuration(ISConfiguration isconfig, org.w3c.dom.Element element)
          Constructor Constructs a Configuration object out of the XML element.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Check if object same
 java.lang.String getDisplayName()
          Gets display name associated with this configuration.
 ISConfiguration getISConfiguration()
          Gets the parent ISConfiguration of this configuration.
 ProviderCfg getProviderCfg(java.lang.String serviceName)
          Gets a ProviderCfg associated with the given service name.
 java.util.Map getProviders()
          Gets a Map of the providers associated with this configuration.
 java.lang.String getRealmName()
          Gets the name of the logical realm associated with this configuration.
 java.util.Map<java.lang.String,oracle.soa.management.config.identity.ServiceExtensionType> getServiceExtensions()
          Gets a ServiceExtesnions defined for the configurations
 IServiceProvider getServiceProviderInstance(oracle.soa.management.config.identity.ServiceProviderExtensionType serviceProviderType)
          Gets the instance of the service provider from the configuration.
 int hashCode()
          hash code for ISConfiguration
 boolean isDefault()
          Check if configuration is default
 boolean setDefault()
          Set configuration to be default
 java.lang.String toString()
          To String
 org.w3c.dom.Element toXMLElement(org.w3c.dom.Document doc, org.w3c.dom.Element rootElt)
          Returns an XMLElement representation of this configuration.
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, get, isEmpty, keys, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Configuration

public Configuration(ISConfiguration isconfig,
                     org.w3c.dom.Element element)
              throws BPMConfigException
Constructor Constructs a Configuration object out of the XML element. This element is expected to adhere to the schema definition.

Parameters:
isconfig - An ISConfiguration instance that is obtained using the ISConfigurationService. This instance is the parent of this Configuration. It can be null.
element - An XML element representing the configuration.
Throws:
BPMConfigException - If the element is malformed.

Configuration

public Configuration(ISConfiguration isconfig,
                     oracle.soa.management.config.identity.ConfigurationType config)
              throws BPMConfigException
Constructor Constructs a Configuration object out of the JAXB model object.

Parameters:
isconfig - An ISConfiguration instance that is obtained using the ISConfigurationService. This instance is the parent of this Configuration. It can be null.
config - A JAXB model object representing the Configration.
Throws:
BPMConfigException - If the model object does not have a realm associated with it.

Configuration

public Configuration(org.w3c.dom.Element element)
              throws BPMConfigException
Constructor Constructs a Configuration object out of the XML element. This element is expected to adhere to the schema definition.

Parameters:
element - An XML element representing the configuration.
Throws:
BPMConfigException - If the element is malformed.
Method Detail

getISConfiguration

public ISConfiguration getISConfiguration()
Gets the parent ISConfiguration of this configuration. Value is null if non is associated.

Returns:
An ISConfiguration instance or null.

getRealmName

public java.lang.String getRealmName()
Gets the name of the logical realm associated with this configuration.

Returns:
Name of the logical realm.

getDisplayName

public java.lang.String getDisplayName()
Gets display name associated with this configuration.

Returns:
display name

isDefault

public boolean isDefault()
Check if configuration is default

Returns:
true if default, else false

setDefault

public boolean setDefault()
Set configuration to be default


getProviders

public java.util.Map getProviders()
Gets a Map of the providers associated with this configuration. The Map has ProviderCfg instnaces with the service name as the key.

Returns:
Map(SerivceName, ProviderCfg)

getProviderCfg

public ProviderCfg getProviderCfg(java.lang.String serviceName)
                           throws BPMConfigException
Gets a ProviderCfg associated with the given service name. If no provider is found, then the default is returned.

Parameters:
serviceName - The name of the service for which a provider is to be fetched.
Returns:
ProviderCfg
Throws:
BPMConfigException - If there are no providers associated at all.

toXMLElement

public org.w3c.dom.Element toXMLElement(org.w3c.dom.Document doc,
                                        org.w3c.dom.Element rootElt)
Returns an XMLElement representation of this configuration.

Parameters:
doc - A Document which is expected to contain this configuration as a child.
rootElt - An element that is to contain this configuration as a child.
Returns:
root Element. Returns null if a problem is encountered.

hashCode

public int hashCode()
hash code for ISConfiguration

Specified by:
hashCode in interface java.util.Map<java.lang.Object,java.lang.Object>
Overrides:
hashCode in class java.util.Hashtable<java.lang.Object,java.lang.Object>
Returns:
hash code

equals

public boolean equals(java.lang.Object obj)
Check if object same

Specified by:
equals in interface java.util.Map<java.lang.Object,java.lang.Object>
Overrides:
equals in class java.util.Hashtable<java.lang.Object,java.lang.Object>
Parameters:
obj -
Returns:
true, if same, else false

toString

public java.lang.String toString()
To String

Overrides:
toString in class ConfigurationProperties
Returns:
string representation

getServiceExtensions

public java.util.Map<java.lang.String,oracle.soa.management.config.identity.ServiceExtensionType> getServiceExtensions()
Gets a ServiceExtesnions defined for the configurations


getServiceProviderInstance

public IServiceProvider getServiceProviderInstance(oracle.soa.management.config.identity.ServiceProviderExtensionType serviceProviderType)
                                            throws BPMIdentityException
Gets the instance of the service provider from the configuration. If the configuration does not have the provider defined, returns null;

Parameters:
serviceProviderType -
Returns:
Throws:
BPMIdentityException

Oracle Fusion Middleware
Java API Reference for Oracle BPM Suite
11g Release 1 (11.1.1.7.0)
E25378-07

Copyright © 2009, 2013, Oracle and/or its affiliates. All rights reserved.