Examples of XMPPSettingsDTO


Examples of org.wso2.carbon.identity.provider.dto.XMPPSettingsDTO

     * To get XMPP Settings
     * @param userId
     * @return XmppSettingsDTO instance containing XMPP properties
     */
    public XMPPSettingsDTO getXmppSettings(String userId){
        XMPPSettingsDTO xmppSettingsDTO = null;
        try {
            IdentityPersistenceManager persistenceManager =  IdentityPersistenceManager.getPersistanceManager();
            XMPPSettingsDO xmppSettingsDO = persistenceManager.getXmppSettings(IdentityTenantUtil.getRegistry(), userId);
            xmppSettingsDTO = new XMPPSettingsDTO();
            xmppSettingsDTO.setXmppServer(xmppSettingsDO.getXmppServer());
            xmppSettingsDTO.setXmppUserName(xmppSettingsDO.getXmppUserName());
            xmppSettingsDTO.setUserCode(xmppSettingsDO.getUserCode());
            xmppSettingsDTO.setXmppEnabled(xmppSettingsDO.isXmppEnabled());
            xmppSettingsDTO.setPINEnabled(xmppSettingsDO.isPINEnabled());

        } catch (Exception e) {
             log.error("Error when instantiating the Persistence Manager.", e);
        }

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.