Search in sources :

Example 6 with ActionEntry

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");
}
Also used : ActionEntry(org.structr.schema.action.ActionEntry)

Example 7 with ActionEntry

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");
}
Also used : ActionEntry(org.structr.schema.action.ActionEntry)

Aggregations

ActionEntry (org.structr.schema.action.ActionEntry)7 App (org.structr.core.app.App)2 StructrApp (org.structr.core.app.StructrApp)2 LinkedHashSet (java.util.LinkedHashSet)1 LinkedList (java.util.LinkedList)1 Entry (java.util.Map.Entry)1 PropertyContainer (org.structr.api.graph.PropertyContainer)1 GraphObjectComparator (org.structr.common.GraphObjectComparator)1 AbstractSchemaNode (org.structr.core.entity.AbstractSchemaNode)1 SchemaMethod (org.structr.core.entity.SchemaMethod)1 StringProperty (org.structr.core.property.StringProperty)1