Package org.ametys.cms.content
Class RootContentHelper
java.lang.Object
org.ametys.cms.content.RootContentHelper
- All Implemented Interfaces:
Component
,Serviceable
- Direct Known Subclasses:
RootContentHelper
Helper for retrieving root of contents
-
Field Summary
Modifier and TypeFieldDescriptionprotected AmetysObjectResolver
Ametys object resolverstatic final String
The component role. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the root of contentsboolean
isChildOfRootContent
(Content content) Tests if the given content is child of the root of contents, i.e.void
service
(ServiceManager manager)
-
Field Details
-
ROLE
The component role. -
_resolver
Ametys object resolver
-
-
Constructor Details
-
RootContentHelper
public RootContentHelper()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getRootContent
Gets the root of contents- Returns:
- the root of contents
-
isChildOfRootContent
Tests if the given content is child of the root of contents, i.e. the given content is managed by the CMS workspace- Parameters:
content
- The content to test- Returns:
- true if the given content is child of the root of contents
-