Package org.kuali.coeus.sys.api.vc
Interface VersionNumberService
public interface VersionNumberService
-
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if the version is equal to the version returned fromgetVersion().Retrieves the version number of the Kuali Coeus Application.booleangreaterThan(String version) Checks if the version is greater than the version returned fromgetVersion().booleanChecks if the version is less than the version returned fromgetVersion().
-
Method Details
-
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
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
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
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
-