Package org.ametys.odf.rights
Class ODFRightsContextConvertor
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.odf.rights.ODFRightsContextConvertor
- All Implemented Interfaces:
RightContextConvertor
,LogEnabled
,Serviceable
public class ODFRightsContextConvertor
extends AbstractLogEnabled
implements RightContextConvertor, Serviceable
This implementation convert the ODF contents to a Set of
OrgUnit
they belong to.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConverts the object.getOrgUnits
(ProgramItem content) Get the orgunits for the contentvoid
service
(ServiceManager smanager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
ODFRightsContextConvertor
public ODFRightsContextConvertor()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
convert
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.
-
getOrgUnits
Get the orgunits for the content- Parameters:
content
- the content- Returns:
- the orgunits in a List
-