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


java.lang.Object
   com.sun.portal.desktop.admin.mbeans.tasks.DPHelper

DPHelper
public class DPHelper (Code)
This class gets hold of the AdminDPContext object, and provide methods to allow callers to get the dp document(s) and/or other objects from the backend store. The caller needs to provide a SSOToken in the constructor. This class is called by PortalMBean where the amadmin user and password is not directly available but a SSOToken is.


Field Summary
final public static  StringDELIM
    
public static  StringDESKTOP
    
final public static  StringFS
    
final static  intINDENT_SPACES
    
public static  StringSUBSCRIPTIONS
    


Method Summary
static  voidappendBuffer(String a, StringBuffer b, int indent)
    
public static  StringgenerateDPDocument(Document doc)
     Convert a dom document to string.
Parameters:
  doc - The dom document.
public static  ObjectgetAdminDPContext(String portal)
    
public  SetgetAllNames(int level)
     Gets all node name from the root node.
Parameters:
  level - The search level.
public  SetgetAllNamesFromBase(String base, int level, boolean includeParent)
     Gets all node name for given base.
Parameters:
  base - The base dn.
Parameters:
  level - The search level.
Parameters:
  includeParent - True if the client also wants search allthe parent nodes.
public  StringgetDPDocument(String base)
     Gets the dp document as String.
Parameters:
  base - The base where the dp document is stored.
public static  DPHelpergetDPHelper(PSConfigContext pcc, SSOToken ssoToken, String portal)
     Static method to get hold of the Java class.
public  DocumentgetDocument(String base)
     Gets the dp document by given base.
Parameters:
  base - The base where the dp document is stored.
public  SetgetDocumentNames(String base, int level)
     Gets all the document names associated with the given base.
public  SetgetDocumentNames(int level)
     Gets all the document names from the top most node.
public  MapgetDocuments(Set nodes, int level)
     Gets all the documents associated with the given set of nodes.
public  booleangetServiceAttributes(String dn, Properties prop)
     Get service attribute value from the dp admin context, and store the service attribute name and value pairs into the passed in Properties object.
public  booleanisGlobal(String base)
     Check if the given base is the global key.
public  voidremoveDPDocument(String base)
    
public static  voidsetLogger(Logger logger)
    
public  voidsetServiceAttribute(String base, String key, String val, boolean isGlobal)
     Sets the attribute value.
public  voidstoreCombinedDPDocument(boolean isGlobal, String base, String dp)
    
public  voidstoreDPDocument(String base, String dp)
    
public  voidstoreGlobalDPDocument(String dp)
     Stores the global dp document.
static  voidtoStringBuffer(Node n, StringBuffer b, int indent)
    

Field Detail
DELIM
final public static String DELIM(Code)



DESKTOP
public static String DESKTOP(Code)



FS
final public static String FS(Code)



INDENT_SPACES
final static int INDENT_SPACES(Code)



SUBSCRIPTIONS
public static String SUBSCRIPTIONS(Code)





Method Detail
appendBuffer
static void appendBuffer(String a, StringBuffer b, int indent)(Code)



generateDPDocument
public static String generateDPDocument(Document doc)(Code)
Convert a dom document to string.
Parameters:
  doc - The dom document. A String contains the dp document.



getAdminDPContext
public static Object getAdminDPContext(String portal) throws DesktopDataException(Code)



getAllNames
public Set getAllNames(int level)(Code)
Gets all node name from the root node.
Parameters:
  level - The search level. A Set of node names.
See Also:   com.sun.portal.desktop.context.AdminDPContext.getAllNames



getAllNamesFromBase
public Set getAllNamesFromBase(String base, int level, boolean includeParent)(Code)
Gets all node name for given base.
Parameters:
  base - The base dn.
Parameters:
  level - The search level.
Parameters:
  includeParent - True if the client also wants search allthe parent nodes. A Set of node names.getAllNamesFromBase()
See Also:   com.sun.portal.desktop.context.AdminDPContext.getAllNamesFromBase



getDPDocument
public String getDPDocument(String base)(Code)
Gets the dp document as String.
Parameters:
  base - The base where the dp document is stored. Forexample, if the dp document is store in the LDAP, the base isthe dn of the LDAP node. The dp document based on the given location.



getDPHelper
public static DPHelper getDPHelper(PSConfigContext pcc, SSOToken ssoToken, String portal) throws DesktopDataException(Code)
Static method to get hold of the Java class.
Parameters:
  ssoToken - The SSOToken to allow execute onthe underling Identity API.
Parameters:
  prop - The desktopconfig properties file name, which isrequired to get the DSAMEAdminDPContext object.
Parameters:
  portal - the portal id. The DPHelper class object.



getDocument
public Document getDocument(String base)(Code)
Gets the dp document by given base.
Parameters:
  base - The base where the dp document is stored. Forexample, if the dp document is store in the LDAP, the base isthe dn of the LDAP node. The dp document based on the given location.



getDocumentNames
public Set getDocumentNames(String base, int level)(Code)
Gets all the document names associated with the given base. This method performs the same function as the getDocuments() method, except that it will just get the list of the keys and returns a Set of the document keys.
Parameters:
  base - The base target where the search begins. Forexample, if the dp document is stored in the LDAP, the base will be the dn of the LDAP node, and the search will be basedon this dn.
Parameters:
  level - Specifies the scope of the search level. A Set of keys.



getDocumentNames
public Set getDocumentNames(int level)(Code)
Gets all the document names from the top most node. This method performs the same function as the getDocuments() method, except that it will just get the list of the keys and returns a Set of the document keys.
Parameters:
  level - A Set of keys.



getDocuments
public Map getDocuments(Set nodes, int level)(Code)
Gets all the documents associated with the given set of nodes. The documents list includes all the dp documents that are the children of the given base.
Parameters:
  nodes - The set of nodes that the documents are associated with.
Parameters:
  level - Specifies the scope of the search level. A Map of key, document pair.



getServiceAttributes
public boolean getServiceAttributes(String dn, Properties prop) throws DesktopDataException(Code)
Get service attribute value from the dp admin context, and store the service attribute name and value pairs into the passed in Properties object.
Parameters:
  dn - Node where the dp attributes are stored
Parameters:
  prop - Properties object that will store the attributevalues boolean true if there is attribute foundin this node, false otherwise.



isGlobal
public boolean isGlobal(String base)(Code)
Check if the given base is the global key.
Parameters:
  base - The base true if the base is the global key; fase otherwise



removeDPDocument
public void removeDPDocument(String base)(Code)



setLogger
public static void setLogger(Logger logger)(Code)



setServiceAttribute
public void setServiceAttribute(String base, String key, String val, boolean isGlobal) throws DesktopDataException(Code)
Sets the attribute value.
Parameters:
  dn - The distinguish name.
Parameters:
  key - The attribute name.
Parameters:
  val - The attribute value.



storeCombinedDPDocument
public void storeCombinedDPDocument(boolean isGlobal, String base, String dp) throws DesktopDataException(Code)



storeDPDocument
public void storeDPDocument(String base, String dp) throws DesktopDataException(Code)



storeGlobalDPDocument
public void storeGlobalDPDocument(String dp) throws DesktopDataException(Code)
Stores the global dp document.
Parameters:
  dp - The dp document.
See Also:   com.sun.portal.desktop.context.AdminDPContext.storeGlobalDPDocument



toStringBuffer
static void toStringBuffer(Node n, StringBuffer b, int indent)(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)

w__ww_._j__a___v___a_2s.__c___o_m___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.