Class PermissionsFormHandler
java.lang.Object
com.atlassian.confluence.security.PermissionsFormHandler
- Since:
- 5.3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromFormParameterName
(String formParameterName, Space space, String parameterType) Convert a form parameter name into a space permission.
-
Field Details
-
FORM_PARAMETER_PREFIX
- See Also:
-
FORM_PARAMETER_SEPARATOR
- See Also:
-
FULL_FORM_PARAMETER_PREFIX
- See Also:
-
-
Constructor Details
-
PermissionsFormHandler
- Since:
- 7.17
-
-
Method Details
-
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
-