Package de.forsthaus.backend.model

Examples of de.forsthaus.backend.model.SecTyp


    rigType.setModel(new ListModelList(getSecurityService().getAllTypes()));
    rigType.setItemRenderer(new SecRightSecTypListModelItemRenderer());

    // if available, select the object
    ListModelList lml = (ListModelList) rigType.getModel();
    SecTyp typ = getSecurityService().getTypById(right.getRigType().intValue());

    if (right.isNew()) {
      rigType.setSelectedIndex(-1);
    } else {
      rigType.setSelectedIndex(lml.indexOf(typ));
View Full Code Here


        throw new RuntimeException(e);
      }
      return;
    }
    ListModelList lml1 = (ListModelList) rigType.getListModel();
    SecTyp typ = (SecTyp) lml1.get(item.getIndex());
    aRight.setRigType(Integer.valueOf(typ.getStpId()));

    // save it to database
    try {
      getSecurityService().saveOrUpdate(aRight);
    } catch (DataAccessException e) {
View Full Code Here

      Listitem item = lb_secRight_RightType.getSelectedItem();

      if (item != null) {

        // casting to the needed object
        SecTyp type = (SecTyp) item.getAttribute("data");

        if (type.getStpId() > -1) {
          soSecRight.addFilter(new Filter("rigType", type.getStpId(), Filter.OP_EQUAL));
        }

        // Set the ListModel.
        getPagedListWrapper().init(soSecRight, listBoxSecRights, paging_SecRightList);
View Full Code Here

    Listitem item = lb_secRight_RightType.getSelectedItem();

    if (item != null) {
      checkbox_SecRightList_ShowAll.setChecked(false); // clear
      // casting to the needed object
      SecTyp type = (SecTyp) item.getAttribute("data");

      if (type.getStpId() > -1) {

        soSecRight = new HibernateSearchObject<SecRight>(SecRight.class, getCountRows());
        soSecRight.addSort("rigName", false);

        soSecRight.addFilter(new Filter("rigType", type.getStpId(), Filter.OP_EQUAL));

        if (!tb_SecRightList_rigName.getValue().isEmpty()) {

          // mixed search statement -> like RightName + RightType
          soSecRight.addFilter(new Filter("rigName", "%" + tb_SecRightList_rigName.getValue() + "%", Filter.OP_ILIKE));
View Full Code Here

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

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

    final SecTyp typ = (SecTyp) data;

    final Listcell lc = new Listcell(typ.getStpTypname());
    lc.setParent(item);

    item.setAttribute("data", data);
  }
View Full Code Here

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

    final SecTyp typ = getSecurityService().getTypById(right.getRigType().intValue());

    lc = new Listcell(String.valueOf(typ.getStpTypname()));
    lc.setStyle("padding-left: 5px");
    lc.setParent(item);

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

    lc.setParent(item);

    lc = new Listcell(right.getRigName());
    lc.setParent(item);

    final SecTyp typ = getSecurityService().getTypById(right.getRigType().intValue());
    lc = new Listcell(String.valueOf(typ.getStpTypname()));
    lc.setParent(item);

    // lc = new Listcell();
    // Image img = new Image();
    // img.setSrc("/images/icons/page_detail.gif");
View Full Code Here

TOP

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

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.