Class DateFormatterService


  • @ApplicationScoped
    @Named
    public class DateFormatterService
    extends java.lang.Object
    Author:
    Yuriy Z
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.Serializable formatClaim​(java.util.Date date, io.jans.as.model.common.CallerType callerType)  
      java.io.Serializable formatClaim​(java.util.Date date, java.lang.String patternKey)  
      java.io.Serializable formatClaimFallback​(java.util.Date date)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DateFormatterService

        public DateFormatterService()
    • Method Detail

      • formatClaim

        public java.io.Serializable formatClaim​(java.util.Date date,
                                                io.jans.as.model.common.CallerType callerType)
      • formatClaim

        public java.io.Serializable formatClaim​(java.util.Date date,
                                                java.lang.String patternKey)
        Parameters:
        date - date to format
        patternKey - pattern key. It's by intention is not enum to allow arbitrary key (not "locked" by CallerType)
        Returns:
        formatter value
      • formatClaimFallback

        public java.io.Serializable formatClaimFallback​(java.util.Date date)