public class GrantAlwaysVoter extends CdmPermissionVoter
AccessDecisionVoter.ACCESS_GRANTED
.
It is needed as default voter when using the UnanimousBased
CdmPermissionVoter.ValidationResult
logger
Constructor and Description |
---|
GrantAlwaysVoter() |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<? extends CdmBase> |
getResponsibilityClass()
Sets the Cdm type, or super type this Voter is responsible for.
|
boolean |
isOrpahn(CdmBase object)
The AccessDecisionVoter implementing this method can indicate via this method that
an entity has become orphan in order to allow deleting it.
|
int |
vote(org.springframework.security.core.Authentication authentication,
TargetEntityStates object,
java.util.Collection<org.springframework.security.access.ConfigAttribute> attributes) |
furtherVotingDescisions, getResponsibility, isResponsibleFor, isResponsibleFor, supports, supports, voterLoggingLabel, voteToString
public int vote(org.springframework.security.core.Authentication authentication, TargetEntityStates object, java.util.Collection<org.springframework.security.access.ConfigAttribute> attributes)
vote
in interface org.springframework.security.access.AccessDecisionVoter<TargetEntityStates>
vote
in class CdmPermissionVoter
public java.lang.Class<? extends CdmBase> getResponsibilityClass()
CdmPermissionVoter
getResponsibilityClass
in class CdmPermissionVoter
public boolean isOrpahn(CdmBase object)
CdmPermissionVoter
false
deleting of the entity will be denied.
This is important in the context of hierarchic permission propagation like for example in tree structures where the permission to delete an entity is given on base of the permission on an parent object. Entities which become detached from the tree would otherwise no longer be deletable.
isOrpahn
in class CdmPermissionVoter
Copyright © 2007-2020 EDIT. All Rights Reserved.