public class TreeCat extends AbstractJcmsAjaxContext implements TreeCatJSONInterface, JcmsConstants, java.io.Serializable
TreeCatTag
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected java.lang.String |
ajaxSuffix |
static java.lang.String |
BLANK |
static org.apache.oro.text.regex.Pattern |
CATLINK_PATTERN |
boolean |
computeAncestor |
int |
computedLevel |
java.util.Collection |
computedRoots |
int |
countAllField |
int |
countField |
int |
countWidget |
protected java.lang.String |
css |
protected boolean |
displayWorkspaceModel |
protected boolean |
editDisplay |
protected java.lang.String |
editParam |
protected java.lang.String |
fieldName |
static short |
FILTER_EDIT |
static short |
FILTER_NONE |
static short |
FILTER_READ |
java.util.Set |
filteredSet |
protected short |
filterMember |
protected boolean |
filterWorkspace |
protected EditPublicationHandler |
formHandler |
protected java.util.Set |
highlightCatSet |
protected boolean |
highlightDescendant |
protected boolean |
isCtxMenu |
protected boolean |
isDragDrop |
protected boolean |
isEditDisplay |
protected boolean |
isEmpty |
protected boolean |
isHelpDisplay |
protected boolean |
isPortalDisplay |
protected boolean |
isPubCountDisplay |
protected boolean |
isPubCountDisplayCat |
protected boolean |
isPubReadableDisplay |
protected boolean |
isRedirect |
protected boolean |
isRightsDisplay |
protected boolean |
isWorkspaceDisplay |
int |
level |
protected java.util.Collection |
memberRootSet |
static java.lang.String |
NAME_LINK_DISPLAY |
protected java.lang.String |
nameLink |
protected boolean |
nameLinkIsDisplay |
protected boolean |
nameLinkNavigate |
protected boolean |
nameLinkPubCount |
protected boolean |
nameLinkRegexp |
protected boolean |
nameStrong |
protected java.lang.String |
nodeFunction |
protected java.util.Set |
openedCatSet |
protected boolean |
openHighlighted |
protected int |
openLevel |
protected boolean |
openParent |
protected boolean |
openWidgetSelected |
protected java.lang.String |
portalLink |
static org.apache.oro.text.regex.Pattern |
PORTALLINK_PATTERN |
protected boolean |
portalLinkRegexp |
protected TreeCatProxy |
proxy |
protected java.lang.Class |
pubCountClass |
protected boolean |
pubCountPstatus |
protected java.util.Set |
pubCountSet |
protected java.lang.String |
redirect |
protected java.util.Set |
removedCatSet |
protected java.util.Set |
retainedCatSet |
static java.lang.String |
REVISION |
boolean |
rootDisplay |
java.util.Collection |
roots |
protected boolean |
toggleLink |
protected short |
widget |
static short |
WIDGET_CHECKBOX |
static short |
WIDGET_NONE |
static short |
WIDGET_RADIO |
protected boolean |
widgetDisableDescendant |
protected java.util.Set |
widgetDisabledSet |
protected boolean |
widgetDisableParent |
protected boolean |
widgetDisablePubCount |
protected boolean |
widgetDisableSelectable |
protected boolean |
widgetExclusive |
protected java.lang.String |
widgetFunction |
protected java.lang.String |
widgetName |
protected boolean |
widgetSelectDescendant |
protected java.util.Set |
widgetSelectedSet |
protected boolean |
widgetSelectParent |
baseUrl, caddy, channel, contextPath, ctxCategories, currentCategory, debug, isAdmin, isIE, isInFrontOffice, isLogged, isWindows, loggedMember, method, parameterMap, portal, portalCategory, pub, resourcePath, url, userCountry, userLang, userLocale, workspace, zone
ADATE_SEARCH, ADMIN_NOTES_PROP, ADVANCED_TAB, ARCHIVES_DIR, ASCII_WIDTH, CATEGORY_TAB, CDATE_SEARCH, COMMON_ALARM, CONTENT_TAB, COOKIE_MAX_AGE, CTRL_TOPIC_INTERNAL, CTRL_TOPIC_REF, CTRL_TOPIC_VALUE, CTRL_TOPIC_WRITE, CUSTOM_PROP, DOCCHOOSER_HEIGHT, DOCCHOOSER_WIDTH, DOCS_DIR, EDATE_SEARCH, EMAIL_REGEXP, ERROR_MSG, FORBIDDEN_FILE_ACCESS, FORBIDDEN_REDIRECT, FORCE_REDIRECT, ICON_ARCHIVE, ICON_LOCK, ICON_LOCK_STRONG, ICON_WARN, ICON_WH_BOOK_CLOSED, ICON_WH_BOOK_OPEN, INFORMATION_MSG, JALIOS_JUNIT_PROP, JCMS_CADDY, JCMS_MSG_LIST, JSYNC_DOWNLOAD_DIR, JSYNC_SYNC_ALARM, LOG_FILE, LOG_TOPIC_SECURITY, LOGGER_PROP, LOGGER_XMLPROP, MBR_PHOTO_DIR, MDATE_SEARCH, MONITOR_XML, OP_CREATE, OP_CREATE_STR, OP_DEEP_COPY, OP_DEEP_COPY_STR, OP_DEEP_DELETE, OP_DEEP_DELETE_STR, OP_DELETE, OP_DELETE_STR, OP_MERGE, OP_MERGE_STR, OP_UPDATE, OP_UPDATE_STR, PDATE_SEARCH, PHOTO_DIR, PHOTO_ICON, PHOTO_ICON_HEIGHT, PHOTO_ICON_WIDTH, PHOTO_LARGE, PHOTO_LARGE_HEIGHT, PHOTO_LARGE_WIDTH, PHOTO_NORMAL, PHOTO_NORMAL_HEIGHT, PHOTO_NORMAL_WIDTH, PHOTO_SMALL, PHOTO_SMALL_HEIGHT, PHOTO_SMALL_WIDTH, PHOTO_TINY, PHOTO_TINY_HEIGHT, PHOTO_TINY_WIDTH, PREVIOUS_TAB, PRINT_VIEW, PRIVATE_FILE_ACCESS, PUBLIC_FILE_ACCESS, READ_RIGHT_TAB, SDATE_SEARCH, SEARCHENGINE_ALARM, SESSION_AUTHORIZED_FILENAMES_SET, STATS_REPORT_DIR, STATUS_PROP, STORE_XML, TEMPLATE_TAB, THUMBNAIL_LARGE_HEIGHT, THUMBNAIL_LARGE_WIDTH, THUMBNAIL_SMALL_HEIGHT, THUMBNAIL_SMALL_WIDTH, TYPES_ICON_ALT_PROP, TYPES_ICON_SUFFIX_PROP, TYPES_ICON_TITLE_PROP, TYPES_PREFIX_PROP, TYPES_THUMB_SUFFIX_PROP, UDATE_SEARCH, UPDATE_RIGHT_TAB, UPLOAD_DIR, URL_REGEXP, WARNING_MSG, WEBAPP_PROP, WFEXPRESS_ALARM, WFREMINDER_ALARM, WORKFLOW_TAB, WORKFLOW_XML
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR
Constructor and Description |
---|
TreeCat() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addCat(Category parent,
java.lang.String name) |
java.lang.String |
addSiblingCat(java.lang.String catId,
java.lang.String name)
Creates a category under the parent of the category id
with the given category name
|
java.lang.String |
addSubCat(java.lang.String catId,
java.lang.String name)
Creates a new category under the given parent id
with the given category name
|
protected boolean |
canWorkOn(Category cat) |
java.lang.String |
getAjaxSuffix() |
java.lang.String |
getBranch(Category cat,
int level)
This method will return a String representing the given Catergory
with all requested computed options.
|
protected java.lang.String |
getBranchLI(Category cat,
int level)
This method will return a String representing the given Catergory
with all requested computed options.
|
protected java.lang.String |
getBranchLI(Category cat,
java.lang.String str,
int level) |
protected java.lang.String |
getBranchLI(Category cat,
java.lang.String value,
int level,
boolean hasLevelChanged)
This method will encapsulate the given String representing the given Catergory
into <li></li>
|
java.lang.String |
getChildren(Category parent,
int level)
This method return a String of <li></li> displaying children
of a given parent Category.
|
java.lang.String |
getChildren(java.lang.String parentId)
Returns a String of <li></li> displaying children
of a given parent Category.
|
java.lang.String |
getChildren(java.lang.String[] checked,
java.lang.String[] opened)
Returns a String of <li></li> displaying roots.
|
java.util.Map |
getChildrenMap(Category parent,
int level)
This method return a Map of Category has key
and <li></li> String displaying children has value
for a given parent Category.
|
protected java.lang.String |
getDragDrop()
Computes roots rights to enable/disable drag and
drop on categories
|
protected java.lang.String |
getEdit(Category cat)
This method will compute the edit icon to display
for the given category.
|
java.util.Set |
getFilteredSet() |
short |
getFilterMember() |
protected java.lang.String |
getHelp(Category cat)
This method will compute the help icon to display
for the given category.
|
java.lang.String |
getHiddens()
Returns all input hidden for selected categories
that have been filtered (Not removed !)
|
protected java.lang.String |
getInnerRoots(java.util.Collection roots,
int level,
boolean rootDisplay)
This method return a String displaying root category
of the given set.
|
protected java.lang.String |
getNodeIcon(Category cat,
int level)
This method will compute the node icon to display
for the given category.
|
protected java.lang.String |
getNodeLink(Category cat,
int pubCount)
This method will compute the node link to use
for the given category.
|
protected java.lang.String |
getNodeName(Category cat,
java.lang.String classes)
This method will compute the node name to display
for the given category.
|
int |
getOpenLevel() |
protected java.lang.String |
getPortals(Category cat)
This method will compute the portal to display
for the given category.
|
protected int |
getPubCount(Category cat) |
protected java.lang.String |
getPubCount(Category cat,
int pubCount)
This method will compute the node title to display
for the given category.
|
protected java.lang.String |
getReadablePub(Category cat) |
java.lang.String |
getRedirect() |
protected java.lang.String |
getRights(Category cat)
This method will compute the rights to display
for the given category.
|
java.lang.String |
getRoots(java.util.Collection roots,
int level,
boolean rootDisplay)
Returns a String of <ul></ul> displaying root category
of the given set.
|
boolean |
getToggleLink() |
short |
getWidget() |
protected java.lang.String |
getWidget(Category cat,
int pubCount)
This method will compute the widget to display
for the given category.
|
java.lang.String |
getWidgetName() |
protected java.lang.String |
getWorkspaces(Category cat)
This method will compute the workspace to display
for the given category.
|
protected void |
initRoot(Category cat)
This method initialise data for the given category tree
|
boolean |
isEditDisplay() |
boolean |
isEditDisplay(Category cat) |
boolean |
isEmpty()
Must be called after getRoots() returns rue if there is no inner roots to display.
|
boolean |
isFilterWorkspace() |
boolean |
isHelpDisplay(Category cat) |
boolean |
isMemberFiltered(Category cat) |
boolean |
isNameHighlighted(Category cat) |
boolean |
isNameStrong(Category cat) |
boolean |
isNodeOpen(Category cat,
int level) |
boolean |
isPortalDisplay(Category cat) |
boolean |
isRemoved(Category cat) |
boolean |
isRetained(Category cat) |
boolean |
isRightsDisplay(Category cat) |
boolean |
isWidgetDisabled(Category cat,
int pubCount) |
boolean |
isWidgetExclusive(Category cat) |
boolean |
isWidgetSelected(Category cat) |
boolean |
isWorkspaceDisplay(Category cat) |
boolean |
isWorkspaceFiltered(Category cat) |
java.lang.String |
remove(java.lang.String catId)
Deletes the given category id.
|
java.lang.String |
rename(java.lang.String catId,
java.lang.String value)
Renames the given category name in the user current language.
|
protected void |
resetRoots()
This method reset all stuff cached by initRoot()
|
void |
setCss(java.lang.String css)
Sets a custom CSS to append to main UL.
|
void |
setCtxMenu(boolean ctxmenu)
Specify that generated links will use contextual menu.
|
void |
setDragDrop(boolean isDragDrop)
Specify that category branch will be Drag N Dropable
|
void |
setEditDisplay(boolean isEditDisplay)
Display edit category icon.
|
void |
setEditParam(java.lang.String editParam)
Sets additional parameters for the
edit link.
|
void |
setFieldName(java.lang.String fieldName) |
void |
setFilterMember(short filterMember)
Sets filters to apply on displayed categories.
|
void |
setFilterWorkspace(boolean filterWorkspace)
Filter Categories
by workspace categories.
|
void |
setFormHandler(EditPublicationHandler formHandler) |
void |
setHelpDisplay(boolean isHelpDisplay)
Display description for a given category.
|
void |
setHighlightCatSet(java.util.Set highlightCatSet)
Sets a Set of categories that must be highlighted
while generating the category tree.
|
void |
setHighlightDescendant(boolean highlightDescendant)
Highlight also children categories.
|
void |
setJcmsContext(JcmsJspContext jcmsContext)
Sets the following values from values found in the specified JcmsJspContext.
|
void |
setNameLink(java.lang.String nameLink)
Sets link for name of categories.
|
void |
setNameLinkNavigate(boolean nameLinkNavigate)
Specify that generated links will be used for
navigation or refinement.
|
void |
setNameLinkPubCount(boolean nameLinkPubCount)
Display link only on category having
a publication count > 0.
|
void |
setNameLinkRegexp(boolean nameLinkRegexp)
Parsed name links by a regular expresion
replacing _CATID_ by the category id.
|
void |
setNameStrong(boolean nameStrong)
Sets Strong category name when category
is descendant of the current workspace.
|
void |
setNodeAjaxSuffix(java.lang.String ajaxSuffix)
Sets an ajax suffix for TreeCat used
more than once in a page.
|
void |
setNodeFunction(java.lang.String nodeFunction)
Sets a the JavaScript function to call while
clicking on a Node icon onclick.
|
void |
setOpenedCatSet(java.util.Set openedCatSet)
Sets a Set of categories that must be openend
while generating the category tree.
|
void |
setOpenHighlighted(boolean openHighlighted)
Open parent category of highlighted categories.
|
void |
setOpenLevel(int openLevel)
Sets levels to open while generating tree.
|
void |
setOpenParent(boolean openParent)
Open parent category of opened category.
|
void |
setOpenWidgetSelected(boolean openWidgetSelected)
Specify if parent category of selected categories
must be opened.
|
java.lang.String |
setParent(java.lang.String catId,
java.lang.String parentId) |
void |
setPortalDisplay(boolean isPortalDisplay)
Display attached portal for
a given category.
|
void |
setPortalLink(java.lang.String portalLink)
Sets link for portal of categories.
|
void |
setPortalLinkRegexp(boolean portalLinkRegexp)
Specify that portal links will be parsed by a regular expression
replacing _PORTALID_ by the category id.
|
void |
setProxy(TreeCatProxy proxy)
Sets a TreeCatProxy called for each branch of the Tree
to filter, modify and customize standard behaviour.
|
void |
setPubCountClass(java.lang.Class pubCountClass)
Sets the class of catezgorized
publication to count.
|
void |
setPubCountDisplay(boolean isPubCountDisplay)
Display publication count.
|
void |
setPubCountDisplayCat(boolean isPubCountDisplayCat)
This method specify to display categories only if their pubCount is greater than 0.
|
void |
setPubCountPstatus(boolean pubCountPstatus)
Check publication count must
pstatus for visible states.
|
void |
setPubCountSet(java.util.Set pubCountSet)
Sets a Set of Publication to interSet
with current publication's category for publication count.
|
void |
setPubReadableDisplay(boolean isPubReadableDisplay)
Display readable publication.
|
void |
setRedirect(java.lang.String redirect)
Sets redirect url for edit icon.
|
void |
setRemovedCatSet(java.util.Set removedCatSet)
Sets a Set of categories that must be removed
while generating the category tree.
|
void |
setRetainedCatSet(java.util.Set retainedCatSet)
Sets a Set of categories that must be retains
while generating the category tree.
|
void |
setRightsDisplay(boolean isRightsDisplay)
Display explicit rights member or groups rights for a given category.
|
void |
setToggleLink(boolean toggleLink)
Specify that links will be toggle if they are clicked twice.
|
void |
setWidget(short widget)
Sisplay the widget after each node icon
values may be:
TreeCat.WIDGET_NONE
TreeCat.WIDGET_RADIO
TreeCat.WIDGET_CHECKBOX
The default value is TreeCat.WIDGET_NONE.
|
void |
setWidgetDisableDescendant(boolean widgetDisableDescendant)
Disabled also descendant category.
|
void |
setWidgetDisabledSet(java.util.Set widgetDisabledSet)
Sets a Set of categories that must have a widget disabled.
|
void |
setWidgetDisableParent(boolean widgetDisableParent)
Disabled also parent category.
|
void |
setWidgetDisablePubCount(boolean widgetDisablePubCount)
Specify to disable widget that didn't have
categorized publication.
|
void |
setWidgetDisableSelectable(boolean widgetDisableSelectable)
Disabled categories not selectable.
|
void |
setWidgetExclusive(boolean widgetExclusive)
Uncheck other widget while checking
a given widget.
|
void |
setWidgetFunction(java.lang.String widgetFunction)
Sets the onclick function for each widget.
|
void |
setWidgetName(java.lang.String widgetName)
Sets widget name. this parameter is required if
a widget is specified.
|
void |
setWidgetSelectDescendant(boolean widgetSelectDescendant)
Select also descendant category.
|
void |
setWidgetSelectedSet(java.util.Set widgetSelectedSet)
Sets a Set of categories that must have a widget selected.
|
void |
setWidgetSelectParent(boolean widgetSelectParent)
Select also parent category.
|
void |
setWorkspaceDisplay(boolean isWorkspaceDisplay)
Display attached workspace for
a given category.
|
void |
setWorkspaceModelDisplay(boolean displayWorkspaceModel)
Display attached workspace model for
a given category.
|
checkAccess, checkAccess, debug, deflate, getBaseUrl, getCaddy, getContextPath, getCtxCategories, getCurrentCategory, getLoggedMember, getMethod, getParameterMap, getPortal, getPortalCategory, getPublication, getResourcePath, getUrl, getUserCountry, getUserLang, getUserLocale, getWorkspace, getZone, glp, inflate, isAdmin, isInFrontOffice, isLogged, readObject, setBaseUrl, setContextPath, setCtxCategories, setCurrentCategory, setLoggedMember, setMethod, setParameterMap, setPortal, setPortalCategory, setPublication, setResourcePath, setUrl, setUserCountry, setUserLang, setUserLocale, setWorkspace, writeObject
public static final java.lang.String REVISION
public static final short WIDGET_NONE
public static final short WIDGET_RADIO
public static final short WIDGET_CHECKBOX
public static final short FILTER_NONE
public static final short FILTER_READ
public static final short FILTER_EDIT
public static final org.apache.oro.text.regex.Pattern CATLINK_PATTERN
public static final org.apache.oro.text.regex.Pattern PORTALLINK_PATTERN
public static final java.lang.String BLANK
public static final java.lang.String NAME_LINK_DISPLAY
protected transient EditPublicationHandler formHandler
protected transient java.lang.String fieldName
protected transient java.util.Set removedCatSet
protected transient java.util.Set retainedCatSet
protected transient short filterMember
protected transient boolean filterWorkspace
protected transient boolean isCtxMenu
protected transient java.util.Collection memberRootSet
protected transient java.lang.String nodeFunction
protected transient java.lang.String ajaxSuffix
protected transient java.util.Set openedCatSet
protected transient boolean openParent
protected transient int openLevel
protected transient short widget
protected transient java.lang.String widgetName
protected transient java.util.Set widgetSelectedSet
protected transient boolean widgetSelectDescendant
protected transient boolean widgetSelectParent
protected transient java.util.Set widgetDisabledSet
protected transient boolean widgetDisableDescendant
protected transient boolean widgetDisableParent
protected transient boolean widgetDisableSelectable
protected transient boolean widgetDisablePubCount
protected transient java.lang.String widgetFunction
protected transient boolean widgetExclusive
protected transient boolean openWidgetSelected
protected transient boolean nameStrong
protected transient java.lang.String nameLink
protected transient boolean nameLinkPubCount
protected transient boolean nameLinkNavigate
protected transient boolean nameLinkRegexp
protected transient boolean toggleLink
protected transient boolean nameLinkIsDisplay
protected transient boolean isPubCountDisplay
protected transient boolean isPubCountDisplayCat
protected transient java.lang.Class pubCountClass
protected transient boolean pubCountPstatus
protected transient java.util.Set pubCountSet
protected transient boolean isPubReadableDisplay
protected transient java.util.Set highlightCatSet
protected transient boolean highlightDescendant
protected transient boolean openHighlighted
protected transient boolean isPortalDisplay
protected transient java.lang.String portalLink
protected transient boolean portalLinkRegexp
protected transient boolean isRightsDisplay
protected transient boolean isHelpDisplay
protected transient boolean isWorkspaceDisplay
protected transient boolean displayWorkspaceModel
protected transient java.lang.String css
protected transient boolean isDragDrop
protected transient boolean isEditDisplay
protected transient boolean editDisplay
protected transient java.lang.String editParam
protected transient java.lang.String redirect
protected transient TreeCatProxy proxy
public transient int countAllField
public transient int countField
public transient int countWidget
public transient java.util.Set filteredSet
public transient int computedLevel
public transient java.util.Collection computedRoots
public transient java.util.Collection roots
public transient int level
public transient boolean rootDisplay
public transient boolean computeAncestor
protected transient boolean isRedirect
protected transient boolean isEmpty
public java.lang.String getChildren(java.lang.String parentId)
getChildren
in interface TreeCatJSONInterface
parentId
- the Id of the parent CategorygetChildren(Category,int)
public java.lang.String getChildren(java.lang.String[] checked, java.lang.String[] opened)
getChildren
in interface TreeCatJSONInterface
getChildren(String[], String[])
public java.lang.String rename(java.lang.String catId, java.lang.String value)
rename
in interface TreeCatJSONInterface
catId
- the working category idvalue
- the new category namerename(String, String)
public java.lang.String addSubCat(java.lang.String catId, java.lang.String name)
addSubCat
in interface TreeCatJSONInterface
catId
- the working category idname
- the new category nameaddSubCat(String, String)
public java.lang.String addSiblingCat(java.lang.String catId, java.lang.String name)
addSiblingCat
in interface TreeCatJSONInterface
catId
- the working category idname
- the new category nameaddSiblingCat(String, String)
public java.lang.String addCat(Category parent, java.lang.String name)
addCat
in interface TreeCatJSONInterface
addCat(Category, String)
public java.lang.String remove(java.lang.String catId)
remove
in interface TreeCatJSONInterface
catId
- the working category idremove(String)
public java.lang.String setParent(java.lang.String catId, java.lang.String parentId)
setParent
in interface TreeCatJSONInterface
setParent(String, String)
public java.lang.String getRoots(java.util.Collection roots, int level, boolean rootDisplay)
roots
- a Collection of root category to displaylevel
- the level of children to generaterootDisplay
- boolean true if roots must be displayedprotected java.lang.String getDragDrop()
public java.lang.String getHiddens()
public java.lang.String getChildren(Category parent, int level)
parent
- the parent Categorylevel
- the level of child to generate displaygetChildrenMap(Category,int)
public java.util.Map getChildrenMap(Category parent, int level)
parent
- the parent Categorylevel
- the level of child to generate displaypublic java.lang.String getBranch(Category cat, int level)
cat
- the Category to displaylevel
- the level of child to displayprotected java.lang.String getBranchLI(Category cat, int level)
cat
- the Category to displaylevel
- the level of children to generategetBranchLI(Category, String, int)
protected java.lang.String getBranchLI(Category cat, java.lang.String str, int level)
protected java.lang.String getBranchLI(Category cat, java.lang.String value, int level, boolean hasLevelChanged)
cat
- the Category to displayvalue
- the display value of the category without <li></li>level
- the level of children to generatehasLevelChanged
- the level has changedprotected java.lang.String getNodeIcon(Category cat, int level)
cat
- the category to displaylevel
- the level of child to generate displayprotected java.lang.String getWidget(Category cat, int pubCount)
cat
- the category to displaypubCount
- the computed publication countprotected java.lang.String getNodeLink(Category cat, int pubCount)
cat
- the category to displaypubCount
- the publication count for this categoryprotected java.lang.String getNodeName(Category cat, java.lang.String classes)
cat
- the category to displayprotected java.lang.String getReadablePub(Category cat)
cat
- the category to displayprotected java.lang.String getPubCount(Category cat, int pubCount)
cat
- the category to displaypubCount
- the publication count for this categoryprotected java.lang.String getRights(Category cat)
cat
- the category to displayprotected java.lang.String getHelp(Category cat)
cat
- the category to displayprotected java.lang.String getPortals(Category cat)
cat
- the category to displayprotected java.lang.String getWorkspaces(Category cat)
cat
- the category to displayprotected java.lang.String getEdit(Category cat)
cat
- the category to displayprotected void initRoot(Category cat)
cat
- the root cateory to initializegetReadablePub(Category)
,
setPubReadableDisplay(boolean)
protected void resetRoots()
protected java.lang.String getInnerRoots(java.util.Collection roots, int level, boolean rootDisplay)
roots
- a Collection of root category to displaylevel
- the level of children to generaterootDisplay
- boolean true if roots must be displayedprotected int getPubCount(Category cat)
public int getOpenLevel()
public boolean isRightsDisplay(Category cat)
public boolean isHelpDisplay(Category cat)
public boolean isPortalDisplay(Category cat)
public boolean isWorkspaceDisplay(Category cat)
public boolean isEditDisplay(Category cat)
public boolean isRemoved(Category cat)
public boolean isRetained(Category cat)
public boolean isNameStrong(Category cat)
public boolean isWorkspaceFiltered(Category cat)
public boolean isMemberFiltered(Category cat)
protected boolean canWorkOn(Category cat)
public boolean isNameHighlighted(Category cat)
public boolean isNodeOpen(Category cat, int level)
public boolean isWidgetSelected(Category cat)
public boolean isWidgetDisabled(Category cat, int pubCount)
public boolean isWidgetExclusive(Category cat)
public java.lang.String getAjaxSuffix()
public java.util.Set getFilteredSet()
public short getFilterMember()
public boolean isFilterWorkspace()
public boolean isEditDisplay()
public java.lang.String getRedirect()
public short getWidget()
public java.lang.String getWidgetName()
public boolean getToggleLink()
public void setFormHandler(EditPublicationHandler formHandler)
public void setFieldName(java.lang.String fieldName)
public void setNodeFunction(java.lang.String nodeFunction)
nodeFunction
- the JavaScript functionpublic void setNodeAjaxSuffix(java.lang.String ajaxSuffix)
ajaxSuffix
- String the ajax distinguish suffixpublic void setOpenedCatSet(java.util.Set openedCatSet)
openedCatSet
- A Set of categorypublic void setOpenParent(boolean openParent)
openParent
- boolean true to open parent categorypublic void setOpenLevel(int openLevel)
openLevel
- the level to openpublic void setRemovedCatSet(java.util.Set removedCatSet)
removedCatSet
- A Set of categorypublic void setRetainedCatSet(java.util.Set retainedCatSet)
retainedCatSet
- A Set of categorypublic void setHighlightCatSet(java.util.Set highlightCatSet)
highlightCatSet
- A Set of categorypublic void setOpenHighlighted(boolean openHighlighted)
openHighlighted
- boolean true to open parent categorypublic void setHighlightDescendant(boolean highlightDescendant)
highlightDescendant
- boolean true to hightlight descendantpublic void setWidget(short widget)
widget
- the widget typepublic void setWidgetName(java.lang.String widgetName)
widgetName
- the widget namepublic void setWidgetSelectedSet(java.util.Set widgetSelectedSet)
widgetSelectedSet
- A Set of categorypublic void setOpenWidgetSelected(boolean openWidgetSelected)
openWidgetSelected
- boolean true to open parent categorypublic void setWidgetSelectDescendant(boolean widgetSelectDescendant)
widgetSelectDescendant
- true if descendant category are selectedpublic void setWidgetSelectParent(boolean widgetSelectParent)
widgetSelectParent
- true if parent category are selectedpublic void setWidgetDisabledSet(java.util.Set widgetDisabledSet)
widgetDisabledSet
- A Set of categorypublic void setWidgetDisableDescendant(boolean widgetDisableDescendant)
widgetDisableDescendant
- true if descendant category are selectedpublic void setWidgetDisableParent(boolean widgetDisableParent)
widgetDisableParent
- true if children category are selectedpublic void setWidgetDisableSelectable(boolean widgetDisableSelectable)
widgetDisableSelectable
- true if category not selectable are also disabledpublic void setWidgetFunction(java.lang.String widgetFunction)
widgetFunction
- the JavaScript function on widgetpublic void setWidgetExclusive(boolean widgetExclusive)
widgetExclusive
- true if widgets are exclusivespublic void setWidgetDisablePubCount(boolean widgetDisablePubCount)
widgetDisablePubCount
- true if widgets are disable when no publication are categorized underpublic void setRightsDisplay(boolean isRightsDisplay)
isRightsDisplay
- boolean true to display rightspublic void setHelpDisplay(boolean isHelpDisplay)
isHelpDisplay
- boolean true to display helppublic void setPortalDisplay(boolean isPortalDisplay)
isPortalDisplay
- boolean true to display portal iconpublic void setWorkspaceDisplay(boolean isWorkspaceDisplay)
isWorkspaceDisplay
- boolean true to display workspace iconpublic void setWorkspaceModelDisplay(boolean displayWorkspaceModel)
displayWorkspaceModel
- boolean true to display workspace iconsetWorkspaceDisplay(boolean)
public void setEditDisplay(boolean isEditDisplay)
isEditDisplay
- boolean true to display edit iconpublic void setPubCountDisplay(boolean isPubCountDisplay)
isPubCountDisplay
- boolean true to display publication countpublic void setPubCountDisplayCat(boolean isPubCountDisplayCat)
isPubCountDisplayCat
- boolean true to display category if there is publicationpublic void setPubReadableDisplay(boolean isPubReadableDisplay)
isPubReadableDisplay
- boolean true to display readable publicationpublic void setFilterMember(short filterMember)
filterMember
- short representing filterpublic void setFilterWorkspace(boolean filterWorkspace)
filterWorkspace
- boolean true if category are filtered by workspacepublic void setPubCountClass(java.lang.Class pubCountClass)
pubCountClass
- Class the publication classpublic void setPubCountPstatus(boolean pubCountPstatus)
pubCountPstatus
- boolean true if pstatus is checkedpublic void setPubCountSet(java.util.Set pubCountSet)
pubCountSet
- Set of publication.public void setEditParam(java.lang.String editParam)
editParam
- additional edit parameterspublic void setNameStrong(boolean nameStrong)
nameStrong
- boolean true if the name of category may be strongpublic void setNameLink(java.lang.String nameLink)
nameLink
- String link of the category namesetNameLinkRegexp(boolean)
public void setNameLinkPubCount(boolean nameLinkPubCount)
nameLinkPubCount
- boolean true if publication count is used.public void setNameLinkNavigate(boolean nameLinkNavigate)
nameLinkNavigate
- boolean true if link is used for navigationpublic void setNameLinkRegexp(boolean nameLinkRegexp)
nameLinkRegexp
- boolean true to parse the name linkpublic void setCtxMenu(boolean ctxmenu)
ctxmenu
- true to display ctxmenupublic void setToggleLink(boolean toggleLink)
toggleLink
- boolean true to toggle linkspublic void setRedirect(java.lang.String redirect)
redirect
- String value of redirect urlsetJcmsContext(JcmsJspContext)
public void setPortalLink(java.lang.String portalLink)
portalLink
- String link of the category namesetPortalLinkRegexp(boolean)
public void setPortalLinkRegexp(boolean portalLinkRegexp)
portalLinkRegexp
- boolean true to parse the name linkpublic void setCss(java.lang.String css)
css
- String CSS to append to UL Treecatpublic void setProxy(TreeCatProxy proxy)
proxy
- an implementation of TreeCatProxypublic void setDragDrop(boolean isDragDrop)
isDragDrop
- boolean true to allow drag n drop on categoriespublic void setJcmsContext(JcmsJspContext jcmsContext)
AbstractJcmsAjaxContext
setJcmsContext
in class AbstractJcmsAjaxContext
jcmsContext
- the JcmsJspContextpublic boolean isEmpty()
Copyright © 2001-2010 Jalios SA. All Rights Reserved.