Package ru.portnyagin.helpdeskru.model

Examples of ru.portnyagin.helpdeskru.model.UserHD


    public Object getAsObject(FacesContext context, UIComponent component, String value) {
        if (value == null || value.length() == 0){
            return null;
        }

        UserHD sotrudnik = userHDService.find(Long.valueOf(value));

        if (sotrudnik == null) {
            throw new ConverterException(new FacesMessage("Unknown UserHD ID: " + value));
        }
View Full Code Here


        super(UserHD.class);
    }
   
    public UserHD findByLogin(String name) {
       
        UserHD s = null;
        CriteriaBuilder cb = getEntityManager().getCriteriaBuilder();
        CriteriaQuery cq = cb.createQuery();
        Root<UserHD> z = cq.from(UserHD.class);
        cq.where(cb.equal(z.get(UserHD_.login), name));
        cq.select(z);
View Full Code Here

    public void deleteUser() {
        getUserHDService().remove(currentUser);
    }
   
    public void addNewUser() {
        currentUser = new UserHD();
        currentUser.setRole(new Role());
        listAllUsers.add(0, currentUser);
    }
View Full Code Here

TOP

Related Classes of ru.portnyagin.helpdeskru.model.UserHD

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.