use of com.autentia.tnt.businessobject.InteractionType in project TNTConcept by autentia.
the class DuplicateOfferTest method insertOfferInteraction.
/**
* Inserta una interaccion en la oferta
*/
private void insertOfferInteraction() {
final Set<Interaction> interactions = new LinkedHashSet<Interaction>(1);
final InteractionTypeDAO interactionTypeDAO = (InteractionTypeDAO) SpringUtilsForTesting.getSpringBean("daoInteractionType");
final InteractionType interactionType = new InteractionType();
interactionType.setName("interaccion");
interactionTypeDAO.insert(interactionType);
final Interaction interaction = new Interaction();
interaction.setProject(project);
interaction.setUser(user);
interaction.setType(interactionType);
interaction.setOffer(offer);
interaction.setCreationDate(new Date());
interaction.setInterest(InteractionInterest.MEDIUM);
interaction.setDescription("descripcion de la interaccion");
interactions.add(interaction);
offer.setInteractions(interactions);
}
use of com.autentia.tnt.businessobject.InteractionType in project TNTConcept by autentia.
the class InteractionBean method getTypes.
/**
* Get the list of all types
* @return the list of all types
*/
public List<SelectItem> getTypes() {
List<InteractionType> refs = InteractionTypeManager.getDefault().getAllEntities(null, new SortCriteria("name"));
ArrayList<SelectItem> ret = new ArrayList<SelectItem>();
for (InteractionType ref : refs) {
ret.add(new SelectItem(ref, ref.getName()));
}
return ret;
}
Aggregations