Class AccessControlEntryImpl
- java.lang.Object
-
- org.springframework.security.acls.domain.AccessControlEntryImpl
-
- All Implemented Interfaces:
java.io.Serializable
,AccessControlEntry
,AuditableAccessControlEntry
public class AccessControlEntryImpl extends java.lang.Object implements AccessControlEntry, AuditableAccessControlEntry
An immutable default implementation ofAccessControlEntry
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AccessControlEntryImpl(java.io.Serializable id, Acl acl, Sid sid, Permission permission, boolean granting, boolean auditSuccess, boolean auditFailure)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object arg0)
Acl
getAcl()
java.io.Serializable
getId()
Obtains an identifier that represents this ACE.Permission
getPermission()
Sid
getSid()
int
hashCode()
boolean
isAuditFailure()
boolean
isAuditSuccess()
boolean
isGranting()
Indicates the permission is being granted to the relevant Sid.java.lang.String
toString()
-
-
-
Constructor Detail
-
AccessControlEntryImpl
public AccessControlEntryImpl(java.io.Serializable id, Acl acl, Sid sid, Permission permission, boolean granting, boolean auditSuccess, boolean auditFailure)
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object arg0)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getAcl
public Acl getAcl()
- Specified by:
getAcl
in interfaceAccessControlEntry
-
getId
public java.io.Serializable getId()
Description copied from interface:AccessControlEntry
Obtains an identifier that represents this ACE.- Specified by:
getId
in interfaceAccessControlEntry
- Returns:
- the identifier, or
null
if unsaved
-
getPermission
public Permission getPermission()
- Specified by:
getPermission
in interfaceAccessControlEntry
-
getSid
public Sid getSid()
- Specified by:
getSid
in interfaceAccessControlEntry
-
isAuditFailure
public boolean isAuditFailure()
- Specified by:
isAuditFailure
in interfaceAuditableAccessControlEntry
-
isAuditSuccess
public boolean isAuditSuccess()
- Specified by:
isAuditSuccess
in interfaceAuditableAccessControlEntry
-
isGranting
public boolean isGranting()
Description copied from interface:AccessControlEntry
Indicates the permission is being granted to the relevant Sid. If false, indicates the permission is being revoked/blocked.- Specified by:
isGranting
in interfaceAccessControlEntry
- Returns:
- true if being granted, false otherwise
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-