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 permission
space
- the space the permission applies to, or null if it is a global permission
parameterType
- 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