Package org.structr.core.entity

Examples of org.structr.core.entity.DynamicResourceAccess


    final App app = StructrApp.getInstance();
    try {

      // delete grant
      DynamicResourceAccess grant = app.nodeQuery(DynamicResourceAccess.class).and(DynamicResourceAccess.signature, signature).getFirst();
      if (grant != null) {

        app.delete(grant);
      }

      // delete grant
      DynamicResourceAccess schemaGrant = app.nodeQuery(DynamicResourceAccess.class).and(DynamicResourceAccess.signature, "_schema/" + signature).getFirst();
      if (schemaGrant != null) {

        app.delete(schemaGrant);
      }
      // delete grant
      DynamicResourceAccess viewGrant = app.nodeQuery(DynamicResourceAccess.class).and(DynamicResourceAccess.signature, signature + "/_Ui").getFirst();
      if (viewGrant != null) {

        app.delete(viewGrant);
      }
View Full Code Here

TOP

Related Classes of org.structr.core.entity.DynamicResourceAccess

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.