Examples of canUseCategory()


Examples of com.dotmarketing.portlets.categories.business.CategoryAPI.canUseCategory()

    }
   
    CategoryAPI categoryAPI = APILocator.getCategoryAPI();
    List<Category> myUserCategories = categoryAPI.getChildren(userProxy, APILocator.getUserAPI().getSystemUser(), false);
    for (Object object: myUserCategories) {
      if ((object instanceof Category) && categoryAPI.canUseCategory((Category) object, APILocator.getUserAPI().getSystemUser(), false)) {
        categoryAPI.removeChild(userProxy, (Category) object, APILocator.getUserAPI().getSystemUser(), false);
      }
    }

    if (UtilMethods.isSet(form.getCategory())) {
View Full Code Here

Examples of com.dotmarketing.portlets.categories.business.CategoryAPI.canUseCategory()

    Iterator<Category> m = categories.iterator();

    while (m.hasNext()) {
      Category cat = (Category) m.next();

      boolean canUse = catAPI.canUseCategory(cat, user, respectFrontendRoles);
      if(canUse){       
        if (level == 1) {
          strHTML.append("<option value=\"" + cat.getInode() + "\" class='topCat' ");
        } else {
          strHTML.append("<option value=\"" + cat.getInode() + "\"");
View Full Code Here

Examples of com.dotmarketing.portlets.categories.business.CategoryAPI.canUseCategory()

    StringBuffer strHTML = new StringBuffer();
    Iterator<Category> m = categories.iterator();

    while (m.hasNext()) {
      Category cat = (Category) m.next();
      boolean canUse = catAPI.canUseCategory(cat, user, respectFrontendRoles);
      if(canUse){
        if (currentCats.indexOf(cat.getInode() + ",") != -1) {
          Logger.debug(UtilHTML.class, "found the same objects!!!!");
          strHTML.append("<tr><td>");
          strHTML.append(cat.getCategoryName());
View Full Code Here

Examples of com.dotmarketing.portlets.categories.business.CategoryAPI.canUseCategory()

    UserProxy userProxy = userProxyAPI.getUserProxy(userId, uWebAPI.getLoggedInUser(request), uWebAPI.isLoggedToBackend(request));

    HibernateUtil.startTransaction();
    List<Category> myUserCategories = catAPI.getChildren(userProxy, user, respectFrontend);
    for (Object o : myUserCategories) {
      if(o instanceof Category && catAPI.canUseCategory((Category)o, user, respectFrontend)){
        catAPI.removeChild(userProxy, (Category)o, user, respectFrontend);
      }
    }
    for(int i = 0;i < categories.length;i++)
    {
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.