Class AbstractTemplateUserNotificationBuilder.NotificationTemporal
- java.lang.Object
-
- org.silverpeas.core.notification.user.builder.AbstractTemplateUserNotificationBuilder.NotificationTemporal
-
- Enclosing class:
- AbstractTemplateUserNotificationBuilder<T>
public static class AbstractTemplateUserNotificationBuilder.NotificationTemporal extends Object
Handles the date formats into notification building context.
-
-
Constructor Summary
Constructors Constructor Description NotificationTemporal(Temporal temporal, ZoneId zoneIdReference, String language)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDate()
Gets the date with time (if the temporal has time data otherwise only date is returned).String
getDayDate()
Gets the date of the day.String
getDayTime()
Gets the time data if the temporal supports such a chronology unit.String
getFullDate()
Gets the date with hour data if the temporal has hour data.
If the zone id is not the same of the platform, the zone id is also filled.String
getZonedDayTime()
Gets the time data if the temporal supports such a chronology unit.boolean
isDateExisting()
Indicates if the date exist.boolean
isTimeExisting()
Indicates if the underlying temporal has time data.
-
-
-
Method Detail
-
isDateExisting
public boolean isDateExisting()
Indicates if the date exist.- Returns:
- true if exists, false otherwise.
-
getDayDate
public String getDayDate()
Gets the date of the day.- Returns:
- a string.
-
getDate
public String getDate()
Gets the date with time (if the temporal has time data otherwise only date is returned).- Returns:
- a string.
-
getFullDate
public String getFullDate()
Gets the date with hour data if the temporal has hour data.
If the zone id is not the same of the platform, the zone id is also filled.- Returns:
- a string.
-
isTimeExisting
public boolean isTimeExisting()
Indicates if the underlying temporal has time data.- Returns:
- true if the time exists in the temporal, false otherwise.
-
getDayTime
public String getDayTime()
Gets the time data if the temporal supports such a chronology unit.- Returns:
- a string.
-
getZonedDayTime
public String getZonedDayTime()
Gets the time data if the temporal supports such a chronology unit.- Returns:
- a string.
-
-