public abstract class AuthorizableSecurableService extends SecurableService implements Authorizable
SecurableService to be Authorizablealso.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
UserBy 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 Authorizations to match with |
protected abstract IAuthorizationService |
getAuthorizableService()
Define an
AuthorizationService |
Collection<Authorization> |
getAuthorizations()
Authorizations 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)
Authorizations needed to access this service |
checkAuthFilterInvoked, queryfilter, getCacheDef, getTestString, queryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAuthorizableIdAssignableprotected AuthorizableSecurableService(boolean checkAuthFiltered)
protected abstract User getUser(javax.servlet.http.HttpServletRequest request)
User for the current HttpServletRequestrequest - as HttpServletRequestUserprotected abstract IAuthorizationService getAuthorizableService()
AuthorizationServiceprotected void filter(Authorizable authorizable) throws org.springframework.security.access.AuthorizationServiceException
Userfilter in class SecurableServiceorg.springframework.security.access.AuthorizationServiceException - if user not Authorized for the Servicepublic Collection<Authorization> getAuthorizations()
Authorizations needed to access this servicegetAuthorizations in interface Authorizablepublic void setAuthorizations(Collection<Authorization> authorizations)
Authorizations needed to access this servicesetAuthorizations in interface Authorizablepublic String getAuthorizableId()
AuthorizableAuthorizable entity should specify its key/id so that the Calling API knows which Set of Authorizations to match withgetAuthorizableId in interface Authorizablepublic void setAuthorizableId(String authorizableId)
setAuthorizableId in interface AuthorizableCopyright © 2018. All rights reserved.