Class BlogPost

    • Constructor Detail

      • BlogPost

        public BlogPost()
    • Method Detail

      • getType

        public String getType()
        Description copied from class: ContentEntityObject
        An easy name for the type of this content: makes it easy for things like the #contentLink macro to work out what to draw.

        This is a bit of a hack, but it saves heaps of code elsewhere, especially since we tend to get back these objects wrapped in all sorts of Hibernate CGLIB stuff.

        Specified by:
        getType in interface ContentTypeAware
        Specified by:
        getType in class ContentEntityObject
        Returns:
        the content type
      • toCalendar

        public static Calendar toCalendar​(Date date)
      • getCalendarFromDatePath

        public static Calendar getCalendarFromDatePath​(String datePath)
        BEFORE USING THIS - consider if BlogPostReference better suits your needs.
        Parameters:
        datePath - - should resemble /2005/11/12/aBlogTitle
        Returns:
        Calendar representing the date of the blog, useful for a call to pageManager.getBlogPost(spaceKey, title, calendarDay)
      • getTitleFromDatePath

        public static String getTitleFromDatePath​(String datePath)
        BEFORE USING THIS - consider if BlogPostReference better suits your needs.
        Parameters:
        datePath - - should resemble /2010/11/12/aBlogTitle
        Returns:
        the title of the blog, if supplied with correct input, otherwise a null
      • getLinkPart

        public String getLinkPart()
      • getDatePath

        public String getDatePath()
      • toDatePath

        public static String toDatePath​(Date date)
      • getPostingYear

        public String getPostingYear()
      • getPostingMonth

        public String getPostingMonth()
      • getPostingMonthNumeric

        public String getPostingMonthNumeric()
      • getPostingDayOfMonth

        public String getPostingDayOfMonth()
      • getPostingDate

        public Date getPostingDate()
        Alias for EntityObject.getCreationDate()
        Returns:
        the posting date
      • getPostingCalendarDate

        public Calendar getPostingCalendarDate()
      • shouldConvertToContent

        public boolean shouldConvertToContent()
        Specified by:
        shouldConvertToContent in interface ContentConvertible
        Returns:
        true if the implementer wants to be part of the core API (default value), false otherwise