Class ImageServiceImpl

    • Constructor Detail

      • ImageServiceImpl

        public ImageServiceImpl()
    • Method Detail

      • list

        public List<? extends Image> list()
        List all available operating system images
        Specified by:
        list in interface ImageService
        Returns:
        list of images
      • list

        public List<? extends Image> list​(Map<String,​String> filteringParams)
        Returns list of images filtered by parameters. For filtering guidelines, see http://developer.openstack.org/api-ref/image/v2/index.html#show-images To paginate, use "limit" and "marker" parameters
        Specified by:
        list in interface ImageService
        Parameters:
        filteringParams - map (name, value) of filtering parameters
        Returns:
        list of images fitered by filteringParams
      • listCachedImages

        public List<? extends CachedImage> listCachedImages()
        List images currently in the glance image cache.
        Specified by:
        listCachedImages in interface ImageService
        Returns:
        list of cached images or empty list if the cache is empty or null if the cache is not enabled.
      • get

        public Image get​(String imageId)
        Show details for an image by imageid. The image must exist
        Specified by:
        get in interface ImageService
        Returns:
        the image
      • create

        public Image create​(Image image)
        Creates a catalog record for an operating system disk image.
        Specified by:
        create in interface ImageService
        Returns:
        Image
      • update

        public Image update​(Image image)
        Update image by providing the changed image object.
        Specified by:
        update in interface ImageService
        Returns:
        image
      • update

        public Image update​(String imageId,
                            ImageUpdate imageUpdate)
        Update an image by building the string of json operations that represent the json transformation instead of the building the whole image
        Specified by:
        update in interface ImageService
        Returns:
        Image
      • delete

        public ActionResponse delete​(String imageId)
        Deletes an image. You cannot delete images with the protected attribute set to true (boolean).
        Specified by:
        delete in interface ImageService
      • deactivate

        public ActionResponse deactivate​(String imageId)
        Deactivate an image If you try to download a deactivated image, you will receive a 403 (Forbidden) response code. Additionally, only administrative users can view image locations for deactivated images.
        Specified by:
        deactivate in interface ImageService
      • listMembers

        public List<? extends Member> listMembers​(String imageId)
        List members of a particular image. These members are projects or tenants that can see the image.
        Specified by:
        listMembers in interface ImageService
        Returns:
        List of members
      • listMembers

        public List<? extends Member> listMembers​(String imageId,
                                                  Map<String,​String> filteringParams)
        List members of a particular image. These members are projects or tenants that can see the image.
        Specified by:
        listMembers in interface ImageService
        Returns:
        List of members
      • createMember

        public Member createMember​(String imageId,
                                   String memberId)
        The image must exist, be private, and be owned by the author of the request. Otherwise, this will fail.
        Specified by:
        createMember in interface ImageService
        Parameters:
        imageId - the image to share
        Returns:
        member
      • updateMember

        public Member updateMember​(String imageId,
                                   String memberId,
                                   Member.MemberStatus memberStatus)
        Change status of an image member For more details see http://specs.openstack.org/openstack/glance-specs/specs/api/v2/sharing-image-api-v2.html
        Specified by:
        updateMember in interface ImageService
        Returns:
        member