Java Doc for ClientAwareUserContext.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) 


com.sun.ssoadapter.config.ClientAwareUserContext

All known Subclasses:   com.sun.ssoadapter.config.PSClientAwareUserContext,  com.sun.ssoadapter.config.PSClientAwareAuthlessContext,
ClientAwareUserContext
public interface ClientAwareUserContext (Code)
Copied from hana_ws/ps/desktop/src/com/sun/portal/ desktop/context/DesktopContext.java

This object encapsulates objects with user session - ServiceUserContext, SessionUserContext and (global) ClientContext, DebugContext & FileLookupContext.

Till DSAME supports client-aware attribute storage and reteival, the get*Attribute() & set*Attribute() methods of this object will get & set attributes in a client-aware fashion.

The get and set methods depend on the schema definition of the attribute to decide if the client-aware lookup needs to be done. The "any" attribute of the attribute definition in the schema must contain the keyword "client-aware". The "any" attribute now uses only "display", the new definition will become "display,client-aware". Also the attribute must be defined as a"list".

Assume a mailservice attribute for url requiring client specific attributes:
<AttributeSchema name="iplanet-mailservice-urls"
type="list" syntax="string" i18nKey="URLs" any="display,client-aware" >

  <DefaultValues>
    <Value> genericHTML|http://mail.com </Value>
    <Value> WML|http://wap.mail.com </Value>
    <Value> Nokia|http://wap.mail.com/Nokia </Value>
  </DefaultValues>
</AttributeSchema >

get & set *Attributes() look at the clientType in the session. get*Attribute() - Hierarchial lookup will not be done, if a clientType specific attribute is not found, the value of genericHTML will be returned.

set*Attribute() - will always set the attribute for the clientType in the session.





Method Summary
public  SetgetAttribute(Map service, String clientType, String attrName)
     Gets the attributes multi-vals.
public  SetgetAttribute(Map service, String attrName)
     Gets the attributes multi-vals.
public  StringgetStringAttribute(Map service, String clientType, String attrName)
     Gets the attribute.
public  StringgetStringAttribute(Map service, String attrName)
     Gets the attribute.
public  voidinit(SSOAdapterSession session, ClientAwareAppContext caAppContext)
     Initializes the session aware context for the user.
public  voidremoveAttribute(Map service, String attrName)
     Remove an attribute
Parameters:
  service - A list of properties required by the backend service.Ex: DSAME requires a name of the service to set any attributes in theGlobal/Organization scope.
public  voidsetAttribute(Map service, String attrName, Set vals, boolean forceClientAwareness)
     Sets the attribute values.
Parameters:
  service - A list of properties required by the backend service.Ex: DSAME requires a name of the service to set any attributes in theGlobal/Organization scope.
public  voidsetAttribute(Map service, String clientType, String attrName, Set vals)
     Sets the attribute values.
Parameters:
  service - A list of properties required by the backend service.Ex: DSAME requires a name of the service to set any attributes in theGlobal/Organization scope.
public  voidsetAttribute(Map service, String attrName, Set vals)
     Sets the attribute value.
public  voidsetStringAttribute(Map service, String attrName, String val, boolean forceClientAwareness)
     Sets the attribute value.
public  voidsetStringAttribute(Map service, String clientType, String attrName, String val)
     Sets the attribute value.
public  voidsetStringAttribute(Map service, String attrName, String val)
     Sets the attribute value.
public  voidstore()
     Write out any modified data to the persistent store, if necessary.



Method Detail
getAttribute
public Set getAttribute(Map service, String clientType, String attrName) throws IllegalStateException, IOException(Code)
Gets the attributes multi-vals. 'Attributes' are service attributes
Parameters:
  service - A list of properties required by the backend service.Ex: DSAME requires a name of the service to get any attributes in theGlobal/Organization scope. The name of the service is referenced by the keyword "serviceName". Note: If service is null or if the serviceNameis not specified in the Map, then the implementation for DSAMEassumes a scope of User/Dynamic.
Parameters:
  clientType - The clientType specific attribute to look for. If thisis null, the session's clientType value is used.
Parameters:
  attrName - The attribute name. The attribute values as Set. If property isnot found, return null.
exception:
  IllegalStateException - If the session is not valid
exception:
  IOException - If the value could not be retrieved from thedata store.



getAttribute
public Set getAttribute(Map service, String attrName) throws IllegalStateException, IOException(Code)
Gets the attributes multi-vals. 'Attributes' are service attributes
Parameters:
  service - A list of properties required by the backend service.Ex: DSAME requires a name of the service to get any attributes in theGlobal/Organization scope. The name of the service is referenced by the keyword "serviceName". Note: If service is null or if the serviceNameis not specified in the Map, then the implementation for DSAMEassumes a scope of User/Dynamic.
Parameters:
  attrName - The attribute name. The attribute values as Set. If property isnot found, return null.
exception:
  IllegalStateException - If the session is not valid
exception:
  IOException - If the value could not be retrieved from thedata store.



getStringAttribute
public String getStringAttribute(Map service, String clientType, String attrName) throws IllegalStateException, IOException(Code)
Gets the attribute. 'Attributes' are service attributes
Parameters:
  service - A list of properties required by the backend service.Ex: DSAME requires a name of the service to get any attributes in theGlobal/Organization scope. The name of the service is referenced by the keyword "serviceName". Note: If service is null or if the serviceNameis not specified in the Map, then the implementation for DSAMEassumes a scope of User/Dynamic.
Parameters:
  clientType - The clientType specific attribute to look for. If thisis null, the session's clientType value is used.
Parameters:
  attrName - The attribute name. The attribute value in String format. If property isnot found, return null.
exception:
  IllegalStateException - If the session is not valid
exception:
  IOException - If the value could not be retrieved from thedata store.



getStringAttribute
public String getStringAttribute(Map service, String attrName) throws IllegalStateException, IOException(Code)
Gets the attribute. 'Attributes' are service attributes
Parameters:
  service - A list of properties required by the backend service.Ex: DSAME requires a name of the service to get any attributes in theGlobal/Organization scope. The name of the service is referenced by the keyword "serviceName". Note: If service is null or if the serviceNameis not specified in the Map, then the implementation for DSAMEassumes a scope of User/Dynamic.
Parameters:
  attrName - The attribute name. The attribute value in String format. If property isnot found, return null.
exception:
  IllegalStateException - If the session is not valid
exception:
  IOException - If the value could not be retrieved from thedata store.



init
public void init(SSOAdapterSession session, ClientAwareAppContext caAppContext) throws IllegalStateException, SAALException(Code)
Initializes the session aware context for the user.
Parameters:
  session -
Parameters:
  caAppContext - The session-less context (optional - can be null)Useful if some session-less objects are required in this object
throws:
  java.lang.IllegalStateException -
throws:
  com.sun.ssoadapter.config.SAALException -



removeAttribute
public void removeAttribute(Map service, String attrName) throws IllegalStateException, MissingResourceException, IOException(Code)
Remove an attribute
Parameters:
  service - A list of properties required by the backend service.Ex: DSAME requires a name of the service to set any attributes in theGlobal/Organization scope. The name of the service is referenced by the keyword "serviceName". The Map "must" contain this property to work with DSAME. If this property is not found in the map, theDSAME implementation throws a MissingResourceException.
Parameters:
  attrName - The attribute name.
exception:
  IllegalStateException - If the session is not valid
exception:
  IOException - If the value could not be set in thedata store.
exception:
  MissingResourceException - If any of the properties required by thebackend service were missing the the service MAP



setAttribute
public void setAttribute(Map service, String attrName, Set vals, boolean forceClientAwareness) throws IllegalStateException, MissingResourceException, IOException(Code)
Sets the attribute values.
Parameters:
  service - A list of properties required by the backend service.Ex: DSAME requires a name of the service to set any attributes in theGlobal/Organization scope. The name of the service is referenced by the keyword "serviceName". The Map "must" contain this property to work with DSAME. If this property is not found in the map, theDSAME implementation throws a MissingResourceException.
Parameters:
  attrName - The attribute name.
Parameters:
  vals - The attribute values.
Parameters:
  forceClientAwareness - If true and existing attributes are notclient-aware, modifies the old values with "default|" and stores thenew values as "clienttype|value"
exception:
  IllegalStateException - If the session is not valid
exception:
  IOException - If the value could not be set in thedata store.
exception:
  MissingResourceException - If any of the properties required by thebackend service were missing the the service MAP



setAttribute
public void setAttribute(Map service, String clientType, String attrName, Set vals) throws IllegalStateException, MissingResourceException, IOException(Code)
Sets the attribute values.
Parameters:
  service - A list of properties required by the backend service.Ex: DSAME requires a name of the service to set any attributes in theGlobal/Organization scope. The name of the service is referenced by the keyword "serviceName". The Map "must" contain this property to work with DSAME. If this property is not found in the map, theDSAME implementation throws a MissingResourceException.
Parameters:
  clientType - The value is to be set for this clientType. Implicitlyturns forceClientAwareness to TRUE
Parameters:
  attrName - The attribute name.
Parameters:
  vals - The attribute values.
exception:
  IllegalStateException - If the session is not valid
exception:
  IOException - If the value could not be set in thedata store.
exception:
  MissingResourceException - If any of the properties required by thebackend service were missing the the service MAP



setAttribute
public void setAttribute(Map service, String attrName, Set vals) throws IllegalStateException, MissingResourceException, IOException(Code)
Sets the attribute value. New data is persisted immediately. The implicit value for forceClientAwareness is FALSE and the clientType in the sesion will be used if necessary.
Parameters:
  service - A list of properties required by the backend service.Ex: DSAME requires a name of the service to set any attributes in theGlobal/Organization scope. The name of the service is referenced by the keyword "serviceName". The Map "must" contain this property to work with DSAME. If this property is not found in the map, theDSAME implementation throws a MissingResourceException.
Parameters:
  attrName - The attribute name.
Parameters:
  vals - The attribute values.
exception:
  IllegalStateException - If the session is not valid
exception:
  IOException - If the value could not be set in thedata store.
exception:
  MissingResourceException - If any of the properties required by thebackend service were missing the the service MAP



setStringAttribute
public void setStringAttribute(Map service, String attrName, String val, boolean forceClientAwareness) throws IllegalStateException, MissingResourceException, IOException(Code)
Sets the attribute value. New data is persisted immediately. Uses the clientType of the session if necessary.
Parameters:
  service - A list of properties required by the backend service.Ex: DSAME requires a name of the service to set any attributes in theGlobal/Organization scope. The name of the service is referenced by the keyword "serviceName". The Map "must" contain this property to work with DSAME. If this property is not found in the map, theDSAME implementation throws a MissingResourceException.
Parameters:
  attrName - The attribute name.
Parameters:
  val - The attribute value.
Parameters:
  forceClientAwareness - If true and existing attributes are notclient-aware, modifies the old values with "default|" and stores thenew values as "clienttype|value"
exception:
  IllegalStateException - If the session is not valid
exception:
  IOException - If the value could not be set in thedata store.
exception:
  MissingResourceException - If any of the properties required by the backend service were missing the the service MAP



setStringAttribute
public void setStringAttribute(Map service, String clientType, String attrName, String val) throws IllegalStateException, MissingResourceException, IOException(Code)
Sets the attribute value. New data is persisted immediately.
Parameters:
  service - A list of properties required by the backend service.Ex: DSAME requires a name of the service to set any attributes in theGlobal/Organization scope. The name of the service is referenced by the keyword "serviceName". The Map "must" contain this property to work with DSAME. If this property is not found in the map, theDSAME implementation throws a MissingResourceException.
Parameters:
  clientType - The value is to be set for this clientType. Implicitlyturns forceClientAwareness to TRUE
Parameters:
  attrName - The attribute name.
Parameters:
  val - The attribute value.
exception:
  IllegalStateException - If the session is not valid
exception:
  IOException - If the value could not be set in thedata store.
exception:
  MissingResourceException - If any of the properties required by thebackend service were missing the the service MAP



setStringAttribute
public void setStringAttribute(Map service, String attrName, String val) throws IllegalStateException, MissingResourceException, IOException(Code)
Sets the attribute value. New data is persisted immediately. The implicit value for forceClientAwareness is FALSE and the clientType in the sesion will be used if necessary.
Parameters:
  service - A list of properties required by the backend service.Ex: DSAME requires a name of the service to set any attributes in theGlobal/Organization scope. The name of the service is referenced by the keyword "serviceName". The Map "must" contain this property to work with DSAME. If this property is not found in the map, theDSAME implementation throws a MissingResourceException.
Parameters:
  attrName - The attribute name.
Parameters:
  val - The attribute value.
exception:
  IllegalStateException - If the session is not valid
exception:
  IOException - If the value could not be set in thedata store.
exception:
  MissingResourceException - If any of the properties required by thebackend service were missing the the service MAP



store
public void store()(Code)
Write out any modified data to the persistent store, if necessary.



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