Java Doc for JetspeedSerializer.java in  » Portal » jetspeed-2.1.3 » org » apache » jetspeed » serializer » 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 » jetspeed 2.1.3 » org.apache.jetspeed.serializer 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.jetspeed.serializer.JetspeedSerializer

All known Subclasses:   org.apache.jetspeed.serializer.JetspeedSerializerImpl,  org.apache.jetspeed.serializer.JetspeedSerializerSecondaryImpl,
JetspeedSerializer
public interface JetspeedSerializer (Code)
Jetspeed Serializer

The Serializer is capable of reading and writing the current content of the Jetspeed environment to and from XML files. The component can be used from a standalone java application for seeding a new database or from a running portal as an administrative backup/restore function.

The XML file needs to indicate whether passwords used in credentials are plain text or whether they are encoded. The import algoritm can determine - prior to reading users - which encode/decode scheme was used and if or then we store plain passwords (Note that that alone requires the resulting XML to be encoded!!!!!)
author:
   Hajo Birthelmer
version:
   $Id: JetspeedSerializer.java 0 2006-10-31 22:51:28Z hjb $



Field Summary
final public static  shortDECODING_SUPPORTED
    
final public static  shortERROR_DECODING
    
final public static  shortINVALID_PASSWORDS
     the passwords are encoded and the current provider is DIFFERENT....
final public static  StringKEY_BACKUP_BEFORE_PROCESS
    
final public static  StringKEY_OVERWRITE_EXISTING
    
final public static  StringKEY_PROCESS_CAPABILITIES
    
final public static  StringKEY_PROCESS_ENTITIES
    
final public static  StringKEY_PROCESS_PERMISSIONS
    
final public static  StringKEY_PROCESS_PORTAL_PREFERENCES
    
final public static  StringKEY_PROCESS_PREFERENCES
    
final public static  StringKEY_PROCESS_PROFILER
    
final public static  StringKEY_PROCESS_USERS
    
final public static  StringKEY_PROCESS_USER_PREFERENCES
    
final public static  shortNO_DECODING
    
final public static  shortPASSTHRU_REQUIRED
    
final public static  StringTAG_SECONDARYSNAPSHOT
    
final public static  StringTAG_SNAPSHOT
    


Method Summary
public  voidcloseUp()
     release the resources etc.
public  voidexportData(String name, String exportFileName, Map settings)
     Main routine to export the set of data elements and write them to the named XML file.
public  StringgetDefaultIndent()
    
public  voidimportData(String importFileName, Map settings)
     Main routine to import the set of data elements and write them to the current environment.
public  voidinitializeComponentManager(String appRoot, String[] bootConfig, String[] appConfig)
    
public  voidsetComponentManager(ComponentManager cm)
    
public  voidsetDefaultIndent(String indent)
    

Field Detail
DECODING_SUPPORTED
final public static short DECODING_SUPPORTED(Code)
the passwords are encoded and the provider is the same as the data source and we have a 2-way algorithm



ERROR_DECODING
final public static short ERROR_DECODING(Code)
Error in determening correct password handling



INVALID_PASSWORDS
final public static short INVALID_PASSWORDS(Code)
the passwords are encoded and the current provider is DIFFERENT....



KEY_BACKUP_BEFORE_PROCESS
final public static String KEY_BACKUP_BEFORE_PROCESS(Code)



KEY_OVERWRITE_EXISTING
final public static String KEY_OVERWRITE_EXISTING(Code)



KEY_PROCESS_CAPABILITIES
final public static String KEY_PROCESS_CAPABILITIES(Code)



KEY_PROCESS_ENTITIES
final public static String KEY_PROCESS_ENTITIES(Code)
export/import instructions secondary



KEY_PROCESS_PERMISSIONS
final public static String KEY_PROCESS_PERMISSIONS(Code)



KEY_PROCESS_PORTAL_PREFERENCES
final public static String KEY_PROCESS_PORTAL_PREFERENCES(Code)



KEY_PROCESS_PREFERENCES
final public static String KEY_PROCESS_PREFERENCES(Code)



KEY_PROCESS_PROFILER
final public static String KEY_PROCESS_PROFILER(Code)



KEY_PROCESS_USERS
final public static String KEY_PROCESS_USERS(Code)
export/import instructions



KEY_PROCESS_USER_PREFERENCES
final public static String KEY_PROCESS_USER_PREFERENCES(Code)



NO_DECODING
final public static short NO_DECODING(Code)
the passwords are in clear text



PASSTHRU_REQUIRED
final public static short PASSTHRU_REQUIRED(Code)
the passwords are encoded and the provider is the same as the data source, but is a 1-way algorithm



TAG_SECONDARYSNAPSHOT
final public static String TAG_SECONDARYSNAPSHOT(Code)



TAG_SNAPSHOT
final public static String TAG_SNAPSHOT(Code)

the main tag in the XML file






Method Detail
closeUp
public void closeUp()(Code)
release the resources etc.



exportData
public void exportData(String name, String exportFileName, Map settings) throws SerializerException(Code)
Main routine to export the set of data elements and write them to the named XML file. The default behavior of the serializer is that all available data is extracted and the target file gets created or overwritten

The caller can adjust the default behavior by passign in a map of flags. Each map entry is keyed by a key Constant and the associated Boolean value, for exammple KEY_PROCESS_USER_PREFERENCES, Boolean.FALSE would cause the serializer to skip user preferences.

Note that ProfilingRules require the users . Hence turning off User collection will automatically turn off the Profiling rules
Parameters:
  name - of the snapshot
Parameters:
  exportFileName -
Parameters:
  settings - optional Map overwriting default export behavior




getDefaultIndent
public String getDefaultIndent()(Code)
Get the current indent setting for XML files the current indent setting



importData
public void importData(String importFileName, Map settings) throws SerializerException(Code)
Main routine to import the set of data elements and write them to the current environment. The default behavior of the serializer is that all available data is read and written to the current environment.

Existing entries (like users) etc. will be overwritten with the provided data.

The caller can adjust the default behavior by passign in a map of flags. Each map entry is keyed by a key Constant and the associated Boolean value, for exammple KEY_PROCESS_USER_PREFERENCES, Boolean.FALSE would cause the serializer to skip user preferences.

Note that settings are valid throughout each invocation. Therefore if a caller wants to preserve current users and only add new entries while at the same time overwrite all profiling rules, exportData has to be invoked twice - once to process only the users with the no-overwrite option and once to process the profiling rules
Parameters:
  importFileName -
Parameters:
  settings - optional Map overwriting default import behavior




initializeComponentManager
public void initializeComponentManager(String appRoot, String[] bootConfig, String[] appConfig) throws SerializerException(Code)
Create a component manager with the list of primary components (boot), the application components and the root path of the application
Parameters:
  appRoot - working directory
Parameters:
  bootConfig - boot (primary) file or files (wildcards are allowed)
Parameters:
  appConfig - application (secondary) file or files (wildcards are allowed) a newly initiated component manager
throws:
  SerializerException -



setComponentManager
public void setComponentManager(ComponentManager cm) throws SerializerException(Code)
hand the serializer an existing component manager to access the environment
Parameters:
  cm -



setDefaultIndent
public void setDefaultIndent(String indent)(Code)
Set the default indent for the XML output
Parameters:
  indent -



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