Search in sources :

Example 1 with OrganizationSearch

use of com.autentia.tnt.dao.search.OrganizationSearch in project TNTConcept by autentia.

the class InteractionBean method restoreOffer.

public void restoreOffer() {
    final OfferBean offerBean = (OfferBean) FacesUtils.getBean("offerBean");
    final OrganizationSearch orgSearch = new OrganizationSearch();
    orgSearch.setName(offerBean.getOrganization().getName());
    offerBean.setOrganization(OrganizationManager.getDefault().getAllEntities(orgSearch, new SortCriteria("id")).get(0));
    interaction = null;
}
Also used : SortCriteria(com.autentia.tnt.dao.SortCriteria) OrganizationSearch(com.autentia.tnt.dao.search.OrganizationSearch)

Aggregations

SortCriteria (com.autentia.tnt.dao.SortCriteria)1 OrganizationSearch (com.autentia.tnt.dao.search.OrganizationSearch)1