Symfony2 API
Class

Symfony\Component\Security\Acl\Domain\FieldEntry

class FieldEntry extends Entry implements FieldEntryInterface

Field-aware ACE implementation which is auditable

Methods

__construct(integer $id, AclInterface $acl, string $field, SecurityIdentityInterface $sid, string $strategy, integer $mask, Boolean $granting, Boolean $auditFailure, Boolean $auditSuccess)

Constructor

AclInterface getAcl()

The ACL this ACE is associated with.

from Entry
integer getMask()

The permission mask of this ACE

from Entry
integer getId()

The primary key of this ACE

from Entry
SecurityIdentityInterface getSecurityIdentity()

The security identity associated with this ACE

from Entry
string getStrategy()

The strategy for comparing masks

from Entry
Boolean isAuditFailure()

Whether auditing for successful grants is turned on

from Entry
Boolean isAuditSuccess()

Whether auditing for successful denies is turned on

from Entry
Boolean isGranting()

Returns whether this ACE is granting, or denying

from Entry
setAuditFailure(Boolean $boolean)

Turns on/off auditing on permissions denials.

from Entry
setAuditSuccess(Boolean $boolean)

Turns on/off auditing on permission grants.

from Entry
setMask(integer $mask)

Sets the permission mask

from Entry
setStrategy(string $strategy)

Sets the mask comparison strategy

from Entry
string serialize()

Implementation of \Serializable

unserialize(string $serialized)

Implementation of \Serializable

string getField()

Returns the field used for this entry.

Details

at line 40
public __construct(integer $id, AclInterface $acl, string $field, SecurityIdentityInterface $sid, string $strategy, integer $mask, Boolean $granting, Boolean $auditFailure, Boolean $auditSuccess)

Constructor

Parameters

integer $id
AclInterface $acl
string $field
SecurityIdentityInterface $sid
string $strategy
integer $mask
Boolean $granting
Boolean $auditFailure
Boolean $auditSuccess

in Entry at line 61
public AclInterface getAcl()

The ACL this ACE is associated with.

Return Value

AclInterface

in Entry at line 69
public integer getMask()

The permission mask of this ACE

Return Value

integer

in Entry at line 77
public integer getId()

The primary key of this ACE

Return Value

integer

in Entry at line 85
public SecurityIdentityInterface getSecurityIdentity()

The security identity associated with this ACE

Return Value

SecurityIdentityInterface

in Entry at line 93
public string getStrategy()

The strategy for comparing masks

Return Value

string

in Entry at line 101
public Boolean isAuditFailure()

Whether auditing for successful grants is turned on

Return Value

Boolean

in Entry at line 109
public Boolean isAuditSuccess()

Whether auditing for successful denies is turned on

Return Value

Boolean

in Entry at line 117
public Boolean isGranting()

Returns whether this ACE is granting, or denying

Return Value

Boolean

in Entry at line 130
public setAuditFailure(Boolean $boolean)

Turns on/off auditing on permissions denials.

Do never call this method directly. Use the respective methods on the
AclInterface instead.

Parameters

Boolean $boolean

in Entry at line 143
public setAuditSuccess(Boolean $boolean)

Turns on/off auditing on permission grants.

Do never call this method directly. Use the respective methods on the
AclInterface instead.

Parameters

Boolean $boolean

in Entry at line 156
public setMask(integer $mask)

Sets the permission mask

Do never call this method directly. Use the respective methods on the
AclInterface instead.

Parameters

integer $mask

in Entry at line 169
public setStrategy(string $strategy)

Sets the mask comparison strategy

Do never call this method directly. Use the respective methods on the
AclInterface instead.

Parameters

string $strategy

at line 58
public string serialize()

Implementation of \Serializable

Return Value

string

at line 69
public unserialize(string $serialized)

Implementation of \Serializable

Parameters

string $serialized

at line 50
public string getField()

Returns the field used for this entry.

Return Value

string