Package org.keycloak.models.cache.entities

Examples of org.keycloak.models.cache.entities.CachedApplicationRole


        if (cached == null) {
            RoleModel model = getDelegate().getRoleById(id, realm);
            if (model == null) return null;
            if (roleInvalidations.contains(id)) return model;
            if (model.getContainer() instanceof ApplicationModel) {
                cached = new CachedApplicationRole(((ApplicationModel) model.getContainer()).getId(), model, realm);
            } else {
                cached = new CachedRealmRole(model, realm);
            }
            cache.addCachedRole(cached);
View Full Code Here


    @Override
    public RoleContainerModel getContainer() {
        if (cached instanceof CachedRealmRole) {
            return realm;
        } else {
            CachedApplicationRole appRole = (CachedApplicationRole)cached;
            return realm.getApplicationById(appRole.getAppId());
        }
    }
View Full Code Here

TOP

Related Classes of org.keycloak.models.cache.entities.CachedApplicationRole

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.