Exemple #1
0
  /**
   * Returns documentURL property.
   *
   * @param pDocumentID parameter to set.
   * @param pRepository parameter to set.
   * @return documentURL property.
   * @throws RepositoryException - exception
   * @throws UnsupportedEncodingException - exception
   */
  public static String getDocumentURL(String pDocumentID, Repository pRepository)
      throws RepositoryException, UnsupportedEncodingException {
    RepositoryItem document = pRepository.getItem(pDocumentID, ITEM_CASTORAMA_DOCUMENT);

    if (document != null) {
      return SEOUtils.getDocumentURL(document);
    } else {
      return null;
    }
  }