Package org.uengine.kernel

Examples of org.uengine.kernel.RoleExist


            roleExistButton.setSelected(true);
        disableAll(pl);
            disableAll(plOther);
            enableAll(roleExist);
           
            RoleExist roleExist = (RoleExist)cols.get(selectedColumn);
            Role existingRole = roleExist.getRole();
            if(existingRole==null && roleExist.getRoleName()!=null){
              existingRole = Role.forName(roleExist.getRoleName());
            }
           
            roleinput.setValue(existingRole);
           
           
View Full Code Here


        Evaluate eval = new Evaluate(pv, cond, null);
        ConditionTable.this.setValueAt(eval, selectedRow, selectedColumn);
      }
    }else{
      Role role = (Role)roleinput.getValue();
      Condition roleExist = new RoleExist(role);
     
      if(roleExistOrNotExist.getSelectedIndex()> 0){
        roleExist = new Not(roleExist);
      }
     
View Full Code Here

        for(int j=START_INDEX;j<cols.size();j++){
          if(cols.get(j) instanceof Otherwise){
            isOtherwise = true;
            break;
          }else if(cols.get(j) instanceof RoleExist){
            RoleExist role = (RoleExist)cols.get(j);
            if(role!=null){
              and.addCondition(role);
            }
          }else{
            Evaluate eval = (Evaluate)cols.get(j);
            if(eval!=null){
              and.addCondition(eval);
            }
          }
        }
        if(!isOtherwise && and.getConditionsVt().size()>0){
          or.addCondition(and);
        }
       
        if(isOtherwise){
          Otherwise otherwise = new Otherwise();
          map.put(key, otherwise);
          otherwise.getDescription().setText(key);
          ors.addCondition(otherwise);
        }else{
          map.put(key, or);
          or.getDescription().setText(key);
          ors.addCondition(or);
        }

      }else{
        And and = new And();
        for(int j=START_INDEX;j<cols.size();j++){
          if(cols.get(j) instanceof Evaluate){
            Evaluate eval = (Evaluate)cols.get(j);
            if(eval!=null){
              and.addCondition(eval);
            }
          }else{
            RoleExist role = (RoleExist)cols.get(j);
            if(role!=null){
              and.addCondition(role);
            }
          }
        }
View Full Code Here

        if(theConditionRow.get(j) instanceof Evaluate){
          Evaluate evaluation = (Evaluate)theConditionRow.get(j);
          if(evaluation!=null)
            and.addCondition(evaluation);
        }else{
          RoleExist roleExist = (RoleExist)theConditionRow.get(j);
          if(roleExist!=null)
            and.addCondition(roleExist);
        }
      }
     
View Full Code Here

        for(int j=0;j<cols.length;j++){
          if(cols[j] instanceof Evaluate){
            Evaluate eval = (Evaluate)cols[j];
            table.setValueAt(eval, i, j+1);
          }else{
            RoleExist roleExist = (RoleExist)cols[j];
            table.setValueAt(roleExist, i, j+1);
          }
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.uengine.kernel.RoleExist

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.