Class PermissionsFormHandler
- java.lang.Object
-
- com.atlassian.confluence.security.PermissionsFormHandler
-
public class PermissionsFormHandler extends Object
- Since:
- 5.3
-
-
Field Summary
Fields Modifier and Type Field Description static String
FORM_PARAMETER_PREFIX
static String
FORM_PARAMETER_SEPARATOR
static String
FULL_FORM_PARAMETER_PREFIX
-
Constructor Summary
Constructors Constructor Description PermissionsFormHandler(ConfluenceUserResolver userResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpacePermission
fromFormParameterName(String formParameterName, Space space, String parameterType)
Convert a form parameter name into a space permission.
-
-
-
Field Detail
-
FORM_PARAMETER_PREFIX
public static final String FORM_PARAMETER_PREFIX
- See Also:
- Constant Field Values
-
FORM_PARAMETER_SEPARATOR
public static final String FORM_PARAMETER_SEPARATOR
- See Also:
- Constant Field Values
-
FULL_FORM_PARAMETER_PREFIX
public static final String FULL_FORM_PARAMETER_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PermissionsFormHandler
public PermissionsFormHandler(ConfluenceUserResolver userResolver)
- Since:
- 7.17
-
-
Method Detail
-
fromFormParameterName
public SpacePermission fromFormParameterName(String formParameterName, Space space, String parameterType) throws ParseException
Convert a form parameter name into a space permission. The form parameter name should have been generated from#toFormParameterName(String)
.- Parameters:
formParameterName
- the form parameter name to convert to a space permissionspace
- the space the permission applies to, or null if it is a global permissionparameterType
- distinguishes the parameter from other parameters created with the same permission. Makes little difference to this method.- Returns:
- the relevant SpacePermission
- Throws:
ParseException
- if the form parameter name can not be converted to a permission type
-
-