PHP Интерфейс Sulu\Component\Security\Authentication\RoleInterface

Наследование: extends Sulu\Component\Persistence\Model\AuditableInterface, extends Sulu\Component\Security\Authentication\SecurityIdentityInterface
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
addGroup ( Group $groups ) : Sulu\Component\Security\Authentication\RoleInterface Add groups.
addPermission ( Permission $permissions ) : Sulu\Component\Security\Authentication\RoleInterface Add permissions.
addUserRole ( Sulu\Bundle\SecurityBundle\Entity\UserRole $userRoles ) : Sulu\Bundle\SecurityBundle\Entity\UserRole Add userRoles.
getChanged ( ) : DateTime Get changed.
getChanger ( ) : Sulu\Component\Security\Authentication\UserInterface Get changer.
getCreated ( ) : DateTime Get created.
getCreator ( ) : Sulu\Component\Security\Authentication\UserInterface Get creator.
getGroups ( ) : Doctrine\Common\Collections\Collection Get groups.
getId ( ) : integer Get id.
getName ( ) : string Get name.
getPermissions ( ) : Permission[] Get permissions.
getSecurityType ( ) : SecurityType Get securityType.
getSetting ( string $key ) : Sulu\Component\Security\Authentication\RoleSettingInterface | null Returns setting by name.
getSystem ( ) : string Get system.
getUserRoles ( ) : Doctrine\Common\Collections\Collection Get userRoles.
removeGroup ( Group $groups ) Remove groups.
removePermission ( Permission $permissions ) Remove permissions.
removeUserRole ( Sulu\Bundle\SecurityBundle\Entity\UserRole $userRoles ) Remove userRoles.
setChanger ( Sulu\Component\Security\Authentication\UserInterface $changer = null ) : Sulu\Component\Security\Authentication\RoleInterface Set changer.
setCreator ( Sulu\Component\Security\Authentication\UserInterface $creator = null ) : Sulu\Component\Security\Authentication\RoleInterface Set creator.
setName ( string $name ) : Sulu\Component\Security\Authentication\RoleInterface Set name.
setSecurityType ( SecurityType $securityType = null ) : Sulu\Component\Security\Authentication\RoleInterface Set securityType.
setSystem ( string $system ) : Sulu\Component\Security\Authentication\RoleInterface Set system.

Описание методов

addGroup() публичный Метод

Add groups.
public addGroup ( Group $groups ) : Sulu\Component\Security\Authentication\RoleInterface
$groups Sulu\Bundle\SecurityBundle\Entity\Group
Результат Sulu\Component\Security\Authentication\RoleInterface

addPermission() публичный Метод

Add permissions.
public addPermission ( Permission $permissions ) : Sulu\Component\Security\Authentication\RoleInterface
$permissions Sulu\Bundle\SecurityBundle\Entity\Permission
Результат Sulu\Component\Security\Authentication\RoleInterface

addUserRole() публичный Метод

Add userRoles.
public addUserRole ( Sulu\Bundle\SecurityBundle\Entity\UserRole $userRoles ) : Sulu\Bundle\SecurityBundle\Entity\UserRole
$userRoles Sulu\Bundle\SecurityBundle\Entity\UserRole
Результат Sulu\Bundle\SecurityBundle\Entity\UserRole

getChanged() публичный Метод

Get changed.
public getChanged ( ) : DateTime
Результат DateTime

getChanger() публичный Метод

Get changer.
public getChanger ( ) : Sulu\Component\Security\Authentication\UserInterface
Результат Sulu\Component\Security\Authentication\UserInterface

getCreated() публичный Метод

Get created.
public getCreated ( ) : DateTime
Результат DateTime

getCreator() публичный Метод

Get creator.
public getCreator ( ) : Sulu\Component\Security\Authentication\UserInterface
Результат Sulu\Component\Security\Authentication\UserInterface

getGroups() публичный Метод

Get groups.
public getGroups ( ) : Doctrine\Common\Collections\Collection
Результат Doctrine\Common\Collections\Collection

getId() публичный Метод

Get id.
public getId ( ) : integer
Результат integer

getName() публичный Метод

Get name.
public getName ( ) : string
Результат string

getPermissions() публичный Метод

Get permissions.
public getPermissions ( ) : Permission[]
Результат Sulu\Bundle\SecurityBundle\Entity\Permission[]

getSecurityType() публичный Метод

Get securityType.
public getSecurityType ( ) : SecurityType
Результат Sulu\Bundle\SecurityBundle\Entity\SecurityType

getSetting() публичный Метод

Returns setting by name.
public getSetting ( string $key ) : Sulu\Component\Security\Authentication\RoleSettingInterface | null
$key string
Результат Sulu\Component\Security\Authentication\RoleSettingInterface | null

getSystem() публичный Метод

Get system.
public getSystem ( ) : string
Результат string

getUserRoles() публичный Метод

Get userRoles.
public getUserRoles ( ) : Doctrine\Common\Collections\Collection
Результат Doctrine\Common\Collections\Collection

removeGroup() публичный Метод

Remove groups.
public removeGroup ( Group $groups )
$groups Sulu\Bundle\SecurityBundle\Entity\Group

removePermission() публичный Метод

Remove permissions.
public removePermission ( Permission $permissions )
$permissions Sulu\Bundle\SecurityBundle\Entity\Permission

removeUserRole() публичный Метод

Remove userRoles.
public removeUserRole ( Sulu\Bundle\SecurityBundle\Entity\UserRole $userRoles )
$userRoles Sulu\Bundle\SecurityBundle\Entity\UserRole

setChanger() публичный Метод

Set changer.
public setChanger ( Sulu\Component\Security\Authentication\UserInterface $changer = null ) : Sulu\Component\Security\Authentication\RoleInterface
$changer Sulu\Component\Security\Authentication\UserInterface
Результат Sulu\Component\Security\Authentication\RoleInterface

setCreator() публичный Метод

Set creator.
public setCreator ( Sulu\Component\Security\Authentication\UserInterface $creator = null ) : Sulu\Component\Security\Authentication\RoleInterface
$creator Sulu\Component\Security\Authentication\UserInterface
Результат Sulu\Component\Security\Authentication\RoleInterface

setName() публичный Метод

Set name.
public setName ( string $name ) : Sulu\Component\Security\Authentication\RoleInterface
$name string
Результат Sulu\Component\Security\Authentication\RoleInterface

setSecurityType() публичный Метод

Set securityType.
public setSecurityType ( SecurityType $securityType = null ) : Sulu\Component\Security\Authentication\RoleInterface
$securityType Sulu\Bundle\SecurityBundle\Entity\SecurityType
Результат Sulu\Component\Security\Authentication\RoleInterface

setSystem() публичный Метод

Set system.
public setSystem ( string $system ) : Sulu\Component\Security\Authentication\RoleInterface
$system string
Результат Sulu\Component\Security\Authentication\RoleInterface