@Singleton
public class AAAPlugin
extends act.util.LogSupportedDestroyableBase
| Modifier and Type | Class and Description |
|---|---|
static interface |
AAAPlugin.Listener |
| Modifier and Type | Field and Description |
|---|---|
static osgl.version.Version |
VERSION
Defines the version of AAA plugin
|
| Constructor and Description |
|---|
AAAPlugin(act.event.EventBus eventBus,
org.osgl.cache.CacheService aaaObjectCache,
org.osgl.cache.CacheService principalCache,
org.osgl.cache.CacheService appUserCache) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildService(act.app.App app,
org.osgl.aaa.AAAPersistentService service) |
void |
buildService(act.app.App app,
ActAAAService service) |
void |
buildService(act.app.App app,
org.osgl.aaa.Auditor auditor) |
void |
buildService(act.app.App app,
org.osgl.aaa.AuthenticationService service) |
void |
buildService(act.app.App app,
org.osgl.aaa.AuthorizationService service) |
void |
cache(org.osgl.aaa.AAAObject object) |
<T extends org.osgl.aaa.AAAObject> |
cachedAAAObject(String name,
Class<T> clz) |
<T> T |
cachedUser(String key) |
void |
cacheUser(String key,
Object user) |
void |
clearAllCaches() |
void |
clearPrincipalCache() |
void |
clearUserAndPrincipalCache() |
void |
clearUserCache() |
void |
evictAAAObject(org.osgl.aaa.AAAObject object) |
void |
evictUser(String key) |
boolean |
initialized(act.app.App app) |
boolean |
isAudiorInitialized(act.app.App app) |
org.osgl.aaa.Privilege |
lookupPrivilege(Integer level) |
protected void |
releaseResources() |
addSubResource, destroy, isDestroyed, reload, scopepublic static final osgl.version.Version VERSION
Defines the version of AAA plugin
@Inject
public AAAPlugin(act.event.EventBus eventBus,
@Named(value="aaa.object")
org.osgl.cache.CacheService aaaObjectCache,
@Named(value="aaa.principal")
org.osgl.cache.CacheService principalCache,
@Named(value="aaa.user")
org.osgl.cache.CacheService appUserCache)
protected void releaseResources()
releaseResources in class act.util.LogSupportedDestroyableBasepublic void cache(org.osgl.aaa.AAAObject object)
public <T extends org.osgl.aaa.AAAObject> T cachedAAAObject(String name, Class<T> clz)
public <T> T cachedUser(String key)
public org.osgl.aaa.Privilege lookupPrivilege(Integer level)
public void evictAAAObject(org.osgl.aaa.AAAObject object)
public void evictUser(String key)
public void clearAllCaches()
public void clearPrincipalCache()
public void clearUserCache()
public void clearUserAndPrincipalCache()
public void buildService(act.app.App app,
ActAAAService service)
public void buildService(act.app.App app,
org.osgl.aaa.AuthenticationService service)
public void buildService(act.app.App app,
org.osgl.aaa.AuthorizationService service)
public void buildService(act.app.App app,
org.osgl.aaa.AAAPersistentService service)
public void buildService(act.app.App app,
org.osgl.aaa.Auditor auditor)
public boolean initialized(act.app.App app)
public boolean isAudiorInitialized(act.app.App app)
Copyright © 2015–2019 ActFramework. All rights reserved.