Mapbender 3.0.6.0 API documenation
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download

Namespaces

  • FOM
    • CoreBundle
      • Component
      • DependencyInjection
      • Doctrine
        • Types
      • Form
        • DataTransformer
        • Type
    • ManagerBundle
      • Component
      • Configuration
      • Controller
      • DependencyInjection
        • Compiler
      • Form
        • Type
      • Routing
    • UserBundle
      • Command
      • Component
      • Controller
      • DependencyInjection
        • Factory
      • Entity
      • EventListener
      • Form
        • DataTransformer
        • EventListener
        • Type
      • Security
        • Authentication
          • Provider
          • Token
        • Authorization
          • Voter
        • Firewall
  • Mapbender
    • Component
    • CoreBundle
      • Asset
      • Command
      • Component
        • Exception
      • Controller
      • DataFixtures
        • ORM
          • Application
      • DependencyInjection
        • Compiler
      • Element
        • DataTransformer
        • EventListener
        • Type
      • Entity
      • EventListener
      • Extension
      • Form
        • DataTransformer
        • EventListener
        • Type
      • Security
      • Template
      • Tests
        • Controller
      • Utils
      • Validator
        • Constraints
    • DataSourceBundle
      • Component
        • Drivers
          • Interfaces
      • Controller
      • DependencyInjection
      • Element
        • Type
      • Entity
      • Extension
      • Tests
    • DigitizerBundle
      • Component
      • Element
        • Type
      • Entity
      • Utils
    • DrupalIntegrationBundle
      • DependencyInjection
      • Security
        • Authentication
          • Provider
          • Token
        • Authorization
          • Voter
        • Factory
        • Firewall
        • User
      • Session
    • KmlBundle
      • Element
    • ManagerBundle
      • Component
        • Exception
      • Controller
      • Form
        • DataTransformer
        • Type
      • Template
    • MobileBundle
      • DependencyInjection
      • Template
    • PrintBundle
      • Component
      • Element
        • Type
    • WmcBundle
      • Component
        • Exception
      • Element
        • Type
      • Entity
      • Form
        • Type
      • Tests
        • Component
    • WmsBundle
      • Component
        • Exception
      • Controller
      • DependencyInjection
      • Element
        • DataTransformer
        • EventListener
        • Type
      • Entity
      • Event
      • Form
        • DataTransformer
        • EventListener
        • Type
  • None
  • OwsProxy3
    • CoreBundle
      • Component
        • Exception
      • Controller
      • DependencyInjection
      • Entity
      • Event
      • EventListener
      • Worker
  • PHP

Classes

  • Application
  • ApplicationYAMLMapper
  • BoundingBox
  • Element
  • EntityHandler
  • InstanceConfiguration
  • InstanceConfigurationOptions
  • KeywordUpdater
  • MapbenderBundle
  • ProxyService
  • SecurityContext
  • Signer
  • Size
  • SourceEntityHandler
  • SourceInstanceEntityHandler
  • SourceInstanceItemEntityHandler
  • SourceItemEntityHandler
  • SourceMetadata
  • SQLSearchEngine
  • StateHandler
  • Template
  • Utils
  • XmlValidator

Interfaces

  • ContainingKeyword
  • ExtendedCollection
  • SearchEngine

Class SecurityContext

Class SecurityContext

Mapbender\CoreBundle\Component\SecurityContext implements Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface, Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface
Namespace: Mapbender\CoreBundle\Component
Package: FOM\UserBundle\Component
Copyright: 2015 by WhereGroup GmbH & Co. KG
Author: Andriy Oblivantsev <eslider@gmail.com>
Author: Mohamed Tahrioui <mohamed.tahrioui@wheregroup.com>
Located at Mapbender/CoreBundle/Component/SecurityContext.php

Methods summary

public
# __construct( Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface|Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface $tokenStorage, Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface|Symfony\Component\Security\Core\Authorization\AccessDecisionManagerInterface $authorizationChecker, boolean $alwaysAuthenticate = false )

For backwards compatibility, the signature of sf <2.6 still works.

For backwards compatibility, the signature of sf <2.6 still works.

Parameters

$tokenStorage
$authorizationChecker
$alwaysAuthenticate
only applicable with old signature
public
# getToken( )

Deprecated

since version 2.6, to be removed in 3.0. Use TokenStorageInterface::getToken() instead. {@inheritdoc}
public
# setToken( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token = null )

Deprecated

since version 2.6, to be removed in 3.0. Use TokenStorageInterface::setToken() instead. {@inheritdoc}
public
# isGranted( mixed $attributes, mixed $object = null )

Deprecated

since version 2.6, to be removed in 3.0. Use AuthorizationCheckerInterface::isGranted() instead. {@inheritdoc}
public FOM\UserBundle\Entity\User
# getUser( )

Get current logged user by the token

Get current logged user by the token

Returns

FOM\UserBundle\Entity\User
User
public array
# getRolesAsArray( )

Get current user role list

Get current user role list

Returns

array
Role name list
public boolean
# isUserLoggedIn( )

Is user logged in?

Is user logged in?

Returns

boolean
bool
public boolean
# checkGranted( string $action, object $object, boolean $throwException = true )

Checks the grant for an action and an object.

Checks the grant for an action and an object.

Parameters

$action
action "CREATE"
$object
the object
$throwException
Throw exception if current user isn't allowed to do that

Returns

boolean
bool
public boolean
# isUserAnMaster( mixed $object )

Is current user an object master?

Is current user an object master?

Parameters

$object

Returns

boolean
bool
public boolean
# isUserAnOperator( mixed $object )

Is current user an object operator?

Is current user an object operator?

Parameters

$object

Returns

boolean
bool
public boolean
# isUserAllowedToCreate( mixed $object )

Is current user allowed to create object?

Is current user allowed to create object?

Parameters

$object

Returns

boolean
bool
public boolean
# isUserAllowedToDelete( mixed $object )

Is current user allowed to delete object?

Is current user allowed to delete object?

Parameters

$object

Returns

boolean
bool
public boolean
# isUserAllowedToEdit( mixed $object )

Is current user allowed to edit object?

Is current user allowed to edit object?

Parameters

$object

Returns

boolean
bool
public boolean
# isUserAllowedToView( mixed $object )

Is current user allowed to view object?

Is current user allowed to view object?

Parameters

$object

Returns

boolean
bool

Magic methods summary

Constants summary

string ACCESS_DENIED_ERROR
#Mapbender\CoreBundle\Component\Security::ACCESS_DENIED_ERROR
string AUTHENTICATION_ERROR
#Mapbender\CoreBundle\Component\Security::AUTHENTICATION_ERROR
string LAST_USERNAME
#Mapbender\CoreBundle\Component\Security::LAST_USERNAME
string MAX_USERNAME_LENGTH
#Mapbender\CoreBundle\Component\Security::MAX_USERNAME_LENGTH
string PERMISSION_MASTER
#"MASTER"
string PERMISSION_OPERATOR
#"OPERATOR"
string PERMISSION_CREATE
#"CREATE"
string PERMISSION_DELETE
#"DELETE"
string PERMISSION_EDIT
#"EDIT"
string PERMISSION_VIEW
#"VIEW"
integer USER_ANONYMOUS_ID
#0
string USER_ANONYMOUS_NAME
#"anon."
Mapbender 3.0.6.0 API documenation API documentation generated by ApiGen 2.8.0