Package org.srvlnc.common.model.entity

Examples of org.srvlnc.common.model.entity.SystemUser


    userNameForSearch = null;
    fullNameForSearch = null;
  }

  public void submitUpdateForm(ActionEvent event) {
    SystemUser systemUser;
    if (idSystemUser != null && idSystemUser.trim().length() > 0) {
      systemUser = userMaintenanceFacade.find(Integer.valueOf(idSystemUser));
    } else {
      systemUser = new SystemUser();
    }
    systemUser.setUserName(userName);
    systemUser.setFullName(fullName);
    if (userPassword != null && userPassword.equals(userPasswordRepeat) ) {
      systemUser.setUserPassword(userPassword);
      userMaintenanceFacade.saveOrUpdate(systemUser);
      setSuccessMessage(messageHandler.getMessage("userMaintenance_updateSuccess"));
    } else {
      userPassword = null;
      userPasswordRepeat = null;
View Full Code Here


  }
 
  public void retrieveObjectForUpdate(ActionEvent event) {
    try {
      Integer id = Integer.valueOf(getRequestParameter("idSystemUser"));
      SystemUser systemUser = userMaintenanceFacade.find(id);
      if (systemUser != null) {
        idSystemUser = systemUser.getId().toString();
        userName = systemUser.getUserName();
        fullName = systemUser.getFullName();
      } else {
        setErrorMessage(messageHandler.getMessage("userMaintenance_objectNotFound"));
      }
    } catch (Exception ex) {
      setErrorMessage(messageHandler.getMessage("userMaintenance_executionFailure")
View Full Code Here

  @PersistenceContext(unitName = "srvlncUnit")
  private EntityManager em;

  public SystemUser find(Integer id) {
    Session session = (Session) em.getDelegate();
    SystemUser systemUser = (SystemUser) session
        .createCriteria(SystemUser.class)
        .add(Restrictions.eq("id", id))
        .uniqueResult();
    return systemUser;
  }
View Full Code Here

TOP

Related Classes of org.srvlnc.common.model.entity.SystemUser

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.