| java.lang.Object org.apache.jetspeed.serializer.JetspeedSerializerBase org.apache.jetspeed.serializer.JetspeedSerializerSecondaryImpl
JetspeedSerializerSecondaryImpl | public class JetspeedSerializerSecondaryImpl extends JetspeedSerializerBase implements JetspeedSerializer(Code) | | Jetspeed Serializer - Secondary Data
The Serializer is capable of reading and writing additional content of the
Jetspeed environment such as entities and preferences 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.
author: Hajo Birthelmer version: $Id: $ |
overwrite | boolean overwrite(Code) | | |
JetspeedSerializerSecondaryImpl | public JetspeedSerializerSecondaryImpl()(Code) | | |
JetspeedSerializerSecondaryImpl | public JetspeedSerializerSecondaryImpl(ComponentManager cm)(Code) | | hand over existing component manager
Parameters: cm - |
JetspeedSerializerSecondaryImpl | public JetspeedSerializerSecondaryImpl(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) |
getSerializerDataClass | protected Class getSerializerDataClass()(Code) | | |
getSerializerDataTag | protected String getSerializerDataTag()(Code) | | |
getSnapshotData | protected void getSnapshotData()(Code) | | On import, get the basic SnapShot data
|
resetSettings | protected void resetSettings()(Code) | | reset instruction flags to default settings (all true)
|
setSnapshotData | protected void setSnapshotData()(Code) | | On export, set the basic SnapShot data
|
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 - |
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)
|
|
|