public class SynchronizedRootContentHelper extends AbstractLogEnabled implements Component, Serviceable
Modifier and Type | Field and Description |
---|---|
protected AmetysObjectResolver |
_resolver
Ametys object resolver
|
static String |
CONTENTIO_ROOT_NODE
The root node name of the plugin
|
static String |
IMPORTED_CONTENTS_ROOT_NODE
The root node name of the imported contents
|
static String |
ROLE
The component role.
|
Constructor and Description |
---|
SynchronizedRootContentHelper() |
Modifier and Type | Method and Description |
---|---|
AmetysObjectCollection |
getRootContent(boolean create)
Gets the root of contents
|
boolean |
isChildOfRootContent(Content content)
Tests if the given content is child of the root of contents, i.e.
|
void |
service(ServiceManager manager) |
getLogger, setLogger
public static final String CONTENTIO_ROOT_NODE
public static final String IMPORTED_CONTENTS_ROOT_NODE
protected AmetysObjectResolver _resolver
public SynchronizedRootContentHelper()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public AmetysObjectCollection getRootContent(boolean create)
create
- true
to create automatically the root when missing.UnknownAmetysObjectException
- If root node does not existpublic boolean isChildOfRootContent(Content content)
content
- The content to test