Examples of SystemConfigVO


Examples of net.naijatek.myalumni.modules.common.domain.SystemConfigVO

 
  /**
   * Server URL
   */
  public SystemConfigVO getSystemConfig(){ 
    SystemConfigVO systemSetup = (SystemConfigVO) getSession()
        .getNamedQuery("get.systemConfig")
        .uniqueResult();
     
      return (systemSetup == null)? new SystemConfigVO(): systemSetup;
  }
View Full Code Here

Examples of net.naijatek.myalumni.modules.common.domain.SystemConfigVO

  }
 
 
  public void updateServerUrl(String serverUrl, String lastModifiedBy){
   
    SystemConfigVO systemSetup = getSystemConfig();
   
    if(systemSetup.getSystemConfigId() == null)
      systemSetup = new SystemConfigVO();     
   
    systemSetup.setServerUrl(serverUrl);
    systemSetup.setLastModifiedBy(lastModifiedBy);
   
    getHibernateTemplate().saveOrUpdate(systemSetup);
 
View Full Code Here

Examples of net.naijatek.myalumni.modules.common.domain.SystemConfigVO

    getHibernateTemplate().saveOrUpdate(systemSetup);
 
 
  public void updateAlbumUrl(String albumUrl, String lastModifiedBy){
   
    SystemConfigVO systemSetup = getSystemConfig();
   
    if(systemSetup.getSystemConfigId() == null)
      systemSetup = new SystemConfigVO();     
   
    systemSetup.setAlbumUrl(albumUrl);
    systemSetup.setLastModifiedBy(lastModifiedBy);
   
    getHibernateTemplate().saveOrUpdate(systemSetup);
 
View Full Code Here

Examples of net.naijatek.myalumni.modules.common.domain.SystemConfigVO

    getHibernateTemplate().saveOrUpdate(systemSetup);
 
 
  public void updateForumUrl(String forumUrl, String lastModifiedBy){
   
    SystemConfigVO systemSetup = getSystemConfig();
   
    if(systemSetup.getSystemConfigId() == null)
      systemSetup = new SystemConfigVO();     
   
    systemSetup.setForumUrl(forumUrl);
    systemSetup.setLastModifiedBy(lastModifiedBy);
   
    getHibernateTemplate().saveOrUpdate(systemSetup);
 
View Full Code Here

Examples of net.naijatek.myalumni.modules.common.domain.SystemConfigVO

   * First year school started
   */
  @SuppressWarnings("unchecked")
  public int getFirstYearofSchool(){
    int year = 1900;
    SystemConfigVO _systemConfig = getSystemConfig();
   
    if (_systemConfig.getSystemConfigId() != null)  { 
      if (_systemConfig.getOrgFirstYear() !=  null){
        try{
          year = Integer.parseInt(_systemConfig.getOrgFirstYear());
        }
        catch(NumberFormatException nfe){
          year = 1900;
        }
      }               
View Full Code Here

Examples of net.naijatek.myalumni.modules.common.domain.SystemConfigVO

  }
 
 
  @SuppressWarnings("unchecked")
  public void updateFirstYearofSchool(SystemConfigVO sysConfigVO){
    SystemConfigVO _systemConfig = getSystemConfig();
   
    if(_systemConfig.getSystemConfigId() != null){//do update
      _systemConfig.setLastModification(BaseConstants.UPDATED);
      _systemConfig.setOrgFirstYear(sysConfigVO.getOrgFirstYear());     
    } else{ //do new add
      _systemConfig = new SystemConfigVO();
      _systemConfig.setLastModification(BaseConstants.ADDED);
    }
   
    _systemConfig.setLastModifiedDate(new Date());
    _systemConfig.setLastModifiedBy(sysConfigVO.getLastModifiedBy());
   
    getHibernateTemplate().saveOrUpdate(_systemConfig);
  }
View Full Code Here

Examples of net.naijatek.myalumni.modules.common.domain.SystemConfigVO

 
  /**
   * Dormitory
   */
  public void updateDormitory(SystemConfigVO systemConfigVO){
    SystemConfigVO systemSetup = getSystemConfig();
 
  if(systemSetup.getSystemConfigId() == null)
    systemSetup = new SystemConfigVO();     
 
  systemSetup.setHasDormitory(systemConfigVO.getHasDormitory());
 
  getHibernateTemplate().saveOrUpdate(systemSetup);   
  }
View Full Code Here

Examples of net.naijatek.myalumni.modules.common.domain.SystemConfigVO

 
 
 
  public String getDormitory(){
    String hasDorm = BaseConstants.BOOLEAN_NO;
    SystemConfigVO _systemConfig = getSystemConfig();
   
    if (_systemConfig.getSystemConfigId() != null)  { 
      if (_systemConfig.getHasDormitory() !=  null){
        try{
          hasDorm = _systemConfig.getHasDormitory();
        }
        catch(NumberFormatException nfe){
          hasDorm = BaseConstants.BOOLEAN_NO;
        }
      }               
View Full Code Here

Examples of net.naijatek.myalumni.modules.common.domain.SystemConfigVO

 
    /**
     * Upload Logo
     */ 
  public void uploadLogo(SystemConfigVO systemConfigVO){
    SystemConfigVO systemSetup = getSystemConfig();
   
    if(systemSetup.getSystemConfigId() == null)
      systemSetup = new SystemConfigVO();     
   
    systemSetup.setLogoFileName(systemConfigVO.getLogoFileName());
   
    getHibernateTemplate().saveOrUpdate(systemSetup);
   
  }
View Full Code Here

Examples of net.naijatek.myalumni.modules.common.domain.SystemConfigVO

 
  /**
   * Birthday Notification
   */
  public void updateBirthdayNotification(SystemConfigVO systemConfigVO){
    SystemConfigVO systemSetup = getSystemConfig();
 
  if(systemSetup.getSystemConfigId() == null)
    systemSetup = new SystemConfigVO();     
 
  systemSetup.setBirthdayNotification(systemConfigVO.getBirthdayNotification());
 
  getHibernateTemplate().saveOrUpdate(systemSetup);   
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.