Examples of ProfilesBean


Examples of org.wso2.carbon.registry.profiles.beans.ProfilesBean

    public ProfilesBean getUserProfile(String path) throws RegistryException,UserStoreException{
        Registry registry = getConfigSystemRegistry();
        Resource resource = registry.get(path);
        String contentString = (String)resource.getContent();

        ProfilesBean profbean = new ProfilesBean();
        profbean.setMainDataString(contentString);
//        profilebean.calculatevalues();
        return profbean;
    }
View Full Code Here

Examples of org.wso2.carbon.registry.profiles.stub.beans.xsd.ProfilesBean

    private static final Log log = LogFactory.getLog(GetProfileUtil.class);
    public static Map<String,Map<String,String>> getProfile(String path, ServletConfig config, HttpSession session) throws UIException{
        try{

            ProfilesAdminServiceClient client = new ProfilesAdminServiceClient(config,session);
            ProfilesBean bean = client.getUserProfile(path);
            if (bean == null || bean.getMainDataString() == null) {
                log.error("The profile was not found for the path " + path);
                return null;
            }
            Map <String,Map<String,String>> data = new HashMap();
            String maindatastring = bean.getMainDataString();
            String []profile = maindatastring.split("#");
            Map<String,String> pair = null;
            for(int i=0;i< profile.length;i++){
                if(!profile[i].equals("")){
                    String[]inter = profile[i].split("%");
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.