Examples of unprotectObjectInternal()


Examples of org.conserve.tools.protection.ProtectionManager.unprotectObjectInternal()

        // unprotect them
        Long ownerId = arrayLoader.getRelationalIds().get(x);
        String propertyTable = NameGenerator.getTableName(component,
            adapter);
        Long propertyId = adapter.getPersist().getId(component);
        protecter.unprotectObjectInternal(ownerTable, ownerId,
            propertyTable, propertyId, cw);
        if (!protecter.isProtected(propertyTable, propertyId, cw)
            && !nuIds.contains(new TableId(propertyTable,
                propertyId)))
        {
View Full Code Here

Examples of org.conserve.tools.protection.ProtectionManager.unprotectObjectInternal()

      String propertyClassName = rs.getString(4);
      // check compability
      if (!ObjectTools.isA(ObjectTools.lookUpClass(propertyClassName), returnType))
      {
        // remove protection
        pm.unprotectObjectInternal(tableName, ownerId, propertyTable, propertyId, cw);
        // if entity is unprotected,
        if (!pm.isProtected(propertyClassName, propertyId, cw))
        {
          // then delete the entity
          adapter.getPersist().deleteObject(ObjectTools.lookUpClass(propertyClassName), propertyId, cw);
View Full Code Here

Examples of org.conserve.tools.protection.ProtectionManager.unprotectObjectInternal()

      Long ownerId = rs.getLong(1);
      String propertyTable = rs.getString(2);
      Long propertyId = rs.getLong(3);
      String propertyClassName = rs.getString(4);
      // remove protection
      pm.unprotectObjectInternal(tableName, ownerId, propertyTable, propertyId, cw);
      // if entity is unprotected,
      if (!pm.isProtected(propertyClassName, propertyId, cw))
      {
        // then delete the entity
        adapter.getPersist().deleteObject(propertyTable, propertyId, cw);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.