Package com.dotmarketing.cms.myaccount.struts

Examples of com.dotmarketing.cms.myaccount.struts.MyAccountForm


    if (request.getSession().getAttribute(WebKeys.CMS_USER) == null) {
      return new ActionForward("/dotCMS/login?referrer=/dotCMS/editInterests");
    }

    // HttpSession session = request.getSession();
    MyAccountForm form = (MyAccountForm) lf;

    //Getting the user from the session
    User user = (User) request.getSession().getAttribute(WebKeys.CMS_USER);
    String userId = user.getUserId();
View Full Code Here


    //Delete the old categories
    InodeFactory.deleteChildrenOfClass(userProxy,Category.class);

    //Save the new categories
    MyAccountForm form = (MyAccountForm) lf;
    String[] categories = form.getCategory();
    if (UtilMethods.isSet(categories)) {
      for(int i = 0;i < categories.length;i++) {
        Category category = categoryAPI.find(categories[i], user, true);
        if(InodeUtils.isSet(category.getInode())) {
          categoryAPI.addChild(userProxy, category, user, true);
View Full Code Here

TOP

Related Classes of com.dotmarketing.cms.myaccount.struts.MyAccountForm

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.