public class XMPPSettingsDAO extends AbstractDAO<XMPPSettingsDO>
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
registry
Constructor and Description |
---|
XMPPSettingsDAO(org.wso2.carbon.registry.core.Registry registry) |
Modifier and Type | Method and Description |
---|---|
void |
addXmppSettings(String userId,
String xmppServer,
String xmppUserName,
String xmppUserCode,
boolean enabled,
boolean pinEnabled)
Adding XMPP Settings corresponding to a user
|
XMPPSettingsDO |
getXmppSettings(String userId)
retrieve XMPP Settings of a user by providing the userId
|
boolean |
hasXmppSettings(String userId) |
boolean |
isXmppSettingsEnabled(String userId)
Checks whether the given user has enabled XMPP based multifactor auth.
|
protected XMPPSettingsDO |
resourceToObject(org.wso2.carbon.registry.core.Resource resource)
Converts a registry resource to an object.
|
void |
updateXmppSettings(String userId,
String xmppServer,
String xmppUserName,
String xmppUserCode,
boolean enabled,
boolean pinEnabled)
Update XMPP Settings of a user
|
getAllObjects, getAllObjectsWithPropertyValue, getFirstObjectWithPropertyValue
public XMPPSettingsDAO(org.wso2.carbon.registry.core.Registry registry)
registry
- protected XMPPSettingsDO resourceToObject(org.wso2.carbon.registry.core.Resource resource)
AbstractDAO
resourceToObject
in class AbstractDAO<XMPPSettingsDO>
resource
- public void addXmppSettings(String userId, String xmppServer, String xmppUserName, String xmppUserCode, boolean enabled, boolean pinEnabled) throws org.wso2.carbon.identity.base.IdentityException
userId
- xmppServer
- xmppUserName
- xmppUserCode
- org.wso2.carbon.identity.base.IdentityException
public void updateXmppSettings(String userId, String xmppServer, String xmppUserName, String xmppUserCode, boolean enabled, boolean pinEnabled) throws org.wso2.carbon.identity.base.IdentityException
userId
- xmppServer
- xmppUserName
- xmppUserCode
- org.wso2.carbon.identity.base.IdentityException
public XMPPSettingsDO getXmppSettings(String userId)
userId
- public boolean isXmppSettingsEnabled(String userId)
userId
- public boolean hasXmppSettings(String userId)
Copyright © 2019 WSO2. All rights reserved.