com.atlassian.confluence.security
Class PermissionsFormHandler

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

public class PermissionsFormHandler
extends java.lang.Object

Since:
v5.3

Field Summary
static java.lang.String FORM_PARAMETER_PREFIX
           
static java.lang.String FORM_PARAMETER_SEPARATOR
           
static java.lang.String FULL_FORM_PARAMETER_PREFIX
           
 
Constructor Summary
PermissionsFormHandler(UserAccessor userAccessor)
           
 
Method Summary
 SpacePermission fromFormParameterName(java.lang.String formParameterName, Space space, java.lang.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 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
Constructor Detail

PermissionsFormHandler

public PermissionsFormHandler(UserAccessor userAccessor)
Method Detail

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 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:
java.text.ParseException - if the form parameter name can not be converted to a permission type


Copyright © 2003-2014 Atlassian. All Rights Reserved.