Class MockPublishUtils

  • All Implemented Interfaces:
    com.day.cq.dam.api.s7dam.utils.PublishUtils

    public final class MockPublishUtils
    extends Object
    implements com.day.cq.dam.api.s7dam.utils.PublishUtils
    Mock implementation of PublishUtils.
    • Field Detail

      • DUMMY_HOST

        public static final String DUMMY_HOST
        Hostname that is returned as scene7 image server URL.
        See Also:
        Constant Field Values
    • Constructor Detail

      • MockPublishUtils

        public MockPublishUtils()
    • Method Detail

      • externalizeImageDeliveryAsset

        public String[] externalizeImageDeliveryAsset​(org.apache.sling.api.resource.Resource assetResource)
                                               throws javax.jcr.RepositoryException
        Specified by:
        externalizeImageDeliveryAsset in interface com.day.cq.dam.api.s7dam.utils.PublishUtils
        Throws:
        javax.jcr.RepositoryException
      • externalizeImageDeliveryAsset

        public String externalizeImageDeliveryAsset​(org.apache.sling.api.resource.Resource resource,
                                                    String assetPath)
                                             throws javax.jcr.RepositoryException
        Specified by:
        externalizeImageDeliveryAsset in interface com.day.cq.dam.api.s7dam.utils.PublishUtils
        Throws:
        javax.jcr.RepositoryException
      • externalizeImageDeliveryUrl

        public String externalizeImageDeliveryUrl​(org.apache.sling.api.resource.Resource arg0,
                                                  String arg1)
                                           throws javax.jcr.RepositoryException
        Specified by:
        externalizeImageDeliveryUrl in interface com.day.cq.dam.api.s7dam.utils.PublishUtils
        Throws:
        javax.jcr.RepositoryException
      • getPublishNodeURL

        public String getPublishNodeURL​(org.apache.sling.api.resource.Resource arg0)
                                 throws javax.jcr.RepositoryException
        Specified by:
        getPublishNodeURL in interface com.day.cq.dam.api.s7dam.utils.PublishUtils
        Throws:
        javax.jcr.RepositoryException
      • getISProperty

        public String getISProperty​(String arg0,
                                    String arg1)
        Specified by:
        getISProperty in interface com.day.cq.dam.api.s7dam.utils.PublishUtils