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


java.lang.Object
   org.apache.jetspeed.serializer.JetspeedSerializerBase
      org.apache.jetspeed.serializer.JetspeedSerializerImpl

JetspeedSerializerImpl
public class JetspeedSerializerImpl extends JetspeedSerializerBase implements 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: $



Field Summary
 intrefCouter
    

Constructor Summary
public  JetspeedSerializerImpl()
    
public  JetspeedSerializerImpl(ComponentManager cm)
    
public  JetspeedSerializerImpl(String appRoot, String[] bootConfig, String[] appConfig)
     This constructor takes the application root, the search path for the boot component configuration files and the search path for the application component configuration files.

Method Summary
protected  intcompareCurrentSecurityProvider(JSSeedData file)
     Establish whether incoming passwords are "clear" text or whether they are to be decoded.
protected  ClassgetSerializerDataClass()
    
protected  StringgetSerializerDataTag()
    
protected  voidgetSnapshotData()
    
protected  voidprocessExport(String name, XMLBinding binding)
    
protected  voidprocessImport()
    
protected  ProfilingRulerecreateRule(Profiler profiler, ProfilingRule existingRule, JSProfilingRule jsp)
    
protected  RuleCriterionrecreateRuleCriterion(Profiler profiler, JSRuleCriterion jsr, ProfilingRule rule)
    
protected  voidresetSettings()
    
protected  voidsetupAliases(XMLBinding binding)
    

Field Detail
refCouter
int refCouter(Code)




Constructor Detail
JetspeedSerializerImpl
public JetspeedSerializerImpl()(Code)



JetspeedSerializerImpl
public JetspeedSerializerImpl(ComponentManager cm)(Code)
hand over existing component manager
Parameters:
  cm -



JetspeedSerializerImpl
public JetspeedSerializerImpl(String appRoot, String[] bootConfig, String[] appConfig) throws SerializerException(Code)
This constructor takes the application root, the search path for the boot component configuration files and the search path for the application component configuration files.

For example: new JetspeedSerializerImpl("./", "assembly/boot/*.xml", "assembly/*.xml") will establish the current directory as the root, process all xml files in the assembly/boot directory before processing all xml files in the assembly directory itself.
Parameters:
  appRoot - working directory
Parameters:
  bootConfig - boot (primary) file or files (wildcards are allowed)
Parameters:
  appConfig - application (secondary) file or files (wildcards are allowed)





Method Detail
compareCurrentSecurityProvider
protected int compareCurrentSecurityProvider(JSSeedData file)(Code)
Establish whether incoming passwords are "clear" text or whether they are to be decoded. That however depends on whether the passwords were encoded with the current active provider or not.



getSerializerDataClass
protected Class getSerializerDataClass()(Code)



getSerializerDataTag
protected String getSerializerDataTag()(Code)



getSnapshotData
protected void getSnapshotData()(Code)
On import, get the basic SnapShot data



processExport
protected void processExport(String name, XMLBinding binding) throws SerializerException(Code)
The workhorse for exporting data
Parameters:
  binding - established XML binding
throws:
  SerializerException -



processImport
protected void processImport() throws SerializerException(Code)
The workhorse for importing data
Parameters:
  binding - established XML binding
throws:
  SerializerException -



recreateRule
protected ProfilingRule recreateRule(Profiler profiler, ProfilingRule existingRule, JSProfilingRule jsp) throws SerializerException, ClassNotFoundException, ProfilerException(Code)
recreate a profiling rule object from the deserialized wrapper and store it
Parameters:
  profiler - established profile manager
Parameters:
  jsp - deserialized object
throws:
  SerializerException - , ClassNotFoundException, ProfilerException



recreateRuleCriterion
protected RuleCriterion recreateRuleCriterion(Profiler profiler, JSRuleCriterion jsr, ProfilingRule rule) throws SerializerException, ClassNotFoundException(Code)
recreate a rule criterion object from the deserialized wrapper
Parameters:
  profiler - established profile manager
Parameters:
  jsr - deserialized object new RuleCriterion with content set to deserialized wrapepr
throws:
  SerializerException -



resetSettings
protected void resetSettings()(Code)
reset instruction flags to default settings (all true)



setupAliases
protected void setupAliases(XMLBinding binding)(Code)
Setup the binding for the different classes, mapping each extracted class to a unique tag name in the XML
Parameters:
  binding -



Fields inherited from org.apache.jetspeed.serializer.JetspeedSerializerBase
final protected static Log log(Code)(Java Doc)
int refCouter(Code)(Java Doc)

Methods inherited from org.apache.jetspeed.serializer.JetspeedSerializerBase
final protected void checkSettings(Map settings)(Code)(Java Doc)
final public void closeUp()(Code)(Java Doc)
final protected String createUniqueBackupFilename(String name)(Code)(Java Doc)
final protected void doBackupOfCurrent(String importFileName, Map currentSettings)(Code)(Java Doc)
final public void exportData(String name, String exportFileName, Map settings) throws SerializerException(Code)(Java Doc)
final protected ComponentManager getCM()(Code)(Java Doc)
final public String getDefaultIndent()(Code)(Java Doc)
final protected Object getObjectBehindPath(Map map, String _fullPath)(Code)(Java Doc)
abstract protected Class getSerializerDataClass()(Code)(Java Doc)
abstract protected String getSerializerDataTag()(Code)(Java Doc)
final public boolean getSetting(String key)(Code)(Java Doc)
public JSSnapshot getSnapshot()(Code)(Java Doc)
protected void getSnapshotData()(Code)(Java Doc)
final protected ArrayList getTokens(String _line)(Code)(Java Doc)
final public void importData(String importFileName, Map settings) throws SerializerException(Code)(Java Doc)
final public void initializeComponentManager(String appRoot, String[] bootConfig, String[] appConfig) throws SerializerException(Code)(Java Doc)
final protected void logMe(String text)(Code)(Java Doc)
final protected XMLObjectWriter openWriter(String filename) throws SerializerException(Code)(Java Doc)
abstract protected void processExport(String name, XMLBinding binding) throws SerializerException(Code)(Java Doc)
abstract protected void processImport() throws SerializerException(Code)(Java Doc)
final protected JSSnapshot readFile(String importFileName, XMLBinding binding) throws SerializerException(Code)(Java Doc)
final protected String recreatePassword(char[] savedPassword)(Code)(Java Doc)
final protected String removeFromString(String base, String excess)(Code)(Java Doc)
abstract protected void resetSettings()(Code)(Java Doc)
final public void setComponentManager(ComponentManager cm)(Code)(Java Doc)
final public void setDefaultIndent(String indent)(Code)(Java Doc)
final protected void setSetting(String key, boolean value)(Code)(Java Doc)
public void setSnapshot(JSSnapshot snapshot)(Code)(Java Doc)
protected void setSnapshotData()(Code)(Java Doc)
abstract protected void setupAliases(XMLBinding binding)(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.