use of com.autentia.tnt.businessobject.Organization in project TNTConcept by autentia.
the class ReportBean method getOrganizations.
public ArrayList<SelectItem> getOrganizations() {
ArrayList<SelectItem> ret = new ArrayList<SelectItem>();
List<Organization> refs = organizationDAO.search(new SortCriteria("name"));
for (Organization ref : refs) {
ret.add(new SelectItem(ref.getId().toString(), ref.getName()));
}
return ret;
}
use of com.autentia.tnt.businessobject.Organization in project TNTConcept by autentia.
the class BillManagerTest method createOrganizationInContext.
private Organization createOrganizationInContext() {
final Organization organization = new Organization();
daoOrganization.insert(organization);
return organization;
}
use of com.autentia.tnt.businessobject.Organization in project TNTConcept by autentia.
the class ContactBean method getAllOrganizations.
public List<SelectItem> getAllOrganizations() {
final List<Organization> refs = OrganizationManager.getDefault().getAllEntities(null, new SortCriteria("name"));
final List<SelectItem> ret = new ArrayList<SelectItem>();
ret.add(new SelectItem(null, FacesUtils.getMessage("contact.selectOneOrganization")));
for (Organization ref : refs) {
String name = ref.getName();
if (name.length() > 97) {
name = name.substring(0, 97) + "...";
}
ret.add(new SelectItem(ref, name));
}
return ret;
}
use of com.autentia.tnt.businessobject.Organization in project TNTConcept by autentia.
the class InteractionBean method onSelectedOrganizationSearchChanged.
public void onSelectedOrganizationSearchChanged(ValueChangeEvent event) {
Organization now = (Organization) event.getNewValue();
if (now == null)
return;
setSearchProjectValid(true);
setSelectedOrganization(now);
FacesUtils.renderResponse();
}
use of com.autentia.tnt.businessobject.Organization in project TNTConcept by autentia.
the class OfferBean method getOrganizations.
/* Offer - generated by stajanov (do not edit/delete) */
/**
* Get the list of all organizations
*
* @return the list of all organizations
*/
public List<SelectItem> getOrganizations() {
List<Organization> refs = OrganizationManager.getDefault().getAllEntities(null, new SortCriteria("name"));
ArrayList<SelectItem> ret = new ArrayList<SelectItem>();
for (Organization ref : refs) {
ret.add(new SelectItem(ref, ref.getName()));
}
ret.add(0, new SelectItem(""));
return ret;
}
Aggregations