com.atlassian.confluence.security
Class PermissionsFormHandler
java.lang.Object
com.atlassian.confluence.security.PermissionsFormHandler
public class PermissionsFormHandler
- extends java.lang.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 java.lang.String FORM_PARAMETER_PREFIX
- See Also:
- Constant Field Values
FORM_PARAMETER_SEPARATOR
public static final java.lang.String FORM_PARAMETER_SEPARATOR
- See Also:
- Constant Field Values
FULL_FORM_PARAMETER_PREFIX
public static final java.lang.String FULL_FORM_PARAMETER_PREFIX
- See Also:
- Constant Field Values
PermissionsFormHandler
public PermissionsFormHandler(UserAccessor userAccessor)
fromFormParameterName
public SpacePermission fromFormParameterName(java.lang.String formParameterName,
Space space,
java.lang.String parameterType)
throws java.text.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:
java.text.ParseException
- if the form parameter name can not be converted to a permission type
Copyright © 2003-2014 Atlassian. All Rights Reserved.