Examples of Date


Examples of java.util.Date

      int max_reply_count = ConfigDAO.getMaxReplyCount(reply.getSite().getId());
      beginTransaction()
      reply.getDiary().incReplyCount(1);
      if(reply.getDiary().getReplyCount()>=max_reply_count && max_reply_count > 0)
        reply.getDiary().setLock(1);
      reply.getDiary().setLastReplyTime(new Date());
      if(reply.getUser()!=null)
        reply.getUser().getCount().incArticleReply(1);
      ssn.save(reply);
      commit();
    }catch(HibernateException e){
View Full Code Here

Examples of java.util.Date

    public boolean addCreationDate() {
        try {
      /* bugfix by 'taqua' (Thomas) */
      final SimpleDateFormat sdf = new SimpleDateFormat(
          "EEE MMM dd HH:mm:ss zzz yyyy");
      return add(new Meta(Element.CREATIONDATE, sdf.format(new Date())));
    } catch (DocumentException de) {
            throw new ExceptionConverter(de);
        }
    }
View Full Code Here

Examples of java.util.Date

        String host = url.getHost();
        if(!StringUtils.equals(req.getServerName(),host)){
          ExternalReferBean rbean = new ExternalReferBean();
          rbean.setUrl(refer);
          rbean.setClientAddr(req.getRemoteAddr());
          rbean.setReferTime(new Date());
          rbean.setRefId(ref_id);
          rbean.setRefType(ref_type);
          rbean.setSite(site);
          rbean.setHost(host);
          ExternalReferDAO.save(rbean);
View Full Code Here

Examples of java.util.Date

   * @param ubean
   * @return
   */
  private SiteBean auto_create_site(UserBean ubean){
    SiteBean sbean = new SiteBean();
    sbean.setCreateTime(new Date());
    sbean.setUniqueName(ubean.getName());
    sbean.setFriendlyName("DLOG of "+ubean.getNickname());
    sbean.setOwner(ubean);
    SiteDAO.createSite(sbean);
    return sbean;
View Full Code Here

Examples of java.util.Date

   * @see com.liusoft.dlog4j.upload.SecurityFCKUploadServlet#doPost(HttpServletRequest, HttpServletResponse)
   * @param fbean
   */
  public static void createUploadFileItem(FckUploadFileBean fbean){
    if(fbean.getUploadTime()==null)
      fbean.setUploadTime(new Date())
    save(fbean);
  }
View Full Code Here

Examples of java.util.Date

      }
      MusicBean mbean = MusicDAO.getMusicByID(mid);
      if(mbean!=null && mbean.getSite().getId()==mform.getSid())
      {
        MusicBean music = new MusicBean();
        music.setCreateTime(new Date());
        music.setMusicBox(null);
        music.setAlbum(mbean.getAlbum());
        music.setSinger(mbean.getSinger());
        music.setSite(new SiteBean(loginUser.getOwnSiteId()));
        music.setTitle(mbean.getTitle());
View Full Code Here

Examples of java.util.Date

      mbean.setName(super.autoFiltrate(site, mbox.getName()));
      if (StringUtils.isNotEmpty(mbox.getDesc())){
        String desc = super.autoFiltrate(site, mbox.getDesc());
        mbean.setDesc(super.filterScriptAndStyle(desc));
      }
      mbean.setCreateTime(new Date());
      mbean.setSite(site);
      MusicDAO.createBox(mbean, mbox.getId(), mbox.getDirection() == 1);
      mboxid = mbean.getId();
    }
    if (!msgs.isEmpty()) {
View Full Code Here

Examples of java.util.Date

        String word = super.autoFiltrate(site, mform.getWord());
        mbean.setWord(super.filterScriptAndStyle(word));
      }
      else
        mbean.setWord(" ");
      mbean.setCreateTime(new Date());
      mbean.setStatus(MusicBean.STATUS_RECOMMEND);
      MusicDAO.addMusic(mbean);
      break;
    }while(true);
View Full Code Here

Examples of lib.util.Date

          cidadeOcorrencia, bairroOcorrencia);
      Calendar agora = Calendar.getInstance();

      Complaint queixa = new SpecialComplaint(nomeSolicitante,
          descricaoQueixa, observacaoQueixa, emailSolicitante, null,
          1, null, new Date(agora.get(Calendar.DAY_OF_MONTH), agora
              .get(Calendar.MONTH), agora.get(Calendar.YEAR)),
          endSolicitante, idade, instrucao, ocupacao, endOcorrencia);

      Long codigo = facade.insertComplaint(queixa);
View Full Code Here

Examples of net.fortuna.ical4j.model.Date

        return dt;
    }

    public static Date toDate(String dateStr) {
        GregorianCalendar cal = toSGTCalendar(dateStr, null);
        Date dt = new Date(cal.getTime());
        return dt;
    }
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.