public class ApplicationAdapter extends ClientAdapter<MongoApplicationEntity> implements ApplicationModel
clientEntity
invocationContext
Constructor and Description |
---|
ApplicationAdapter(RealmAdapter 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) |
Set<RoleModel> |
getApplicationRoleMappings(UserModel user) |
Set<RoleModel> |
getApplicationScopeMappings(ClientModel client) |
String |
getBaseUrl() |
List<String> |
getDefaultRoles() |
String |
getManagementUrl() |
String |
getName() |
RoleAdapter |
getRole(String name) |
Set<RoleModel> |
getRoles() |
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, addWebOrigin, getActiveUserSessions, getAllowedClaimsMask, getClientId, getId, getMongoEntity, getMongoEntityAsClient, getNotBefore, getRealm, getRedirectUris, getSecret, getUserSessions, getWebOrigins, isEnabled, removeRedirectUri, removeWebOrigin, setAllowedClaimsMask, setEnabled, setNotBefore, setRedirectUris, setSecret, setWebOrigins, validateSecret
equals, getMongoStore, hashCode, updateMongoEntity
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addRedirectUri, addWebOrigin, getActiveUserSessions, getAllowedClaimsMask, getClientId, getId, getNotBefore, getRealm, getRedirectUris, getSecret, getUserSessions, getWebOrigins, isEnabled, removeRedirectUri, removeWebOrigin, setAllowedClaimsMask, setEnabled, setNotBefore, setRedirectUris, setSecret, setWebOrigins, validateSecret
public ApplicationAdapter(RealmAdapter 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 Set<RoleModel> getApplicationRoleMappings(UserModel user)
getApplicationRoleMappings
in interface ApplicationModel
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
Copyright © 2014. All Rights Reserved.