Package com.ikanow.infinit.e.data_model.store.social.gui

Examples of com.ikanow.infinit.e.data_model.store.social.gui.UISetupPojo.toDb()


    ResponsePojo rp = new ResponsePojo();
    try
    {
      UISetupPojo querySetup = new UISetupPojo();
      querySetup.setProfileID(new ObjectId(profileID));
      DBObject dbo = DbManager.getSocial().getUISetup().findOne(querySetup.toDb())
      if ( dbo != null )
      {
        UISetupPojo up = UISetupPojo.fromDb(dbo, UISetupPojo.class);
        rp.setResponse(new ResponseObject("UISetup",true,"ui returned successfully"));
        rp.setData(up, new UISetupPojoApiMap());
View Full Code Here


          modulesList.add(wp);       
        }
      }
      UISetupPojo querySetup = new UISetupPojo();
      querySetup.setProfileID(new ObjectId(profileID));
      DBObject dbo = DbManager.getSocial().getUISetup().findOne(querySetup.toDb());
      if ( dbo == null )
      {
        //add new entry
        up.setProfileID(querySetup.getProfileID());
        up.addWidgets(modulesList);
View Full Code Here

        //update old entry       
        up = UISetupPojo.fromDb(dbo, UISetupPojo.class);
        up.addWidgets(modulesList);
        up.setQueryString(query);
        up.setCommunityIds(communityIdStrList);
        DbManager.getSocial().getUISetup().update(querySetup.toDb(), up.toDb());
      }
      rp.setResponse(new ResponseObject("Update UISetup",true,"modules updated successfully"));           
    }
    catch (Exception ex)
    {
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.