Examples of CategoryBean


Examples of org.beangle.ems.security.model.CategoryBean

      return redirect("admin", "info.save.success");
    }
    String newCategory = get("newCategory");
    if (StringUtils.isNotBlank(newCategory)) {
      if (entityDao.get(Category.class, "name", newCategory).isEmpty()) {
        CategoryBean category = new CategoryBean();
        category.setName(newCategory);
        entityDao.saveOrUpdate(category);
        return redirect("admin", "info.save.success");
      } else {
        return redirect("admin", "info.save.failure");
      }
View Full Code Here

Examples of org.jahia.data.beans.CategoryBean

                category = Category.getCategory(getString().substring(getString().lastIndexOf("/") + 1));
            } else if (getType() == PropertyType.REFERENCE) {
                category = Category.getCategoryByUUID(getString());
            }
            if (category == null) throw new ValueFormatException(getString() + " is not a valid Jahia Category");
            return new CategoryBean(category);
        } catch (JahiaException e) {
            logger.error("Category not found");
        }

    throw new ItemNotFoundException("category " + getString() + " not found");
View Full Code Here

Examples of org.jahia.services.categories.CategoryBean

            s1 = cat.getTitle(JCRSessionFactory.getInstance().getCurrentLocale());
            if (s1 == null || s1.length() == 0) {
                s1 = cat.getKey();
            }
        } else if (c1 instanceof CategoryBean) {
            final CategoryBean cat = (CategoryBean) c1;
            s1 = cat.getKey();
        } else if (c1.getClass() == Version.class) {
            final Version res = (Version) c1;
            try {
                s1 = res.getName();
            } catch (RepositoryException e) {
View Full Code Here

Examples of org.jahia.services.categories.CategoryBean

            logger.error(e.getMessage(), e);
        }
    }

    private CategoryBean createCategoryBeanFromNode(Node categoryNode) {
        CategoryBean categoryBean = new JCRCategory(categoryNode);
        return categoryBean;
    }
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.