com.atlassian.confluence.security
Class PermissionsFormHandler

java.lang.Object
  extended by com.atlassian.confluence.security.PermissionsFormHandler

public class PermissionsFormHandler
extends Object

Since:
v5.3

Field Summary
static String FORM_PARAMETER_PREFIX
           
static String FORM_PARAMETER_SEPARATOR
           
static String FULL_FORM_PARAMETER_PREFIX
           
 
Constructor Summary
PermissionsFormHandler(UserAccessor userAccessor)
           
 
Method Summary
 SpacePermission fromFormParameterName(String formParameterName, Space space, String parameterType)
          Convert a form parameter name into a space permission.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

PermissionsFormHandler

public PermissionsFormHandler(UserAccessor userAccessor)
Method Detail

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


Copyright © 2003–2015 Atlassian. All rights reserved.