Exemple #1
0
  /**
   * Returns categoryURL property.
   *
   * @param pCategotyID parameter to set.
   * @param pRepository parameter to set.
   * @return categoryURL property.
   * @throws RepositoryException - exception
   * @throws UnsupportedEncodingException - exception
   */
  public static String getCategoryURL(String pCategotyID, Repository pRepository)
      throws RepositoryException, UnsupportedEncodingException {
    RepositoryItem category = pRepository.getItem(pCategotyID, ITEM_CATEGORY);

    if (category != null) {
      return SEOUtils.getCategoryURL(category);
    } else {
      return null;
    }
  }