eZPublishCommunityProject  2013.6
eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway\ExceptionConversion Class Reference

Base class for content type gateways. More...

+ Inheritance diagram for eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway\ExceptionConversion:
+ Collaboration diagram for eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway\ExceptionConversion:

Public Member Functions

 __construct (Gateway $innerGateway)
 Creates a new exception conversion gateway around $innerGateway. More...
 
 addPolicy ($roleId, Policy $policy)
 Adds a policy to a role. More...
 
 addPolicyLimitations ($policyId, array $limitations)
 Adds limitations to an existing policy. More...
 
 createRole (Role $role)
 Create new role. More...
 
 deleteRole ($roleId)
 Delete the specified role. More...
 
 loadPoliciesByUserId ($userId)
 Returns the user policies associated with the user. More...
 
 loadRole ($roleId)
 Loads a specified role by $roleId. More...
 
 loadRoleAssignmentsByGroupId ($groupId, $inherited=false)
 Loads role assignments for specified content ID. More...
 
 loadRoleByIdentifier ($identifier)
 Loads a specified role by $identifier. More...
 
 loadRoles ()
 Loads all roles. More...
 
 loadRolesForContentObjects ($contentIds)
 Loads all roles associated with the given content objects. More...
 
 removePolicy ($policyId)
 Removes a policy from a role. More...
 
 removePolicyLimitations ($policyId)
 Removes a policy from a role. More...
 
 updateRole (RoleUpdateStruct $role)
 Update role. More...
 
- Public Member Functions inherited from eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway
 addPolicy ($roleId, Policy $policy)
 Adds a policy to a role. More...
 
 addPolicyLimitations ($policyId, array $limitations)
 Adds limitations to an existing policy. More...
 
 createRole (Role $role)
 Create new role. More...
 
 deleteRole ($roleId)
 Delete the specified role. More...
 
 loadPoliciesByUserId ($userId)
 Returns the user policies associated with the user. More...
 
 loadRole ($roleId)
 Loads a specified role by $roleId. More...
 
 loadRoleAssignmentsByGroupId ($groupId, $inherited=false)
 Loads role assignments for specified content ID. More...
 
 loadRoleByIdentifier ($identifier)
 Loads a specified role by $identifier. More...
 
 loadRoles ()
 Loads all roles. More...
 
 loadRolesForContentObjects ($contentIds)
 Loads all roles associated with the given content objects. More...
 
 removePolicy ($policyId)
 Removes a policy from a role. More...
 
 removePolicyLimitations ($policyId)
 Removes a policy from a role. More...
 
 updateRole (RoleUpdateStruct $role)
 Update role. More...
 

Protected Attributes

 $innerGateway
 

Detailed Description

Base class for content type gateways.

Constructor & Destructor Documentation

eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway\ExceptionConversion::__construct ( Gateway  $innerGateway)

Creates a new exception conversion gateway around $innerGateway.

Parameters
Gateway$innerGateway

Member Function Documentation

eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway\ExceptionConversion::addPolicy (   $roleId,
Policy  $policy 
)

Adds a policy to a role.

Parameters
mixed$roleId
Policy$policy
Returns
void
eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway\ExceptionConversion::addPolicyLimitations (   $policyId,
array  $limitations 
)

Adds limitations to an existing policy.

Parameters
int$policyId
array$limitations
Returns
void
eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway\ExceptionConversion::createRole ( Role  $role)

Create new role.

Parameters
Role$role
Returns
Role
eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway\ExceptionConversion::deleteRole (   $roleId)

Delete the specified role.

Parameters
mixed$roleId
eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway\ExceptionConversion::loadPoliciesByUserId (   $userId)

Returns the user policies associated with the user.

Parameters
mixed$userId
Returns
UserPolicy[]
eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway\ExceptionConversion::loadRole (   $roleId)

Loads a specified role by $roleId.

Parameters
mixed$roleId
Returns
array
eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway\ExceptionConversion::loadRoleAssignmentsByGroupId (   $groupId,
  $inherited = false 
)

Loads role assignments for specified content ID.

Parameters
mixed$groupId
boolean$inherited
Returns
array
eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway\ExceptionConversion::loadRoleByIdentifier (   $identifier)

Loads a specified role by $identifier.

Parameters
string$identifier
Returns
array
eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway\ExceptionConversion::loadRoles ( )

Loads all roles.

Returns
array
eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway\ExceptionConversion::loadRolesForContentObjects (   $contentIds)

Loads all roles associated with the given content objects.

Parameters
array$contentIds
Returns
array
eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway\ExceptionConversion::removePolicy (   $policyId)

Removes a policy from a role.

Parameters
mixed$policyId
Returns
void
eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway\ExceptionConversion::removePolicyLimitations (   $policyId)

Removes a policy from a role.

Parameters
mixed$policyId
Returns
void
eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway\ExceptionConversion::updateRole ( RoleUpdateStruct  $role)

Update role.

Parameters
RoleUpdateStruct$role

Member Data Documentation

eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway\ExceptionConversion::$innerGateway
protected

The documentation for this class was generated from the following file: