Package de.forsthaus

Examples of de.forsthaus.UserWorkspace


  /**
   * SetVisible for components by checking if there's a right for it.
   */
  private void doCheckRights() {

    final UserWorkspace workspace = getUserWorkspace();

    orderDialogWindow.setVisible(workspace.isAllowed("orderDialogWindow"));

    btnHelp.setVisible(workspace.isAllowed("button_OrderDialog_btnHelp"));
    btnNew.setVisible(workspace.isAllowed("button_OrderDialog_btnNew"));
    btnEdit.setVisible(workspace.isAllowed("button_OrderDialog_btnEdit"));
    btnDelete.setVisible(workspace.isAllowed("button_OrderDialog_btnDelete"));
    btnSave.setVisible(workspace.isAllowed("button_OrderDialog_btnSave"));
    btnClose.setVisible(workspace.isAllowed("button_OrderDialog_btnClose"));

    button_OrderDialog_PrintOrder.setVisible(workspace.isAllowed("button_OrderDialog_PrintOrder"));
    button_OrderDialog_NewOrderPosition.setVisible(workspace.isAllowed("button_OrderDialog_NewOrderPosition"));
  }
View Full Code Here


   * The rights are get from the spring framework users grantedAuthority(). A
   * right is only a string. <br>
   */
  private void doCheckRights() {

    final UserWorkspace workspace = getUserWorkspace();

    window_customerDialog.setVisible(workspace.isAllowed("window_customerDialog"));

    tabCustomerDialogAddress.setVisible(workspace.isAllowed("tab_CustomerDialog_Address"));
    tabPanelCustomerAddress.setVisible(workspace.isAllowed("tab_CustomerDialog_Address"));

    tabCustomerDialogChart.setVisible(workspace.isAllowed("tab_CustomerDialog_Chart"));
    tabPanelCustomerDialogChart.setVisible(workspace.isAllowed("tab_CustomerDialog_Chart"));

    tabCustomerDialogOrders.setVisible(workspace.isAllowed("tab_CustomerDialog_Orders"));
    tabPanelCustomerOrders.setVisible(workspace.isAllowed("tab_CustomerDialog_Orders"));

    tabCustomerDialogMemos.setVisible(workspace.isAllowed("tab_CustomerDialog_Memos"));
    tabPanelCustomerMemos.setVisible(workspace.isAllowed("tab_CustomerDialog_Memos"));

    btnHelp.setVisible(workspace.isAllowed("button_CustomerDialog_btnHelp"));
    btnNew.setVisible(workspace.isAllowed("button_CustomerDialog_btnNew"));
    btnEdit.setVisible(workspace.isAllowed("button_CustomerDialog_btnEdit"));
    btnDelete.setVisible(workspace.isAllowed("button_CustomerDialog_btnDelete"));
    btnSave.setVisible(workspace.isAllowed("button_CustomerDialog_btnSave"));
    btnClose.setVisible(workspace.isAllowed("button_CustomerDialog_btnClose"));

  }
View Full Code Here

  /**
   * SetVisible for components by checking if there's a right for it.
   */
  private void doCheckRights() {

    final UserWorkspace workspace = getUserWorkspace();

    window_customerList.setVisible(workspace.isAllowed("window_customerList"));
    btnHelp.setVisible(workspace.isAllowed("button_CustomerList_btnHelp"));
    button_CustomerList_NewCustomer.setVisible(workspace.isAllowed("button_CustomerList_NewCustomer"));
    button_CustomerList_CustomerFindDialog.setVisible(workspace.isAllowed("button_CustomerList_CustomerFindDialog"));
    button_CustomerList_PrintList.setVisible(workspace.isAllowed("button_CustomerList_PrintList"));

  }
View Full Code Here

   * SetVisible for components by checking if there's a right for it.
   */
  @SuppressWarnings("unused")
  private void doCheckRights() {

    final UserWorkspace workspace = getUserWorkspace();

    window_GuestBookList.setVisible(true);
  }
View Full Code Here

  /**
   * SetVisible for components by checking if there's a right for it.
   */
  private void doCheckRights() {

    final UserWorkspace workspace = getUserWorkspace();

    orderPositionDialogWindow.setVisible(workspace.isAllowed("orderPositionDialogWindow"));

    btnHelp.setVisible(workspace.isAllowed("button_OrderPositionDialog_btnHelp"));
    btnNew.setVisible(workspace.isAllowed("button_OrderPositionDialog_btnNew"));
    btnEdit.setVisible(workspace.isAllowed("button_OrderPositionDialog_btnEdit"));
    btnDelete.setVisible(workspace.isAllowed("button_OrderPositionDialog_btnDelete"));
    btnSave.setVisible(workspace.isAllowed("button_OrderPositionDialog_btnSave"));
    btnClose.setVisible(workspace.isAllowed("button_OrderPositionDialog_btnClose"));

  }
View Full Code Here

   * grantedAuthority(). Remember! A right is only a string. <br>
   */
  // TODO move it to the zul-file
  private void doCheckRights() {

    final UserWorkspace workspace = getUserWorkspace();

    // btnPrint.setVisible(workspace.isAllowed("button_BranchMain_PrintBranches"));
    button_ArticleList_SearchArticleID.setVisible(workspace.isAllowed("button_ArticleList_SearchArticleID"));
    button_ArticleList_SearchName.setVisible(workspace.isAllowed("button_ArticleList_SearchName"));

  }
View Full Code Here

  /**
   * SetVisible for components by checking if there's a right for it.
   */
  private void doCheckRights() {

    final UserWorkspace workspace = getUserWorkspace();

    orderListWindow.setVisible(workspace.isAllowed("orderListWindow"));

    btnHelp.setVisible(workspace.isAllowed("button_OrderList_btnHelp"));
    button_OrderList_NewOrder.setVisible(workspace.isAllowed("button_OrderList_NewOrder"));

  }
View Full Code Here

TOP

Related Classes of de.forsthaus.UserWorkspace

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.