Java Doc for ConfigurationFactory.java in  » Portal » Open-Portal » com » sun » ssoadapter » config » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » Open Portal » com.sun.ssoadapter.config 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.ssoadapter.config.ConfigurationFactory

ConfigurationFactory
public class ConfigurationFactory implements ConfigurationConstants(Code)
This class is used to create, destroy, and manipulate configurations and instances of Configuration objects.

A ConfigurationFactory is associated with the following:

  • A DSAME service.
  • An attribute within that service that contains configuration information, where this information is encoded as multiple URLs. Typically, this attribute is defined as a DSAME "User" attribute.
  • An attribute within that service that contains a "Configuration Description". Typically, this attribute is defined as a DSAME "Organization" attribute.

A cache of ConfigurationFactory objects is maintained, such that only a single instance of a ConfigurationFactory is created for each combination of the above listed values, i.e., service, configuration attribute name, and configuration description attribute name.

A ConfigurationFactory manages a cache of Configuration objects that are derived from the aforementioned information. These Configuration objects are managed on a per user basis.
version:
   1.0
See Also:   com.sun.ssoadapter.config.ConfigurationException



Field Summary
final public static  StringDEFAULT_DESC_ATTR
    


Method Summary
public  ConfigurationcomputeMergedConfiguration(Configuration config, SSOAdapterSession session)
     Merge the given configuration with it's Configuration Description.
public  EnumerationgetConfigurationNames(SSOAdapterSession session)
     Returns an Enumeration of configuration names available to the user.

Each value of the Enumeration is a String representing the name of a configuration created by and/or available to the user.

The values of the enumeration are sorted according to the rules of the TreeMap class.
Parameters:
  session - Contains information which is presumed to be sufficientto create an SSOToken, that is used to identifythe user on who's behalf the session is being processed.

public static  ConfigurationFactorygetInstance(String serviceName, String rootAttributeName)
     Returns (and instantiates if necessary), an instance of ConfigurationFactory.

The ConfigurationFactory returned by this method will manipulate Configuration objects that are derived from DSAME information referenced by the method parameters, but the configuration description attribute name will default to "sunConfigurationDescription".
Parameters:
  serviceName - Identifies the DSAME service that contains configurationinformation.
Parameters:
  rootAttributeName - Identifies the DSAME attribute that containsthe user specific configuration information.

public static  ConfigurationFactorygetInstance(String serviceName, String rootAttributeName, String descAttributeName)
     Returns (and instantiates if necessary), an instance of ConfigurationFactory.

The ConfigurationFactory returned by this method will manipulate Configuration objects that are derived from DSAME information referenced by the method parameters.
Parameters:
  serviceName - Identifies the DSAME service that contains configurationinformation.
Parameters:
  rootAttributeName - Identifies the DSAME attribute that containsthe user specific configuration information.
Parameters:
  descAttributeName - Identifies the DSAME attribute that containsa configuration description that may be usedto control the construction of Configurationobjects.

public  booleanisConfigurationUserEditable(String configName, SSOAdapterSession session)
     Determines if the Configuration named by "configName", that was or would be created by this instance of ConfigurationFactory, contains any information provided by the user.
public  booleanisMergeDynamicConfigurations()
    
public  ConfigurationreadConfiguration(String configName, boolean useDesc, SSOAdapterSession session)
     Returns a Configuration object that is constructed based upon information contained in the DSAME service and attributes associated with this ConfigurationFactory.

If the user has previously requested this Configuration, it is returned from a cache, otherwise, a Configuration object is constructed in the following fashion:

  1. The multi-valued "User" attribute is read based upon the serviceName and rootAttributeName associated with this ConfigurationFactory.
public  voidremoveConfiguration(String configName, SSOAdapterSession session)
     Removes a configuration from the DSAME service and attribute associated with this ConfigurationFactory.
public  voidsetMergeDynamicConfigurations(boolean flag)
    
public  voidwriteConfiguration(Configuration config, SSOAdapterSession session)
     Writes a configuration into the DSAME service and attribute associated with this ConfigurationFactory.

If the Configuration object specifies a Configuration Description, then it is expected that the Configuration Description specifies which values belong to the user, and only those values will be written.


Field Detail
DEFAULT_DESC_ATTR
final public static String DEFAULT_DESC_ATTR(Code)





Method Detail
computeMergedConfiguration
public Configuration computeMergedConfiguration(Configuration config, SSOAdapterSession session) throws ConfigurationException(Code)
Merge the given configuration with it's Configuration Description.

If a configuration description is specified by "config", and if that config desc does not permit a merge, then a null object will be returned.
Parameters:
  config -
Parameters:
  session -
throws:
  com.sun.ssoadapter.config.ConfigurationException -




getConfigurationNames
public Enumeration getConfigurationNames(SSOAdapterSession session)(Code)
Returns an Enumeration of configuration names available to the user.

Each value of the Enumeration is a String representing the name of a configuration created by and/or available to the user.

The values of the enumeration are sorted according to the rules of the TreeMap class.
Parameters:
  session - Contains information which is presumed to be sufficientto create an SSOToken, that is used to identifythe user on who's behalf the session is being processed. Enumeration An enumeration of names. Returns null if problem occurs.




getInstance
public static ConfigurationFactory getInstance(String serviceName, String rootAttributeName)(Code)
Returns (and instantiates if necessary), an instance of ConfigurationFactory.

The ConfigurationFactory returned by this method will manipulate Configuration objects that are derived from DSAME information referenced by the method parameters, but the configuration description attribute name will default to "sunConfigurationDescription".
Parameters:
  serviceName - Identifies the DSAME service that contains configurationinformation.
Parameters:
  rootAttributeName - Identifies the DSAME attribute that containsthe user specific configuration information. ConfigurationFactory Returns factory if successful, null otherwise.




getInstance
public static ConfigurationFactory getInstance(String serviceName, String rootAttributeName, String descAttributeName)(Code)
Returns (and instantiates if necessary), an instance of ConfigurationFactory.

The ConfigurationFactory returned by this method will manipulate Configuration objects that are derived from DSAME information referenced by the method parameters.
Parameters:
  serviceName - Identifies the DSAME service that contains configurationinformation.
Parameters:
  rootAttributeName - Identifies the DSAME attribute that containsthe user specific configuration information.
Parameters:
  descAttributeName - Identifies the DSAME attribute that containsa configuration description that may be usedto control the construction of Configurationobjects. ConfigurationFactory Returns factory if successful, null otherwise.




isConfigurationUserEditable
public boolean isConfigurationUserEditable(String configName, SSOAdapterSession session) throws ConfigurationException(Code)
Determines if the Configuration named by "configName", that was or would be created by this instance of ConfigurationFactory, contains any information provided by the user.

This is equivalent to asking: "Is this Configuration user editable"? true, if Configuration is user derived, false otherwise.
Parameters:
  configName - Name of the Configuration to be tested.
Parameters:
  session - Contains information which is presumed to be sufficientto create an SSOToken, that is used to identifythe user on who's behalf the session is being processed.
throws:
  com.sun.ssoadapter.config.ConfigurationException -




isMergeDynamicConfigurations
public boolean isMergeDynamicConfigurations()(Code)



readConfiguration
public Configuration readConfiguration(String configName, boolean useDesc, SSOAdapterSession session) throws ConfigurationException(Code)
Returns a Configuration object that is constructed based upon information contained in the DSAME service and attributes associated with this ConfigurationFactory.

If the user has previously requested this Configuration, it is returned from a cache, otherwise, a Configuration object is constructed in the following fashion:

  1. The multi-valued "User" attribute is read based upon the serviceName and rootAttributeName associated with this ConfigurationFactory. Each value of this attribute represents a unique configuration. Processing of this information will be described from the perspective of a particular configuration, though actual implementation is somewhat different.
  2. A "raw" Configuration object is constructed from the information stored in the DSAME "User" attribute specified by this ConfigurationFactory's rootAttributeName.
  3. If the "useDesc" parameter of this method is "false", the raw Configuration object is returned and processing is completed, otherwise...
  4. If the "useDesc" parameter of this method is "true", the configuration description information identified by the descAttributeName of this factory and the value of the "configDesc" property of the raw Configuration previously read will be retrieved.
  5. The configuration description is actually a special type of configuration, that can control the configuration information that is used on behalf of a user. It specifies what information may be provided by the user and what information must be derived from the configuration description. Ultimately, a "merged" Configuration object is created and is returned as the intended configuration.
  6. Note: It is also possible that a Configuration object may be constructed soley from data provided by the Configuration Description, with no data derived from the user attribute.

Parameters:
  configName - Specifies the name of the configuration to retrieve.
Parameters:
  useDesc - If "true", a "merged" Configuration is returned, otherwise,the "raw" Configuration is returned.
Parameters:
  session - Contains information which is presumed to be sufficientto create an SSOToken, that is used to identifythe user on who's behalf the session is being processed.
throws:
  com.sun.ssoadapter.config.ConfigurationException -



removeConfiguration
public void removeConfiguration(String configName, SSOAdapterSession session) throws ConfigurationException(Code)
Removes a configuration from the DSAME service and attribute associated with this ConfigurationFactory.

Removal of a configuration will result in a notification of all listeners registered with a Configuration object that was created by this ConfigurationFactory for the specified configName.
Parameters:
  configName - Name of the configuration to remove.
Parameters:
  session - Contains information which is presumed to be sufficientto create an SSOToken, that is used to identifythe user on who's behalf the session is being processed.
throws:
  com.sun.ssoadapter.config.ConfigurationException -




setMergeDynamicConfigurations
public void setMergeDynamicConfigurations(boolean flag)(Code)



writeConfiguration
public void writeConfiguration(Configuration config, SSOAdapterSession session) throws ConfigurationException(Code)
Writes a configuration into the DSAME service and attribute associated with this ConfigurationFactory.

If the Configuration object specifies a Configuration Description, then it is expected that the Configuration Description specifies which values belong to the user, and only those values will be written. If a Configuration Description is not specified, the entire Configuration is written.
Parameters:
  config - The Configuration to be written.
Parameters:
  session - Contains information which is presumed to be sufficientto create an SSOToken, that is used to identifythe user on who's behalf the session is being processed.
throws:
  com.sun.ssoadapter.config.ConfigurationException -




Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.