org.apache.jetspeed.serializer
Class JetspeedSerializerApplication

java.lang.Object
  extended by org.apache.jetspeed.serializer.JetspeedSerializerApplication
All Implemented Interfaces:
org.apache.jetspeed.serializer.JetspeedSerializerFactory

public class JetspeedSerializerApplication
extends Object
implements org.apache.jetspeed.serializer.JetspeedSerializerFactory

Jetspeed Serializer Application invoke with mandatory

-E filename or -I filename to denote the export or the import file

-I filename | directory, if a directory will process all XML files of pattern "*seed.xml"

invoke with (optional) parameters as

-p propertyFilename : overwrite the default filename defined in System.getProperty JetSpeed.Serializer.Configuration

-a ApplicationPath : overwrite the default ./ or ApplicationPath property in properties file)

-b bootPath : directory to Spring boot files, overwrite the default assembly/boot/ or bootPath property in properties file)

-c configPath : directory to Spring config files, overwrite the default assembly/ or configPath property in properties file)

-O optionstring : overwrite default "ALL,REPLACE"

optionstring: ALL - extract/import all (with exception of PREFERENCES) USER - extract/import users, groups, roles CAPABILITIES - extract/import capabilities PROFILE = extract/import profile settings (for export requires USER) PERMISSIONS = extract/import permissions PREFS = extract/import portlet preferences (ignored if any of the above is set) NOOVERWRITE = don't overwrite existing file (for export) BACKUP = backup before process

-dc driverClass, for example com.mysql.jdbc.Driver

-ds url, ruls according to the driver used, URL needs to point to the correct database

-du user, user with create/drop etc. rights on the database

-dp password

-l log4j-level, ERROR (default), WARN, INFO

Version:
$Id: $
Author:
Hajo Birthelmer

Field Summary
static String JNDI_DS_NAME
           
 
Fields inherited from interface org.apache.jetspeed.serializer.JetspeedSerializerFactory
PRIMARY, SECONDARY
 
Constructor Summary
JetspeedSerializerApplication()
           
 
Method Summary
 org.apache.jetspeed.serializer.JetspeedSerializer create(String serializerType)
           
private static String[] getTokens(String _line)
           
static void main(String[] args)
           
private static String[] parseFiles(String schemaDirectory)
          process provided filename or directory name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JNDI_DS_NAME

public static final String JNDI_DS_NAME
See Also:
Constant Field Values
Constructor Detail

JetspeedSerializerApplication

public JetspeedSerializerApplication()
Method Detail

create

public org.apache.jetspeed.serializer.JetspeedSerializer create(String serializerType)
Specified by:
create in interface org.apache.jetspeed.serializer.JetspeedSerializerFactory

main

public static void main(String[] args)

parseFiles

private static String[] parseFiles(String schemaDirectory)
process provided filename or directory name

Returns:
one or more files to be processed

getTokens

private static String[] getTokens(String _line)


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.