Search in sources :

Example 1 with CollectCompleteInfo

use of org.openforis.collect.CollectCompleteInfo in project collect by openforis.

the class CollectInfoService method getCompleteInfo.

public CollectCompleteInfo getCompleteInfo() {
    Version latestRelease = latestRelease();
    Version currentVersion = Collect.VERSION;
    CollectCompleteInfo info = new CollectCompleteInfo(currentVersion, latestRelease);
    return info;
}
Also used : Version(org.openforis.commons.versioning.Version) CollectCompleteInfo(org.openforis.collect.CollectCompleteInfo)

Example 2 with CollectCompleteInfo

use of org.openforis.collect.CollectCompleteInfo in project collect by openforis.

the class CollectInfoService method getCompleteInfo.

public CollectCompleteInfo getCompleteInfo(HttpServletRequest request) {
    Version latestRelease = latestRelease();
    Version currentVersion = Collect.VERSION;
    CollectCompleteInfo info = new CollectCompleteInfo(currentVersion, latestRelease);
    info.setSaikuUrl(determineSaikuUrl(request));
    return info;
}
Also used : Version(org.openforis.commons.versioning.Version) CollectCompleteInfo(org.openforis.collect.CollectCompleteInfo)

Aggregations

CollectCompleteInfo (org.openforis.collect.CollectCompleteInfo)2 Version (org.openforis.commons.versioning.Version)2