Class InfoBean


  • public class InfoBean
    extends Object
    • Constructor Detail

      • InfoBean

        public InfoBean()
    • Method Detail

      • getCurrentInfoBean

        public static InfoBean getCurrentInfoBean​(javax.servlet.http.HttpServletRequest request)
      • getCmsName

        public String getCmsName()
      • getCurrentAbsoluteURL

        public String getCurrentAbsoluteURL()
      • getCurrentAjaxURLWidthDevice

        public String getCurrentAjaxURLWidthDevice()
      • getCurrentAbsoluteURLQRCode

        public String getCurrentAbsoluteURLQRCode()
      • getCurrentModuleURL

        public String getCurrentModuleURL()
      • getUploadURL

        public String getUploadURL()
      • getUploadSharedURL

        public String getUploadSharedURL()
      • getCurrentAjaxURL

        public String getCurrentAjaxURL()
      • getDate

        public String getDate()
      • getMediumDate

        public String getMediumDate()
      • getFullDate

        public String getFullDate()
      • getNowDate

        public String getNowDate()
      • getNowMediumDate

        public String getNowMediumDate()
      • getNowFullDate

        public String getNowFullDate()
      • getNow

        public Date getNow()
      • getNowSortable

        public String getNowSortable()
      • getCurrentDate

        public String getCurrentDate()
      • getCurrentDateRFC3339

        public String getCurrentDateRFC3339()
      • getCurrentTimeRFC3339

        public String getCurrentTimeRFC3339()
      • getSortableDate

        public String getSortableDate()
      • getDevice

        public Device getDevice()
      • getEditLanguage

        public String getEditLanguage()
      • getEncoding

        public String getEncoding()
      • getGlobalTitle

        public String getGlobalTitle()
      • getHomeAbsoluteURL

        public String getHomeAbsoluteURL()
      • getContentLanguage

        public String getContentLanguage()
      • getRequestContentLanguage

        public String getRequestContentLanguage()
      • getRequestContentLanguageName

        public String getRequestContentLanguageName()
      • getLanguage

        public String getLanguage()
      • getPageDescription

        public HtmlPart getPageDescription()
      • getPageDescriptionForAttribute

        public String getPageDescriptionForAttribute()
      • getPageId

        public String getPageId()
      • getPageMetaDescription

        public String getPageMetaDescription()
      • getPageName

        public String getPageName()
      • getPageHumanName

        public String getPageHumanName()
      • getPageTitle

        public String getPageTitle()
      • getPageTitleForAttribute

        public String getPageTitleForAttribute()
      • getTitle

        public String getTitle()
      • getTitleForAttribute

        public String getTitleForAttribute()
      • getTime

        public String getTime()
      • getSortableTime

        public String getSortableTime()
      • getUserName

        public String getUserName()
      • getAdminUserName

        public String getAdminUserName()
      • getUserLabel

        public String getUserLabel()
      • getUserEmail

        public String getUserEmail()
      • getMainPage

        public PageBean getMainPage()
        return the root page if the current page is a children of association
        Returns:
      • getTemplateRoot

        public PageBean getTemplateRoot()
                                 throws Exception
        return the root page with this template, stop to parent page with different template
        Returns:
        Throws:
        Exception
      • getPagePath

        public List<PageBean> getPagePath()
        get the list of the pages from current to root
        Returns:
      • getVersion

        public String getVersion()
      • getEditTemplateURL

        public String getEditTemplateURL()
      • getEditTemplateFolder

        public String getEditTemplateFolder()
      • getPreviewTemplateModeURL

        public String getPreviewTemplateModeURL()
      • getResourceRootURL

        public String getResourceRootURL()
      • getFileRootURL

        public String getFileRootURL()
      • getMediaRootURL

        public String getMediaRootURL()
      • getStaticRootURL

        public String getStaticRootURL()
      • getContextKey

        public String getContextKey()
      • getContextDownloadURL

        public String getContextDownloadURL()
      • getCaptchaURL

        public String getCaptchaURL()
      • getCurrentUserAvatarUrl

        public String getCurrentUserAvatarUrl()
      • getLogoURL

        public String getLogoURL()
      • getJavloLogoHtml

        public String getJavloLogoHtml()
      • getBackgroundURL

        public String getBackgroundURL()
      • getPreviewVersion

        public int getPreviewVersion()
      • getParent

        public PageBean getParent()
      • getCopiedPath

        public String getCopiedPath()
      • getPrivateHelpURL

        public String getPrivateHelpURL()
      • isOpenExternalLinkAsPopup

        public boolean isOpenExternalLinkAsPopup()
      • getTemplateFolder

        public String getTemplateFolder()
      • getRootTemplateFolder

        public String getRootTemplateFolder()
      • getRootTemplateURL

        public String getRootTemplateURL()
      • getAbsoluteRootTemplateURL

        public String getAbsoluteRootTemplateURL()
      • getAbsoluteTemplateFolder

        public String getAbsoluteTemplateFolder()
      • getShortURL

        public String getShortURL()
      • getQrCodeURL

        public String getQrCodeURL()
      • getShortLanguageURL

        public String getShortLanguageURL()
      • getTagsRaw

        public String getTagsRaw()
      • getSection

        public String getSection()
        return the name of the first level page active. "root" if current page in root.
        Returns:
        Throws:
        Exception
      • getSectionNumber

        public int getSectionNumber()
      • getSectionUrl

        public String getSectionUrl()
        return the url of the first level page active. "root" if current page in root.
        Returns:
        Throws:
        Exception
      • getSubSection

        public String getSubSection()
        return the name of the second level page active. "root" if current page in root.
        Returns:
        Throws:
        Exception
      • getSubSectionUrl

        public String getSubSectionUrl()
        return the url of the second level page active. "root" if current page in root.
        Returns:
        Throws:
        Exception
      • getSubSectionTitle

        public String getSubSectionTitle()
        return the name of the second level page active. "root" if current page in root.
        Returns:
        Throws:
        Exception
      • getSubSectionTechnicalTitle

        public String getSubSectionTechnicalTitle()
        return the name of the second level page active. "root" if current page in root.
        Returns:
        Throws:
        Exception
      • getSectionTitle

        public String getSectionTitle()
        return the name of the first level page active. "root" if current page in root.
        Returns:
        Throws:
        Exception
      • getSectionTechnicalTitle

        public String getSectionTechnicalTitle()
        return the name of the first level page active. "root" if current page in root.
        Returns:
        Throws:
        Exception
      • getTemplate

        public Template getTemplate()
      • getTemplateName

        public String getTemplateName()
      • getPathPrefix

        public String getPathPrefix()
      • isGod

        public boolean isGod()
      • isAdmin

        public boolean isAdmin()
      • isMaster

        public boolean isMaster()
      • getPath

        public String getPath()
      • isPreview

        public boolean isPreview()
      • isView

        public boolean isView()
      • isPageMode

        public boolean isPageMode()
      • getPublishDate

        public String getPublishDate()
      • isAccountSettings

        public boolean isAccountSettings()
      • isFirstCallForSession

        public boolean isFirstCallForSession()
        this method return true at the first call for current session and false afer.
        Returns:
      • getArea

        public String getArea()
      • isEditPreview

        public boolean isEditPreview()
      • isPreviewEdit

        public boolean isPreviewEdit()
      • getFirstLevelPage

        public PageBean getFirstLevelPage()
      • getEditUser

        public User getEditUser()
      • getAbsoluteURLPrefix

        public String getAbsoluteURLPrefix()
      • getAbsoluteLocalURLPrefix

        public String getAbsoluteLocalURLPrefix()
      • getHostURLPrefix

        public String getHostURLPrefix()
      • getServerTime

        public String getServerTime()
      • isTools

        public boolean isTools()
      • setTools

        public void setTools​(boolean actionBar)
      • isLocalModule

        public boolean isLocalModule()
      • getTs

        public String getTs()
        timestamp initialised when java VM is staded.
        Returns:
      • getQRCodeLinkPrefix

        public String getQRCodeLinkPrefix()
      • getBackURL

        public String getBackURL()
      • getBackPage

        public PageBean getBackPage()
                             throws Exception
        if back page name is setted in as _back_page param this method return the PageBean.
        Returns:
        Throws:
        Exception
      • getRootURL

        public String getRootURL()
      • getRootURLPageMode

        public String getRootURLPageMode()
      • getRootURLViewMode

        public String getRootURLViewMode()
      • getRSSAllURL

        public String getRSSAllURL()
      • getRootAbsoluteURL

        public String getRootAbsoluteURL()
      • getRootAbsoluteViewURL

        public String getRootAbsoluteViewURL()
      • getPageBookmark

        public String getPageBookmark()
      • getHostPort

        public int getHostPort()
      • getCurrentYear

        public int getCurrentYear()
      • getCurrentDay

        public int getCurrentDay()
      • getCurrentMonth

        public int getCurrentMonth()
      • getUserLanguage

        public String getUserLanguage()
      • getMonths

        public String[] getMonths()
      • getAjaxLoaderURL

        public String getAjaxLoaderURL()
      • getViewAjaxLoaderURL

        public String getViewAjaxLoaderURL()
      • getRandomId

        public String getRandomId()
      • getRandom10

        public long getRandom10()
        return a random number between 0 and 9
      • getRandom100

        public long getRandom100()
        return a random number between 0 and 99
      • getRandom1000

        public long getRandom1000()
        return a random number between 0 and 9999
      • isRSSFeed

        public boolean isRSSFeed()
      • getCurrentDepth

        public int getCurrentDepth()
                            throws Exception
        get the current total depth of navigation.
        Returns:
        Throws:
        Exception
      • getWaitURL

        public String getWaitURL()
      • getInteractiveMacro

        public List<MacroBean> getInteractiveMacro()
      • getFakeCurrentURL

        public String getFakeCurrentURL()
      • setFakeCurrentURL

        public void setFakeCurrentURL​(String fakeCurrentURL)
      • isPageEditable

        public boolean isPageEditable()
                               throws Exception
        check if current user can edit the current page
        Returns:
        Throws:
        Exception
      • getLibUrl

        public String getLibUrl()
      • isInternetAccess

        public boolean isInternetAccess()
      • getTranslateLanguageMap

        public Map<String,​String> getTranslateLanguageMap()
      • isArchive

        public boolean isArchive()
      • getPageNotFoundMessage

        public String getPageNotFoundMessage()
      • setPageNotFoundMessage

        public void setPageNotFoundMessage​(String pageNotFoundMessage)
      • getAjaxLoginUrl

        public String getAjaxLoginUrl()
      • getWebactionUrl

        public String getWebactionUrl()
      • getShortDays

        public String[] getShortDays()
      • getLongDays

        public String[] getLongDays()
      • main

        public static void main​(String[] args)
      • getDefaultEmailSender

        public String getDefaultEmailSender()
      • getMarkAllReadNotificationUrl

        public String getMarkAllReadNotificationUrl()
      • getJsonSiteMapUrl

        public String getJsonSiteMapUrl()