Interface PermanentLinkService


public interface PermanentLinkService
A service to get permanent link to an object in order to reference it
  • Field Details

  • Method Details

    • getPermanentLink

      String getPermanentLink(PermanentLinkObject object)
      Parameters:
      object - PermanentLinkObject containing the object Type and Id
      Returns:
      the permanent link with '/portal/' as prefix and domain name
    • getDirectAccessUrl

      String getDirectAccessUrl(String randomizedPermanentLink, org.exoplatform.services.security.Identity identity) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException
      Parameters:
      randomizedPermanentLink - permanent link as generated by a randomizer
      Returns:
      pretty link to access resource
      Throws:
      IllegalAccessException - when current user doesn't have access to the given resource
      org.exoplatform.commons.exception.ObjectNotFoundException - when the pretty link isn't recognized or the given resource doesn't exist anymore
    • getLink

      String getLink(PermanentLinkObject object) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Parameters:
      object - PermanentLinkObject containing the object Type and Id
      Returns:
      pretty link to access resource
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException