/** * Default constructor.<p> * * @param structureId the structure id of the resource that this category represents * @param rootPath the root path of the category folder * @param title the title of the category * @param description the description of the category * @param baseFolder the base categories folder * * @throws CmsException if the root path does not match the given base folder */ public CmsCategory(CmsUUID structureId, String rootPath, String title, String description, String baseFolder) throws CmsException { m_structureId = structureId; m_rootPath = rootPath; m_title = title; m_description = description; m_path = getCategoryPath(m_rootPath, baseFolder); m_basePath = m_rootPath.substring(0, m_rootPath.length() - m_path.length()); }
/** * Default constructor.<p> * * @param structureId the structure id of the resource that this category represents * @param rootPath the root path of the category folder * @param title the title of the category * @param description the description of the category * @param baseFolder the base categories folder * * @throws CmsException if the root path does not match the given base folder */ public CmsCategory(CmsUUID structureId, String rootPath, String title, String description, String baseFolder) throws CmsException { m_structureId = structureId; m_rootPath = rootPath; m_title = title; m_description = description; m_path = getCategoryPath(m_rootPath, baseFolder); m_basePath = m_rootPath.substring(0, m_rootPath.length() - m_path.length()); }
CmsCategory actualCat = readCategory( cms, CmsCategory.getCategoryPath(relation.getTargetPath(), baseFolder), resourceName); addResourceToCategory(cms, resourceName, actualCat);
CmsCategory actualCat = readCategory(cms, CmsCategory.getCategoryPath( relation.getTargetPath(), baseFolder), resourceName);