Package org.ametys.odf.rights
Class CoursePartRightsContextConvertor
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.odf.rights.CoursePartRightsContextConvertor
-
- All Implemented Interfaces:
RightContextConvertor
,LogEnabled
public class CoursePartRightsContextConvertor extends AbstractLogEnabled implements RightContextConvertor
This implementation convert theCoursePart
to a Set ofCourse
they belong to.
-
-
Constructor Summary
Constructors Constructor Description CoursePartRightsContextConvertor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Object>
convert(Object object)
Converts the object.-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
CoursePartRightsContextConvertor
public CoursePartRightsContextConvertor()
-
-
Method Detail
-
convert
public Set<Object> convert(Object object)
Description copied from interface:RightContextConvertor
Converts the object.- Specified by:
convert
in 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.
-
-