Package cgl.shindig.usermanage

Examples of cgl.shindig.usermanage.UILayout


        //This will encrypt the password as a hash.
            boolean succ = UserDBMgr.insertUser( user );
            if( succ == true ){
           //Note the defaultLayoutData string is actually some non-trivial JSON loaded from
           //a file.
                UserDBMgr.insertUILayout(new UILayout(user.getScreenname(), defaultLayoutData));
                proxystoreKeyAdjust(openid, screenname);
            }else{
                state = 2; //the user with that screen name has existed.
            }
        }else{//the user has input invalid information.
View Full Code Here


        Properties config =
            portal.getConfig().getSecurityConfig().getSecurityManagerConfig().getUserManagerConfigProps();
        if (config != null && config.getProperty("subsystem") != null &&
                config.getProperty("subsystem").equalsIgnoreCase("osg")) {
            if (UserDBMgr.getUILayoutBySN(screenname) == null) {
                UserDBMgr.insertUILayout(new UILayout(screenname, SignUp.defaultLayoutData));
            }
        }
    }
View Full Code Here

        this.layoutSuiteBuilder=layoutSuiteBuilder;
    }

    public LayoutSuite build(String username)
            throws JSONException, LayoutRESTOPException {
        UILayout wholelayout = UserDBMgr.getUILayoutBySN(username);
        if (wholelayout == null) {
            throw new LayoutRESTOPException(errorTxtLSNonExist);
        } else {
            String wholeLayoutRawdata = wholelayout.getLayout();
            if (wholeLayoutRawdata.trim().equals("")) {
                return new LayoutSuite();
            } else {
                JSONObject wholeLayoutObj = new JSONObject(wholeLayoutRawdata);
                LayoutSuite layoutSuite = layoutSuiteBuilder.build(wholeLayoutObj);
View Full Code Here

TOP

Related Classes of cgl.shindig.usermanage.UILayout

Copyright © 2018 www.massapicom. 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.