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

Interface AccessControlResponseInterface

Implementors encapsulate the authorization response, that can allow or deny the requested action.

Direct known implementers

Nethgui\Authorization\LazyAccessControlResponse, Nethgui\Test\Tool\PermissivePolicyDecisionPoint, Nethgui\Test\Tool\StaticPolicyDecisionPoint
Namespace: Nethgui\Authorization
Author: Davide Principi davide.principi@nethesis.it
Since: 1.0
Api
Located at Authorization/AccessControlResponseInterface.php
Methods summary
public boolean
# isAllowed( )

TRUE if the access is granted.

TRUE if the access is granted.

Returns

boolean
TRUE, if granted, FALSE otherwise.

Api

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

public string
# getMessage( )

Response explanation.

Response explanation.

Returns

string

Api

public integer
# getCode( )

Response numeric code.

Response numeric code.

Returns

integer
0 if granted, positive otherwise

Api

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

Nethgui Framework API documentation generated by ApiGen