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(ConfluenceUserResolver userResolver) |
PermissionsFormHandler(UserAccessor userAccessor)
Deprecated.
since 7.17
|
| 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(ConfluenceUserResolver userResolver)
@Deprecated 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–2022 Atlassian. All rights reserved.