Class PageToModuleRootRightContextConvertor
- java.lang.Object
-
- org.ametys.plugins.workspaces.project.rights.convertor.PageToModuleRootRightContextConvertor
-
- All Implemented Interfaces:
RightContextConvertor
,Serviceable
public class PageToModuleRootRightContextConvertor extends Object implements RightContextConvertor, Serviceable
Converts a page of a project to its module root The index page of a project will be additionally converted to the Project
-
-
Constructor Summary
Constructors Constructor Description PageToModuleRootRightContextConvertor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Object>
convert(Object object)
Converts the object.void
service(ServiceManager manager)
-
-
-
Constructor Detail
-
PageToModuleRootRightContextConvertor
public PageToModuleRootRightContextConvertor()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
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.
-
-