public class SpaceReadAccessVoter extends SpaceAccessVoter
Constructor and Description |
---|
SpaceReadAccessVoter(StorageProviderFactory storageProviderFactory,
org.springframework.security.core.userdetails.UserDetailsService userDetailsService) |
SpaceReadAccessVoter(StorageProviderFactory storageProviderFactory,
org.springframework.security.core.userdetails.UserDetailsService userDetailsService,
List<String> pathExemptions) |
Modifier and Type | Method and Description |
---|---|
int |
vote(org.springframework.security.core.Authentication auth,
Object resource,
Collection config)
This method checks the Access and ACL state of the arg resource
(space and provider) and denies access to principals if they are
anonymous and the space is CLOSED, or if they do not have a READ ACL for
the space.
|
getHttpServletRequest, getHttpVerb, getSpaceACLs, getSpaceId, getStorageProvider, getStorageProviderFactory, getStoreId, getUserGroups, groupsHaveReadAccess, groupsHaveWriteAccess, hasContentId, hasReadAccess, hasWriteAccess, isAdmin, isOpenResource, supports, supports
public SpaceReadAccessVoter(StorageProviderFactory storageProviderFactory, org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
public SpaceReadAccessVoter(StorageProviderFactory storageProviderFactory, org.springframework.security.core.userdetails.UserDetailsService userDetailsService, List<String> pathExemptions)
storageProviderFactory
- userDetailsService
- pathExemptions
- A list of regular expressions designating path info strings allowable for users.public int vote(org.springframework.security.core.Authentication auth, Object resource, Collection config)
auth
- principal seeking AuthZresource
- that is under protectionconfig
- access-attributes defined on resourceCopyright © 2009–2014 DuraSpace. All rights reserved.