public class ApplicationAdapter extends ClientAdapter implements ApplicationModel
Modifier and Type | Field and Description |
---|---|
protected ApplicationEntity |
applicationEntity |
protected javax.persistence.EntityManager |
em |
entity, realm
Constructor and Description |
---|
ApplicationAdapter(RealmModel realm,
javax.persistence.EntityManager em,
ApplicationEntity applicationEntity) |
Modifier and Type | Method and Description |
---|---|
void |
addDefaultRole(String name) |
RoleModel |
addRole(String name) |
RoleModel |
addRole(String id,
String name) |
static boolean |
contains(String str,
String[] array) |
boolean |
equals(Object o) |
Set<RoleModel> |
getApplicationRoleMappings(UserModel user) |
Set<RoleModel> |
getApplicationScopeMappings(ClientModel client) |
String |
getBaseUrl() |
List<String> |
getDefaultRoles() |
String |
getManagementUrl() |
String |
getName() |
RoleModel |
getRole(String name) |
Set<RoleModel> |
getRoles() |
boolean |
isBearerOnly() |
boolean |
isDirectGrantsOnly() |
boolean |
isSurrogateAuthRequired() |
boolean |
removeRole(RoleModel roleModel) |
void |
setBaseUrl(String url) |
void |
setBearerOnly(boolean only) |
void |
setDirectGrantsOnly(boolean flag) |
void |
setManagementUrl(String url) |
void |
setName(String name) |
void |
setSurrogateAuthRequired(boolean surrogateAuthRequired) |
String |
toString() |
void |
updateApplication() |
void |
updateDefaultRoles(String[] defaultRoles) |
addRedirectUri, addWebOrigin, deleteUserSessionAssociation, getActiveUserSessions, getAllowedClaimsMask, getClientId, getEntity, getId, getNotBefore, getRealm, getRedirectUris, getSecret, getUserSessions, getWebOrigins, hashCode, isEnabled, isPublicClient, removeRedirectUri, removeWebOrigin, setAllowedClaimsMask, setEnabled, setNotBefore, setPublicClient, setRedirectUris, setSecret, setWebOrigins, validateSecret
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addRedirectUri, addWebOrigin, getActiveUserSessions, getAllowedClaimsMask, getClientId, getId, getNotBefore, getRealm, getRedirectUris, getSecret, getUserSessions, getWebOrigins, isEnabled, isPublicClient, removeRedirectUri, removeWebOrigin, setAllowedClaimsMask, setEnabled, setNotBefore, setPublicClient, setRedirectUris, setSecret, setWebOrigins, validateSecret
protected javax.persistence.EntityManager em
protected ApplicationEntity applicationEntity
public ApplicationAdapter(RealmModel realm, javax.persistence.EntityManager em, ApplicationEntity applicationEntity)
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 String getBaseUrl()
getBaseUrl
in interface ApplicationModel
public void setBaseUrl(String url)
setBaseUrl
in interface ApplicationModel
public boolean isBearerOnly()
isBearerOnly
in interface ApplicationModel
public void setBearerOnly(boolean only)
setBearerOnly
in interface ApplicationModel
public boolean isDirectGrantsOnly()
isDirectGrantsOnly
in interface ClientModel
public void setDirectGrantsOnly(boolean flag)
setDirectGrantsOnly
in interface ClientModel
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 roleModel)
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
public boolean equals(Object o)
equals
in class ClientAdapter
Copyright © 2014. All Rights Reserved.