Package org.blueoxygen.cimande.security

Examples of org.blueoxygen.cimande.security.User


    String FlatJS = "";

    FlatChildGenerator FlatChild;

    try {
      User us = getCurrentUser();
      this.roleId = us.getRole().getId();
      this.siteId = (String) ServletActionContext.getRequest()
          .getSession().getAttribute(LoginFilter.LOGIN_CIMANDE_SITE);

      mySQL = "FROM " + RoleSite.class.getName()
          + " tmp WHERE tmp.role.id='" + this.roleId
View Full Code Here


      log.setCreateBy(credentials.getCurrentUser().getId());
      log.setCreateDate(new Timestamp(System.currentTimeMillis()));
      getUser().setPassword(null);
      getUser().setId(null);
    } else {
      User category = getUser();
      setUser((User)manager.getById(User.class, getUser().getId()));
      log = getUser().getLogInformation();
      getUser().setPassword(getUser().getPassword());
      try {
        PropertyUtils.copyProperties(getUser(), category);
View Full Code Here

      log.setCreateBy(sessionCredentials.getCurrentUser().getId());
      log.setCreateDate(new Timestamp(System.currentTimeMillis()));
      getUser().setPassword(null);
      getUser().setId(null);
    } else {
      User category = getUser();
      setUser((User)manager.getById(User.class, getUser().getId()));
      log = getUser().getLogInformation();
      getUser().setPassword(getUser().getPassword());
      try {
        PropertyUtils.copyProperties(getUser(), category);
View Full Code Here

  public String execute() {
    setUser((User) getManager().getById(User.class, getUser().getId()));
    if (hasErrors()) {
      return INPUT;
    }
    User user;
    LogInformation logInfo;

    user = getUser();
    logInfo = user.getLogInformation();

    logInfo.setActiveFlag(1);
    logInfo.setLastUpdateBy(sess.getCurrentUser().getId());
    logInfo.setLastUpdateDate(new Timestamp(System.currentTimeMillis()));

    user.setPassword(su.encodeBase64(getNewPassword()));
    user.setLogInformation(logInfo);

    ua.update(user);

    return SUCCESS;
  }
View Full Code Here

TOP

Related Classes of org.blueoxygen.cimande.security.User

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.