Package org.ametys.web.content
Class RootContentHelper
java.lang.Object
org.ametys.cms.content.RootContentHelper
org.ametys.web.content.RootContentHelper
- All Implemented Interfaces:
Component
,Contextualizable
,Serviceable
Helper for retrieving root of contents for web
-
Field Summary
Modifier and TypeFieldDescriptionprotected Context
The contextprotected SiteManager
The site managerFields inherited from class org.ametys.cms.content.RootContentHelper
_resolver, ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contextualize
(Context context) Gets the root of contentsvoid
service
(ServiceManager manager) Methods inherited from class org.ametys.cms.content.RootContentHelper
isChildOfRootContent
-
Field Details
-
_siteManager
The site manager -
_context
The context
-
-
Constructor Details
-
RootContentHelper
public RootContentHelper()
-
-
Method Details
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classRootContentHelper
- Throws:
ServiceException
-
getRootContent
Description copied from class:RootContentHelper
Gets the root of contents- Overrides:
getRootContent
in classRootContentHelper
- Returns:
- the root of contents
-