Package de.forsthaus.backend.model

Examples of de.forsthaus.backend.model.SecRole


  private static final Logger logger = Logger.getLogger(UserRolesListModelItemRenderer.class);

  @Override
  public void render(Listitem item, Object data) throws Exception {

    final SecRole role = (SecRole) data;

    Listcell lc = new Listcell(String.valueOf(role.getId()));
    lc.setParent(item);
    lc = new Listcell(role.getRolShortdescription());
    lc.setParent(item);

    item.setAttribute("data", data);
    ComponentsCtrl.applyForward(item, "onDoubleClick=onDoubleClicked");
View Full Code Here


    // get the selected object
    Listitem item = listBoxSecRoles.getSelectedItem();

    if (item != null) {
      // CAST AND STORE THE SELECTED OBJECT
      SecRole aRole = (SecRole) item.getAttribute("data");

      showDetailView(aRole);
    }
  }
View Full Code Here

    // create a new branch object
    /** !!! DO NOT BREAK THE TIERS !!! */
    // We don't create a new DomainObject() in the frontend.
    // We GET it from the backend.
    SecRole aRole = getSecurityService().getNewSecRole();

    showDetailView(aRole);

  }
View Full Code Here

    Listcell lc = new Listcell();
    final Checkbox cb = new Checkbox();

    // get the role for which we pull the data
    final SecRole role = this.parentController.getSelected();

    //
    if (role != null) {
      if (getSecurityService().isGroupInRole(group, role)) {
        cb.setChecked(true);
View Full Code Here

  private static final Logger logger = Logger.getLogger(SecRoleListModelItemRenderer.class);

  @Override
  public void render(Listitem item, Object data) throws Exception {

    final SecRole role = (SecRole) data;
    Listcell lc;

    lc = new Listcell(role.getRolShortdescription());
    lc.setStyle("padding-left: 5px");
    lc.setParent(item);

    lc = new Listcell(role.getRolLongdescription());
    lc.setStyle("padding-left: 5px");
    lc.setParent(item);

    item.setAttribute("data", data);
    ComponentsCtrl.applyForward(item, "onDoubleClick=onRoleItemDoubleClicked");
View Full Code Here

TOP

Related Classes of de.forsthaus.backend.model.SecRole

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.