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


java.lang.Object
   com.sun.portal.admin.server.mbeans.PSResource
      com.sun.portal.desktop.admin.mbeans.DesktopDynamic

DesktopDynamic
public class DesktopDynamic extends PSResource implements DynamicMBean(Code)


Field Summary
final public static  intBUFFER_SIZE
    
final public static  StringFS
    


Method Summary
public  voiddeleteTempFile(String tempFileName)
     Delete Temporary File.
public  voidexportDesktop(String parFileName, Boolean verbose, Boolean fsOnly, Boolean dpOnly, String searchLevel)
     Export the desktop data.
public  voidexportProvider(String parFileName, Boolean verbose, String dn, Boolean global, byte[][] exportfile)
     Export the provider/channel data.
public  StringgetArchiveFileVersion(String parFileName)
     Reads portal id from the archive file.
public  ObjectgetAttribute(String attribute)
    
public  AttributeListgetAttributes(String[] attributes)
    
public  MBeanInfogetMBeanInfo()
    
public  voidimportDesktop(Boolean verbose, Boolean fsOnly, Boolean dpOnly, Boolean overwrite, Boolean redeploy, String parFileName, Boolean cont, String searchLevel, String dpnode, Boolean skipValidation)
     Import the desktop data to the Portal Server systems.
public  voidimportProvider(String parFileName, Boolean verbose, Boolean overwrite, List operations, String dpnode)
     Import the provider data to the Portal Server systems.

This method is called from the client side which passes in a par file In the case when the Portal Server Instances are installed in different hosts, provider data will be restored back to all of the involved hosts.

public  voidinit(PSConfigContext cc, PortalDomainContext pdc, List path)
    
public  Objectinvoke(String operationName, Object params, String signature)
    
public  voidlImportDesktop(Boolean verbose, Boolean fsOnly, Boolean dpOnly, Boolean overwrite, Boolean redeploy, String parFileName, String portalId, Boolean cont, String searchLevel, String dpnode, Boolean skipValidation)
     Import the desktop data to the Portal Server systems.
public  voidlImportProvider(String parFileName, Boolean verbose, Boolean overwrite, String portalId, List operations, String dpnode, Boolean extractDP)
     Import the provider data to the Portal Server systems to the specified dn.
public  StringlistPar(String parFileName, Boolean verbose, Boolean dpOnly, Boolean pbfilesOnly, Boolean warOnly, Boolean staticOnly)
     Describes the archive file.
public  voidsetAttribute(Attribute attribute)
    
public  AttributeListsetAttributes(AttributeList attributes)
    

Field Detail
BUFFER_SIZE
final public static int BUFFER_SIZE(Code)



FS
final public static String FS(Code)





Method Detail
deleteTempFile
public void deleteTempFile(String tempFileName)(Code)
Delete Temporary File.



exportDesktop
public void exportDesktop(String parFileName, Boolean verbose, Boolean fsOnly, Boolean dpOnly, String searchLevel) throws PSMBeanException(Code)
Export the desktop data.

The desktop data that will be backed in this method includes:

  • Display profiles on global, org, and role levels.
  • Desktop service attributes: default channel name, edit channel name, desktop type, and desktop canView value.
  • SSO adapter service attributes: sso adapter templates, and sso adapter configurations.
  • Desktop template data: any files under subdirectory of /portals//desktop
  • Desktop configuration file
  • Desktop web-src directory
  • Portlet war file

Parameters:
  parFileName - The par file name.
Parameters:
  verbose - If true then some par specific debuggingmessages will be generated, also debug level will be set to"FINEST".
Parameters:
  fsOnly - If true then only the file system data will bebacked up, otherwise all desktop data will be backed up.
exception:
  PSMBeanException - If the export operation fails.



exportProvider
public void exportProvider(String parFileName, Boolean verbose, String dn, Boolean global, byte[][] exportfile) throws PSMBeanException(Code)
Export the provider/channel data.

The provider/channel data that will be backed in this method includes:

  • Display profiles fragment for this provider/channel at the specified dn.
  • Desktop web-src data
  • Static files,templates for this provider/channel

Parameters:
  parFileName - The par file name.
Parameters:
  verbose - If true then some par specific debuggingmessages will be generated, also debug level will be set to"FINEST".
Parameters:
  dn - dn from where provider data needs to be backed up.
Parameters:
  global - if global data needs to be backed up.
Parameters:
  exportfile - 2-d array of export files streams .
exception:
  PSMBeanException - If the export operation fails.



getArchiveFileVersion
public String getArchiveFileVersion(String parFileName) throws PSMBeanException(Code)
Reads portal id from the archive file.



getAttribute
public Object getAttribute(String attribute)(Code)



getAttributes
public AttributeList getAttributes(String[] attributes)(Code)



getMBeanInfo
public MBeanInfo getMBeanInfo()(Code)



importDesktop
public void importDesktop(Boolean verbose, Boolean fsOnly, Boolean dpOnly, Boolean overwrite, Boolean redeploy, String parFileName, Boolean cont, String searchLevel, String dpnode, Boolean skipValidation) throws PSMBeanException(Code)
Import the desktop data to the Portal Server systems.

This method is called from the client side which passes in an byte[], the cient has to call this multiple times until all data has been transferred from the client side. When the portalId is specified, the archive file will be imported to a specified portal. If the portalId is null, then the import will be operated on the portal where the archive file is exported from, and the portalId is read from the archive file. In the case when the Portal Server Instances are installed in different hosts, the display profiles, the service attributes are going to be restored, and the desktop file system data will be restored back to all of the involved hosts. This method handles the import operation for the local host, and then delegate the call to other host by calling the internal lImportDesktop().
Parameters:
  byteArray - The buffer contains par file data.
Parameters:
  rStr - A random number for the temp file name.
Parameters:
  endOfStream - Indicating if this buffer the last to be passed.
Parameters:
  verbose - If true then some par specific debuggingmessages will be generated, also debug level will be set to"FINEST".
Parameters:
  fsOnly - If true then only the desktop file system data will be imported. If fasle the display profile and the serviceattributes will also be imported.This parameter is used because in one portal site thatinvolving multiple hosts, the data stored in a centralizedbackend storage will only need to be performed once, but thefile system data needs to be performed in individual host.
Parameters:
  parFileName - The full path of the par file.
Parameters:
  portalId - The portal on which the import operationshould be operated on.
Parameters:
  cont - If there's miss-match of the schema, e.g., someorganizations/roles is missing from the target system, continuethe operation on existing orgs/roles or stop the operation.
Parameters:
  searchLevel - The search level is used to set the scopewhen accessing to the display profile and service attribute data.
Parameters:
  dpnode - The base dn for importing display profiles.when accessing to the display profile and service attribute data.
exception:
  PSMBeanException - If the import operation fails.




importProvider
public void importProvider(String parFileName, Boolean verbose, Boolean overwrite, List operations, String dpnode) throws PSMBeanException(Code)
Import the provider data to the Portal Server systems.

This method is called from the client side which passes in a par file In the case when the Portal Server Instances are installed in different hosts, provider data will be restored back to all of the involved hosts. This method handles the import operation for the local host, and then delegate the call to other host by calling the internal lImportProvider().
Parameters:
  parFileName - The full path of the par file.
Parameters:
  verbose - If true then some par specific debuggingmessages will be generated, also debug level will be set to"FINEST".
Parameters:
  overwrite - If true then overwrite the entry .default is false.
Parameters:
  operations - The operations used for importing provider data.
Parameters:
  dpnode - The destination dn where provider is imported
exception:
  PSMBeanException - If the import operation fails.




init
public void init(PSConfigContext cc, PortalDomainContext pdc, List path)(Code)



invoke
public Object invoke(String operationName, Object params, String signature) throws MBeanException, ReflectionException(Code)



lImportDesktop
public void lImportDesktop(Boolean verbose, Boolean fsOnly, Boolean dpOnly, Boolean overwrite, Boolean redeploy, String parFileName, String portalId, Boolean cont, String searchLevel, String dpnode, Boolean skipValidation) throws PSMBeanException(Code)
Import the desktop data to the Portal Server systems.

This method is called from the server side where the par file can be retrieved locally. This is used from the PortalDomain MBean where create-portal is executed. The difference between this method and the importDesktop() method is: First, the portalId is the newly created portal, the portalId read from the archive file is ignored. Secondly, there will be one Portal Server Instance created along with the new Portal, so the data will be imported into the newly created Portal Server Instance, and the file system data will not be propagated to other hosts.
Parameters:
  verbose - If true then some par specific debuggingmessages will be generated, also debug level will be set to"FINEST".
Parameters:
  fsOnly - If true then only the desktop file system data will be imported. If fasle the display profile and the serviceattributes will also be imported.This parameter is used because in one portal site thatinvolving multiple hosts, the data stored in a centralizedbackend storage will only need to be performed once, but thefile system data needs to be performed in individual host.
Parameters:
  portalId - The portal on which the import operationshould be operated on.
Parameters:
  parFileName - The full path of the par file.
Parameters:
  cont - If there's miss-match of the schema, e.g., someorganizations/roles is missing from the target system, continuethe operation on existing orgs/roles or stop the operation.
Parameters:
  searchLevel - The search level is used to set the scopewhen accessing to the display profile and service attribute data.
exception:
  PSMBeanException - If the import operation fails.




lImportProvider
public void lImportProvider(String parFileName, Boolean verbose, Boolean overwrite, String portalId, List operations, String dpnode, Boolean extractDP) throws PSMBeanException(Code)
Import the provider data to the Portal Server systems to the specified dn.

This method is called from the server side where the par file can be retrieved locally.
Parameters:
  parFileName - The full path of the par file.
Parameters:
  verbose - If true then some par specific debuggingmessages will be generated, also debug level will be set to"FINEST".
Parameters:
  portalId - The portal on which the import operationshould be operated on.
Parameters:
  overwrite - If true then overwrite the entry .default is false.
Parameters:
  operations - used for importing provider.
Parameters:
  dpnode - destination dn where provider is imported
Parameters:
  extractDP - flag to decide if dp related data is to be imported
exception:
  PSMBeanException - If the import operation fails.




listPar
public String listPar(String parFileName, Boolean verbose, Boolean dpOnly, Boolean pbfilesOnly, Boolean warOnly, Boolean staticOnly) throws PSMBeanException(Code)
Describes the archive file.



setAttribute
public void setAttribute(Attribute attribute)(Code)



setAttributes
public AttributeList setAttributes(AttributeList attributes)(Code)



Fields inherited from com.sun.portal.admin.server.mbeans.PSResource
protected PSConfigContext cc(Code)(Java Doc)
final protected static String fs(Code)(Java Doc)
protected String m_sPsDomainID(Code)(Java Doc)
protected String m_sPsID(Code)(Java Doc)
protected List path(Code)(Java Doc)
protected PortalDomainContext pdc(Code)(Java Doc)

Methods inherited from com.sun.portal.admin.server.mbeans.PSResource
public String getAttributeValue(String type, String name) throws PSMBeanException(Code)(Java Doc)
public Set getAttributeValues(String type, String name) throws PSMBeanException(Code)(Java Doc)
public String getDomainID()(Code)(Java Doc)
public String getID()(Code)(Java Doc)
public Map getMultipleAttributeValues(String type, Set names) throws PSMBeanException(Code)(Java Doc)
public PSConfigContext getPSConfigContext()(Code)(Java Doc)
public List getPath()(Code)(Java Doc)
public PortalDomainContext getPortalDomainContext()(Code)(Java Doc)
public String getStackTrace(Throwable t)(Code)(Java Doc)
public void init(PSConfigContext cc, PortalDomainContext pdc, List path)(Code)(Java Doc)
public Object invokeRemoteOperation(String host, ObjectName mBeanName, String operationName, Object[] params, String[] signature) throws PSMBeanException(Code)(Java Doc)
protected boolean isResourceAvailable(String type, String id) throws PSMBeanException(Code)(Java Doc)
public void setAttributeValue(String type, String name, String value) throws PSMBeanException(Code)(Java Doc)
public void setAttributeValues(String type, String name, Set values) throws PSMBeanException(Code)(Java Doc)
public void setMultipleAttributeValues(String type, Map attributes) throws PSMBeanException(Code)(Java Doc)

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.