Package org.javlo.data
Class InfoBean
- java.lang.Object
-
- org.javlo.data.InfoBean
-
public class InfoBean extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
FAKE_PATH_PARAMETER_NAME
static String
REQUEST_KEY
-
Constructor Summary
Constructors Constructor Description InfoBean()
-
Method Summary
-
-
-
Field Detail
-
FAKE_PATH_PARAMETER_NAME
public static final String FAKE_PATH_PARAMETER_NAME
- See Also:
- Constant Field Values
-
REQUEST_KEY
public static final String REQUEST_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCurrentInfoBean
public static InfoBean getCurrentInfoBean(javax.servlet.http.HttpServletRequest request)
-
getCurrentInfoBean
public static InfoBean getCurrentInfoBean(ContentContext ctx) throws Exception
- Throws:
Exception
-
updateInfoBean
public static InfoBean updateInfoBean(ContentContext ctx) throws Exception
create info bean in request (key=info) for jstp call in template.- Parameters:
ctx
-- Throws:
Exception
-
getCmsName
public String getCmsName()
-
getContentContext
public ContentContext getContentContext()
-
getCurrentAbsoluteURL
public String getCurrentAbsoluteURL()
-
getCurrentAbsoluteURLZIP
public String getCurrentAbsoluteURLZIP() throws Exception
- Throws:
Exception
-
getCurrentAbsoluteURLXML
public String getCurrentAbsoluteURLXML() throws Exception
- Throws:
Exception
-
getCurrentAbsolutePreviewURL
public String getCurrentAbsolutePreviewURL() throws Exception
- Throws:
Exception
-
getCurrentURLWidthDevice
public String getCurrentURLWidthDevice() throws Exception
- Throws:
Exception
-
getCurrentAjaxURLWidthDevice
public String getCurrentAjaxURLWidthDevice()
-
getCurrentAbsoluteURLQRCode
public String getCurrentAbsoluteURLQRCode()
-
getCurrentModuleURL
public String getCurrentModuleURL()
-
getUploadURL
public String getUploadURL()
-
getUploadSharedURL
public String getUploadSharedURL()
-
getCurrentViewURLWidthDevice
public String getCurrentViewURLWidthDevice() throws Exception
- Throws:
Exception
-
getCurrentAjaxURL
public String getCurrentAjaxURL()
-
getCurrentPage
public MenuElement getCurrentPage()
-
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()
-
getNowInputDate
public String getNowInputDate() throws ParseException
- Throws:
ParseException
-
getMajorInputDate
public String getMajorInputDate() throws ParseException
- Throws:
ParseException
-
getMaxAgeInputDate
public String getMaxAgeInputDate() throws ParseException
- Throws:
ParseException
-
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()
-
getGlobalMessage
public GenericMessage getGlobalMessage()
-
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
@Deprecated public String getPageID()
Deprecated.
-
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()
-
getPage
public PageBean getPage()
-
getMainPage
public PageBean getMainPage()
return the root page if the current page is a children of association- Returns:
-
getRoot
public PageBean getRoot()
-
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()
-
getContentLanguages
public Collection<String> getContentLanguages()
-
getLanguages
public Collection<String> getLanguages()
-
getPagesForAnyLanguages
public Collection<PageBean> getPagesForAnyLanguages() throws Exception
- Throws:
Exception
-
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()
-
getRoles
public Collection<String> getRoles()
-
getParent
public PageBean getParent()
-
getCopiedPath
public String getCopiedPath()
-
getPrivateHelpURL
public String getPrivateHelpURL()
-
getAdminRoles
public Collection<String> getAdminRoles()
-
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()
-
getTags
public Collection<String> getTags()
-
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()
-
getTemplateBean
public Template.TemplateBean getTemplateBean()
-
getTemplates
public List<Template.TemplateBean> getTemplates()
-
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()
-
getEditContext
public EditContext getEditContext()
-
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
-
getI18nAjaxURL
public String getI18nAjaxURL() throws ModuleException, Exception
- Throws:
ModuleException
Exception
-
getContextForCopy
public ContentContext getContextForCopy()
-
getWaitURL
public String getWaitURL()
-
getSubTitles
public List<SubTitleBean> getSubTitles() throws Exception
- Throws:
Exception
-
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
-
getUnreadTickets
public List<TicketUserWrapper> getUnreadTickets() throws Exception
- Throws:
Exception
-
getLibUrl
public String getLibUrl()
-
isInternetAccess
public boolean isInternetAccess()
-
isArchive
public boolean isArchive()
-
getImageBackgroundForArea
public Map<String,String> getImageBackgroundForArea() throws Exception
- Throws:
Exception
-
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()
-
getHello
public String getHello() throws ServiceException, Exception
- Throws:
ServiceException
Exception
-
getJsonSiteMapUrl
public String getJsonSiteMapUrl()
-
-