Package de.forsthaus

Examples of de.forsthaus.UserWorkspace


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

    final UserWorkspace workspace = getUserWorkspace();

    this.button_BranchMain_Search_BranchName.setVisible(workspace.isAllowed("button_BranchMain_Search_BranchName"));

  }
View Full Code Here


    // ++ create the searchObject and init sorting ++//
    HibernateSearchObject<SecUser> soUser = new HibernateSearchObject<SecUser>(SecUser.class, getCountRows());
    soUser.addSort("usrLoginname", false);

    /* New check the rights. If UserOnly mode than show only the users data */
    UserWorkspace workspace = getUserWorkspace();

    // special right for see all other users
    if (workspace.isAllowed("data_SeeAllUserData")) {
      // show all users
      checkbox_UserList_ShowAll.setChecked(true);

      // Set the ListModel.
      getPagedListWrapper().init(soUser, listBoxUser, paging_UserList);
View Full Code Here

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

    final UserWorkspace workspace = getUserWorkspace();

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

    btnHelp.setVisible(workspace.isAllowed("button_UserList_btnHelp"));
    button_UserList_NewUser.setVisible(workspace.isAllowed("button_UserList_NewUser"));
    button_UserList_PrintUserList.setVisible(workspace.isAllowed("button_UserList_PrintUserList"));

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

  }
View Full Code Here

      /*
       * New check the rights. If UserOnly mode than show only the users
       * data
       */
      final UserWorkspace workspace = getUserWorkspace();

      // special right for see all other users
      if (workspace.isAllowed("data_SeeAllUserData")) {
        // show all users
        // Set the ListModel.
        getPagedListWrapper().init(soUser, listBoxUser, paging_UserList);
      } else {
        // show only logged in users data
View Full Code Here

      /*
       * New check the rights. If UserOnly mode than show only the users
       * data
       */
      final UserWorkspace workspace = getUserWorkspace();

      // special right for see all other users
      if (workspace.isAllowed("data_SeeAllUserData")) {
        // show all users

        // Set the ListModel.
        getPagedListWrapper().init(soUser, listBoxUser, paging_UserList);
      } else {
View Full Code Here

      /*
       * New check the rights. If UserOnly mode than show only the users
       * data
       */
      final UserWorkspace workspace = getUserWorkspace();

      // special right for see all other users
      if (workspace.isAllowed("data_SeeAllUserData")) {
        // show all users

        // Set the ListModel.
        getPagedListWrapper().init(soUser, listBoxUser, paging_UserList);
      } else {
View Full Code Here

    HibernateSearchObject<SecUser> soUser = new HibernateSearchObject<SecUser>(SecUser.class, getCountRows());
    soUser.addSort("usrLoginname", false);

    /* New check the rights. If UserOnly mode than show only the users data */
    final UserWorkspace workspace = getUserWorkspace();

    // special right for see all other users
    if (workspace.isAllowed("data_SeeAllUserData")) {
      // show all users
      checkbox_UserList_ShowAll.setChecked(true);

      // Set the ListModel.
      getPagedListWrapper().init(soUser, listBoxUser, paging_UserList);
View Full Code Here

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

    final UserWorkspace workspace = getUserWorkspace();

    button_OfficeList_SearchNo.setVisible(workspace.isAllowed("button_OfficeList_SearchNo"));
    button_OfficeList_SearchName.setVisible(workspace.isAllowed("button_OfficeList_SearchName"));
    button_OfficeList_SearchCity.setVisible(workspace.isAllowed("button_OfficeList_SearchCity"));

  }
View Full Code Here

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

    final UserWorkspace workspace = getUserWorkspace();

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

    tab_UserDialog_Details.setVisible(workspace.isAllowed("tab_UserDialog_Details"));
    tabpanel_UserDialog_Details.setVisible(workspace.isAllowed("tab_UserDialog_Details"));

    btnHelp.setVisible(workspace.isAllowed("button_UserDialog_btnHelp"));
    btnNew.setVisible(workspace.isAllowed("button_UserDialog_btnNew"));
    btnEdit.setVisible(workspace.isAllowed("button_UserDialog_btnEdit"));
    btnDelete.setVisible(workspace.isAllowed("button_UserDialog_btnDelete"));
    btnSave.setVisible(workspace.isAllowed("button_UserDialog_btnSave"));
    btnClose.setVisible(workspace.isAllowed("button_UserDialog_btnClose"));

    panel_UserDialog_Status.setVisible(workspace.isAllowed("panel_UserDialog_Status"));
    panel_UserDialog_SecurityToken.setVisible(workspace.isAllowed("panel_UserDialog_SecurityToken"));
  }
View Full Code Here

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

    final UserWorkspace workspace = getUserWorkspace();

    // customerChartWindow.setVisible(workspace.isAllowed(
    // "window_BranchesList"));
    // btnHelp.setVisible(workspace.isAllowed("button_CustomerDialog_btnHelp"
    // ));
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.