Package org.jallinone.system.permissions.java

Examples of org.jallinone.system.permissions.java.RoleVO


   * @param node selected node
   */
  public void leftClick(DefaultMutableTreeNode node) {
    if (rolesGridControl.getSelectedRow()!=-1) {
      HierarchyLevelVO f = (HierarchyLevelVO)node.getUserObject();
      RoleVO vo = (RoleVO)rolesGridControl.getVOListTableModel().getObjectForRow(rolesGridControl.getSelectedRow());
      functionsGridControl.getOtherGridParams().put(ApplicationConsts.PROGRESSIVE_SYS04,vo.getProgressiveSYS04());
      functionsGridControl.getOtherGridParams().put(ApplicationConsts.PROGRESSIVE_HIE03,f.getProgressiveHIE03());
      functionsGridControl.reloadData();
    }
  }
View Full Code Here


   * @param rowNumbers row indexes related to the new rows to save
* @param newValueObjects list of new value objects to save
* @return an ErrorResponse value object in case of errors, VOListResponse if the operation is successfully completed
   */
  public Response insertRecords(int[] rowNumbers, ArrayList newValueObjects) throws Exception {
    RoleVO vo = null;


    for(int i=0;i<newValueObjects.size();i++) {
      vo = (RoleVO)newValueObjects.get(i);
      vo.setProgressiveSYS04(currentProgressiveSYS04);
    }

    Response response = ClientUtils.getData("insertRoles",newValueObjects);
    if (!response.isError()) {
      currentProgressiveSYS04 = null;
      List rows = ((VOListResponse)response).getRows();
      ClientApplet applet = ( (ApplicationClientFacade) MDIFrame.getInstance().getClientFacade()).getMainClass();
      for(int i=0;i<rows.size();i++) {
        vo = (RoleVO)rows.get(i);
        applet.getAuthorizations().getUserRoles().put(vo.getProgressiveSYS04(),vo.getDescriptionSYS10());
      }
    }
    return response;
  }
View Full Code Here

  /**
   * Callback method invoked before deleting data when the grid was in READONLY mode (on pressing delete button).
   * @return <code>true</code> allows the deleting to continue, <code>false</code> the deleting is interrupted
   */
  public boolean beforeDeleteGrid(GridControl grid) {
    RoleVO vo = (RoleVO)grid.getVOListTableModel().getObjectForRow(grid.getSelectedRow());
    if (vo.getProgressiveSYS04().equals(new BigDecimal(2))) {
      JOptionPane.showMessageDialog(
          ClientUtils.getParentFrame(grid),
          ClientSettings.getInstance().getResources().getResource("you cannot delete the administrator role"),
          ClientSettings.getInstance().getResources().getResource("Attention"),
          JOptionPane.WARNING_MESSAGE
View Full Code Here

  /**
   * Callback method invoked on pressing COPY button.
   * @return <code>true</code> allows to go to INSERT mode (by copying data), <code>false</code> the mode change is interrupted
   */
  public boolean beforeCopyGrid(GridControl grid) {
    RoleVO vo = (RoleVO)grid.getVOListTableModel().getObjectForRow(grid.getSelectedRow());
    currentProgressiveSYS04 = vo.getProgressiveSYS04();
    return true;
  }
View Full Code Here

TOP

Related Classes of org.jallinone.system.permissions.java.RoleVO

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.