| 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: $ |
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) |
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
|
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 - |
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)
|
|
|