use of com.autentia.tnt.businessobject.Organization in project TNTConcept by autentia.
the class ContactBean method getAllDepartmentsOfCompany.
public List<SelectItem> getAllDepartmentsOfCompany() {
final Set<Organization> organizations = new LinkedHashSet<Organization>();
organizations.add(this.getSelectedOrganization());
final DepartmentSearch departmentSearch = new DepartmentSearch();
departmentSearch.setOrganization(this.getSelectedOrganization());
final List<Department> refs = DepartmentManager.getDefault().getAllEntities(departmentSearch, new SortCriteria("name"));
final List<SelectItem> ret = new ArrayList<SelectItem>();
ret.add(new SelectItem(null, FacesUtils.getMessage("contact.selectOneDepartment")));
for (Department ref : refs) {
ret.add(new SelectItem(ref, ref.getName()));
}
return ret;
}
use of com.autentia.tnt.businessobject.Organization in project TNTConcept by autentia.
the class ContactBean method getOrganizations.
// Getters to list possible values of related entities
/**
* 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()));
}
return ret;
}
use of com.autentia.tnt.businessobject.Organization in project TNTConcept by autentia.
the class InteractionBean method getOrganizations.
/**
* Get the list of all organizations
* @return the list of all organizations
*/
public List<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, ref.getName()));
}
return ret;
}
use of com.autentia.tnt.businessobject.Organization in project TNTConcept by autentia.
the class TagBean method editOrganizationTags.
/**
* Create a new empty instance of the one-to-many field
*
* @return forward to the same page
*/
public String editOrganizationTags() {
Organization item = new Organization();
if (tag.getOrganizationTags() == null) {
tag.setOrganizationTags(new HashSet());
}
tag.getOrganizationTags().add(item);
return null;
}
use of com.autentia.tnt.businessobject.Organization in project TNTConcept by autentia.
the class TagBean method getOrganizationTagss.
/**
* Get the list of all organizationTagss
*
* @return the list of all organizationTagss
*/
public List<SelectItem> getOrganizationTagss() {
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()));
}
return ret;
}
Aggregations