use of com.autentia.tnt.businessobject.Tag in project TNTConcept by autentia.
the class PositionBean method getAllTags.
public List<SelectItem> getAllTags() {
final List<Tag> refs = TagManager.getDefault().getAllEntities(null, new SortCriteria("id"));
final List<SelectItem> ret = new ArrayList<SelectItem>();
for (Tag ref : refs) {
ret.add(new SelectItem(ref, ref.getName()));
}
return ret;
}
use of com.autentia.tnt.businessobject.Tag in project TNTConcept by autentia.
the class TagBean method create.
/**
* Go to create page
*
* @return forward to CREATE page
*/
public String create() {
tag = new Tag();
tag.setInsertDate(new Date());
return NavigationResults.CREATE;
}
use of com.autentia.tnt.businessobject.Tag in project TNTConcept by autentia.
the class DepartmentBean method getAllTags.
public List<SelectItem> getAllTags() {
final List<Tag> refs = TagManager.getDefault().getAllEntities(null, new SortCriteria("id"));
final List<SelectItem> ret = new ArrayList<SelectItem>();
for (Tag ref : refs) {
ret.add(new SelectItem(ref, ref.getName()));
}
return ret;
}
Aggregations