Search in sources :

Example 1 with ReloadSchema

use of org.structr.schema.ReloadSchema in project structr by structr.

the class SchemaRelationshipNode method onDeletion.

@Override
public void onDeletion(SecurityContext securityContext, ErrorBuffer errorBuffer, PropertyMap properties) throws FrameworkException {
    super.onDeletion(securityContext, errorBuffer, properties);
    // register transaction post processing that recreates the schema information
    TransactionCommand.postProcess("reloadSchema", new ReloadSchema());
}
Also used : ReloadSchema(org.structr.schema.ReloadSchema)

Example 2 with ReloadSchema

use of org.structr.schema.ReloadSchema in project structr by structr.

the class SchemaRelationshipNode method onModification.

@Override
public void onModification(SecurityContext securityContext, final ErrorBuffer errorBuffer, final ModificationQueue modificationQueue) throws FrameworkException {
    super.onModification(securityContext, errorBuffer, modificationQueue);
    checkClassName();
    checkAndRenameSourceAndTargetJsonNames();
    final PropertyMap map = new PropertyMap();
    // store old property names
    map.put(previousSourceJsonName, getProperty(sourceJsonName));
    map.put(previousTargetJsonName, getProperty(targetJsonName));
    setProperties(securityContext, map);
    // register transaction post processing that recreates the schema information
    TransactionCommand.postProcess("reloadSchema", new ReloadSchema());
}
Also used : PropertyMap(org.structr.core.property.PropertyMap) ReloadSchema(org.structr.schema.ReloadSchema)

Example 3 with ReloadSchema

use of org.structr.schema.ReloadSchema in project structr by structr.

the class SchemaReloadingNode method onModification.

@Override
public void onModification(SecurityContext securityContext, ErrorBuffer errorBuffer, final ModificationQueue modificationQueue) throws FrameworkException {
    super.onModification(securityContext, errorBuffer, modificationQueue);
    // register transaction post processing that recreates the schema information
    TransactionCommand.postProcess("reloadSchema", new ReloadSchema());
}
Also used : ReloadSchema(org.structr.schema.ReloadSchema)

Example 4 with ReloadSchema

use of org.structr.schema.ReloadSchema in project structr by structr.

the class SchemaReloadingNode method onCreation.

@Override
public void onCreation(SecurityContext securityContext, ErrorBuffer errorBuffer) throws FrameworkException {
    super.onCreation(securityContext, errorBuffer);
    // register transaction post processing that recreates the schema information
    TransactionCommand.postProcess("reloadSchema", new ReloadSchema());
}
Also used : ReloadSchema(org.structr.schema.ReloadSchema)

Example 5 with ReloadSchema

use of org.structr.schema.ReloadSchema in project structr by structr.

the class SchemaRelationshipNode method onCreation.

@Override
public void onCreation(SecurityContext securityContext, final ErrorBuffer errorBuffer) throws FrameworkException {
    super.onCreation(securityContext, errorBuffer);
    final PropertyMap map = new PropertyMap();
    // store old property names
    map.put(previousSourceJsonName, getProperty(sourceJsonName));
    map.put(previousTargetJsonName, getProperty(targetJsonName));
    setProperties(securityContext, map);
    // register transaction post processing that recreates the schema information
    TransactionCommand.postProcess("reloadSchema", new ReloadSchema());
}
Also used : PropertyMap(org.structr.core.property.PropertyMap) ReloadSchema(org.structr.schema.ReloadSchema)

Aggregations

ReloadSchema (org.structr.schema.ReloadSchema)6 PropertyMap (org.structr.core.property.PropertyMap)2