org.axway.grapes.server.core
Class VersionsHandler

java.lang.Object
  extended by org.axway.grapes.server.core.VersionsHandler

public class VersionsHandler
extends Object

Versions Handler

This class handles the versions retrieval, sort & the rules regarding version the update.

Author:
jdcoffre

Constructor Summary
VersionsHandler(RepositoryHandler repoHandler)
           
 
Method Summary
 String getLastRelease(Collection<String> versions)
          Find-out the last release version in a list of version (regarding Axway Conventions)
 String getLastVersion(Collection<String> versions)
          Find-out the last version in a list of version
 boolean isUpToDate(DbArtifact artifact)
          Check if the current version match the last release or the last snapshot one
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionsHandler

public VersionsHandler(RepositoryHandler repoHandler)
Method Detail

isUpToDate

public boolean isUpToDate(DbArtifact artifact)
Check if the current version match the last release or the last snapshot one

Parameters:
artifact -
Returns:
boolean

getLastRelease

public String getLastRelease(Collection<String> versions)
                      throws NotHandledVersionException,
                             IncomparableException
Find-out the last release version in a list of version (regarding Axway Conventions)

Parameters:
versions -
Returns:
String
Throws:
NotHandledVersionException
IncomparableException

getLastVersion

public String getLastVersion(Collection<String> versions)
                      throws NotHandledVersionException,
                             IncomparableException
Find-out the last version in a list of version

Parameters:
versions -
Returns:
String
Throws:
NotHandledVersionException
IncomparableException


Copyright © 2014. All Rights Reserved.