public class IdentityPersistenceManager extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
addServiceProvider(org.wso2.carbon.registry.core.Registry registry,
SAMLSSOServiceProviderDO serviceProviderDO)
Add a relying party service provider for SAML SSO
|
void |
addXmppSettings(org.wso2.carbon.registry.core.Registry registry,
String userId,
String xmppServer,
String xmppUserName,
String xmppUserCode,
boolean enabled,
boolean isPINEnabled)
Add XMPP settings.
|
void |
createOrUpdateOpenIDAdmin(org.wso2.carbon.registry.core.Registry registry,
OpenIDAdminDO opAdmin) |
void |
createOrUpdateParameter(org.wso2.carbon.registry.core.Registry registry,
String paramName,
String value) |
boolean |
doOpenIdSignUp(org.wso2.carbon.registry.core.Registry registry,
org.wso2.carbon.user.core.UserRealm realm,
String openId,
String userId) |
OpenIDAdminDO |
getOpenIDAdmin(org.wso2.carbon.registry.core.Registry registry) |
String[] |
getOpenIDsForUser(org.wso2.carbon.registry.core.Registry registry,
org.wso2.carbon.user.core.UserRealm realm,
String username)
Get all OpenIDs for a given user
|
ParameterDO |
getParameter(org.wso2.carbon.registry.core.Registry registry,
String paramName) |
String |
getParameterValue(org.wso2.carbon.registry.core.Registry registry,
String paramName) |
static IdentityPersistenceManager |
getPersistanceManager()
Returning the identity persistence manager instance : singleton pattern
|
SAMLSSOServiceProviderDO |
getServiceProvider(org.wso2.carbon.registry.core.Registry registry,
String issuer) |
SAMLSSOServiceProviderDO[] |
getServiceProviders(org.wso2.carbon.registry.core.Registry registry)
Get all the relying party service providers
|
String |
getUserIdForOpenIDSignUp(org.wso2.carbon.registry.core.Registry registry,
org.wso2.carbon.user.core.UserRealm realm,
String openId) |
XMPPSettingsDO |
getXmppSettings(org.wso2.carbon.registry.core.Registry registry,
String userId)
get the existing settings.
|
boolean |
hasSignedUpForOpenId(org.wso2.carbon.registry.core.Registry registry,
org.wso2.carbon.user.core.UserRealm realm,
String openID) |
boolean |
hasXMPPSettings(org.wso2.carbon.registry.core.Registry registry,
String userId)
Check whether the user has added the settings.
|
boolean |
isServiceProviderExists(org.wso2.carbon.registry.core.Registry registry,
String issuer) |
boolean |
isXmppSettingsEnabled(org.wso2.carbon.registry.core.Registry registry,
String userId)
Checks whether the settings are enabled.
|
void |
removeOpenIDSignUp(org.wso2.carbon.registry.core.Registry registry,
org.wso2.carbon.user.core.UserRealm realm,
String openID) |
void |
removeParameter(org.wso2.carbon.registry.core.Registry registry,
ParameterDO parameterDO) |
boolean |
removeServiceProvider(org.wso2.carbon.registry.core.Registry registry,
String issuer) |
void |
updateXmppSettings(org.wso2.carbon.registry.core.Registry registry,
String userId,
String xmppServer,
String xmppUserName,
String xmppUserCode,
boolean enabled,
boolean isPINEnabled)
Update the existing settings.
|
SAMLSSOServiceProviderDO |
uploadServiceProvider(org.wso2.carbon.registry.core.Registry registry,
SAMLSSOServiceProviderDO samlssoServiceProviderDO)
Upload Service Provider
|
public static IdentityPersistenceManager getPersistanceManager() throws org.wso2.carbon.identity.base.IdentityException
org.wso2.carbon.identity.base.IdentityException
public void createOrUpdateParameter(org.wso2.carbon.registry.core.Registry registry, String paramName, String value) throws org.wso2.carbon.identity.base.IdentityException
registry
- paramName
- value
- org.wso2.carbon.identity.base.IdentityException
public String getParameterValue(org.wso2.carbon.registry.core.Registry registry, String paramName) throws org.wso2.carbon.identity.base.IdentityException
registry
- paramName
- org.wso2.carbon.identity.base.IdentityException
public ParameterDO getParameter(org.wso2.carbon.registry.core.Registry registry, String paramName) throws org.wso2.carbon.identity.base.IdentityException
paramName
- org.wso2.carbon.identity.base.IdentityException
public void removeParameter(org.wso2.carbon.registry.core.Registry registry, ParameterDO parameterDO) throws org.wso2.carbon.identity.base.IdentityException
parameterDO
- org.wso2.carbon.identity.base.IdentityException
public void addXmppSettings(org.wso2.carbon.registry.core.Registry registry, String userId, String xmppServer, String xmppUserName, String xmppUserCode, boolean enabled, boolean isPINEnabled) throws org.wso2.carbon.identity.base.IdentityException
userId
- xmppServer
- xmppUserName
- xmppUserCode
- enabled
- org.wso2.carbon.identity.base.IdentityException
public XMPPSettingsDO getXmppSettings(org.wso2.carbon.registry.core.Registry registry, String userId)
userId
- public void updateXmppSettings(org.wso2.carbon.registry.core.Registry registry, String userId, String xmppServer, String xmppUserName, String xmppUserCode, boolean enabled, boolean isPINEnabled) throws org.wso2.carbon.identity.base.IdentityException
userId
- xmppServer
- xmppUserName
- xmppUserCode
- enabled
- org.wso2.carbon.identity.base.IdentityException
public boolean isXmppSettingsEnabled(org.wso2.carbon.registry.core.Registry registry, String userId)
userId
- public boolean hasXMPPSettings(org.wso2.carbon.registry.core.Registry registry, String userId)
userId
- public boolean doOpenIdSignUp(org.wso2.carbon.registry.core.Registry registry, org.wso2.carbon.user.core.UserRealm realm, String openId, String userId)
openId
- userId
- public String getUserIdForOpenIDSignUp(org.wso2.carbon.registry.core.Registry registry, org.wso2.carbon.user.core.UserRealm realm, String openId)
openId
- public boolean hasSignedUpForOpenId(org.wso2.carbon.registry.core.Registry registry, org.wso2.carbon.user.core.UserRealm realm, String openID)
openID
- public String[] getOpenIDsForUser(org.wso2.carbon.registry.core.Registry registry, org.wso2.carbon.user.core.UserRealm realm, String username)
username
- public void removeOpenIDSignUp(org.wso2.carbon.registry.core.Registry registry, org.wso2.carbon.user.core.UserRealm realm, String openID)
public boolean addServiceProvider(org.wso2.carbon.registry.core.Registry registry, SAMLSSOServiceProviderDO serviceProviderDO) throws org.wso2.carbon.identity.base.IdentityException
serviceProviderDO
- org.wso2.carbon.identity.base.IdentityException
public SAMLSSOServiceProviderDO uploadServiceProvider(org.wso2.carbon.registry.core.Registry registry, SAMLSSOServiceProviderDO samlssoServiceProviderDO) throws org.wso2.carbon.identity.base.IdentityException
registry,samlssoServiceProviderDO
- org.wso2.carbon.identity.base.IdentityException
public SAMLSSOServiceProviderDO[] getServiceProviders(org.wso2.carbon.registry.core.Registry registry) throws org.wso2.carbon.identity.base.IdentityException
org.wso2.carbon.identity.base.IdentityException
public boolean removeServiceProvider(org.wso2.carbon.registry.core.Registry registry, String issuer) throws org.wso2.carbon.identity.base.IdentityException
org.wso2.carbon.identity.base.IdentityException
public SAMLSSOServiceProviderDO getServiceProvider(org.wso2.carbon.registry.core.Registry registry, String issuer) throws org.wso2.carbon.identity.base.IdentityException
org.wso2.carbon.identity.base.IdentityException
public boolean isServiceProviderExists(org.wso2.carbon.registry.core.Registry registry, String issuer) throws org.wso2.carbon.identity.base.IdentityException
org.wso2.carbon.identity.base.IdentityException
public void createOrUpdateOpenIDAdmin(org.wso2.carbon.registry.core.Registry registry, OpenIDAdminDO opAdmin) throws org.wso2.carbon.identity.base.IdentityException
org.wso2.carbon.identity.base.IdentityException
public OpenIDAdminDO getOpenIDAdmin(org.wso2.carbon.registry.core.Registry registry) throws org.wso2.carbon.identity.base.IdentityException
org.wso2.carbon.identity.base.IdentityException
Copyright © 2019 WSO2. All rights reserved.