Package net.naijatek.myalumni.modules.common.domain

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


    else if (scrollForm.getType().equalsIgnoreCase("update")) {
      systemConfigService.updateScroll(scrollForm.getScrollId(), getLastModifiedBy(request));
      sCtx.setAttribute(BaseConstants.SCROLL_VO, systemConfigService.getLatestScroll());
    }
    else if (scrollForm.getType().equalsIgnoreCase("new")) {
      ScrollVO scrollVO = new ScrollVO();
      BeanUtils.copyProperties(scrollVO, scrollForm);
      scrollVO.setLastModifiedBy(getLastModifiedBy(request));
      scrollVO.setScrollId(null);
      systemConfigService.addScroll(scrollVO);       
      sCtx.setAttribute(BaseConstants.SCROLL_VO, scrollVO);
      allScrolls = systemConfigService.getAllScrolls();
      setSessionObject(request, BaseConstants.LIST_OF_SCROLLS, allScrolls);
View Full Code Here


            saveMessages(request, msgs);   
          }         

     
      // Scroll
      ScrollVO scrollVO = new ScrollVO();     
      scrollVO.setLastModifiedBy("system");
      scrollVO.setScrollId(null);
      scrollVO.setPriority(BaseConstants.BOOLEAN_YES);
      scrollVO.setScrollText("Welcome to " + systemConfigVO.getOrganizationName());   
      systemConfigService.addScroll(scrollVO);       
      sCtx.setAttribute(BaseConstants.SCROLL_VO, scrollVO);   
     
 
      systemConfigService.setupIntialization(systemConfigVO);
View Full Code Here

    return getHibernateTemplate().find("from ScrollVO");
  }

  @SuppressWarnings("unchecked")
  public ScrollVO getLatestScroll() {
    ScrollVO scroll = new ScrollVO();
    List<ScrollVO> scrolls = getSession().createQuery("select from ScrollVO s order by s.lastModifiedDate desc")
    .list();
   
    if (scrolls != null && scrolls.size() > 0){
      scroll = scrolls.get(0);
View Full Code Here

    }
    return scroll; 
  }

  public void updateScroll(String scrollId, String lastModifiedBy) {
    ScrollVO scrollVO = (ScrollVO)load(ScrollVO.class, scrollId);
    scrollVO.setLastModifiedBy(lastModifiedBy);
    update(scrollVO);
  }
View Full Code Here

  private void setupDatabaseCache(final ISystemTaskService startupService,
      final ISystemConfigService sysConfigService, String hasDorm)
      throws Exception {

    // load the scroll
    ScrollVO scrollVO = sysConfigService.getLatestScroll();
    getServletContext().setAttribute(BaseConstants.SCROLL_VO, scrollVO);

    if (hasDorm == null || hasDorm.length() == 0) {
      hasDorm = BaseConstants.BOOLEAN_NO;
    }
View Full Code Here

TOP

Related Classes of net.naijatek.myalumni.modules.common.domain.ScrollVO

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.