Class VersionsNotification
- java.lang.Object
 - 
- hudson.plugins.project_inheritance.util.VersionsNotification
 
 
- 
public class VersionsNotification extends Object
A simple class that matches the current state of versioning to a set of messages that might be useful to the user. 
- 
- 
Constructor Summary
Constructors Constructor Description VersionsNotification(boolean isNewest, boolean isStable, boolean stablesBefore, boolean stablesAfter, VersionedObjectStore.Version latestStableVersion) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanareAllVersionsUnstable()StringgetNotificationMessage()Returns the message associated with this notificationbooleanhasStablesAfter()booleanhasStablesBefore()booleanisHighlightWarning()booleanisNewest()booleanisStable()booleanisWarning() 
 - 
 
- 
- 
Constructor Detail
- 
VersionsNotification
public VersionsNotification(boolean isNewest, boolean isStable, boolean stablesBefore, boolean stablesAfter, VersionedObjectStore.Version latestStableVersion) 
 - 
 
- 
Method Detail
- 
isNewest
public boolean isNewest()
 
- 
isStable
public boolean isStable()
 
- 
hasStablesBefore
public boolean hasStablesBefore()
 
- 
hasStablesAfter
public boolean hasStablesAfter()
 
- 
isWarning
public boolean isWarning()
 
- 
getNotificationMessage
public String getNotificationMessage()
Returns the message associated with this notification- Returns:
 - a message that can be empty, but is never null.
 
 
- 
isHighlightWarning
public boolean isHighlightWarning()
 
- 
areAllVersionsUnstable
public boolean areAllVersionsUnstable()
- Returns:
 - True or False, depending if all versions of the project are unstable, meaning no version has been marked as stable
 
 
 - 
 
 -