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());
}
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());
}
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());
}
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());
}
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());
}
Aggregations