public class ApplicationAdapter extends ClientAdapter<MongoApplicationEntity> implements ApplicationModel
clientEntity, sessioninvocationContext| Constructor and Description |
|---|
ApplicationAdapter(KeycloakSession session,
RealmModel realm,
MongoApplicationEntity applicationEntity,
MongoStoreInvocationContext invContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDefaultRole(String name) |
RoleAdapter |
addRole(String name) |
RoleAdapter |
addRole(String id,
String name) |
boolean |
equals(Object o) |
Set<RoleModel> |
getApplicationScopeMappings(ClientModel client) |
String |
getBaseUrl() |
List<String> |
getDefaultRoles() |
String |
getManagementUrl() |
String |
getName() |
RoleAdapter |
getRole(String name) |
Set<RoleModel> |
getRoles() |
int |
hashCode() |
boolean |
isBearerOnly() |
boolean |
isDirectGrantsOnly() |
boolean |
isPublicClient() |
boolean |
isSurrogateAuthRequired() |
boolean |
removeRole(RoleModel role) |
void |
setBaseUrl(String url) |
void |
setBearerOnly(boolean only) |
void |
setDirectGrantsOnly(boolean flag) |
void |
setManagementUrl(String url) |
void |
setName(String name) |
void |
setPublicClient(boolean flag) |
void |
setSurrogateAuthRequired(boolean surrogateAuthRequired) |
void |
updateApplication() |
void |
updateDefaultRoles(String[] defaultRoles) |
addRedirectUri, addScopeMapping, addWebOrigin, deleteScopeMapping, getActiveUserSessions, getAllowedClaimsMask, getClientId, getId, getMongoEntity, getMongoEntityAsClient, getNotBefore, getRealm, getRealmScopeMappings, getRedirectUris, getScopeMappings, getSecret, getUserSessions, getWebOrigins, hasScope, isEnabled, removeRedirectUri, removeWebOrigin, setAllowedClaimsMask, setEnabled, setNotBefore, setRedirectUris, setSecret, setWebOrigins, validateSecretgetMongoStore, updateMongoEntityclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddRedirectUri, addScopeMapping, addWebOrigin, deleteScopeMapping, getActiveUserSessions, getAllowedClaimsMask, getClientId, getId, getNotBefore, getRealm, getRealmScopeMappings, getRedirectUris, getScopeMappings, getSecret, getUserSessions, getWebOrigins, hasScope, isEnabled, removeRedirectUri, removeWebOrigin, setAllowedClaimsMask, setEnabled, setNotBefore, setRedirectUris, setSecret, setWebOrigins, validateSecretpublic ApplicationAdapter(KeycloakSession session, RealmModel realm, MongoApplicationEntity applicationEntity, MongoStoreInvocationContext invContext)
public void updateApplication()
updateApplication in interface ApplicationModelpublic String getName()
getName in interface ApplicationModelpublic void setName(String name)
setName in interface ApplicationModelpublic boolean isSurrogateAuthRequired()
isSurrogateAuthRequired in interface ApplicationModelpublic void setSurrogateAuthRequired(boolean surrogateAuthRequired)
setSurrogateAuthRequired in interface ApplicationModelpublic String getManagementUrl()
getManagementUrl in interface ApplicationModelpublic void setManagementUrl(String url)
setManagementUrl in interface ApplicationModelpublic void setBaseUrl(String url)
setBaseUrl in interface ApplicationModelpublic String getBaseUrl()
getBaseUrl in interface ApplicationModelpublic boolean isBearerOnly()
isBearerOnly in interface ApplicationModelpublic void setBearerOnly(boolean only)
setBearerOnly in interface ApplicationModelpublic boolean isPublicClient()
isPublicClient in interface ClientModelisPublicClient in class ClientAdapter<MongoApplicationEntity>public void setPublicClient(boolean flag)
setPublicClient in interface ClientModelsetPublicClient in class ClientAdapter<MongoApplicationEntity>public boolean isDirectGrantsOnly()
isDirectGrantsOnly in interface ClientModelpublic void setDirectGrantsOnly(boolean flag)
setDirectGrantsOnly in interface ClientModelpublic RoleAdapter getRole(String name)
getRole in interface RoleContainerModelpublic RoleAdapter addRole(String name)
addRole in interface RoleContainerModelpublic RoleAdapter addRole(String id, String name)
addRole in interface RoleContainerModelpublic boolean removeRole(RoleModel role)
removeRole in interface RoleContainerModelpublic Set<RoleModel> getRoles()
getRoles in interface RoleContainerModelpublic Set<RoleModel> getApplicationScopeMappings(ClientModel client)
getApplicationScopeMappings in interface ApplicationModelpublic List<String> getDefaultRoles()
getDefaultRoles in interface ApplicationModelpublic void addDefaultRole(String name)
addDefaultRole in interface ApplicationModelpublic void updateDefaultRoles(String[] defaultRoles)
updateDefaultRoles in interface ApplicationModelpublic boolean equals(Object o)
equals in class AbstractMongoAdapter<MongoApplicationEntity>public int hashCode()
hashCode in class AbstractMongoAdapter<MongoApplicationEntity>Copyright © 2014. All Rights Reserved.