| 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) | | |
Method Summary | |
final protected void | checkSettings(Map settings) | final public void | closeUp() | final protected String | createUniqueBackupFilename(String name) Helper routine to create a unique filename for a backup of an existing
filename....not intended to be rocket science... | final protected void | doBackupOfCurrent(String importFileName, Map currentSettings) | final public void | exportData(String name, String exportFileName, Map settings) | final protected ComponentManager | getCM() | final public String | getDefaultIndent() | final protected Object | getObjectBehindPath(Map map, String _fullPath) | abstract protected Class | getSerializerDataClass() | abstract protected String | getSerializerDataTag() | final public boolean | getSetting(String key) returns the key for a particular process setting. | public JSSnapshot | getSnapshot() | protected void | getSnapshotData() | final protected ArrayList | getTokens(String _line) | final public void | importData(String importFileName, Map settings) | final public void | initializeComponentManager(String appRoot, String[] bootConfig, String[] appConfig) | final protected void | logMe(String text) | final protected XMLObjectWriter | openWriter(String filename) | abstract protected void | processExport(String name, XMLBinding binding) | abstract protected void | processImport() | final protected JSSnapshot | readFile(String importFileName, XMLBinding binding) | final protected String | recreatePassword(char[] savedPassword) | final protected String | removeFromString(String base, String excess) | abstract protected void | resetSettings() | final public void | setComponentManager(ComponentManager cm) | final public void | setDefaultIndent(String indent) | final protected void | setSetting(String key, boolean value) | public void | setSnapshot(JSSnapshot snapshot) | protected void | setSnapshotData() | abstract protected void | setupAliases(XMLBinding binding) |
log | final protected static Log log(Code) | | Logger
|
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) |
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
|
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 - |
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 |
logMe | final protected void logMe(String text)(Code) | | just a Simple helper to make code more readable
Parameters: text - |
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)
|
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 |
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 - |
|
|