public abstract class SiteAuthorizableSecurableService extends AuthorizableSecurableService
AuthorizableSecurableService| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
audit |
protected AuthorizationModule<Void> |
authorizationModule |
applicationContext, CACHE, NO_CACHE, request, response| Constructor and Description |
|---|
SiteAuthorizableSecurableService() |
SiteAuthorizableSecurableService(boolean checkAuthFiltered) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
adminCheck(String methodName) |
Boolean |
getAuthorizableIdAssignable()
Is the
Authorizable.getAuthorizableId() of this instance to be considered in the global list of Authorizations.If true, it will appear in the List of Authorizations that can be assigned to users. |
protected IAuthorizationService |
getAuthorizableService()
Define an
AuthorizationService |
AuthorizationModule<Void> |
getAuthorizationModule() |
protected Collection<Authorization> |
getCurrentUserAuths() |
protected String |
getModuleName()
If Service uses
getUserAuths(User) or getCurrentUserAuths() then a module name is required to be supplied. |
protected User |
getUser(javax.servlet.http.HttpServletRequest request)
Get
User for the current HttpServletRequest |
protected Collection<Authorization> |
getUserAuths(User user) |
protected boolean |
isAdmin() |
protected boolean |
isUser() |
void |
setAuthorizationModule(AuthorizationModule<Void> authorizationModule) |
filter, getAuthorizableId, getAuthorizations, setAuthorizableId, setAuthorizationscheckAuthFilterInvoked, queryfilter, getCacheDef, getTestString, queryprotected static org.slf4j.Logger audit
protected transient AuthorizationModule<Void> authorizationModule
public SiteAuthorizableSecurableService()
public SiteAuthorizableSecurableService(boolean checkAuthFiltered)
public Boolean getAuthorizableIdAssignable()
AuthorizableAuthorizable.getAuthorizableId() of this instance to be considered in the global list of Authorizations.Boolean @Nullableprotected User getUser(javax.servlet.http.HttpServletRequest request)
AuthorizableSecurableServiceUser for the current HttpServletRequestgetUser in class AuthorizableSecurableServicerequest - as HttpServletRequestUserprotected boolean isAdmin()
protected boolean isUser()
protected Collection<Authorization> getCurrentUserAuths()
protected Collection<Authorization> getUserAuths(User user)
protected String getModuleName()
getUserAuths(User) or getCurrentUserAuths() then a module name is required to be supplied.protected IAuthorizationService getAuthorizableService()
AuthorizableSecurableServiceAuthorizationServicegetAuthorizableService in class AuthorizableSecurableServicepublic AuthorizationModule<Void> getAuthorizationModule()
public void setAuthorizationModule(AuthorizationModule<Void> authorizationModule)
Copyright © 2018. All rights reserved.