Package org.silverpeas.core.calendar
Interface Prioritized
-
- All Known Implementing Classes:
CalendarEvent
public interface Prioritized
It defines the property of an object of being potentially prioritized. By default, aPlannableOnCalendar
object isn't a priority; in such a case, it has a normal priority.- Author:
- mmoquillon
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Priority
getPriority()
Gets the priority of this object.default boolean
isPriority()
Is this object a priority?Prioritized
withPriority(Priority priority)
Sets a priority to this prioritized object.
-
-
-
Method Detail
-
withPriority
Prioritized withPriority(Priority priority)
Sets a priority to this prioritized object.- Parameters:
priority
- a priority level.- Returns:
- itself.
-
getPriority
Priority getPriority()
Gets the priority of this object.- Returns:
- a priority level.
-
isPriority
default boolean isPriority()
Is this object a priority?- Returns:
- true if this object has a priority level other than normal. False otherwise.
-
-