Interface ResourceView

  • All Superinterfaces:
    Securable

    public interface ResourceView
    extends Securable
    Interface that defines a resource view to be taken in charge by viewer APIs.

    This interface allows to decouple the attachment service stuffs from viewer APIs, and so, to make them usable by any kind of service into Silverpeas context.

    Author:
    silveryocha
    • Method Detail

      • getId

        String getId()
        Gets the identifier of the resource view.
        Returns:
        a string representing a unique identifier.
      • getName

        String getName()
        Gets the name of the resource view.
        Returns:
        a string.
      • getContentType

        String getContentType()
        Gets the content type of the resource view.
        Returns:
        a string.
      • isDownloadableBy

        boolean isDownloadableBy​(User user)
        Indicates if the media is downloadable by given user.
        Parameters:
        user - a User instance representing the current requester.
        Returns:
        true if it is downloadable.