Package org.ametys.core.right
Interface RightContextConvertor
- All Known Implementing Classes:
Content2ContentTypeRightContextConvertor
,Content2PagesRightContextConvertor
,ContentAttachment2ContentRightContextConvertor
,ContentToModuleRightContextConvertor
,CoursePartRightsContextConvertor
,FormElement2FormRightContextConvertor
,PageAttachment2PageRightContextConvertor
,PageToModuleRootRightContextConvertor
,StringRightContextConvertor
,TraversableSource2ExtractionRightContextConvertor
,WorkspaceRightContextConvertor
public interface RightContextConvertor
This interface is for getting, from a single object, a set of object. When calling
RightManager.hasRight(org.ametys.core.user.UserIdentity, String, Object)
,
the object is converted into a set of objects and the rights are checked on all those converted objects.-
Method Summary
-
Method Details
-
convert
Converts the object.- 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.
-