Package org.kuali.coeus.sys.api.vc
Interface VersionNumberService
-
public interface VersionNumberService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanequalTo(String version)Checks if the version is equal to the version returned fromgetVersion().StringgetVersion()Retrieves the version number of the Kuali Coeus Application.booleangreaterThan(String version)Checks if the version is greater than the version returned fromgetVersion().booleanlessThan(String version)Checks if the version is less than the version returned fromgetVersion().
-
-
-
Method Detail
-
getVersion
String getVersion()
Retrieves the version number of the Kuali Coeus Application. This method should return a String that represents a semantically versioned number and in accordance to the maven artifact versioning rules.- Returns:
- a version number. Will not return null or a blank string.
- Throws:
IllegalStateException- if the version number is blank. This represents a system misconfiguration
-
lessThan
boolean lessThan(String version)
Checks if the version is less than the version returned fromgetVersion().- Parameters:
version- the version to check. cannot be blank.- Throws:
IllegalArgumentException- if the version is blank
-
greaterThan
boolean greaterThan(String version)
Checks if the version is greater than the version returned fromgetVersion().- Parameters:
version- the version to check. cannot be blank.- Throws:
IllegalArgumentException- if the version is blank
-
equalTo
boolean equalTo(String version)
Checks if the version is equal to the version returned fromgetVersion().- Parameters:
version- the version to check. cannot be blank.- Throws:
IllegalArgumentException- if the version is blank
-
-