Esempio n. 1
0
 /** Saves group */
 public boolean saveGroup(boolean showMessage) {
   if (validateGroup(showMessage)) {
     group.save();
     groupRoleHelperList.setChecks(group.getGroupRoles());
     return true;
   } else {
     return false;
   }
 }
Esempio n. 2
0
  /** Setup {@link GroupBean} object, used to bind data on the form. */
  private void setupGroupBean(GroupBean group) {
    if (group != null) {
      this.group = group;
    } else {
      this.group = new GroupBean();
    }

    if (groupRoleHelperList == null) {
      groupRoleHelperList = new GroupRoleHelperListBean();
    }

    groupRoleHelperList.setGroupRoles(this.group.getGroupRoles());
    firePropertyChange("group", null, this.group);
  }