Overview

Namespaces

  • Nethgui
    • Adapter
    • Authorization
    • Component
    • Controller
      • Collection
      • Table
    • Exception
    • Log
    • Model
    • Module
      • Help
      • Notification
    • Renderer
    • Serializer
    • System
    • Test
      • Tool
      • Unit
        • Nethgui
          • Adapter
            • ParameterSet
          • Authorization
          • Log
          • Module
            • Notification
          • Renderer
          • Serializer
          • System
          • Utility
          • View
        • Test
          • Tool
    • Utility
    • View
    • Widget
      • Xhtml
  • None
  • Test
    • Tool

Classes

  • AuthorizedModuleSet
  • JsonPolicyDecisionPoint
  • LazyAccessControlResponse
  • PolicyRule
  • User

Interfaces

  • AccessControlResponseInterface
  • AuthorizationAttributesProviderInterface
  • PolicyDecisionPointInterface
  • PolicyEnforcementPointInterface
  • UserInterface
  • Overview
  • Namespace
  • Class
  • Deprecated

Class LazyAccessControlResponse

Lazy authorizations

Nethgui\Authorization\LazyAccessControlResponse implements Nethgui\Authorization\AccessControlResponseInterface
Namespace: Nethgui\Authorization
Author: Davide Principi davide.principi@nethesis.it
Since: 1.0
See: GroupBasedPolicyDecisionPoint
Located at Authorization/LazyAccessControlResponse.php
Methods summary
public
# __construct( Closure $closure, array $request )

Parameters

$closure
$request
public string
# getMessage( )

Response explanation.

Response explanation.

Returns

string

Api

Implementation of

Nethgui\Authorization\AccessControlResponseInterface::getMessage()
public boolean
# isAllowed( )

TRUE if the access is granted.

TRUE if the access is granted.

Returns

boolean
TRUE, if granted, FALSE otherwise.

Api

Implementation of

Nethgui\Authorization\AccessControlResponseInterface::isAllowed()
public boolean
# isDenied( )

This is the dual of isAllowed().

This is the dual of isAllowed().

Returns

boolean
TRUE, if access is denied FALSE otherwise

See

isGranted()

Api

Implementation of

Nethgui\Authorization\AccessControlResponseInterface::isDenied()
protected string
# asString( mixed $value )

Convert the given $value to a String

Convert the given $value to a String

Parameters

$value

Returns

string
public Nethgui\Exception\AuthorizationException
# asException( integer $identifier )

Prepare an exception object with the response informations.

Prepare an exception object with the response informations.

Parameters

$identifier
The exception unique identifier

Returns

Nethgui\Exception\AuthorizationException

Api

Implementation of

Nethgui\Authorization\AccessControlResponseInterface::asException()
public integer
# getCode( )

Response numeric code.

Response numeric code.

Returns

integer
0 if granted, positive otherwise

Api

Implementation of

Nethgui\Authorization\AccessControlResponseInterface::getCode()
protected
# authorize( )
public static Nethgui\Authorization\AccessControlResponseInterface
# createDenyResponse( )

Returns

Nethgui\Authorization\AccessControlResponseInterface
public static Nethgui\Authorization\AccessControlResponseInterface
# createSuccessResponse( )

Returns

Nethgui\Authorization\AccessControlResponseInterface
Nethgui Framework API documentation generated by ApiGen