Interface I_CmsPreviewService

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      CmsImageInfoBean getImageInfo​(java.lang.String resourcePath, java.lang.String locale)
      Returns the image resource data to be displayed in the preview dialog.
      CmsResourceInfoBean getResourceInfo​(java.lang.String resourcePath, java.lang.String locale)
      Returns the data to be displayed in the preview dialog.
      CmsImageInfoBean updateImageProperties​(java.lang.String resourcePath, java.lang.String locale, java.util.Map<java.lang.String,​java.lang.String> properties)
      Saves the given properties to the resource and returns the data to be displayed in the preview dialog.
      CmsResourceInfoBean updateResourceProperties​(java.lang.String resourcePath, java.lang.String locale, java.util.Map<java.lang.String,​java.lang.String> properties)
      Saves the given properties to the resource and returns the data to be displayed in the preview dialog.
    • Method Detail

      • getImageInfo

        CmsImageInfoBean getImageInfo​(java.lang.String resourcePath,
                                      java.lang.String locale)
                               throws CmsRpcException
        Returns the image resource data to be displayed in the preview dialog.

        Parameters:
        resourcePath - the resource path
        locale - the content locale
        Returns:
        the image resource data
        Throws:
        CmsRpcException - if something goes wrong
      • getResourceInfo

        CmsResourceInfoBean getResourceInfo​(java.lang.String resourcePath,
                                            java.lang.String locale)
                                     throws CmsRpcException
        Returns the data to be displayed in the preview dialog.

        Parameters:
        resourcePath - the path to the selected resource
        locale - the content locale
        Returns:
        the preview data
        Throws:
        CmsRpcException - if something goes wrong
      • updateImageProperties

        CmsImageInfoBean updateImageProperties​(java.lang.String resourcePath,
                                               java.lang.String locale,
                                               java.util.Map<java.lang.String,​java.lang.String> properties)
                                        throws CmsRpcException
        Saves the given properties to the resource and returns the data to be displayed in the preview dialog.

        Parameters:
        resourcePath - the path to the selected resource
        locale - the content locale
        properties - a map with the key/value pairs of the properties to be updated
        Returns:
        the updates preview data
        Throws:
        CmsRpcException - if something goes wrong
      • updateResourceProperties

        CmsResourceInfoBean updateResourceProperties​(java.lang.String resourcePath,
                                                     java.lang.String locale,
                                                     java.util.Map<java.lang.String,​java.lang.String> properties)
                                              throws CmsRpcException
        Saves the given properties to the resource and returns the data to be displayed in the preview dialog.

        Parameters:
        resourcePath - the path to the selected resource
        locale - the content locale
        properties - a map with the key/value pairs of the properties to be updated
        Returns:
        the updates preview data
        Throws:
        CmsRpcException - if something goes wrong