Package org.ametys.plugins.ai.rights
Class Chunk2ContentRightContextConvertor
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.ai.rights.Chunk2ContentRightContextConvertor
- All Implemented Interfaces:
RightContextConvertor,DeferredServiceable,LogEnabled
public class Chunk2ContentRightContextConvertor
extends AbstractLogEnabled
implements RightContextConvertor, DeferredServiceable
This implementation converts a Chunk into its parent
Content-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConverts the object.voiddeferredService(ServiceManager manager) Pass theServiceManagerused to access other components.Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
Chunk2ContentRightContextConvertor
public Chunk2ContentRightContextConvertor()
-
-
Method Details
-
deferredService
Description copied from interface:DeferredServiceablePass theServiceManagerused to access other components.- Specified by:
deferredServicein interfaceDeferredServiceable- Parameters:
manager- TheServiceManagerwhich thisDeferredServiceableuses. Must not benull.- Throws:
ServiceException- if an error occurs
-
convert
Description copied from interface:RightContextConvertorConverts the object.- Specified by:
convertin interfaceRightContextConvertor- Parameters:
object- The initial object- Returns:
- The converted objects. A non-null set, that does not contains the initial object. So if you do not support the object to convert, you must return an empty set.
-