public PeopleQueryWrapper(Peoplequery adaptee) { if (adaptee.getLogicalpeoplegroupdef() == null) { throw new RuntimeException( "Invalid people query. " + "There must be always a logical people group definition " + "associated with the people query."); } this.peopleQueryEntity = adaptee; }
public ILogicalPeopleGroupDef getBoundPeopleGroup() { /* Create the model of the LPG definition from the entity model */ return ModelElementFactory.newInstance() .createPeopleGroupDefinition(peopleQueryEntity.getLogicalpeoplegroupdef()); }