public class PermissionsFormHandler extends Object
Modifier and Type | Field and Description |
---|---|
static String |
FORM_PARAMETER_PREFIX |
static String |
FORM_PARAMETER_SEPARATOR |
static String |
FULL_FORM_PARAMETER_PREFIX |
Constructor and Description |
---|
PermissionsFormHandler(UserAccessor userAccessor) |
Modifier and Type | Method and Description |
---|---|
SpacePermission |
fromFormParameterName(String formParameterName,
Space space,
String parameterType)
Convert a form parameter name into a space permission.
|
public static final String FORM_PARAMETER_PREFIX
public static final String FORM_PARAMETER_SEPARATOR
public static final String FULL_FORM_PARAMETER_PREFIX
public PermissionsFormHandler(UserAccessor userAccessor)
public SpacePermission fromFormParameterName(String formParameterName, Space space, String parameterType) throws ParseException
#toFormParameterName(String)
.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.ParseException
- if the form parameter name can not be converted to a permission typeCopyright © 2003–2020 Atlassian. All rights reserved.
View cookie preferences