com.atlassian.confluence.security
Class PermissionsFormHandler
java.lang.Object
com.atlassian.confluence.security.PermissionsFormHandler
public class PermissionsFormHandler
- extends Object
- Since:
- v5.3
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
PermissionsFormHandler
public PermissionsFormHandler(UserAccessor userAccessor)
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
Copyright © 2003–2015 Atlassian. All rights reserved.