Search in sources :

Example 1 with EventEntity

use of org.mifos.platform.questionnaire.domain.EventEntity in project head by mifos.

the class QuestionnaireMapperTest method getEventSources.

private HashSet<EventSourceEntity> getEventSources(String event, String source) {
    EventSourceEntity eventSourceEntity = new EventSourceEntity();
    EventEntity eventEntity = new EventEntity();
    eventEntity.setName(event);
    eventSourceEntity.setEvent(eventEntity);
    EntityMaster entityMaster = new EntityMaster();
    entityMaster.setEntityType(source);
    eventSourceEntity.setSource(entityMaster);
    HashSet<EventSourceEntity> eventSources = new HashSet<EventSourceEntity>();
    eventSources.add(eventSourceEntity);
    return eventSources;
}
Also used : EventSourceEntity(org.mifos.platform.questionnaire.domain.EventSourceEntity) EventEntity(org.mifos.platform.questionnaire.domain.EventEntity) EntityMaster(org.mifos.framework.business.EntityMaster) HashSet(java.util.HashSet)

Example 2 with EventEntity

use of org.mifos.platform.questionnaire.domain.EventEntity in project head by mifos.

the class QuestionnaireMapperTest method getEventSourceEntities.

private List<EventSourceEntity> getEventSourceEntities(String event, String source, String description) {
    List<EventSourceEntity> events = new ArrayList<EventSourceEntity>();
    EventSourceEntity eventSourceEntity = new EventSourceEntity();
    eventSourceEntity.setDescription(description);
    EventEntity eventEntity = new EventEntity();
    eventEntity.setName(event);
    eventSourceEntity.setEvent(eventEntity);
    EntityMaster entityMaster = new EntityMaster();
    entityMaster.setEntityType(source);
    eventSourceEntity.setSource(entityMaster);
    events.add(eventSourceEntity);
    return events;
}
Also used : EventSourceEntity(org.mifos.platform.questionnaire.domain.EventSourceEntity) ArrayList(java.util.ArrayList) EventEntity(org.mifos.platform.questionnaire.domain.EventEntity) EntityMaster(org.mifos.framework.business.EntityMaster)

Example 3 with EventEntity

use of org.mifos.platform.questionnaire.domain.EventEntity in project head by mifos.

the class QuestionnaireMapperTest method getEventSourceEntity.

private EventSourceEntity getEventSourceEntity(String event, String source) {
    EventSourceEntity eventSource = new EventSourceEntity();
    EventEntity eventEntity = new EventEntity();
    eventEntity.setName(event);
    eventSource.setEvent(eventEntity);
    EntityMaster entityMaster = new EntityMaster();
    entityMaster.setEntityType(source);
    eventSource.setSource(entityMaster);
    return eventSource;
}
Also used : EventSourceEntity(org.mifos.platform.questionnaire.domain.EventSourceEntity) EventEntity(org.mifos.platform.questionnaire.domain.EventEntity) EntityMaster(org.mifos.framework.business.EntityMaster)

Aggregations

EntityMaster (org.mifos.framework.business.EntityMaster)3 EventEntity (org.mifos.platform.questionnaire.domain.EventEntity)3 EventSourceEntity (org.mifos.platform.questionnaire.domain.EventSourceEntity)3 ArrayList (java.util.ArrayList)1 HashSet (java.util.HashSet)1