Package org.blueoxygen.postila.systemadmin.clientrules.entity

Examples of org.blueoxygen.postila.systemadmin.clientrules.entity.PositionCategory


    }
    if(hasErrors()){
      return SUCCESS;
    }
   
    PositionCategory positionCategory;
    if(getPositionCategory().getId() == null || "".equalsIgnoreCase(getPositionCategory().getId())){
      positionCategory = new PositionCategory();
      logInfo = new LogInformation();
      logInfo.setCreateBy(sessionCredentials.getCurrentUser().getId());
      logInfo.setCreateDate(new Timestamp(System.currentTimeMillis()));
    } else {
      positionCategory = (PositionCategory) manager.getById(PositionCategory.class, getPositionCategory().getId());
      logInfo = positionCategory.getLogInformation();
    }
   
    logInfo.setActiveFlag(getActive());
    logInfo.setLastUpdateBy(sessionCredentials.getCurrentUser().getId());
    logInfo.setLastUpdateDate(new Timestamp(System.currentTimeMillis()));
   
    positionCategory.setLogInformation(logInfo);
    positionCategory.setName(getPositionCategory().getName());
    positionCategory.setDescription(getPositionCategory().getDescription());
    positionCategory.setCommentHelp(getPositionCategory().getCommentHelp());
   
    manager.save(positionCategory);
    setPositionCategory(positionCategory);
   
    return SUCCESS;
View Full Code Here

TOP

Related Classes of org.blueoxygen.postila.systemadmin.clientrules.entity.PositionCategory

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.