protected void addType(GroupType type) { this.getGroup_types().add(type); }
public void addType(GroupType type) throws  GroupModifyException, InsufficientPrivilegeException { if (this.hasType(type)) { throw new GroupModifyException("group already has type: " + type); } if (!PrivilegeResolver.getInstance().isRoot(this.s.getSubject())) { throw new InsufficientPrivilegeException("subject cannot add types"); } try { StopWatch sw    = new StopWatch(); Session   hs    = HibernateHelper.getSession(); Set       types = this.getGroup_types(); types.add(type); this.setGroup_types(types); HibernateHelper.save(this); hs.close(); sw.stop(); EL.groupAddType(this.s, this.getName(), type, sw); } catch (Exception e) { String msg = "unable to add type: " + type + ": " + e.getMessage(); LOG.error(msg); throw new GroupModifyException(msg); } }
  protected void addType(GroupType type) {    this.getGroup_types().add(type);  } // protected void addType(type)