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, setAuthorizations
checkAuthFilterInvoked, query
filter, getCacheDef, getTestString, query
protected static org.slf4j.Logger audit
protected transient AuthorizationModule<Void> authorizationModule
public SiteAuthorizableSecurableService()
public SiteAuthorizableSecurableService(boolean checkAuthFiltered)
public Boolean getAuthorizableIdAssignable()
Authorizable
Authorizable.getAuthorizableId()
of this instance to be considered in the global list of Authorizations.Boolean
@Nullableprotected User getUser(javax.servlet.http.HttpServletRequest request)
AuthorizableSecurableService
User
for the current HttpServletRequest
getUser
in class AuthorizableSecurableService
request
- as HttpServletRequest
User
protected 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()
AuthorizableSecurableService
AuthorizationService
getAuthorizableService
in class AuthorizableSecurableService
public AuthorizationModule<Void> getAuthorizationModule()
public void setAuthorizationModule(AuthorizationModule<Void> authorizationModule)
Copyright © 2018. All rights reserved.