Package ca.carleton.gcrc.dbSec

Examples of ca.carleton.gcrc.dbSec.OperationAccess


    } catch(Exception e) {
      throw new Exception("Error while parsing table options: "+optionsString,e);
    }
   
    {
      OperationAccess access = parseOption(jsonObj, Option.QUERY, tableSchema);
      tableSchema.setQueryAccess(access);
    }
    {
      OperationAccess access = parseOption(jsonObj, Option.INSERT, tableSchema);
      if( access.isAllowed() && access.getWhereClauses().size() > 0 ) {
        throw new Exception("Selection is not allowed on insert");
      }
      tableSchema.setInsertAccess(access);
    }
    {
      OperationAccess access = parseOption(jsonObj, Option.UPDATE, tableSchema);
      tableSchema.setUpdateAccess(access);
    }
    {
      OperationAccess access = parseOption(jsonObj, Option.DELETE, tableSchema);
      tableSchema.setDeleteAccess(access);
    }
  }
View Full Code Here


    } catch(Exception e) {
      throw new Exception("Error while parsing table options: "+optionsString,e);
    }
   
    {
      OperationAccess access = parseOption(jsonObj, Option.QUERY, tableSchema);
      tableSchema.setQueryAccess(access);
    }
    {
      OperationAccess access = parseOption(jsonObj, Option.INSERT, tableSchema);
      if( access.isAllowed() && access.getWhereClauses().size() > 0 ) {
        throw new Exception("Selection is not allowed on insert");
      }
      tableSchema.setInsertAccess(access);
    }
    {
      OperationAccess access = parseOption(jsonObj, Option.UPDATE, tableSchema);
      tableSchema.setUpdateAccess(access);
    }
    {
      OperationAccess access = parseOption(jsonObj, Option.DELETE, tableSchema);
      tableSchema.setDeleteAccess(access);
    }
  }
View Full Code Here

TOP

Related Classes of ca.carleton.gcrc.dbSec.OperationAccess

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.