public class ApplicationAdapter extends ClientAdapter implements ApplicationModel
Modifier and Type | Field and Description |
---|---|
protected CachedApplication |
cached |
protected ApplicationModel |
updated |
cache, cachedClient, cachedRealm, cacheSession, updatedClient
Constructor and Description |
---|
ApplicationAdapter(RealmModel cachedRealm,
CachedApplication cached,
CacheKeycloakSession cacheSession,
KeycloakCache cache) |
Modifier and Type | Method and Description |
---|---|
void |
addDefaultRole(String name) |
RoleModel |
addRole(String name) |
RoleModel |
addRole(String id,
String name) |
boolean |
equals(Object o) |
Set<RoleModel> |
getApplicationScopeMappings(ClientModel client) |
String |
getBaseUrl() |
String |
getClientId()
String exposed to outside world
|
List<String> |
getDefaultRoles() |
protected void |
getDelegateForUpdate() |
String |
getManagementUrl() |
String |
getName() |
RoleModel |
getRole(String name) |
Set<RoleModel> |
getRoles() |
int |
hashCode() |
boolean |
isBearerOnly() |
boolean |
isSurrogateAuthRequired() |
boolean |
removeRole(RoleModel role) |
void |
setBaseUrl(String url) |
void |
setBearerOnly(boolean only) |
void |
setManagementUrl(String url) |
void |
setName(String name) |
void |
setSurrogateAuthRequired(boolean surrogateAuthRequired) |
void |
updateApplication() |
void |
updateDefaultRoles(String[] defaultRoles) |
addRedirectUri, addScopeMapping, addWebOrigin, deleteScopeMapping, getActiveUserSessions, getAllowedClaimsMask, getId, getNotBefore, getRealm, getRealmScopeMappings, getRedirectUris, getScopeMappings, getSecret, getUserSessions, getWebOrigins, hasScope, isDirectGrantsOnly, isEnabled, isPublicClient, removeRedirectUri, removeWebOrigin, setAllowedClaimsMask, setDirectGrantsOnly, setEnabled, setNotBefore, setPublicClient, setRedirectUris, setSecret, setWebOrigins, validateSecret
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addRedirectUri, addScopeMapping, addWebOrigin, deleteScopeMapping, getActiveUserSessions, getAllowedClaimsMask, getId, getNotBefore, getRealm, getRealmScopeMappings, getRedirectUris, getScopeMappings, getSecret, getUserSessions, getWebOrigins, hasScope, isDirectGrantsOnly, isEnabled, isPublicClient, removeRedirectUri, removeWebOrigin, setAllowedClaimsMask, setDirectGrantsOnly, setEnabled, setNotBefore, setPublicClient, setRedirectUris, setSecret, setWebOrigins, validateSecret
protected ApplicationModel updated
protected CachedApplication cached
public ApplicationAdapter(RealmModel cachedRealm, CachedApplication cached, CacheKeycloakSession cacheSession, KeycloakCache cache)
protected void getDelegateForUpdate()
getDelegateForUpdate
in class ClientAdapter
public void updateApplication()
updateApplication
in interface ApplicationModel
public String getName()
getName
in interface ApplicationModel
public String getClientId()
ClientModel
getClientId
in interface ClientModel
getClientId
in class ClientAdapter
public void setName(String name)
setName
in interface ApplicationModel
public boolean isSurrogateAuthRequired()
isSurrogateAuthRequired
in interface ApplicationModel
public void setSurrogateAuthRequired(boolean surrogateAuthRequired)
setSurrogateAuthRequired
in interface ApplicationModel
public String getManagementUrl()
getManagementUrl
in interface ApplicationModel
public void setManagementUrl(String url)
setManagementUrl
in interface ApplicationModel
public String getBaseUrl()
getBaseUrl
in interface ApplicationModel
public void setBaseUrl(String url)
setBaseUrl
in interface ApplicationModel
public List<String> getDefaultRoles()
getDefaultRoles
in interface ApplicationModel
public void addDefaultRole(String name)
addDefaultRole
in interface ApplicationModel
public void updateDefaultRoles(String[] defaultRoles)
updateDefaultRoles
in interface ApplicationModel
public Set<RoleModel> getApplicationScopeMappings(ClientModel client)
getApplicationScopeMappings
in interface ApplicationModel
public boolean isBearerOnly()
isBearerOnly
in interface ApplicationModel
public void setBearerOnly(boolean only)
setBearerOnly
in interface ApplicationModel
public RoleModel getRole(String name)
getRole
in interface RoleContainerModel
public RoleModel addRole(String name)
addRole
in interface RoleContainerModel
public RoleModel addRole(String id, String name)
addRole
in interface RoleContainerModel
public boolean removeRole(RoleModel role)
removeRole
in interface RoleContainerModel
public Set<RoleModel> getRoles()
getRoles
in interface RoleContainerModel
Copyright © 2014. All Rights Reserved.