use of com.autentia.tnt.businessobject.User in project TNTConcept by autentia.
the class AuthenticationManagerLdapImplTest method getUserAdmin.
private User getUserAdmin() {
User userAdmin = new User();
userAdmin.setDn("admin");
userAdmin.setLdapPassword("adminPassword");
return userAdmin;
}
use of com.autentia.tnt.businessobject.User in project TNTConcept by autentia.
the class BookBean method getLentTos.
// Getters to list possible values of related entities
/**
* Get the list of all lentTos
* @return the list of all lentTos
*/
public List<SelectItem> getLentTos() {
List<User> refs = UserManager.getDefault().getAllEntities(null, new SortCriteria("name"));
ArrayList<SelectItem> ret = new ArrayList<SelectItem>();
for (User ref : refs) {
ret.add(new SelectItem(ref, ref.getName()));
}
return ret;
}
use of com.autentia.tnt.businessobject.User in project TNTConcept by autentia.
the class CommissioningBean method getAllRevisers.
// Getters to list possible values of related entities
/**
* Get the list of all revisers
*
* @return the list of all revisers
*/
public List<SelectItem> getAllRevisers() {
List<User> refs = UserManager.getDefault().getAllEntities(null, new SortCriteria("name", true));
ArrayList<SelectItem> ret = new ArrayList<SelectItem>();
for (User ref : refs) {
ret.add(new SelectItem(ref, ref.getName()));
}
return ret;
}
use of com.autentia.tnt.businessobject.User in project TNTConcept by autentia.
the class ContactBean method deleteOwner.
public String deleteOwner() {
final UIData table = (UIData) FacesUtils.getComponent("contact:owners");
final User toDelete = (User) table.getRowData();
contact.removeOwner(toDelete);
if (contact.getOwners().isEmpty()) {
FacesUtils.addWarningMessage("contact:ownersList", "editContact.emptyOwners", null);
}
return NavigationResults.EDIT;
}
use of com.autentia.tnt.businessobject.User in project TNTConcept by autentia.
the class OfferBean method getUsers.
// Getters to list possible values of related entities
/**
* Get the list of all users
*
* @return the list of all users
*/
public List<SelectItem> getUsers() {
List<User> refs = UserManager.getDefault().getAllEntities(null, new SortCriteria("name"));
ArrayList<SelectItem> ret = new ArrayList<SelectItem>();
for (User ref : refs) {
ret.add(new SelectItem(ref, ref.getName()));
}
return ret;
}
Aggregations