|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.centrasite.registry.revision.admin.RevisionAdministrator
public class RevisionAdministrator
This class has the task to enable (resp. disable) the CentraSite revision environment. After enablement, all new/updated JAXR objects get versioned.
Nested Class Summary | |
---|---|
static class |
RevisionAdministrator.SchemaType
|
Constructor Summary | |
---|---|
RevisionAdministrator(javax.xml.registry.Connection connection)
Constructor. |
|
RevisionAdministrator(com.centrasite.jaxr.JAXRAccessor jaxr)
Constructor. |
Method Summary | |
---|---|
static java.lang.String |
createObjectType(java.lang.String namespace,
java.lang.String type)
Delivers an objectType string in the shape: "{namespace}type" |
void |
defineUserSchema(java.lang.String schemaName)
Define a doctype-schema from user defined type. |
void |
disable()
Disable the revision and checkpoint environment. |
void |
enable()
Enable the revision and checkpoint environment. |
void |
enableNewTypes()
Enable new types during repair: a repair step has added a new type or some new types, now create the corresponding versioned schemas. |
boolean |
isEnabled()
Checks it the revision infrastructure is enabled. |
static void |
main(java.lang.String[] args)
Main entry that provides the possiblity to activate the revision feature via direct call (from the command line) |
void |
printStatus(boolean extended)
Print status about enabling of revision. |
void |
setLogging(boolean logging)
Enable logging during revision enablement. |
void |
undefineUserSchema(java.lang.String schemaName)
Undefine a doctype-schema from user defined type. |
void |
update(RevisionAdministrator.SchemaType schemaType)
update the base schemas during repair: a repair step has updated one of the base schemas, now update the versioned schema by recreating it. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RevisionAdministrator(com.centrasite.jaxr.JAXRAccessor jaxr) throws javax.xml.registry.JAXRException
jaxr
- a jaxr accessor
javax.xml.registry.JAXRException
public RevisionAdministrator(javax.xml.registry.Connection connection) throws javax.xml.registry.JAXRException
connection
- a jaxr connection
javax.xml.registry.JAXRException
Method Detail |
---|
public void setLogging(boolean logging)
logging
- true: do logging during enable()public void enable() throws RevisionException
After enablement all JAXR objects will create revisions on insert and update. It has no effect if the feature is already enabled. Finally it commits all the updates.
RevisionException
- could not be enabledpublic void disable() throws RevisionException
RevisionException
- internal errorpublic void enableNewTypes() throws java.lang.Exception
java.lang.Exception
public void update(RevisionAdministrator.SchemaType schemaType) throws java.lang.Exception
java.lang.Exception
public boolean isEnabled()
public void defineUserSchema(java.lang.String schemaName)
schemaName
- the name of the schema (typically: "uddi_...")public void undefineUserSchema(java.lang.String schemaName)
schemaName
- the name of the schema (typically: "uddi_...")public void printStatus(boolean extended) throws java.lang.Exception
extended
- true: extended view;
false: just print "true" or "false"
java.lang.Exception
public static java.lang.String createObjectType(java.lang.String namespace, java.lang.String type)
namespace
- the namespace of the objecttype
- the type of the object
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- function [-h host] [-user user] [-password password] function: -enable, -disable, -check
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |