Interface ITStaticResourceManager


  • public interface ITStaticResourceManager
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.javahollic.jira.emh.api.export.beans.StaticResourceBean createStaticResource​(com.atlassian.jira.project.Project project, int imageWidth, int imageHeight, String description, String contentType, String fileName, byte[] data)
      Create a new Static Resource and return a StaticResourceBean representing it's content
      void deleteAllResources()  
      com.javahollic.jira.emh.api.export.beans.StaticResourceBean getStaticResourceById​(int id)
      Get a StaticResourceBean for the Static Resource matching the input ID (or null)
    • Method Detail

      • createStaticResource

        com.javahollic.jira.emh.api.export.beans.StaticResourceBean createStaticResource​(com.atlassian.jira.project.Project project,
                                                                                         int imageWidth,
                                                                                         int imageHeight,
                                                                                         String description,
                                                                                         String contentType,
                                                                                         String fileName,
                                                                                         byte[] data)
        Create a new Static Resource and return a StaticResourceBean representing it's content
        Parameters:
        project - the project to scope the resource to (can be null)
        imageWidth - the image width (applicable if the resource is an image)
        imageHeight - the image height (applicable if the resource is an image)
        description - the description for the resource
        contentType - the content type of the resource
        fileName - the filename of the resource
        data - the raw bytes for the resource data
        Returns:
        a StaticResourceBean representing the created Static Resource
      • getStaticResourceById

        com.javahollic.jira.emh.api.export.beans.StaticResourceBean getStaticResourceById​(int id)
        Get a StaticResourceBean for the Static Resource matching the input ID (or null)
        Parameters:
        id - the ID of the Static Resource to get
        Returns:
        a StaticResourceBean representing the matching Static Resource (or null)
      • deleteAllResources

        void deleteAllResources()