public class RealmAdapter extends AbstractMongoAdapter<MongoRealmEntity> implements RealmModel
| Modifier and Type | Field and Description |
|---|---|
protected PrivateKey |
privateKey |
protected PublicKey |
publicKey |
invocationContext| Constructor and Description |
|---|
RealmAdapter(MongoRealmEntity realmEntity,
MongoStoreInvocationContext invocationContext) |
equals, getMongoStore, hashCode, updateMongoEntityprotected transient volatile PublicKey publicKey
protected transient volatile PrivateKey privateKey
public RealmAdapter(MongoRealmEntity realmEntity, MongoStoreInvocationContext invocationContext)
public String getId()
getId in interface RealmModelpublic String getName()
getName in interface RealmModelpublic void setName(String name)
setName in interface RealmModelpublic boolean isEnabled()
isEnabled in interface RealmModelpublic void setEnabled(boolean enabled)
setEnabled in interface RealmModelpublic boolean isSslNotRequired()
isSslNotRequired in interface RealmModelpublic void setSslNotRequired(boolean sslNotRequired)
setSslNotRequired in interface RealmModelpublic boolean isPasswordCredentialGrantAllowed()
isPasswordCredentialGrantAllowed in interface RealmModelpublic void setPasswordCredentialGrantAllowed(boolean passwordCredentialGrantAllowed)
setPasswordCredentialGrantAllowed in interface RealmModelpublic boolean isRegistrationAllowed()
isRegistrationAllowed in interface RealmModelpublic void setRegistrationAllowed(boolean registrationAllowed)
setRegistrationAllowed in interface RealmModelpublic boolean isRememberMe()
isRememberMe in interface RealmModelpublic void setRememberMe(boolean rememberMe)
setRememberMe in interface RealmModelpublic boolean isBruteForceProtected()
isBruteForceProtected in interface RealmModelpublic void setBruteForceProtected(boolean value)
setBruteForceProtected in interface RealmModelpublic int getMaxFailureWaitSeconds()
getMaxFailureWaitSeconds in interface RealmModelpublic void setMaxFailureWaitSeconds(int val)
setMaxFailureWaitSeconds in interface RealmModelpublic int getWaitIncrementSeconds()
getWaitIncrementSeconds in interface RealmModelpublic void setWaitIncrementSeconds(int val)
setWaitIncrementSeconds in interface RealmModelpublic long getQuickLoginCheckMilliSeconds()
getQuickLoginCheckMilliSeconds in interface RealmModelpublic void setQuickLoginCheckMilliSeconds(long val)
setQuickLoginCheckMilliSeconds in interface RealmModelpublic int getMinimumQuickLoginWaitSeconds()
getMinimumQuickLoginWaitSeconds in interface RealmModelpublic void setMinimumQuickLoginWaitSeconds(int val)
setMinimumQuickLoginWaitSeconds in interface RealmModelpublic int getMaxDeltaTimeSeconds()
getMaxDeltaTimeSeconds in interface RealmModelpublic void setMaxDeltaTimeSeconds(int val)
setMaxDeltaTimeSeconds in interface RealmModelpublic int getFailureFactor()
getFailureFactor in interface RealmModelpublic void setFailureFactor(int failureFactor)
setFailureFactor in interface RealmModelpublic boolean isVerifyEmail()
isVerifyEmail in interface RealmModelpublic void setVerifyEmail(boolean verifyEmail)
setVerifyEmail in interface RealmModelpublic boolean isResetPasswordAllowed()
isResetPasswordAllowed in interface RealmModelpublic void setResetPasswordAllowed(boolean resetPassword)
setResetPasswordAllowed in interface RealmModelpublic boolean isSocial()
isSocial in interface RealmModelpublic void setSocial(boolean social)
setSocial in interface RealmModelpublic boolean isUpdateProfileOnInitialSocialLogin()
isUpdateProfileOnInitialSocialLogin in interface RealmModelpublic void setUpdateProfileOnInitialSocialLogin(boolean updateProfileOnInitialSocialLogin)
setUpdateProfileOnInitialSocialLogin in interface RealmModelpublic PasswordPolicy getPasswordPolicy()
getPasswordPolicy in interface RealmModelpublic void setPasswordPolicy(PasswordPolicy policy)
setPasswordPolicy in interface RealmModelpublic int getNotBefore()
RealmModelgetNotBefore in interface RealmModelpublic void setNotBefore(int notBefore)
setNotBefore in interface RealmModelpublic int getSsoSessionIdleTimeout()
getSsoSessionIdleTimeout in interface RealmModelpublic void setSsoSessionIdleTimeout(int seconds)
setSsoSessionIdleTimeout in interface RealmModelpublic int getSsoSessionMaxLifespan()
getSsoSessionMaxLifespan in interface RealmModelpublic void setSsoSessionMaxLifespan(int seconds)
setSsoSessionMaxLifespan in interface RealmModelpublic int getAccessTokenLifespan()
getAccessTokenLifespan in interface RealmModelpublic void setAccessTokenLifespan(int tokenLifespan)
setAccessTokenLifespan in interface RealmModelpublic int getAccessCodeLifespan()
getAccessCodeLifespan in interface RealmModelpublic void setAccessCodeLifespan(int accessCodeLifespan)
setAccessCodeLifespan in interface RealmModelpublic int getAccessCodeLifespanUserAction()
getAccessCodeLifespanUserAction in interface RealmModelpublic void setAccessCodeLifespanUserAction(int accessCodeLifespanUserAction)
setAccessCodeLifespanUserAction in interface RealmModelpublic String getPublicKeyPem()
getPublicKeyPem in interface RealmModelpublic void setPublicKeyPem(String publicKeyPem)
setPublicKeyPem in interface RealmModelpublic String getPrivateKeyPem()
getPrivateKeyPem in interface RealmModelpublic void setPrivateKeyPem(String privateKeyPem)
setPrivateKeyPem in interface RealmModelpublic PublicKey getPublicKey()
getPublicKey in interface RealmModelpublic void setPublicKey(PublicKey publicKey)
setPublicKey in interface RealmModelpublic PrivateKey getPrivateKey()
getPrivateKey in interface RealmModelpublic void setPrivateKey(PrivateKey privateKey)
setPrivateKey in interface RealmModelpublic String getLoginTheme()
getLoginTheme in interface RealmModelpublic void setLoginTheme(String name)
setLoginTheme in interface RealmModelpublic String getAccountTheme()
getAccountTheme in interface RealmModelpublic void setAccountTheme(String name)
setAccountTheme in interface RealmModelpublic String getAdminTheme()
getAdminTheme in interface RealmModelpublic void setAdminTheme(String name)
setAdminTheme in interface RealmModelpublic String getEmailTheme()
getEmailTheme in interface RealmModelpublic void setEmailTheme(String name)
setEmailTheme in interface RealmModelpublic UserAdapter getUser(String name)
getUser in interface RealmModelpublic UsernameLoginFailureAdapter getUserLoginFailure(String name)
getUserLoginFailure in interface RealmModelpublic UsernameLoginFailureAdapter addUserLoginFailure(String username)
addUserLoginFailure in interface RealmModelpublic List<UsernameLoginFailureModel> getAllUserLoginFailures()
getAllUserLoginFailures in interface RealmModelpublic UserModel getUserByEmail(String email)
getUserByEmail in interface RealmModelpublic UserModel getUserById(String id)
getUserById in interface RealmModelpublic UserAdapter addUser(String username)
addUser in interface RealmModelpublic UserAdapter addUser(String id, String username)
addUser in interface RealmModelprotected UserAdapter addUserEntity(String id, String username)
public boolean removeUser(String name)
removeUser in interface RealmModelpublic RoleAdapter getRole(String name)
getRole in interface RoleContainerModelpublic RoleModel addRole(String name)
addRole in interface RoleContainerModelpublic RoleModel addRole(String id, String name)
addRole in interface RoleContainerModelpublic boolean removeRole(RoleModel role)
removeRole in interface RoleContainerModelpublic boolean removeRoleById(String id)
removeRoleById in interface RealmModelpublic Set<RoleModel> getRoles()
getRoles in interface RoleContainerModelpublic RoleModel getRoleById(String id)
getRoleById in interface RealmModelpublic List<String> getDefaultRoles()
getDefaultRoles in interface RealmModelpublic void addDefaultRole(String name)
addDefaultRole in interface RealmModelpublic void updateDefaultRoles(String[] defaultRoles)
updateDefaultRoles in interface RealmModelpublic ClientModel findClient(String clientId)
findClient in interface RealmModelpublic ClientModel findClientById(String id)
findClientById in interface RealmModelpublic ApplicationModel getApplicationById(String id)
getApplicationById in interface RealmModelpublic ApplicationModel getApplicationByName(String name)
getApplicationByName in interface RealmModelpublic Map<String,ApplicationModel> getApplicationNameMap()
getApplicationNameMap in interface RealmModelpublic List<ApplicationModel> getApplications()
getApplications in interface RealmModelpublic ApplicationModel addApplication(String name)
addApplication in interface RealmModelpublic ApplicationModel addApplication(String id, String name)
addApplication in interface RealmModelpublic boolean removeApplication(String id)
removeApplication in interface RealmModelpublic boolean hasRole(UserModel user, RoleModel role)
hasRole in interface RoleMapperModelpublic void grantRole(UserModel user, RoleModel role)
grantRole in interface RoleMapperModelpublic Set<RoleModel> getRoleMappings(UserModel user)
getRoleMappings in interface RoleMapperModelpublic Set<RoleModel> getRealmRoleMappings(UserModel user)
getRealmRoleMappings in interface RealmModelpublic void deleteRoleMapping(UserModel user, RoleModel role)
deleteRoleMapping in interface RoleMapperModelpublic Set<RoleModel> getScopeMappings(ClientModel client)
getScopeMappings in interface ScopeMapperModelpublic Set<RoleModel> getRealmScopeMappings(ClientModel client)
getRealmScopeMappings in interface RealmModelpublic boolean hasScope(ClientModel client, RoleModel role)
hasScope in interface RealmModelpublic void addScopeMapping(ClientModel client, RoleModel role)
addScopeMapping in interface ScopeMapperModelpublic void deleteScopeMapping(ClientModel client, RoleModel role)
deleteScopeMapping in interface ScopeMapperModelpublic OAuthClientModel addOAuthClient(String name)
addOAuthClient in interface RealmModelpublic OAuthClientModel addOAuthClient(String id, String name)
addOAuthClient in interface RealmModelpublic boolean removeOAuthClient(String id)
removeOAuthClient in interface RealmModelpublic OAuthClientModel getOAuthClient(String name)
getOAuthClient in interface RealmModelpublic OAuthClientModel getOAuthClientById(String id)
getOAuthClientById in interface RealmModelpublic List<OAuthClientModel> getOAuthClients()
getOAuthClients in interface RealmModelpublic void addRequiredCredential(String type)
addRequiredCredential in interface RealmModelprotected void addRequiredCredential(RequiredCredentialModel credentialModel, List<RequiredCredentialEntity> persistentCollection)
public void updateRequiredCredentials(Set<String> creds)
updateRequiredCredentials in interface RealmModelprotected void updateRequiredCredentials(Set<String> creds, List<RequiredCredentialEntity> credsEntities)
public List<RequiredCredentialModel> getRequiredCredentials()
getRequiredCredentials in interface RealmModelprotected List<RequiredCredentialModel> convertRequiredCredentialEntities(Collection<RequiredCredentialEntity> credEntities)
public boolean validatePassword(UserModel user, String password)
validatePassword in interface RealmModelpublic boolean validateTOTP(UserModel user, String password, String token)
validateTOTP in interface RealmModelpublic void updateCredential(UserModel user, UserCredentialModel cred)
updateCredential in interface RealmModelpublic List<UserCredentialValueModel> getCredentialsDirectly(UserModel user)
getCredentialsDirectly in interface RealmModelpublic void updateCredentialDirectly(UserModel user, UserCredentialValueModel credModel)
updateCredentialDirectly in interface RealmModelpublic UserModel getUserBySocialLink(SocialLinkModel socialLink)
getUserBySocialLink in interface RealmModelpublic Set<SocialLinkModel> getSocialLinks(UserModel user)
getSocialLinks in interface RealmModelpublic SocialLinkModel getSocialLink(UserModel user, String socialProvider)
getSocialLink in interface RealmModelpublic void addSocialLink(UserModel user, SocialLinkModel socialLink)
addSocialLink in interface RealmModelpublic boolean removeSocialLink(UserModel user, String socialProvider)
removeSocialLink in interface RealmModelpublic AuthenticationLinkModel getAuthenticationLink(UserModel user)
getAuthenticationLink in interface RealmModelpublic void setAuthenticationLink(UserModel user, AuthenticationLinkModel authenticationLink)
setAuthenticationLink in interface RealmModelprotected void updateRealm()
protected RequiredCredentialModel initRequiredCredentialModel(String type)
public List<UserModel> getUsers()
getUsers in interface RealmModelpublic List<UserModel> searchForUser(String search)
searchForUser in interface RealmModelpublic List<UserModel> searchForUserByAttributes(Map<String,String> attributes)
searchForUserByAttributes in interface RealmModelprotected List<UserModel> convertUserEntities(List<MongoUserEntity> userEntities)
public Map<String,String> getSmtpConfig()
getSmtpConfig in interface RealmModelpublic void setSmtpConfig(Map<String,String> smtpConfig)
setSmtpConfig in interface RealmModelpublic Map<String,String> getSocialConfig()
getSocialConfig in interface RealmModelpublic void setSocialConfig(Map<String,String> socialConfig)
setSocialConfig in interface RealmModelpublic Map<String,String> getLdapServerConfig()
getLdapServerConfig in interface RealmModelpublic void setLdapServerConfig(Map<String,String> ldapServerConfig)
setLdapServerConfig in interface RealmModelpublic List<AuthenticationProviderModel> getAuthenticationProviders()
getAuthenticationProviders in interface RealmModelpublic void setAuthenticationProviders(List<AuthenticationProviderModel> authenticationProviders)
setAuthenticationProviders in interface RealmModelpublic boolean isAuditEnabled()
isAuditEnabled in interface RealmModelpublic void setAuditEnabled(boolean enabled)
setAuditEnabled in interface RealmModelpublic long getAuditExpiration()
getAuditExpiration in interface RealmModelpublic void setAuditExpiration(long expiration)
setAuditExpiration in interface RealmModelpublic Set<String> getAuditListeners()
getAuditListeners in interface RealmModelpublic void setAuditListeners(Set<String> listeners)
setAuditListeners in interface RealmModelpublic ApplicationModel getMasterAdminApp()
getMasterAdminApp in interface RealmModelpublic void setMasterAdminApp(ApplicationModel app)
setMasterAdminApp in interface RealmModelpublic MongoRealmEntity getMongoEntity()
getMongoEntity in class AbstractMongoAdapter<MongoRealmEntity>public UserSessionModel createUserSession(UserModel user, String ipAddress)
createUserSession in interface RealmModelpublic UserSessionModel getUserSession(String id)
getUserSession in interface RealmModelpublic List<UserSessionModel> getUserSessions(UserModel user)
getUserSessions in interface RealmModelpublic void removeUserSession(UserSessionModel session)
removeUserSession in interface RealmModelpublic void removeUserSessions(UserModel user)
removeUserSessions in interface RealmModelpublic void removeUserSessions()
removeUserSessions in interface RealmModelpublic void removeExpiredUserSessions()
removeExpiredUserSessions in interface RealmModelCopyright © 2014. All Rights Reserved.