public class ApplicationAdapter extends ClientAdapter implements ApplicationModel
Modifier and Type | Field and Description |
---|---|
protected CachedApplication |
cached |
protected ApplicationModel |
updated |
cache, cachedClient, cachedRealm, cacheSession, updatedClient
PRIVATE_KEY, PUBLIC_KEY, X509CERTIFICATE
Constructor and Description |
---|
ApplicationAdapter(RealmModel cachedRealm,
CachedApplication cached,
CacheRealmProvider cacheSession,
RealmCache cache) |
addRedirectUri, addScopeMapping, addWebOrigin, deleteScopeMapping, getAllowedClaimsMask, getAttribute, getAttributes, getId, getNotBefore, getProtocol, getRealm, getRealmScopeMappings, getRedirectUris, getScopeMappings, getSecret, getWebOrigins, isDirectGrantsOnly, isEnabled, isFullScopeAllowed, isPublicClient, removeAttribute, removeRedirectUri, removeWebOrigin, setAllowedClaimsMask, setAttribute, setDirectGrantsOnly, setEnabled, setFullScopeAllowed, setNotBefore, setProtocol, setPublicClient, setRedirectUris, setSecret, setWebOrigins, validateSecret
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addRedirectUri, addScopeMapping, addWebOrigin, deleteScopeMapping, getAllowedClaimsMask, getAttribute, getAttributes, getId, getNotBefore, getProtocol, getRealm, getRealmScopeMappings, getRedirectUris, getScopeMappings, getSecret, getWebOrigins, isDirectGrantsOnly, isEnabled, isFullScopeAllowed, isPublicClient, removeAttribute, removeRedirectUri, removeWebOrigin, setAllowedClaimsMask, setAttribute, setDirectGrantsOnly, setEnabled, setFullScopeAllowed, setNotBefore, setProtocol, setPublicClient, setRedirectUris, setSecret, setWebOrigins, validateSecret
protected ApplicationModel updated
protected CachedApplication cached
public ApplicationAdapter(RealmModel cachedRealm, CachedApplication cached, CacheRealmProvider cacheSession, RealmCache 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
public int getNodeReRegistrationTimeout()
getNodeReRegistrationTimeout
in interface ApplicationModel
public void setNodeReRegistrationTimeout(int timeout)
setNodeReRegistrationTimeout
in interface ApplicationModel
public Map<String,Integer> getRegisteredNodes()
getRegisteredNodes
in interface ApplicationModel
public void registerNode(String nodeHost, int registrationTime)
ApplicationModel
registerNode
in interface ApplicationModel
public void unregisterNode(String nodeHost)
unregisterNode
in interface ApplicationModel
public boolean hasScope(RoleModel role)
hasScope
in interface ClientModel
hasScope
in class ClientAdapter
Copyright © 2014. All Rights Reserved.