All Methods Static Methods Instance Methods Concrete Methods
Modifier and Type |
Method and Description |
MenuElement[] |
_getAllChildren() |
String |
_getPath()
return the page of this page
|
void |
addAccess(ContentContext ctx) |
void |
addChildMenuElement(MenuElement menuElement) |
void |
addChildMenuElementAutoPriority(MenuElement menuElement) |
void |
addChildMenuElementOnBottom(MenuElement menuElement) |
void |
addChildMenuElementOnTop(MenuElement menuElement) |
void |
addCompToDelete(String id) |
void |
addContent(String parentId,
ComponentBean bean) |
void |
addContent(String parentId,
ComponentBean bean,
boolean realeaseCache) |
void |
addEditorRole(String group) |
void |
addEditorRoles(Collection<String> groups) |
void |
addFollowers(ContentContext ctx,
String userName) |
void |
addVirtualParent(String menuId) |
void |
clearEditorGroups() |
void |
clearPageBean(ContentContext ctx) |
void |
clearVirtualParent() |
void |
copyChildren(MenuElement page) |
int |
countComponentInCtx(ContentContext ctx,
String inComponentType)
count the component of a specific type on the current page.
|
boolean |
deleteCompList(ContentContext ctx) |
void |
endRendering(ContentContext ctx) |
boolean |
equals(ContentContext ctx,
MenuElement page) |
boolean |
equals(ContentContext ctx,
MenuElement page,
boolean withChildren) |
boolean |
equals(Object obj) |
protected void |
finalize() |
int |
getAccess(ContentContext ctx,
Date date) |
List<MenuElement> |
getAllChildrenList() |
List<MenuElement> |
getAllChildrenWithComponentType(ContentContext ctx,
String type) |
ContentElementList |
getAllContent(ContentContext ctx) |
ComponentBean[] |
getAllLocalContentBean() |
Collection<Resource> |
getAllResources(ContentContext ctx) |
List<String> |
getAllVirtualPath()
return the page of this page
|
ContentElementList |
getBestLanguageContent(ContentContext ctx)
get the content in current language and in default languages order if not
exist.
|
String |
getBlocker() |
protected ICache |
getCache(ContentContext ctx) |
protected String |
getCacheKey(ContentContext ctx,
String subkey) |
String |
getCategory(ContentContext ctx)
get the category of the page (category component)
|
String[] |
getChildList() |
List<MenuElement> |
getChildMenuElements()
get the child list of the current element.
|
List<MenuElement> |
getChildMenuElements(ContentContext ctx,
boolean visible) |
List<MenuElement> |
getChildMenuElementsList()
get the child list of the current element.
|
List<MenuElement> |
getChildMenuElementsList(ContentContext ctx,
boolean visible) |
List<MenuElement> |
getChildMenuElementsWithVirtual(ContentContext ctx,
boolean onlyVisible,
boolean virtualBefore) |
List<MenuElement> |
getChildMenuElementsWithVirtualList(ContentContext ctx,
boolean visible,
boolean virtualBefore) |
int |
getChildPosition(MenuElement child) |
MenuElement |
getChildrenAssociationPage()
get the children association page of the current page.
|
List<String> |
getChildrenCategories(ContentContext ctx) |
ExtendedColor |
getColor(ContentContext ctx)
get the slogan of the page (slogan component)
|
IContentVisualComponent |
getComponent(ContentContext ctx,
String id) |
ContactBean |
getContact(ContentContext ctx)
get local i18n data
|
ComponentBean[] |
getContent() |
ContentElementList |
getContent(ContentContext ctx)
get content of the current area
|
List<ComponentBean> |
getContentAsList() |
Map<String,Object> |
getContentAsMap(ContentContext ctx) |
String |
getContentAsText(ContentContext ctx) |
Map<Date,List<IContentVisualComponent>> |
getContentByDate(ContentContext ctx)
return the content separed on the date component.
|
List<IContentVisualComponent> |
getContentByImplementation(ContentContext ctx,
Class clazz) |
List<IContentVisualComponent> |
getContentByType(ContentContext ctx,
String type) |
ContentContext |
getContentContextWithContent(ContentContext ctx)
return a language with content.
|
Date |
getContentDate(ContentContext ctx)
get the date found in the content.
|
Date |
getContentDateComponent(ContentContext ctx) |
Date |
getContentDateNeverNull(ContentContext ctx)
return content Date and modification data if no content date.
|
Map<String,ContentElementList> |
getContentElementListMap() |
String |
getContentTitle(ContentContext ctx)
get the real content title.
|
Date |
getCreationDate() |
String |
getCreator() |
int |
getDepth()
return the depth of the current element
|
HtmlPart |
getDescription(ContentContext ctx)
get description of the page (description component)
|
String |
getDescriptionAsText(ContentContext ctx)
get description of the page (description component)
|
Set<String> |
getEditorRoles() |
Set<String> |
getEditorRolesAndParent() |
Date |
getEndPublishDate() |
Event |
getEvent(ContentContext ctx)
get event if menu element contains event info.
|
List<Event> |
getEvents(ContentContext ctx)
get event if menu element contains event info.
|
Collection<String> |
getExternalResources(ContentContext ctx) |
String |
getFieldValue(ContentContext ctx,
String componentType,
String fieldName,
String defaultValue)
return the field value of the first component match with the component
type
|
Set<String> |
getFieldValues(ContentContext ctx,
String componentType,
String fieldName)
return the field values of all components match with the component type
|
int |
getFinalSeoWeight() |
MenuElement |
getFirstChild() |
List<String> |
getFollowers(ContentContext ctx) |
String |
getFont(ContentContext ctx)
get the category of the page (category component)
|
String |
getForcedPageTitle(ContentContext ctx)
get the title of the page define in the content, empty string if no title
defined.
|
String |
getForward(ContentContext ctx)
get the category of the page (category component)
|
String |
getFullLabel(ContentContext ctx) |
String |
getFullName() |
String |
getGlobalTitle(ContentContext ctx) |
List<String> |
getGroupID(ContentContext ctx) |
String |
getHeaderContent(ContentContext ctx) |
String |
getHTMLChildList(String startTag,
String endTag)
generate a list of navigation element. replace #id with the page id.
|
String |
getHtmlId(ContentContext ctx) |
String |
getHtmlSectionId(ContentContext ctx) |
String |
getHumanName()
return the name, as create by user.
|
Map<String,String> |
getI18n(ContentContext ctx)
get local i18n data
|
String |
getId() |
IImageTitle |
getImage(ContentContext ctx) |
IImageTitle |
getImageBackground(ContentContext ctx) |
Map<String,ImageTitleBean> |
getImageBackgroundForArea(ContentContext ctx) |
List<IImageTitle> |
getImages(ContentContext ctx) |
int |
getIndex()
get index of the page in the children list of the her parent page
|
static MenuElement |
getInstance(GlobalContext globalContext) |
String |
getIpSecurityErrorPageName() |
String |
getKeywords(ContentContext ctx) |
String |
getLabel(ContentContext ctx) |
int |
getLastAccess(ContentContext ctx) |
String |
getLatestEditor() |
List<String> |
getLayouts(ContentContext ctx) |
String |
getLinkedURL() |
String |
getLinkLabel(ContentContext ctx)
label of the link to page.
|
String |
getLinkOn(ContentContext ctx)
get the first link on the page.
|
ContentElementList |
getLocalContentCopy(ContentContext ctx) |
List<String> |
getLocalFollowers(ContentContext ctx) |
String |
getLocalTitle(ContentContext ctx)
get title withtout repeat content
|
String |
getLocation(ContentContext ctx)
get description of the page (description component)
|
MenuElement |
getMainChildrenAssociation()
get the page marked as children association
|
String |
getMainContentLabel(ContentContext ctx) |
Date |
getManualModificationDate() |
String |
getMetaDescription(ContentContext ctx)
get the description for meta tag (if no meta description defined return
the description)
|
String |
getMetaHead(ContentContext ctx)
get the metaHead for meta tag (if no meta description defined return
the description)
|
Date |
getModificationDate() |
Date |
getModificationDate(ContentContext ctx) |
String |
getName()
reutrn the name, formated as "file name", without space and special char.
|
MenuElement |
getNextBrother()
get the previous menu element in the child list
|
MenuElement |
getNoErrorFreeCurrentPage(ContentContext ctx) |
List<IContentVisualComponent> |
getNoRepeatContentByType(ContentContext ctx,
String type) |
IContentVisualComponent |
getNotCacheableComponent(ContentContext ctx) |
PageBean |
getPageBean(ContentContext ctx) |
protected MenuElement.PageDescription |
getPageDescription(ContentContext ctx) |
double |
getPageRank(ContentContext ctx)
get the page rank (define with content)
|
String |
getPageTitle(ContentContext ctx) |
MenuElement |
getParent() |
String |
getPath()
return the page of this page
|
MenuElement |
getPreviousBrother()
get the previous menu element in the child list
|
int |
getPriority() |
int |
getReactionSize(ContentContext ctx)
get number of reactions of the page (description component)
|
IContentVisualComponent |
getRealContentComponent(ContentContext ctx) |
String |
getRealContentLanguage(ContentContext ctx) |
Date |
getRealModificationDate(ContentContext ctx) |
String |
getReferenceLanguage() |
Map<String,String> |
getReplacement() |
Map<String,String> |
getReplacementEditable() |
String |
getReversedLink() |
MenuElement |
getRoot() |
MenuElement |
getRootOfChildrenAssociation()
get the root (parent) of the children association page
|
String |
getSavedParent() |
int |
getSelectedDepth(ContentContext ctx)
return the depth of the selection. sample: if the first selected element
have children and sedond not the depth is 2.
|
int |
getSeoWeight() |
String |
getSharedName() |
String |
getShortLanguageURL(ContentContext ctx) |
String |
getShortURL() |
String |
getShortURL(ContentContext ctx) |
double |
getSiteMapPriority(ContentContext ctx) |
String |
getSlogan(ContentContext ctx)
get the slogan of the page (slogan component)
|
MenuElement.PageDescription |
getSmartPageDescription(ContentContext ctx) |
Date |
getStartPublishDate() |
Collection<Link> |
getStaticResources(ContentContext ctx) |
String |
getSubTitle(ContentContext ctx) |
int |
getSubTitleLevel(ContentContext ctx) |
List<String> |
getSubTitles(ContentContext ctx,
int level) |
List<String> |
getTags(ContentContext ctx) |
Set<String> |
getTaxonomy() |
String |
getTechnicalTitle(ContentContext ctx)
create a title without space and special character with the title of the
page in the default language.
|
String |
getTemplateId() |
TimeRange |
getTimeRange(ContentContext ctx)
get the time range found in the content.
|
String |
getTitle(ContentContext ctx) |
int |
getToTheTopLevel(ContentContext ctx) |
String |
getType() |
int |
getUrlNumber()
in case of same URL, this value in incremented. all URL factory
(implementation of @IURLFactory) can use this number for create different
URL.
|
Set<String> |
getUserRoles() |
String |
getValidater() |
Date |
getValidationDate() |
List<MenuElement> |
getVirtualChild(ContentContext ctx,
boolean onlyVisible) |
List<MenuElement> |
getVirtualParent() |
String |
getVirtualPath(ContentContext ctx)
return the page of this page
|
List<MenuElement> |
getVisibleChildMenuElements(ContentContext ctx)
get the child list of the current element.
|
List<MenuElement> |
getVisibleChildMenuElementsList(ContentContext ctx) |
String |
getXHTMLDescription(ContentContext ctx)
get description of the page (description component)
|
String |
getXHTMLTitle(ContentContext ctx) |
boolean |
isActive() |
boolean |
isActive(ContentContext ctx) |
boolean |
isBlocked() |
boolean |
isBreakRepeat() |
boolean |
isCacheable(ContentContext ctx)
check if the page is cacheable (static content)
|
boolean |
isChildOf(MenuElement parent)
check if a page is parent or parent of a parent.
|
boolean |
isChildOf(String page)
check if the current page is a child of a page with id or name give in
parameter.
|
boolean |
isChildrenAssociation() |
boolean |
isChildrenEquals(MenuElement elem) |
boolean |
isChildrenOfAssociation()
check if this page is a part of page association
|
boolean |
isContentDateVisible(ContentContext ctx) |
boolean |
isContentEquals(MenuElement elem) |
boolean |
isDirectChildrenOfAssociation()
check if this page is a part of page association
|
boolean |
isEditabled(ContentContext ctx) |
boolean |
isEditAccess(ContentContext ctx) |
boolean |
isEmpty(ContentContext ctx) |
boolean |
isEmpty(ContentContext ctx,
String area) |
boolean |
isEmpty(ContentContext ctx,
String area,
boolean withRepeat) |
boolean |
isHaveChild() |
boolean |
isHaveVisibleChild(ContentContext ctx) |
boolean |
isHttps() |
boolean |
isInTrash() |
boolean |
isLastSelected(ContentContext ctx) |
boolean |
isLikeRoot(ContentContext ctx) |
boolean |
isLinkRealContent(ContentContext ctx) |
boolean |
isLocalEmpty(ContentContext ctx,
String area) |
boolean |
isMetadataEquals(MenuElement elem) |
boolean |
isModel() |
boolean |
isNeedValidation() |
boolean |
isNoComponent(ContentContext ctx) |
boolean |
isNoComponent(ContentContext ctx,
String area) |
boolean |
isNoIndex() |
boolean |
isNoValidation() |
boolean |
isPageActive() |
boolean |
isPublic(ContentContext ctx) |
boolean |
isReadAccess(ContentContext ctx,
User user) |
boolean |
isRealContent(ContentContext ctx) |
boolean |
isRealContentAnyLanguage(ContentContext ctx) |
boolean |
isReference(ContentContext ctx)
is a page with reference to other page, like page reference of children
link
|
boolean |
isRemote() |
boolean |
isRestWidthChildren() |
boolean |
isRoot() |
boolean |
isRootChildrenAssociation() |
boolean |
isSelected(ContentContext ctx) |
boolean |
isShortURL() |
boolean |
isTimeRange()
return true if time range can modify the status of the page in the
future.
|
boolean |
isTitle(ContentContext ctx) |
boolean |
isTrash() |
boolean |
isValid() |
boolean |
isVisible() |
boolean |
isVisible(ContentContext ctx) |
void |
moveToParent(MenuElement parent)
move the current page under other parent
|
boolean |
needTemplate(ContentContext ctx,
String templateId)
check if page need a specific template.
|
boolean |
notInSearch(ContentContext ctx) |
String |
prepareAddContent(String lg,
String parentCompId,
String contentType,
String style,
String value,
User authors)
prepare a content to be added at the end of the rendering
|
void |
printInfo(ContentContext ctx,
PrintStream out) |
void |
releaseCache() |
void |
removeChild(MenuElement elem) |
String |
removeContent(ContentContext ctx,
String id)
remove a component on the page
|
String |
removeContent(ContentContext ctx,
String id,
boolean releaseCache)
remove a component on the page
|
void |
removeEditorRoles(String group) |
void |
removeFollowers(ContentContext ctx,
String userName) |
MenuElement |
searchChild(ContentContext ctx) |
MenuElement |
searchChild(ContentContext ctx,
String path) |
static MenuElement |
searchChild(MenuElement elem,
ContentContext ctx,
String path,
Collection<MenuElement> pastNode) |
MenuElement |
searchChildFromId(String id) |
MenuElement |
searchChildFromName(String name) |
MenuElement |
searchRealChild(ContentContext ctx,
String path) |
void |
setActive(boolean active) |
void |
setBlocked(boolean blocked) |
void |
setBlocker(String blocker) |
void |
setBreakRepeat(boolean breakRepeat) |
void |
setChildrenAssociation(boolean childrenAssociation) |
void |
setContent(ComponentBean[] newContent) |
void |
setContentStayCache(ComponentBean[] newContent) |
void |
setCreationDate(Date createDate) |
void |
setCreator(String creator) |
void |
setEditRoles(MenuElement page) |
void |
setEndPublishDate(Date endPublishDate) |
void |
setHttps(boolean https) |
void |
setId(String string) |
void |
setIpSecurityErrorPageName(String ipSecurity) |
void |
setLatestEditor(String latestEditor) |
void |
setLinkedURL(String linkedURL) |
void |
setManualModificationDate(Date manualModificationDate) |
void |
setModel(boolean model) |
void |
setModificationDate(Date modificationDate) |
void |
setName(String name) |
void |
setNeedValidation(boolean needValidation) |
void |
setNoValidation(boolean noValidation) |
void |
setParent(MenuElement parent) |
void |
setPriority(int newPriority) |
void |
setPriorityNoSort(int newPriority) |
void |
setReferenceLanguage(String referenceLanguage) |
void |
setRemote(boolean readOnly) |
void |
setRestWidthChildren(boolean restWidthChildren) |
void |
setReversedLink(String reversedLink) |
void |
setSavedParent(String freeData) |
void |
setSeoWeight(int searchEngineWeight) |
void |
setSharedName(String sharedName) |
void |
setShortURL(String shortURL) |
void |
setStartPublishDate(Date startPublishDate) |
void |
setTaxonomy(Set<String> taxonomy) |
void |
setTemplateId(String inTemplate) |
void |
setType(String type) |
void |
setUrlNumber(int urlNumber) |
void |
setUserRoles(Set<String> roles) |
void |
setValid(boolean valid) |
void |
setValidater(String validater) |
void |
setValidationDate(Date validationDate) |
void |
setVirtualParent(List<MenuElement> newVirtualParent) |
void |
setVisible(boolean b) |
String |
toString() |
void |
updateLinkedData(ContentContext ctx) |