Package org.ametys.odf.rights
Class ODFRightHelper.ContextualizedPermissionContext
java.lang.Object
org.ametys.odf.rights.ODFRightHelper.ContextualizedPermissionContext
- Enclosing class:
ODFRightHelper
Class representing the permission context for parents computation for a contextualized content.
The permission context is composed by the initial content and a
EducationalPath
-
Constructor Summary
ConstructorsConstructorDescriptionContextualizedPermissionContext
(Content initialContent) ConstructorContextualizedPermissionContext
(Content initialContent, EducationalPath educationalPath) Constructor -
Method Summary
Modifier and TypeMethodDescriptionGet the educational path in permission contextGet the initial contentvoid
withEducationalPath
(EducationalPath educationalPath) Set an educational path.
-
Constructor Details
-
ContextualizedPermissionContext
Constructor- Parameters:
initialContent
- the initial content
-
ContextualizedPermissionContext
Constructor- Parameters:
initialContent
- the initial program itemeducationalPath
- The educational path. Can be null.
-
-
Method Details
-
getInitialContent
Get the initial content- Returns:
- the initial content
-
getEducationalPath
Get the educational path in permission context- Returns:
- the educational path
-
withEducationalPath
Set an educational path. Only parent that part of this educational will be returned.- Parameters:
educationalPath
- the educationa path
-