Class WorkspaceRightContextConvertor
- java.lang.Object
-
- org.ametys.plugins.core.impl.right.WorkspaceRightContextConvertor
-
- All Implemented Interfaces:
RightContextConvertor
,Contextualizable
,Serviceable
public class WorkspaceRightContextConvertor extends Object implements RightContextConvertor, Contextualizable, Serviceable
Covnert /${WorkspaceName} to the name of the current workspace and recursiverly relaunch the convertors
-
-
Field Summary
Fields Modifier and Type Field Description protected Context
_context
The avalon contextprotected RightContextConvertorExtensionPoint
_rightContextConvertorEP
The extension point for the Right Context Convertors
-
Constructor Summary
Constructors Constructor Description WorkspaceRightContextConvertor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contextualize(Context context)
Set<Object>
convert(Object object)
Converts the object.void
service(ServiceManager manager)
-
-
-
Field Detail
-
_rightContextConvertorEP
protected RightContextConvertorExtensionPoint _rightContextConvertorEP
The extension point for the Right Context Convertors
-
-
Constructor Detail
-
WorkspaceRightContextConvertor
public WorkspaceRightContextConvertor()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
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.
-
-