public class ApplicationAdapter extends ClientAdapter<MongoApplicationEntity> implements ApplicationModel
clientEntity, session
invocationContext
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 |
hasScope(RoleModel role) |
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, getAllowedClaimsMask, getClientId, getId, getMongoEntity, getMongoEntityAsClient, getNotBefore, getRealm, getRealmScopeMappings, getRedirectUris, getScopeMappings, getSecret, getWebOrigins, isEnabled, isFullScopeAllowed, removeRedirectUri, removeWebOrigin, setAllowedClaimsMask, setEnabled, setFullScopeAllowed, setNotBefore, setRedirectUris, setSecret, setWebOrigins, validateSecret
getMongoStore, updateMongoEntity
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addRedirectUri, addScopeMapping, addWebOrigin, deleteScopeMapping, getAllowedClaimsMask, getClientId, getId, getNotBefore, getRealm, getRealmScopeMappings, getRedirectUris, getScopeMappings, getSecret, getWebOrigins, isEnabled, isFullScopeAllowed, removeRedirectUri, removeWebOrigin, setAllowedClaimsMask, setEnabled, setFullScopeAllowed, setNotBefore, setRedirectUris, setSecret, setWebOrigins, validateSecret
public ApplicationAdapter(KeycloakSession session, RealmModel realm, MongoApplicationEntity applicationEntity, MongoStoreInvocationContext invContext)
public void updateApplication()
updateApplication
in interface ApplicationModel
public String getName()
getName
in interface ApplicationModel
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 void setBaseUrl(String url)
setBaseUrl
in interface ApplicationModel
public String getBaseUrl()
getBaseUrl
in interface ApplicationModel
public boolean isBearerOnly()
isBearerOnly
in interface ApplicationModel
public void setBearerOnly(boolean only)
setBearerOnly
in interface ApplicationModel
public boolean isPublicClient()
isPublicClient
in interface ClientModel
isPublicClient
in class ClientAdapter<MongoApplicationEntity>
public void setPublicClient(boolean flag)
setPublicClient
in interface ClientModel
setPublicClient
in class ClientAdapter<MongoApplicationEntity>
public boolean isDirectGrantsOnly()
isDirectGrantsOnly
in interface ClientModel
public void setDirectGrantsOnly(boolean flag)
setDirectGrantsOnly
in interface ClientModel
public RoleAdapter getRole(String name)
getRole
in interface RoleContainerModel
public RoleAdapter addRole(String name)
addRole
in interface RoleContainerModel
public RoleAdapter 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 boolean hasScope(RoleModel role)
hasScope
in interface ClientModel
hasScope
in class ClientAdapter<MongoApplicationEntity>
public Set<RoleModel> getApplicationScopeMappings(ClientModel client)
getApplicationScopeMappings
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 boolean equals(Object o)
equals
in class AbstractMongoAdapter<MongoApplicationEntity>
public int hashCode()
hashCode
in class AbstractMongoAdapter<MongoApplicationEntity>
Copyright © 2014. All Rights Reserved.