Package fr.openwide.maven.artifact.notifier.core.business.search.model

Examples of fr.openwide.maven.artifact.notifier.core.business.search.model.ArtifactVersionBean


   
    Elements versions = doc.getElementsByTag("version");
    List<ArtifactVersionBean> artifactList = Lists.newArrayList();
    for (Element version : versions) {
     
      ArtifactVersionBean artifactVersionBean = new ArtifactVersionBean();
      artifactVersionBean.setGroupId(groupId);
      artifactVersionBean.setArtifactId(artifactId);
      artifactVersionBean.setVersion(version.text());
      artifactVersionBean.setId(groupId + ":" + artifactId + ":" + version.text());
     
      // Gets and convert the last update date
      Long lastUpdateDate = retrieveLastUpdateDate(artifactVersionBean);
      if (lastUpdateDate == null) {
        continue;
      }
      artifactVersionBean.setTimestamp(lastUpdateDate);
     
      artifactList.add(artifactVersionBean);
    }
   
    return artifactList;
View Full Code Here


  private ArtifactVersionBean createVersionBean(String groupId, String artifactId, String version) {
    return createVersionBean(groupId, artifactId, version, new Date().getTime());
  }
 
  private ArtifactVersionBean createVersionBean(String groupId, String artifactId, String version, long timestamp) {
    ArtifactVersionBean versionBean = new ArtifactVersionBean();
    versionBean.setGroupId(groupId);
    versionBean.setArtifactId(artifactId);
    versionBean.setVersion(version);
    versionBean.setTimestamp(timestamp);
    return versionBean;
  }
View Full Code Here

TOP

Related Classes of fr.openwide.maven.artifact.notifier.core.business.search.model.ArtifactVersionBean

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.