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

All known Subclasses:   org.apache.jetspeed.serializer.JetspeedSerializerImpl,  org.apache.jetspeed.serializer.JetspeedSerializerSecondaryImpl,
JetspeedSerializerBase
abstract public class JetspeedSerializerBase (Code)


Field Summary
final protected static  Loglog
    
 intrefCouter
    

Constructor Summary
public  JetspeedSerializerBase()
    
public  JetspeedSerializerBase(ComponentManager cm)
    
public  JetspeedSerializerBase(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
final protected  voidcheckSettings(Map settings)
    
final public  voidcloseUp()
    
final protected  StringcreateUniqueBackupFilename(String name)
     Helper routine to create a unique filename for a backup of an existing filename....not intended to be rocket science...
final protected  voiddoBackupOfCurrent(String importFileName, Map currentSettings)
    
final public  voidexportData(String name, String exportFileName, Map settings)
    
final protected  ComponentManagergetCM()
    
final public  StringgetDefaultIndent()
    
final protected  ObjectgetObjectBehindPath(Map map, String _fullPath)
    
abstract protected  ClassgetSerializerDataClass()
    
abstract protected  StringgetSerializerDataTag()
    
final public  booleangetSetting(String key)
     returns the key for a particular process setting.
public  JSSnapshotgetSnapshot()
    
protected  voidgetSnapshotData()
    
final protected  ArrayListgetTokens(String _line)
    
final public  voidimportData(String importFileName, Map settings)
    
final public  voidinitializeComponentManager(String appRoot, String[] bootConfig, String[] appConfig)
    
final protected  voidlogMe(String text)
    
final protected  XMLObjectWriteropenWriter(String filename)
    
abstract protected  voidprocessExport(String name, XMLBinding binding)
    
abstract protected  voidprocessImport()
    
final protected  JSSnapshotreadFile(String importFileName, XMLBinding binding)
    
final protected  StringrecreatePassword(char[] savedPassword)
    
final protected  StringremoveFromString(String base, String excess)
    
abstract protected  voidresetSettings()
    
final public  voidsetComponentManager(ComponentManager cm)
    
final public  voidsetDefaultIndent(String indent)
    
final protected  voidsetSetting(String key, boolean value)
    
public  voidsetSnapshot(JSSnapshot snapshot)
    
protected  voidsetSnapshotData()
    
abstract protected  voidsetupAliases(XMLBinding binding)
    

Field Detail
log
final protected static Log log(Code)
Logger



refCouter
int refCouter(Code)




Constructor Detail
JetspeedSerializerBase
public JetspeedSerializerBase()(Code)



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



JetspeedSerializerBase
public JetspeedSerializerBase(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 JetspeedSerializerSecondaryImpl("./", "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
checkSettings
final protected void checkSettings(Map settings)(Code)
set instruction flags to new settings
Parameters:
  settings -



closeUp
final public void closeUp()(Code)



createUniqueBackupFilename
final protected String createUniqueBackupFilename(String name)(Code)
Helper routine to create a unique filename for a backup of an existing filename....not intended to be rocket science...
Parameters:
  name -



doBackupOfCurrent
final protected void doBackupOfCurrent(String importFileName, Map currentSettings)(Code)
create a backup of the current environment in case the import fails



exportData
final public void exportData(String name, String exportFileName, Map settings) throws SerializerException(Code)



getCM
final protected ComponentManager getCM()(Code)



getDefaultIndent
final public String getDefaultIndent()(Code)



getObjectBehindPath
final protected Object getObjectBehindPath(Map map, String _fullPath)(Code)
simple lookup for object from a map
Parameters:
  map -
Parameters:
  _fullPath -



getSerializerDataClass
abstract protected Class getSerializerDataClass()(Code)
return the class for the serializer data , for example JSSeedData.class)



getSerializerDataTag
abstract protected String getSerializerDataTag()(Code)
return the XML tag for the serializer data , for example "JSSnapShot")



getSetting
final public boolean getSetting(String key)(Code)
returns the key for a particular process setting. False if the key doesn't exist.
Parameters:
  key -



getSnapshot
public JSSnapshot getSnapshot()(Code)



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



getTokens
final protected ArrayList getTokens(String _line)(Code)
convert a list of elements in a string, seperated by ',' into an arraylist of strings
Parameters:
  _line - Strinbg containing one or more elements seperated by ',' list of elements of null



importData
final public void importData(String importFileName, Map settings) throws SerializerException(Code)



initializeComponentManager
final public void initializeComponentManager(String appRoot, String[] bootConfig, String[] appConfig) throws SerializerException(Code)



logMe
final protected void logMe(String text)(Code)
just a Simple helper to make code more readable
Parameters:
  text -



openWriter
final protected XMLObjectWriter openWriter(String filename) throws SerializerException(Code)
create or open a given file for writing



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



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



readFile
final protected JSSnapshot readFile(String importFileName, XMLBinding binding) throws SerializerException(Code)
read a snapshot and return the reconstructed class tree
Parameters:
  importFileName -
throws:
  SerializerException -



recreatePassword
final protected String recreatePassword(char[] savedPassword)(Code)



removeFromString
final protected String removeFromString(String base, String excess)(Code)
remove a given sequence from the beginning of a string



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



setComponentManager
final public void setComponentManager(ComponentManager cm)(Code)



setDefaultIndent
final public void setDefaultIndent(String indent)(Code)



setSetting
final protected void setSetting(String key, boolean value)(Code)
set a process setting for a given key
Parameters:
  key - instruction to set
Parameters:
  value - true or false



setSnapshot
public void setSnapshot(JSSnapshot snapshot)(Code)



setSnapshotData
protected void setSnapshotData()(Code)
On export, set the basic SnapShot data



setupAliases
abstract 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 -



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.