PHP Interface Sulu\Component\Security\Authentication\RoleInterface

Inheritance: extends Sulu\Component\Persistence\Model\AuditableInterface, extends Sulu\Component\Security\Authentication\SecurityIdentityInterface
Afficher le fichier Open project: sulu/sulu Interface Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

addGroup() public méthode

Add groups.
public addGroup ( Group $groups ) : Sulu\Component\Security\Authentication\RoleInterface
$groups Sulu\Bundle\SecurityBundle\Entity\Group
Résultat Sulu\Component\Security\Authentication\RoleInterface

addPermission() public méthode

Add permissions.
public addPermission ( Permission $permissions ) : Sulu\Component\Security\Authentication\RoleInterface
$permissions Sulu\Bundle\SecurityBundle\Entity\Permission
Résultat Sulu\Component\Security\Authentication\RoleInterface

addUserRole() public méthode

Add userRoles.
public addUserRole ( Sulu\Bundle\SecurityBundle\Entity\UserRole $userRoles ) : Sulu\Bundle\SecurityBundle\Entity\UserRole
$userRoles Sulu\Bundle\SecurityBundle\Entity\UserRole
Résultat Sulu\Bundle\SecurityBundle\Entity\UserRole

getChanged() public méthode

Get changed.
public getChanged ( ) : DateTime
Résultat DateTime

getChanger() public méthode

Get changer.
public getChanger ( ) : Sulu\Component\Security\Authentication\UserInterface
Résultat Sulu\Component\Security\Authentication\UserInterface

getCreated() public méthode

Get created.
public getCreated ( ) : DateTime
Résultat DateTime

getCreator() public méthode

Get creator.
public getCreator ( ) : Sulu\Component\Security\Authentication\UserInterface
Résultat Sulu\Component\Security\Authentication\UserInterface

getGroups() public méthode

Get groups.
public getGroups ( ) : Doctrine\Common\Collections\Collection
Résultat Doctrine\Common\Collections\Collection

getId() public méthode

Get id.
public getId ( ) : integer
Résultat integer

getName() public méthode

Get name.
public getName ( ) : string
Résultat string

getPermissions() public méthode

Get permissions.
public getPermissions ( ) : Permission[]
Résultat Sulu\Bundle\SecurityBundle\Entity\Permission[]

getSecurityType() public méthode

Get securityType.
public getSecurityType ( ) : SecurityType
Résultat Sulu\Bundle\SecurityBundle\Entity\SecurityType

getSetting() public méthode

Returns setting by name.
public getSetting ( string $key ) : Sulu\Component\Security\Authentication\RoleSettingInterface | null
$key string
Résultat Sulu\Component\Security\Authentication\RoleSettingInterface | null

getSystem() public méthode

Get system.
public getSystem ( ) : string
Résultat string

getUserRoles() public méthode

Get userRoles.
public getUserRoles ( ) : Doctrine\Common\Collections\Collection
Résultat Doctrine\Common\Collections\Collection

removeGroup() public méthode

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

removePermission() public méthode

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

removeUserRole() public méthode

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

setChanger() public méthode

Set changer.
public setChanger ( Sulu\Component\Security\Authentication\UserInterface $changer = null ) : Sulu\Component\Security\Authentication\RoleInterface
$changer Sulu\Component\Security\Authentication\UserInterface
Résultat Sulu\Component\Security\Authentication\RoleInterface

setCreator() public méthode

Set creator.
public setCreator ( Sulu\Component\Security\Authentication\UserInterface $creator = null ) : Sulu\Component\Security\Authentication\RoleInterface
$creator Sulu\Component\Security\Authentication\UserInterface
Résultat Sulu\Component\Security\Authentication\RoleInterface

setName() public méthode

Set name.
public setName ( string $name ) : Sulu\Component\Security\Authentication\RoleInterface
$name string
Résultat Sulu\Component\Security\Authentication\RoleInterface

setSecurityType() public méthode

Set securityType.
public setSecurityType ( SecurityType $securityType = null ) : Sulu\Component\Security\Authentication\RoleInterface
$securityType Sulu\Bundle\SecurityBundle\Entity\SecurityType
Résultat Sulu\Component\Security\Authentication\RoleInterface

setSystem() public méthode

Set system.
public setSystem ( string $system ) : Sulu\Component\Security\Authentication\RoleInterface
$system string
Résultat Sulu\Component\Security\Authentication\RoleInterface