Interface PermanentLinkPlugin


public interface PermanentLinkPlugin
A plugin to generate and parse permanent link for one or multiple given object type(s)
  • Method Details

    • getObjectType

      String getObjectType()
      return supported object type. This can be by example of type: space, application, profile, program, action, realization, activity, news, notes, kudos...
    • canAccess

      boolean canAccess(PermanentLinkObject object, org.exoplatform.services.security.Identity identity) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Parameters:
      object - PermanentLinkObject
      identity - Identity accessing the object
      Returns:
      true if can access else false
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException - when the designated object doesn't exists
    • getDirectAccessUrl

      String getDirectAccessUrl(PermanentLinkObject object) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Parameters:
      object - PermanentLinkObject containing the object Type and Id with additional parameters when relevant to build a full URL
      Returns:
      the direct access URL
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException - when the designated object doesn't exists