Class PermissionsFormHandler

  • public class PermissionsFormHandler
    extends Object
    • Constructor Detail

    • 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).
        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.
        the relevant SpacePermission
        ParseException - if the form parameter name can not be converted to a permission type