PHP 클래스 eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway\ExceptionConversion

상속: extends eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

보호된 프로퍼티들

프로퍼티 타입 설명
$innerGateway eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway The wrapped gateway.

공개 메소드들

메소드 설명
__construct ( Gateway $innerGateway ) Creates a new exception conversion gateway around $innerGateway.
addPolicy ( mixed $roleId, eZ\Publish\SPI\Persistence\User\Policy $policy ) Adds a policy to a role.
addPolicyLimitations ( integer $policyId, array $limitations ) Adds limitations to an existing policy.
createRole ( eZ\Publish\SPI\Persistence\User\Role $role ) : eZ\Publish\SPI\Persistence\User\Role Create new role.
deleteRole ( mixed $roleId, integer $status = Role::STATUS_DEFINED ) Delete the specified role (draft).
loadPoliciesByUserId ( mixed $userId ) : UserPolicy[] Returns the user policies associated with the user.
loadRole ( mixed $roleId, integer $status = Role::STATUS_DEFINED ) : array Loads a specified role by $roleId.
loadRoleAssignment ( mixed $roleAssignmentId ) : array Loads role assignment for specified assignment ID.
loadRoleAssignmentsByGroupId ( mixed $groupId, boolean $inherited = false ) : array Loads role assignments for specified content ID.
loadRoleAssignmentsByRoleId ( mixed $roleId ) : array Loads role assignments for given role ID.
loadRoleByIdentifier ( string $identifier, integer $status = Role::STATUS_DEFINED ) : array Loads a specified role by $identifier.
loadRoleDraftByRoleId ( mixed $roleId ) : array Loads a role draft by the original role ID.
loadRoles ( integer $status = Role::STATUS_DEFINED ) : array Loads all roles.
loadRolesForContentObjects ( array $contentIds, integer $status = Role::STATUS_DEFINED ) : array Loads all roles associated with the given content objects.
publishRoleDraft ( mixed $roleDraftId, mixed | null $originalRoleId = null ) Publish the specified role draft.
removePolicy ( mixed $policyId ) Removes a policy from a role.
removePolicyLimitations ( mixed $policyId ) Removes a policy from a role.
updateRole ( eZ\Publish\SPI\Persistence\User\RoleUpdateStruct $role ) Update role (draft).

메소드 상세

__construct() 공개 메소드

Creates a new exception conversion gateway around $innerGateway.
public __construct ( Gateway $innerGateway )
$innerGateway eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway

addPolicy() 공개 메소드

Adds a policy to a role.
public addPolicy ( mixed $roleId, eZ\Publish\SPI\Persistence\User\Policy $policy )
$roleId mixed
$policy eZ\Publish\SPI\Persistence\User\Policy

addPolicyLimitations() 공개 메소드

Adds limitations to an existing policy.
public addPolicyLimitations ( integer $policyId, array $limitations )
$policyId integer
$limitations array

createRole() 공개 메소드

Create new role.
public createRole ( eZ\Publish\SPI\Persistence\User\Role $role ) : eZ\Publish\SPI\Persistence\User\Role
$role eZ\Publish\SPI\Persistence\User\Role
리턴 eZ\Publish\SPI\Persistence\User\Role

deleteRole() 공개 메소드

If it's not a draft, the role assignments will also be deleted.
public deleteRole ( mixed $roleId, integer $status = Role::STATUS_DEFINED )
$roleId mixed
$status integer One of Role::STATUS_DEFINED|Role::STATUS_DRAFT

loadPoliciesByUserId() 공개 메소드

Returns the user policies associated with the user.
public loadPoliciesByUserId ( mixed $userId ) : UserPolicy[]
$userId mixed
리턴 UserPolicy[]

loadRole() 공개 메소드

Loads a specified role by $roleId.
public loadRole ( mixed $roleId, integer $status = Role::STATUS_DEFINED ) : array
$roleId mixed
$status integer One of Role::STATUS_DEFINED|Role::STATUS_DRAFT
리턴 array

loadRoleAssignment() 공개 메소드

Loads role assignment for specified assignment ID.
public loadRoleAssignment ( mixed $roleAssignmentId ) : array
$roleAssignmentId mixed
리턴 array

loadRoleAssignmentsByGroupId() 공개 메소드

Loads role assignments for specified content ID.
public loadRoleAssignmentsByGroupId ( mixed $groupId, boolean $inherited = false ) : array
$groupId mixed
$inherited boolean
리턴 array

loadRoleAssignmentsByRoleId() 공개 메소드

Loads role assignments for given role ID.
public loadRoleAssignmentsByRoleId ( mixed $roleId ) : array
$roleId mixed
리턴 array

loadRoleByIdentifier() 공개 메소드

Loads a specified role by $identifier.
public loadRoleByIdentifier ( string $identifier, integer $status = Role::STATUS_DEFINED ) : array
$identifier string
$status integer One of Role::STATUS_DEFINED|Role::STATUS_DRAFT
리턴 array

loadRoleDraftByRoleId() 공개 메소드

Loads a role draft by the original role ID.
public loadRoleDraftByRoleId ( mixed $roleId ) : array
$roleId mixed ID of the role the draft was created from.
리턴 array

loadRoles() 공개 메소드

Loads all roles.
public loadRoles ( integer $status = Role::STATUS_DEFINED ) : array
$status integer One of Role::STATUS_DEFINED|Role::STATUS_DRAFT
리턴 array

loadRolesForContentObjects() 공개 메소드

Loads all roles associated with the given content objects.
public loadRolesForContentObjects ( array $contentIds, integer $status = Role::STATUS_DEFINED ) : array
$contentIds array
$status integer One of Role::STATUS_DEFINED|Role::STATUS_DRAFT
리턴 array

publishRoleDraft() 공개 메소드

If the draft was created from an existing role, published version will take the original role ID.
public publishRoleDraft ( mixed $roleDraftId, mixed | null $originalRoleId = null )
$roleDraftId mixed
$originalRoleId mixed | null ID of role the draft was created from. Will be null if the role draft was completely new.

removePolicy() 공개 메소드

Removes a policy from a role.
public removePolicy ( mixed $policyId )
$policyId mixed

removePolicyLimitations() 공개 메소드

Removes a policy from a role.
public removePolicyLimitations ( mixed $policyId )
$policyId mixed

updateRole() 공개 메소드

Update role (draft).
public updateRole ( eZ\Publish\SPI\Persistence\User\RoleUpdateStruct $role )
$role eZ\Publish\SPI\Persistence\User\RoleUpdateStruct

프로퍼티 상세

$innerGateway 보호되어 있는 프로퍼티

The wrapped gateway.
protected Gateway,eZ\Publish\Core\Persistence\Legacy\User\Role $innerGateway
리턴 eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway