use of org.structr.schema.action.ActionEntry in project structr by structr.
the class SchemaHelper method formatDeletionCallback.
public static void formatDeletionCallback(final AbstractSchemaNode schemaNode, final StringBuilder src, final String name, final List<ActionEntry> actionList) {
src.append("\n\t@Override\n");
src.append("\tpublic void ");
src.append(name);
src.append("(final SecurityContext arg0, final PropertyMap arg1) throws FrameworkException {\n\n");
src.append("\t\tsuper.");
src.append(name);
src.append("(arg0, arg1);\n\n");
for (final ActionEntry action : actionList) {
src.append("\t\t").append(action.getSource("this")).append(";\n");
}
src.append("\t}\n");
}
use of org.structr.schema.action.ActionEntry in project structr by structr.
the class SchemaHelper method formatModificationCallback.
public static void formatModificationCallback(final AbstractSchemaNode schemaNode, final StringBuilder src, final String name, final List<ActionEntry> actionList) {
src.append("\n\t@Override\n");
src.append("\tpublic void ");
src.append(name);
src.append("(final SecurityContext arg0, final ErrorBuffer arg1, final ModificationQueue arg2) throws FrameworkException {\n\n");
src.append("\t\tsuper.");
src.append(name);
src.append("(arg0, arg1, arg2);\n\n");
for (final ActionEntry action : actionList) {
src.append("\t\t").append(action.getSource("this")).append(";\n");
}
src.append("\t}\n");
}
Aggregations