Exemplo n.º 1
0
  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;
  }
Exemplo n.º 2
0
 public ILogicalPeopleGroupDef getBoundPeopleGroup() {
   /* Create the model of the LPG definition from the entity model */
   return ModelElementFactory.newInstance()
       .createPeopleGroupDefinition(peopleQueryEntity.getLogicalpeoplegroupdef());
 }