Class ContentsWithViewTreeGridHelper
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.contentstree.ContentsTreeHelper
org.ametys.odf.tree.ODFContentsTreeHelper
org.ametys.plugins.odfpilotage.helper.ODFContentsTreeHelper
org.ametys.plugins.odfpilotage.helper.ContentsWithViewTreeGridHelper
- All Implemented Interfaces:
LogEnabled
,Component
,Contextualizable
,Serviceable
public class ContentsWithViewTreeGridHelper
extends ODFContentsTreeHelper
implements Contextualizable
The tree helper for grid displaying a view
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
The id of the request attribute where required content views are storedFields inherited from class org.ametys.odf.tree.ODFContentsTreeHelper
_odfHelper, _shareableCourseHelper, _shareableStatusHelper, _workflowProvider, ROLE
Fields inherited from class org.ametys.plugins.contentstree.ContentsTreeHelper
_ametysResolver, _contentTypesEP, _contentTypesHelper, _treeExtensionPoint
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription_canEdit
(ViewItemAccessor viewItemAcessor, Content content) List the path that cannot be edited.content2Json
(Content content) Get the default JSON representation of a content of the treevoid
contextualize
(Context context) getChildrenContent
(String contentId, String treeId, String searchModelName) Get the children contents according the tree configurationgetNodeInformations
(String contentId, String searchModel) Get the node informationsgetRootNodeInformations
(String contentId, String treeId, String searchModel) Get the root node informationsvoid
service
(ServiceManager smanager) Methods inherited from class org.ametys.odf.tree.ODFContentsTreeHelper
getProgramItemDisplayCode, getRootNodeInformations, getShareableStatus, getWorkflowStep, isContentMatching, isShared, isSharedByParents
Methods inherited from class org.ametys.plugins.contentstree.ContentsTreeHelper
_addChildren, _getParentContent, _getTreeConfiguration, childContent2Json, filterChildrenContentByRegExp, getChildrenContent, getChildrenContent, getNodeInformations, hasAutoExpandTargets, hasChildrenContent, isAnAutoExpandTarget
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
REQUEST_ATTRIBUTE_SEARCHMODELNAME
The id of the request attribute where required content views are stored
-
-
Constructor Details
-
ContentsWithViewTreeGridHelper
public ContentsWithViewTreeGridHelper()
-
-
Method Details
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classODFContentsTreeHelper
- Throws:
ServiceException
-
getRootNodeInformations
public Map<String,Object> getRootNodeInformations(String contentId, String treeId, String searchModel) Get the root node informations- Parameters:
contentId
- The contenttreeId
- the tree configurationsearchModel
- The search model involved- Returns:
- The informations
-
getNodeInformations
Get the node informations- Parameters:
contentId
- The contentsearchModel
- The search model involved- Returns:
- The informations
-
getChildrenContent
public Map<String,Object> getChildrenContent(String contentId, String treeId, String searchModelName) Get the children contents according the tree configuration- Parameters:
contentId
- the parent contenttreeId
- the tree configurationsearchModelName
- The name of the search model to use to send data- Returns:
- the children content
-
content2Json
Description copied from class:ContentsTreeHelper
Get the default JSON representation of a content of the tree- Overrides:
content2Json
in classODFContentsTreeHelper
- Parameters:
content
- the content- Returns:
- the content as JSON
-
_canEdit
List the path that cannot be edited. Not following the content attribute children (since it could imply some items modifiable and others not in a repeater)- Parameters:
viewItemAcessor
- The view with definitioncontent
- The content to study- Returns:
- The list of unmodifiable definition path
-