Package org.javlo.navigation
Class PageBean
- java.lang.Object
-
- org.javlo.navigation.PageBean
-
- All Implemented Interfaces:
Serializable
public class PageBean extends Object implements Serializable
bean for the page, can be use in JSTL.- Author:
- Patrick Vandermaesen
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PageBean(ContentContext ctx, MenuElement page)
-
Method Summary
-
-
-
Constructor Detail
-
PageBean
public PageBean(ContentContext ctx, MenuElement page)
-
-
Method Detail
-
getInfo
public PageDescription getInfo()
-
getParent
public PageBean getParent()
-
getUrl
public String getUrl()
-
getPreviewUrl
public String getPreviewUrl()
-
getViewUrl
public String getViewUrl()
-
getPdfUrl
public String getPdfUrl()
-
getPdfAbsoluteUrl
public String getPdfAbsoluteUrl()
-
getAbsoluteUrl
public String getAbsoluteUrl()
-
getAbsoluteUrlEncoded
public String getAbsoluteUrlEncoded() throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
getAbsolutePreviewUrl
public String getAbsolutePreviewUrl()
-
getEditUrl
public String getEditUrl()
-
getCreator
public String getCreator()
-
isSelected
public boolean isSelected()
-
getRealChildren
public List<PageBean> getRealChildren()
get the list of children with isRealContent() and isVisible() is true.- Returns:
-
getChildren
public List<PageBean> getChildren()
get the list of children with isActive() true if no edition.- Returns:
-
getName
public String getName()
-
getColor
public ExtendedColor getColor()
-
getBackgroundColor
public ExtendedColor getBackgroundColor()
-
getHumanName
public String getHumanName()
-
getPath
public String getPath()
-
getLatestEditor
public String getLatestEditor()
-
getModificationDate
public String getModificationDate()
-
getModificationDateSource
public Date getModificationDateSource() throws ParseException, Exception
- Throws:
ParseException
Exception
-
getContentDateValue
public String getContentDateValue()
-
getContentDateNeverNullValue
public String getContentDateNeverNullValue()
-
getCreationDate
public String getCreationDate()
-
getTemplateId
public String getTemplateId()
-
isLastSelected
public boolean isLastSelected()
-
getId
public String getId()
-
isRealContentAuto
public boolean isRealContentAuto()
-
isRealContent
public boolean isRealContent()
-
isRealContentAnyLanguage
public boolean isRealContentAnyLanguage()
-
getRealContentLanguage
public String getRealContentLanguage()
-
getFirstRoles
public String getFirstRoles()
-
getFirstAdminRole
public String getFirstAdminRole()
-
getFirstAdminRoleAndParent
public String getFirstAdminRoleAndParent()
-
getShortURL
public String getShortURL()
-
getShortLanguageURL
public String getShortLanguageURL()
-
getViewURL
public String getViewURL()
-
isAllreadyShortURL
public boolean isAllreadyShortURL()
-
getForcedPageTitle
public String getForcedPageTitle()
-
getPageTitle
public String getPageTitle()
-
getContact
public ContactBean getContact()
-
getTechnicalTitle
public String getTechnicalTitle()
-
getTitleOrSubtitle
public String getTitleOrSubtitle()
-
getSlogan
public String getSlogan()
-
getLastAccess
public int getLastAccess()
-
getPageRank
public double getPageRank()
-
getStartPublish
public String getStartPublish()
-
getEndPublish
public String getEndPublish()
-
isInsideTimeRange
public boolean isInsideTimeRange()
-
isVisible
public boolean isVisible()
-
isActive
public boolean isActive()
-
isModel
public boolean isModel()
-
isAdmin
public boolean isAdmin()
-
isVisibleForContext
public boolean isVisibleForContext()
-
isChildrenAssociation
public boolean isChildrenAssociation()
-
isChildrenOfAssociation
public boolean isChildrenOfAssociation()
-
getRootOfChildrenAssociation
public PageAssociationBean getRootOfChildrenAssociation() throws Exception
- Throws:
Exception
-
getPage
public MenuElement getPage()
-
getDepth
public int getDepth()
-
isRoot
public boolean isRoot()
-
isEditable
public boolean isEditable() throws Exception
is page editable by current User ?- Returns:
- Throws:
Exception
-
getNotCacheableComponent
public String getNotCacheableComponent() throws Exception
- Throws:
Exception
-
isTrash
public boolean isTrash()
-
getSeoWeight
public int getSeoWeight()
-
setContentContext
public void setContentContext(ContentContext ctx)
-
isValid
public boolean isValid()
-
isNeedValidation
public boolean isNeedValidation()
-
isNoValidation
public boolean isNoValidation()
-
getNextPage
public PageBean getNextPage() throws Exception
get the next page in the navigation.- Returns:
- null if current page is the last page
- Throws:
Exception
-
getSiblingsSize
public int getSiblingsSize()
-
getSiblingsPosition
public int getSiblingsPosition()
-
getPreviousPage
public PageBean getPreviousPage()
get the next page in the navigation.- Returns:
- null if current page is the last page
-
getFlowIndex
public int getFlowIndex()
return the flow number of the page- Returns:
- 1: modified not ready, 2:ready for validation, 3:valided, 4:publish
-
isValidable
public boolean isValidable()
current user can validated this page ?- Returns:
-
isReadAccess
public boolean isReadAccess()
-
getHtmlId
public String getHtmlId()
-
getIndex
public int getIndex()
-
getContentLanguage
public String getContentLanguage()
-
getContentLanguageName
public String getContentLanguageName()
-
getScreenshotUrl
public String getScreenshotUrl() throws IOException
- Throws:
IOException
-
getLastDayVisit
public int getLastDayVisit() throws ServiceException, IOException
- Throws:
ServiceException
IOException
-
getLastMountVisit
public int getLastMountVisit() throws ServiceException, IOException
- Throws:
ServiceException
IOException
-
getLastYearVisit
public int getLastYearVisit() throws ServiceException, IOException
- Throws:
ServiceException
IOException
-
getContentAsMap
public Map<String,Object> getContentAsMap() throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, Exception
-
-