Java Doc for DSAMEConnection.java in  » Portal » Open-Portal » com » sun » portal » desktop » context » 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.portal.desktop.context 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.portal.desktop.context.DSAMEConnection

DSAMEConnection
public class DSAMEConnection implements DSAMEConstants(Code)


Field Summary
final protected static  StringGLOBAL_KEY
    
final public static  StringROC_NODE_NAMES
    
final public static  StringROC_ROLES
    
protected  AMStoreConnectionconnection
    
protected  ServiceManagerserviceManager
    
protected  AMUseruser
    

Constructor Summary
public  DSAMEConnection(HttpServletRequest req)
    
public  DSAMEConnection(SSOToken token)
     DSAMEConnection with no logging support (i.e.
public  DSAMEConnection(SSOToken token, String portalId)
    
public  DSAMEConnection(String uid, String pw)
    

Method Summary
public  StringgetAttribute(String attributeName)
     Gets USER/DYNAMIC attribute.
Parameters:
  attributeName - Name of the attribute to retrieve The attribute value in String format.
public  StringgetAttributeByDN(String dn, String key)
     Gets a DSAME attribute corresponding to the given DN. It first tries to determine what type of object is represented by the given DN and then retrieve the attribute accordingly.
public  StringgetAttributeByDNFromROC(String dn, String key)
    
public  byte[]getAttributeByteArray(String attributeName)
    
public  byte[]getAttributeByteArrayFromROC(String key)
    
public  StringgetAttributeFromROC(String key)
    
public  SetgetAttributeMultiVal(String attributeName)
     Gets multi-valued USER/DYNAMIC attribute.
Parameters:
  attributeName - Name of the attribute to retrieve Set of String values.
public  SetgetChildrenNodeNames(String dn, int level)
    
public  SetgetChildrenNodeNames(int level)
    
public  StringgetGlobalAttribute(String serviceName, String attributeName)
    
protected  StringgetGlobalAttributeFromROC(String service, String key)
    
public  SetgetGlobalAttributeMultiVal(String serviceName, String attributeName)
    
protected  SetgetGlobalAttributeMultiValueFromROC(String service, String key)
    
public  MapgetGlobalAttributes(String serviceName)
    
public  intgetIntAttribute(String attributeName)
     Gets USER/DYNAMIC attribute in int.
Parameters:
  attributeName - Name of the attribute to retrieve The attribute value in int.
public  SetgetNodeNames(String dn)
    
public  SetgetNodeNames()
    
public  SetgetNodeNamesFromROC()
    
public  StringgetOrgAttributeFromROC(String service, String key)
    
public  StringgetOrganizationAttribute(String serviceName, String attributeName)
     Gets ORGANIZATION attribute.
public  StringgetPolicyAttribute(String attributeName)
    
public  SetgetRoleDNs()
    
public  SetgetRoleDNsFromROC()
    
public static  StringgetRootDN()
    
protected static  SSOTokengetSSOToken(HttpServletRequest request)
    
protected static  SSOTokenManagergetSSOTokenManager()
    
public  SetgetTemplateAttributeMultiVal(String dn, String serviceName, String attributeName)
    
protected  voidinit(SSOToken token)
    
public  booleanisGlobal(String dn)
    
public  booleanisServiceAssigned(String dn, String serviceName)
    
public  voidprefetchAttributes(Set names)
    
public  voidremoveAttributeByDN(String dn, String key)
     Removes Display Profile document corresponding to the given DN. Note that this does not take merging into consideration. It first tries to determine what type of object is represented by the given DN and then removes the Display Profile accordingly.
public  voidremoveGlobalAttribute(String serviceName, String attributeName)
    
public  voidsetAttribute(String attributeName, String val)
     Sets USER/DYNAMIC attribute.
public  voidsetAttributeByDN(String dn, String key, String val)
    
public  voidsetAttributesByDN(String dn, String serviceName, String key, Set vals)
    
public  voidsetGlobalAttribute(String serviceName, String attributeName, String val)
    
public  voidsetGlobalAttributes(String serviceName, String attributeName, Set vals)
    

Field Detail
GLOBAL_KEY
final protected static String GLOBAL_KEY(Code)



ROC_NODE_NAMES
final public static String ROC_NODE_NAMES(Code)



ROC_ROLES
final public static String ROC_ROLES(Code)



connection
protected AMStoreConnection connection(Code)



serviceManager
protected ServiceManager serviceManager(Code)



user
protected AMUser user(Code)




Constructor Detail
DSAMEConnection
public DSAMEConnection(HttpServletRequest req)(Code)
DSAMEConnection called from provider and servlet



DSAMEConnection
public DSAMEConnection(SSOToken token)(Code)
DSAMEConnection with no logging support (i.e. Used by application context)



DSAMEConnection
public DSAMEConnection(SSOToken token, String portalId)(Code)
Called by CLIs and mbeans only, who have the portalId All other constructors are used from the webapp for which the portalId is set as System property in the JVM of webcontainer's instance



DSAMEConnection
public DSAMEConnection(String uid, String pw)(Code)




Method Detail
getAttribute
public String getAttribute(String attributeName)(Code)
Gets USER/DYNAMIC attribute.
Parameters:
  attributeName - Name of the attribute to retrieve The attribute value in String format. If property isnot not found, return null. If DSAME returns multi-value,warning is issued and only the first value is returned.



getAttributeByDN
public String getAttributeByDN(String dn, String key)(Code)
Gets a DSAME attribute corresponding to the given DN. It first tries to determine what type of object is represented by the given DN and then retrieve the attribute accordingly. If DN represents a user entry, then it returns the user's attribute. If DN represents an organization, it returns the attribute from the template associated with the organization. NOTE: DSAME does not allow attributes to be retrieved from the user level, without attempting to walk up to the role / org levels to find the value. Here, it is assumed that user level attr keys are equals to the attribute key + User.
Parameters:
  dn - DN of the attribute to retrieve Attribute value.



getAttributeByDNFromROC
public String getAttributeByDNFromROC(String dn, String key)(Code)



getAttributeByteArray
public byte[] getAttributeByteArray(String attributeName)(Code)



getAttributeByteArrayFromROC
public byte[] getAttributeByteArrayFromROC(String key)(Code)



getAttributeFromROC
public String getAttributeFromROC(String key)(Code)



getAttributeMultiVal
public Set getAttributeMultiVal(String attributeName)(Code)
Gets multi-valued USER/DYNAMIC attribute.
Parameters:
  attributeName - Name of the attribute to retrieve Set of String values. If property isnot not found, return null.



getChildrenNodeNames
public Set getChildrenNodeNames(String dn, int level)(Code)



getChildrenNodeNames
public Set getChildrenNodeNames(int level)(Code)



getGlobalAttribute
public String getGlobalAttribute(String serviceName, String attributeName)(Code)



getGlobalAttributeFromROC
protected String getGlobalAttributeFromROC(String service, String key)(Code)



getGlobalAttributeMultiVal
public Set getGlobalAttributeMultiVal(String serviceName, String attributeName)(Code)



getGlobalAttributeMultiValueFromROC
protected Set getGlobalAttributeMultiValueFromROC(String service, String key)(Code)



getGlobalAttributes
public Map getGlobalAttributes(String serviceName)(Code)



getIntAttribute
public int getIntAttribute(String attributeName)(Code)
Gets USER/DYNAMIC attribute in int.
Parameters:
  attributeName - Name of the attribute to retrieve The attribute value in int. If property isnot not found, return null. If DSAME returns multi-value,warning is issued and only the first value is returned.



getNodeNames
public Set getNodeNames(String dn)(Code)



getNodeNames
public Set getNodeNames()(Code)



getNodeNamesFromROC
public Set getNodeNamesFromROC()(Code)



getOrgAttributeFromROC
public String getOrgAttributeFromROC(String service, String key)(Code)



getOrganizationAttribute
public String getOrganizationAttribute(String serviceName, String attributeName)(Code)
Gets ORGANIZATION attribute. Internally this translates to a template attribute set at the org. level that the current user belongs to.
Parameters:
  serviceName - Name of the service
Parameters:
  attributeName - Name of the attribute to retrieve The attribute value in String format. If property isnot not found, return null. If DSAME returns multi-value,warning is issued and only the first value is returned.



getPolicyAttribute
public String getPolicyAttribute(String attributeName)(Code)



getRoleDNs
public Set getRoleDNs()(Code)
Get the set of role DNs for the user



getRoleDNsFromROC
public Set getRoleDNsFromROC()(Code)
returns all roles - static as well as filtered



getRootDN
public static String getRootDN()(Code)



getSSOToken
protected static SSOToken getSSOToken(HttpServletRequest request)(Code)



getSSOTokenManager
protected static SSOTokenManager getSSOTokenManager()(Code)



getTemplateAttributeMultiVal
public Set getTemplateAttributeMultiVal(String dn, String serviceName, String attributeName)(Code)



init
protected void init(SSOToken token)(Code)



isGlobal
public boolean isGlobal(String dn)(Code)



isServiceAssigned
public boolean isServiceAssigned(String dn, String serviceName)(Code)



prefetchAttributes
public void prefetchAttributes(Set names)(Code)



removeAttributeByDN
public void removeAttributeByDN(String dn, String key)(Code)
Removes Display Profile document corresponding to the given DN. Note that this does not take merging into consideration. It first tries to determine what type of object is represented by the given DN and then removes the Display Profile accordingly. If DN represents a user entry, then it removes the user's Display profile. If DN represents an organization, it removes the Display profile from the template associated with the organization.
Parameters:
  dn - DN of the display profile to remove



removeGlobalAttribute
public void removeGlobalAttribute(String serviceName, String attributeName)(Code)



setAttribute
public void setAttribute(String attributeName, String val)(Code)
Sets USER/DYNAMIC attribute.
Parameters:
  attributeName - Name of the attribute to retrieve
Parameters:
  val - Value of the attribute



setAttributeByDN
public void setAttributeByDN(String dn, String key, String val)(Code)



setAttributesByDN
public void setAttributesByDN(String dn, String serviceName, String key, Set vals)(Code)



setGlobalAttribute
public void setGlobalAttribute(String serviceName, String attributeName, String val)(Code)



setGlobalAttributes
public void setGlobalAttributes(String serviceName, String attributeName, Set vals)(Code)



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.