Class StudioAbstractAccessDecisionVoter
java.lang.Object
org.craftercms.studio.impl.v1.web.security.access.StudioAbstractAccessDecisionVoter
- All Implemented Interfaces:
org.springframework.security.access.AccessDecisionVoter
- Direct Known Subclasses:
StudioContentAPIAccessDecisionVoter
,StudioPublishingAPIAccessDecisionVoter
,StudioWorkflowAPIAccessDecisionVoter
public abstract class StudioAbstractAccessDecisionVoter
extends Object
implements org.springframework.security.access.AccessDecisionVoter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SecurityService
protected SiteService
protected StudioConfiguration
protected UserServiceInternal
Fields inherited from interface org.springframework.security.access.AccessDecisionVoter
ACCESS_ABSTAIN, ACCESS_DENIED, ACCESS_GRANTED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected boolean
hasPermission
(String siteId, String path, String user, String permission) protected boolean
isSiteAdmin
(String siteId, User currentUser) protected boolean
isSiteMember
(String siteId, User currentUser) void
setSecurityService
(SecurityService securityService) void
setSiteService
(SiteService siteService) void
setStudioConfiguration
(StudioConfiguration studioConfiguration) void
setUserServiceInternal
(UserServiceInternal userServiceInternal) int
vote
(org.springframework.security.core.Authentication authentication, Object object, Collection collection) protected abstract int
voteInternal
(org.springframework.security.core.Authentication authentication, Object object, Collection collection) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.security.access.AccessDecisionVoter
supports, supports
-
Field Details
-
securityService
-
studioConfiguration
-
siteService
-
userServiceInternal
-
-
Constructor Details
-
StudioAbstractAccessDecisionVoter
public StudioAbstractAccessDecisionVoter()
-
-
Method Details
-
vote
public int vote(org.springframework.security.core.Authentication authentication, Object object, Collection collection) - Specified by:
vote
in interfaceorg.springframework.security.access.AccessDecisionVoter
-
voteInternal
protected abstract int voteInternal(org.springframework.security.core.Authentication authentication, Object object, Collection collection) -
isSiteMember
-
isSiteAdmin
-
hasPermission
-
hasAnyPermission
-
getStudioConfiguration
-
setStudioConfiguration
-
getSiteService
-
setSiteService
-
getSecurityService
-
setSecurityService
-
getUserServiceInternal
-
setUserServiceInternal
-