Package org.ametys.cms.rights
Class Content2ContentTypeRightContextConvertor
- java.lang.Object
-
- org.ametys.cms.rights.Content2ContentTypeRightContextConvertor
-
- All Implemented Interfaces:
RightContextConvertor
public class Content2ContentTypeRightContextConvertor extends Object implements RightContextConvertor
This implementation converts aContent
into a set of content type hierarchy
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONTENT_TYPE_RIGHT_CONTEXT_PREFIX
The prefix for right context for content types
-
Constructor Summary
Constructors Constructor Description Content2ContentTypeRightContextConvertor()
-
-
-
Field Detail
-
CONTENT_TYPE_RIGHT_CONTEXT_PREFIX
public static final String CONTENT_TYPE_RIGHT_CONTEXT_PREFIX
The prefix for right context for content types- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Content2ContentTypeRightContextConvertor
public Content2ContentTypeRightContextConvertor()
-
-
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.
-
-