use of com.autentia.tnt.businessobject.Organization in project TNTConcept by autentia.
the class TagBean method getAllOrganizations.
public List<SelectItem> getAllOrganizations() {
final List<Organization> refs = OrganizationManager.getDefault().getAllEntities(null, new SortCriteria("name"));
final List<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 TagBean method deleteOrganization.
public String deleteOrganization() {
final UIData table = (UIData) FacesUtils.getComponent("tag:organizations");
final Organization toDelete = (Organization) table.getRowData();
tag.getOrganizationTags().remove(toDelete);
return NavigationResults.EDIT;
}
use of com.autentia.tnt.businessobject.Organization in project TNTConcept by autentia.
the class TagBean method createOrganizationTags.
/**
* Create a new empty instance of the one-to-many field
*
* @return forward to the same page
*/
public String createOrganizationTags() {
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 getOrganizationTagsSelected.
/**
* Get the list of all organizationTags selected
*
* @return the list of all organizationTags selected
*/
public List<SelectItem> getOrganizationTagsSelected() {
ArrayList<SelectItem> ret = new ArrayList<SelectItem>();
List<Organization> refs = this.getOrganizationTags();
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 AdvancedSearchContactBean method getAllOrganizations.
public List<SelectItem> getAllOrganizations() {
List<Organization> refs = OrganizationManager.getDefault().getAllEntities(null, new SortCriteria("id"));
List ret = new ArrayList();
for (Organization ref : refs) {
ret.add(new SelectItem(ref, ref.getName()));
}
return ret;
}
Aggregations