public abstract class AuthorizableSecurableService extends SecurableService implements Authorizable
SecurableService
to be Authorizable
also.applicationContext, CACHE, NO_CACHE, request, response
Modifier | Constructor and Description |
---|---|
protected |
AuthorizableSecurableService(boolean checkAuthFiltered) |
Modifier and Type | Method and Description |
---|---|
protected void |
filter(Authorizable authorizable)
Authorization filter for
User By default there is no additional Authorization check; however one is encouraged to override this and check the User in the request for any additional authorizations. |
String |
getAuthorizableId()
Every
Authorizable entity should specify its key/id so that the Calling API knows which Set of Authorization s to match with |
protected abstract IAuthorizationService |
getAuthorizableService()
Define an
AuthorizationService |
Collection<Authorization> |
getAuthorizations()
Authorization s needed to access this service |
protected abstract User |
getUser(javax.servlet.http.HttpServletRequest request)
Get
User for the current HttpServletRequest |
void |
setAuthorizableId(String authorizableId) |
void |
setAuthorizations(Collection<Authorization> authorizations)
Authorization s needed to access this service |
checkAuthFilterInvoked, query
filter, getCacheDef, getTestString, query
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAuthorizableIdAssignable
protected AuthorizableSecurableService(boolean checkAuthFiltered)
protected abstract User getUser(javax.servlet.http.HttpServletRequest request)
User
for the current HttpServletRequest
request
- as HttpServletRequest
User
protected abstract IAuthorizationService getAuthorizableService()
AuthorizationService
protected void filter(Authorizable authorizable) throws org.springframework.security.access.AuthorizationServiceException
User
filter
in class SecurableService
org.springframework.security.access.AuthorizationServiceException
- if user not Authorized for the Servicepublic Collection<Authorization> getAuthorizations()
Authorization
s needed to access this servicegetAuthorizations
in interface Authorizable
public void setAuthorizations(Collection<Authorization> authorizations)
Authorization
s needed to access this servicesetAuthorizations
in interface Authorizable
public String getAuthorizableId()
Authorizable
Authorizable
entity should specify its key/id so that the Calling API knows which Set
of Authorization
s to match withgetAuthorizableId
in interface Authorizable
public void setAuthorizableId(String authorizableId)
setAuthorizableId
in interface Authorizable
Copyright © 2018. All rights reserved.