org.exoplatform.ecm.webui.component.browsecontent
Class UIBrowseContainer
java.lang.Object
org.exoplatform.webui.core.UIComponent
org.exoplatform.webui.core.UIContainer
org.exoplatform.ecm.webui.component.browsecontent.UIBrowseContainer
public class UIBrowseContainer
- extends org.exoplatform.webui.core.UIContainer
Created by The eXo Platform SARL
Author : Pham Tuan
phamtuanchip@yahoo.de
Dec 14, 2006 5:15:47 PM
| Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer |
org.exoplatform.webui.core.UIContainer.SelectTabActionListener |
| Fields inherited from class org.exoplatform.webui.core.UIComponent |
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent |
|
Method Summary |
void |
changeNode(javax.jcr.Node selectNode)
|
java.lang.String[] |
getActions()
|
org.exoplatform.services.jcr.ext.common.SessionProvider |
getAnonimProvider()
|
java.lang.String |
getCapacityOfFile(javax.jcr.Node file)
|
java.lang.String |
getCategoryPath()
|
java.util.List<?> |
getCurrentList()
|
javax.jcr.Node |
getCurrentNode()
|
java.lang.String |
getDmsSystemWorkspace()
|
java.lang.String |
getDMSSystemWorkspace(java.lang.String repository)
|
java.util.List<javax.jcr.Node> |
getDocumentByTag()
|
protected java.util.Map<java.lang.String,javax.jcr.Node> |
getHistory()
|
java.lang.String |
getIcons(javax.jcr.Node node,
java.lang.String type)
|
java.lang.String |
getImage(javax.jcr.Node node)
|
java.lang.String |
getImage(javax.jcr.Node node,
java.lang.String nodeTypeName)
|
int |
getItemPerPage()
|
java.lang.String |
getKeyValue()
|
java.util.List<javax.jcr.Node> |
getListHistoryNode()
|
javax.jcr.Node |
getNodeByPath(java.lang.String nodePath)
|
javax.jcr.Node |
getNodeByPath(java.lang.String nodePath,
java.lang.String workspace)
|
java.util.List<javax.jcr.Node> |
getNodeByQuery(int recordNumber)
Return a list of Node in the Query use case |
java.util.List<javax.jcr.Node> |
getNodeByQuery(int recoderNumber,
javax.jcr.Session session)
|
java.util.List<javax.jcr.Node> |
getNodeByQuery(java.lang.String queryType,
java.lang.String queryString)
|
protected java.util.List<javax.jcr.Node> |
getNodeByScript(java.lang.String repository,
java.lang.String scriptName)
|
javax.jcr.Node |
getNodeByUUID(java.lang.String uuid)
|
java.util.LinkedList<java.lang.String> |
getNodesHistory()
|
int |
getNumberOfPage()
|
java.lang.String |
getOwner(javax.jcr.Node node)
|
java.util.Map |
getPathContent()
|
java.lang.String |
getPortalName()
|
javax.portlet.PortletPreferences |
getPortletPreferences()
|
java.lang.String |
getQueryLanguage()
|
javax.jcr.query.QueryResult |
getQueryResultNew()
Returns the results of a new query |
javax.jcr.query.QueryResult |
getQueryResultStored()
Returns the results of a saved query |
java.lang.String |
getQueryStatement()
|
java.lang.String |
getRepository()
|
javax.jcr.Node |
getRootNode()
|
java.lang.String |
getRootPath()
|
int |
getRowPerBlock()
|
javax.jcr.Node |
getSelectedTab()
|
javax.jcr.Session |
getSession(boolean flag)
|
javax.jcr.Session |
getSession(java.lang.String repository,
java.lang.String workspace)
|
org.exoplatform.services.jcr.ext.common.SessionProvider |
getSessionProvider()
|
java.util.List<javax.jcr.Node> |
getSortedListFolderNode(javax.jcr.Node node,
boolean isASC)
|
java.util.List<javax.jcr.Node> |
getSortedListNode(javax.jcr.Node node,
boolean isASC)
|
java.util.List<javax.jcr.Node> |
getSortedListNodeByDate(javax.jcr.Node node,
boolean isASC)
|
java.util.List<javax.jcr.Node> |
getSubDocumentList(javax.jcr.Node selectedNode)
|
org.exoplatform.services.jcr.ext.common.SessionProvider |
getSystemProvider()
|
java.util.List<javax.jcr.Node> |
getTagLink()
|
java.lang.String |
getTagPath()
|
java.util.Map<java.lang.String,java.lang.String> |
getTagStyle()
|
protected java.lang.String |
getTemlateDetail()
|
java.lang.String |
getTemplate()
|
protected java.lang.String |
getTemplateName()
|
org.exoplatform.resolver.ResourceResolver |
getTemplateResourceResolver(org.exoplatform.webui.application.WebuiRequestContext context,
java.lang.String template)
|
int |
getTotalNodeByQuery()
|
java.util.Map |
getTreeContent()
|
BCTreeNode |
getTreeRoot()
|
org.exoplatform.webui.core.UIPageIterator |
getUIPageIterator()
|
java.lang.String |
getUseCase()
|
java.lang.String |
getUserName()
|
javax.jcr.Node |
getViewNode(javax.jcr.Node node)
|
java.lang.String |
getWebDAVServerPrefix()
|
java.lang.String |
getWorkSpace()
|
boolean |
hasAddPermission(javax.jcr.Node node)
|
protected void |
historyBack()
|
protected void |
historyNext()
|
void |
initToolBar(boolean showTree,
boolean showPath,
boolean showSearch)
|
boolean |
isAllowPublish()
|
protected boolean |
isCategories(javax.jcr.Node node)
|
protected boolean |
isCategories(javax.jcr.nodetype.NodeType nodeType)
|
boolean |
isCommentAndVote()
|
boolean |
isEnableChildDocument()
|
boolean |
isEnableRefDocument()
|
boolean |
isEnableToolBar()
|
boolean |
isPublishedNode(javax.jcr.Node node)
|
boolean |
isRootNode()
|
boolean |
isSetted()
|
boolean |
isShowAllDocument()
|
boolean |
isShowCategoryTree()
|
boolean |
isShowCommentForm()
|
boolean |
isShowDocumentByTag()
|
boolean |
isShowDocumentDetail()
|
boolean |
isShowDocumentList()
|
boolean |
isShowSearchForm()
|
boolean |
isShowTagmap()
|
boolean |
isShowVoteForm()
|
boolean |
isSymLink(java.lang.String nodePath)
|
void |
loadPortletConfig(javax.portlet.PortletPreferences preferences)
|
void |
newJCRTemplateResourceResolver()
|
boolean |
nodeIsLocked(javax.jcr.Node node)
|
void |
processRender(org.exoplatform.webui.application.WebuiRequestContext context)
|
void |
record(java.lang.String str)
|
void |
refreshContent()
|
void |
setCategoryPath(java.lang.String path)
|
void |
setCurrentNodePath(java.lang.String currentPath)
|
void |
setKeyValue(java.lang.String keyValue)
|
void |
setPageIterator(java.util.List<javax.jcr.Node> data)
|
void |
setPageStatus(boolean isSetted)
|
protected void |
setRootPath(java.lang.String rootPath)
|
void |
setRowPerBlock(int number)
|
void |
setSelectedTabPath(java.lang.String selectedTabPath)
|
void |
setShowAllChildren(boolean isShowAll)
|
void |
setShowCategoryTree(boolean isShowCategoryTree)
|
void |
setShowDocumentByTag(boolean isShowByTag)
|
void |
setShowDocumentDetail(boolean isShowDocument)
|
void |
setShowDocumentList(boolean isShowDocumentList)
|
protected void |
setShowPageAction(boolean isShowPage)
|
void |
setShowSearchForm(boolean isShowSearch)
|
void |
setTagPath(java.lang.String tagPath)
|
void |
setTemplate(java.lang.String temp)
|
protected void |
setTemplateDetail(java.lang.String template)
|
void |
setTreeRoot(javax.jcr.Node node)
|
void |
setWorkspaceName(java.lang.String wsName)
|
protected boolean |
showPageAction()
|
void |
storeHistory()
|
java.util.List<javax.jcr.Node> |
storeListHistory(javax.jcr.Node selectedNode)
|
void |
viewDocument(javax.jcr.Node docNode,
boolean hasDocList)
|
| Methods inherited from class org.exoplatform.webui.core.UIContainer |
addChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypes |
| Methods inherited from class org.exoplatform.webui.core.UIComponent |
broadcast, createEvent, createUIComponent, createUIComponent, createUIComponent, doAsync, event, event, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getName, getParent, getRendererFor, getUIComponentName, isRendered, loadConfirmMesssage, processAction, processDecode, registerRendererFor, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibling, url, url, url |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CATEGORYPATH
public static final java.lang.String CATEGORYPATH
- See Also:
- Constant Field Values
CURRENTNODE
public static final java.lang.String CURRENTNODE
- See Also:
- Constant Field Values
HISTORY
public static final java.lang.String HISTORY
- See Also:
- Constant Field Values
ISSHOWALLDOCUMENT
public static final java.lang.String ISSHOWALLDOCUMENT
- See Also:
- Constant Field Values
ISSHOWCATEGORYTREE
public static final java.lang.String ISSHOWCATEGORYTREE
- See Also:
- Constant Field Values
ISSHOWDOCUMENTBYTAG
public static final java.lang.String ISSHOWDOCUMENTBYTAG
- See Also:
- Constant Field Values
ISSHOWDOCUMENTDETAIL
public static final java.lang.String ISSHOWDOCUMENTDETAIL
- See Also:
- Constant Field Values
ISSHOWDOCUMENTLIST
public static final java.lang.String ISSHOWDOCUMENTLIST
- See Also:
- Constant Field Values
ISSHOWPAGEACTION
public static final java.lang.String ISSHOWPAGEACTION
- See Also:
- Constant Field Values
ISSHOWSEARCHFORM
public static final java.lang.String ISSHOWSEARCHFORM
- See Also:
- Constant Field Values
KEY_CURRENT
public static final java.lang.String KEY_CURRENT
- See Also:
- Constant Field Values
KEY_SELECTED
public static final java.lang.String KEY_SELECTED
- See Also:
- Constant Field Values
NODESHISTORY
public static final java.lang.String NODESHISTORY
- See Also:
- Constant Field Values
OLDTEMPLATE
public static final java.lang.String OLDTEMPLATE
- See Also:
- Constant Field Values
ROOTNODE
public static final java.lang.String ROOTNODE
- See Also:
- Constant Field Values
ROWPERBLOCK
public static final java.lang.String ROWPERBLOCK
- See Also:
- Constant Field Values
SELECTEDTAB
public static final java.lang.String SELECTEDTAB
- See Also:
- Constant Field Values
TAGPATH
public static final java.lang.String TAGPATH
- See Also:
- Constant Field Values
TEMPLATEDETAIL
public static final java.lang.String TEMPLATEDETAIL
- See Also:
- Constant Field Values
TEMPLATEPATH
public static final java.lang.String TEMPLATEPATH
- See Also:
- Constant Field Values
TREELIST
public static final java.lang.String TREELIST
- See Also:
- Constant Field Values
TREEROOT
public static final java.lang.String TREEROOT
- See Also:
- Constant Field Values
USECASE
public static final java.lang.String USECASE
- See Also:
- Constant Field Values
UIBrowseContainer
public UIBrowseContainer()
throws java.lang.Exception
- Throws:
java.lang.Exception
changeNode
public void changeNode(javax.jcr.Node selectNode)
throws java.lang.Exception
- Throws:
java.lang.Exception
getActions
public java.lang.String[] getActions()
getAnonimProvider
public org.exoplatform.services.jcr.ext.common.SessionProvider getAnonimProvider()
getCategoryPath
public java.lang.String getCategoryPath()
getCurrentList
public java.util.List<?> getCurrentList()
throws java.lang.Exception
- Throws:
java.lang.Exception
getCurrentNode
public javax.jcr.Node getCurrentNode()
throws java.lang.Exception
- Throws:
java.lang.Exception
getDocumentByTag
public java.util.List<javax.jcr.Node> getDocumentByTag()
throws java.lang.Exception
- Throws:
java.lang.Exception
getIcons
public java.lang.String getIcons(javax.jcr.Node node,
java.lang.String type)
throws java.lang.Exception
- Throws:
java.lang.Exception
getImage
public java.lang.String getImage(javax.jcr.Node node)
throws java.lang.Exception
- Throws:
java.lang.Exception
getImage
public java.lang.String getImage(javax.jcr.Node node,
java.lang.String nodeTypeName)
throws java.lang.Exception
- Throws:
java.lang.Exception
getItemPerPage
public int getItemPerPage()
getNodeByPath
public javax.jcr.Node getNodeByPath(java.lang.String nodePath)
throws java.lang.Exception
- Throws:
java.lang.Exception
getNodeByPath
public javax.jcr.Node getNodeByPath(java.lang.String nodePath,
java.lang.String workspace)
throws java.lang.Exception
- Throws:
java.lang.Exception
getCapacityOfFile
public java.lang.String getCapacityOfFile(javax.jcr.Node file)
throws java.lang.Exception
- Throws:
java.lang.Exception
isPublishedNode
public boolean isPublishedNode(javax.jcr.Node node)
throws java.lang.Exception
- Throws:
java.lang.Exception
getViewNode
public javax.jcr.Node getViewNode(javax.jcr.Node node)
throws java.lang.Exception
- Throws:
java.lang.Exception
getNodeByQuery
public java.util.List<javax.jcr.Node> getNodeByQuery(int recordNumber)
throws java.lang.Exception
- Return a list of Node in the Query use case
- Parameters:
recordNumber - Number of expected records
- Returns:
- list of Nodes corresponding to the query
- Throws:
java.lang.Exception - if there was a problem while issuing the query
getQueryResultNew
public javax.jcr.query.QueryResult getQueryResultNew()
throws java.lang.Exception
- Returns the results of a new query
- Parameters:
recordNumber - Number of expected records
- Returns:
- query results
- Throws:
java.lang.Exception
getQueryResultStored
public javax.jcr.query.QueryResult getQueryResultStored()
throws java.lang.Exception
- Returns the results of a saved query
- Parameters:
recordNumber - Number of expected records
- Returns:
- query results
- Throws:
java.lang.Exception
nodeIsLocked
public boolean nodeIsLocked(javax.jcr.Node node)
throws java.lang.Exception
- Throws:
java.lang.Exception
hasAddPermission
public boolean hasAddPermission(javax.jcr.Node node)
setKeyValue
public void setKeyValue(java.lang.String keyValue)
getKeyValue
public java.lang.String getKeyValue()
getNodeByUUID
public javax.jcr.Node getNodeByUUID(java.lang.String uuid)
throws java.lang.Exception
- Throws:
java.lang.Exception
getNodeByQuery
public java.util.List<javax.jcr.Node> getNodeByQuery(int recoderNumber,
javax.jcr.Session session)
throws java.lang.Exception
- Throws:
java.lang.Exception
getNodeByQuery
public java.util.List<javax.jcr.Node> getNodeByQuery(java.lang.String queryType,
java.lang.String queryString)
throws java.lang.Exception
- Throws:
java.lang.Exception
getNodesHistory
public java.util.LinkedList<java.lang.String> getNodesHistory()
getTotalNodeByQuery
public int getTotalNodeByQuery()
getNumberOfPage
public int getNumberOfPage()
getOwner
public java.lang.String getOwner(javax.jcr.Node node)
throws java.lang.Exception
- Throws:
java.lang.Exception
getPathContent
public java.util.Map getPathContent()
throws java.lang.Exception
- Throws:
java.lang.Exception
getPortletPreferences
public javax.portlet.PortletPreferences getPortletPreferences()
getQueryLanguage
public java.lang.String getQueryLanguage()
getQueryStatement
public java.lang.String getQueryStatement()
getRepository
public java.lang.String getRepository()
getUserName
public java.lang.String getUserName()
getRootPath
public java.lang.String getRootPath()
getRootNode
public javax.jcr.Node getRootNode()
throws java.lang.Exception
- Throws:
java.lang.Exception
getRowPerBlock
public int getRowPerBlock()
setSelectedTabPath
public void setSelectedTabPath(java.lang.String selectedTabPath)
getSelectedTab
public javax.jcr.Node getSelectedTab()
throws java.lang.Exception
- Throws:
java.lang.Exception
getSession
public javax.jcr.Session getSession(boolean flag)
throws java.lang.Exception
- Throws:
java.lang.Exception
getSession
public javax.jcr.Session getSession(java.lang.String repository,
java.lang.String workspace)
throws java.lang.Exception
- Throws:
java.lang.Exception
getSessionProvider
public org.exoplatform.services.jcr.ext.common.SessionProvider getSessionProvider()
getSubDocumentList
public java.util.List<javax.jcr.Node> getSubDocumentList(javax.jcr.Node selectedNode)
throws java.lang.Exception
- Throws:
java.lang.Exception
getSystemProvider
public org.exoplatform.services.jcr.ext.common.SessionProvider getSystemProvider()
getTagLink
public java.util.List<javax.jcr.Node> getTagLink()
throws java.lang.Exception
- Throws:
java.lang.Exception
getTagPath
public java.lang.String getTagPath()
getTagStyle
public java.util.Map<java.lang.String,java.lang.String> getTagStyle()
throws java.lang.Exception
- Throws:
java.lang.Exception
getTemplate
public java.lang.String getTemplate()
- Overrides:
getTemplate in class org.exoplatform.webui.core.UIComponent
getTemplateResourceResolver
public org.exoplatform.resolver.ResourceResolver getTemplateResourceResolver(org.exoplatform.webui.application.WebuiRequestContext context,
java.lang.String template)
- Overrides:
getTemplateResourceResolver in class org.exoplatform.webui.core.UIComponent
getSortedListNode
public java.util.List<javax.jcr.Node> getSortedListNode(javax.jcr.Node node,
boolean isASC)
throws java.lang.Exception
- Throws:
java.lang.Exception
getSortedListFolderNode
public java.util.List<javax.jcr.Node> getSortedListFolderNode(javax.jcr.Node node,
boolean isASC)
throws java.lang.Exception
- Throws:
java.lang.Exception
getSortedListNodeByDate
public java.util.List<javax.jcr.Node> getSortedListNodeByDate(javax.jcr.Node node,
boolean isASC)
throws java.lang.Exception
- Throws:
java.lang.Exception
isSymLink
public boolean isSymLink(java.lang.String nodePath)
throws java.lang.Exception
- Throws:
java.lang.Exception
getTreeContent
public java.util.Map getTreeContent()
throws java.lang.Exception
- Throws:
java.lang.Exception
getTreeRoot
public BCTreeNode getTreeRoot()
getUIPageIterator
public org.exoplatform.webui.core.UIPageIterator getUIPageIterator()
throws java.lang.Exception
- Throws:
java.lang.Exception
getUseCase
public java.lang.String getUseCase()
setWorkspaceName
public void setWorkspaceName(java.lang.String wsName)
getWorkSpace
public java.lang.String getWorkSpace()
getDMSSystemWorkspace
public java.lang.String getDMSSystemWorkspace(java.lang.String repository)
throws java.lang.Exception
- Throws:
java.lang.Exception
initToolBar
public void initToolBar(boolean showTree,
boolean showPath,
boolean showSearch)
throws java.lang.Exception
- Throws:
java.lang.Exception
isCommentAndVote
public boolean isCommentAndVote()
isEnableChildDocument
public boolean isEnableChildDocument()
isAllowPublish
public boolean isAllowPublish()
isEnableRefDocument
public boolean isEnableRefDocument()
isEnableToolBar
public boolean isEnableToolBar()
isRootNode
public boolean isRootNode()
throws java.lang.Exception
- Throws:
java.lang.Exception
isShowAllDocument
public boolean isShowAllDocument()
isShowCategoryTree
public boolean isShowCategoryTree()
isShowCommentForm
public boolean isShowCommentForm()
isShowDocumentByTag
public boolean isShowDocumentByTag()
isShowDocumentDetail
public boolean isShowDocumentDetail()
isShowDocumentList
public boolean isShowDocumentList()
isShowSearchForm
public boolean isShowSearchForm()
isShowTagmap
public boolean isShowTagmap()
isShowVoteForm
public boolean isShowVoteForm()
loadPortletConfig
public void loadPortletConfig(javax.portlet.PortletPreferences preferences)
throws java.lang.Exception
- Throws:
java.lang.Exception
getDmsSystemWorkspace
public java.lang.String getDmsSystemWorkspace()
newJCRTemplateResourceResolver
public void newJCRTemplateResourceResolver()
processRender
public void processRender(org.exoplatform.webui.application.WebuiRequestContext context)
throws java.lang.Exception
- Overrides:
processRender in class org.exoplatform.webui.core.UIComponent
- Throws:
java.lang.Exception
record
public void record(java.lang.String str)
refreshContent
public void refreshContent()
throws java.lang.Exception
- Throws:
java.lang.Exception
setCategoryPath
public void setCategoryPath(java.lang.String path)
setCurrentNodePath
public void setCurrentNodePath(java.lang.String currentPath)
setPageIterator
public void setPageIterator(java.util.List<javax.jcr.Node> data)
throws java.lang.Exception
- Throws:
java.lang.Exception
isSetted
public boolean isSetted()
setPageStatus
public void setPageStatus(boolean isSetted)
setRowPerBlock
public void setRowPerBlock(int number)
setShowAllChildren
public void setShowAllChildren(boolean isShowAll)
setShowCategoryTree
public void setShowCategoryTree(boolean isShowCategoryTree)
setShowDocumentByTag
public void setShowDocumentByTag(boolean isShowByTag)
setShowDocumentDetail
public void setShowDocumentDetail(boolean isShowDocument)
setShowDocumentList
public void setShowDocumentList(boolean isShowDocumentList)
setShowSearchForm
public void setShowSearchForm(boolean isShowSearch)
setTagPath
public void setTagPath(java.lang.String tagPath)
setTemplate
public void setTemplate(java.lang.String temp)
setTreeRoot
public void setTreeRoot(javax.jcr.Node node)
throws java.lang.Exception
- Throws:
java.lang.Exception
storeHistory
public void storeHistory()
throws java.lang.Exception
- Throws:
java.lang.Exception
getListHistoryNode
public java.util.List<javax.jcr.Node> getListHistoryNode()
storeListHistory
public java.util.List<javax.jcr.Node> storeListHistory(javax.jcr.Node selectedNode)
throws java.lang.Exception
- Throws:
java.lang.Exception
viewDocument
public void viewDocument(javax.jcr.Node docNode,
boolean hasDocList)
throws java.lang.Exception
- Throws:
java.lang.Exception
getHistory
protected java.util.Map<java.lang.String,javax.jcr.Node> getHistory()
getNodeByScript
protected java.util.List<javax.jcr.Node> getNodeByScript(java.lang.String repository,
java.lang.String scriptName)
throws java.lang.Exception
- Throws:
java.lang.Exception
getTemlateDetail
protected java.lang.String getTemlateDetail()
getTemplateName
protected java.lang.String getTemplateName()
historyBack
protected void historyBack()
throws java.lang.Exception
- Throws:
java.lang.Exception
historyNext
protected void historyNext()
isCategories
protected boolean isCategories(javax.jcr.Node node)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
isCategories
protected boolean isCategories(javax.jcr.nodetype.NodeType nodeType)
setRootPath
protected void setRootPath(java.lang.String rootPath)
setShowPageAction
protected void setShowPageAction(boolean isShowPage)
setTemplateDetail
protected void setTemplateDetail(java.lang.String template)
showPageAction
protected boolean showPageAction()
getWebDAVServerPrefix
public java.lang.String getWebDAVServerPrefix()
throws java.lang.Exception
- Throws:
java.lang.Exception
getPortalName
public java.lang.String getPortalName()
Copyright © 2010 eXo Platform SAS. All Rights Reserved.