Examples of DialectDTO


Examples of org.wso2.carbon.profiles.mgt.dto.DialectDTO

            // Okay - we have profile configurations.
            for (ProfileConfiguration profileConfig : profileConfigs) {
                // Okay - we have the first profile configuration in.
                List<String> names = null;
                DialectDTO dialectdto = null;
                String dialect = null;
                dialect = profileConfig.getDialectName();

                if (basicConfigurations.containsKey(dialect)) {
                    dialectdto = basicConfigurations.get(dialect);
                } else {
                    dialectdto = new DialectDTO();
                    dialectdto.setDialectUri(dialect);
                    dialectdto.setProfileConfigurations(new String[0]);
                    basicConfigurations.put(dialect, dialectdto);
                }

                names = new ArrayList<String>(Arrays.asList(dialectdto.getProfileConfigurations()));
                names.add(profileConfig.getProfileName());
                dialectdto.setProfileConfigurations(names.toArray(new String[names.size()]));
            }

            dialects = getAllClaimDailects();

            for (int i = 0; i < dialects.length; i++) {
                if (!basicConfigurations.containsKey(dialects[i])) {
                    DialectDTO dialectdto = null;
                    dialectdto = new DialectDTO();
                    dialectdto.setDialectUri(dialects[i]);
                    dialectdto.setProfileConfigurations(new String[0]);
                    if (UserCoreConstants.DEFAULT_CARBON_DIALECT.equals(dialects[i])) {
                        basicConfigurations.put(dialects[i], dialectdto);
                    }
                }
            }
View Full Code Here

Examples of org.wso2.carbon.profiles.mgt.dto.DialectDTO

            // Okay - we have profile configurations.
            for (ProfileConfiguration profileConfig : profileConfigs) {
                // Okay - we have the first profile configuration in.
                List<String> names = null;
                DialectDTO dialectdto = null;
                String dialect = null;
                dialect = profileConfig.getDialectName();

                if (basicConfigurations.containsKey(dialect)) {
                    dialectdto = basicConfigurations.get(dialect);
                } else {
                    dialectdto = new DialectDTO();
                    dialectdto.setDialectUri(dialect);
                    dialectdto.setProfileConfigurations(new String[0]);
                    basicConfigurations.put(dialect, dialectdto);
                }

                names = new ArrayList<String>(Arrays.asList(dialectdto.getProfileConfigurations()));
                names.add(profileConfig.getProfileName());
                dialectdto.setProfileConfigurations(names.toArray(new String[names.size()]));
            }

            dialects = getAllClaimDailects();

            for (int i = 0; i < dialects.length; i++) {
                if (!basicConfigurations.containsKey(dialects[i])) {
                    DialectDTO dialectdto = null;
                    dialectdto = new DialectDTO();
                    dialectdto.setDialectUri(dialects[i]);
                    dialectdto.setProfileConfigurations(new String[0]);
                    if (UserCoreConstants.DEFAULT_CARBON_DIALECT.equals(dialects[i])) {
                        basicConfigurations.put(dialects[i], dialectdto);
                    }
                }
            }
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.