Package java.util

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


        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

   * @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

   * @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

      }
      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

      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

        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

            mform.getWord()), MAX_MUSIC_LENGTH);
        mbean.setWord(super.filterScriptAndStyle(word));
      }
      else
        mbean.setWord("  ");
      mbean.setCreateTime(new Date());
      MusicDAO.addMusic(mbean);
      break;
    }

    if (!msgs.isEmpty()) {
View Full Code Here

      String codePropertyName = "JMS_JORAM_ERRORCODE_" + errorCount;
      mess.setProperty(ERROR_COUNT, errorCount);

      switch (reason) {
      case MessageErrorConstants.EXPIRED:
        mess.setProperty(causePropertyName, "Expired at " + new Date(mess.expiration));
        mess.setProperty(codePropertyName, new Short(MessageErrorConstants.EXPIRED));
        break;
      case MessageErrorConstants.NOT_WRITEABLE:
        mess.setProperty(causePropertyName, "Destination is not writable");
        mess.setProperty(codePropertyName, new Short(MessageErrorConstants.NOT_WRITEABLE));
View Full Code Here

    public void start() {
        try {
            channel=new JChannel(props);
            disp=new RpcDispatcher(channel, this, this, this);
            channel.connect(channel_name);
            System.out.println("\nQuote Server started at " + new Date());
            System.out.println("Joined channel '" + channel_name + "' (" + channel.getView().size() + " members)");
            channel.getState(null, 0);
            System.out.println("Ready to serve requests");
        }
        catch(Exception e) {
View Full Code Here

TOP

Related Classes of java.util.Date

Copyright © 2015 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.