Class MockPublishUtils

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

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

      Fields 
      Modifier and Type Field Description
      static java.lang.String DUMMY_HOST
      Hostname that is returned as scene7 image server URL.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String[] externalizeImageDeliveryAsset​(org.apache.sling.api.resource.Resource assetResource)  
      java.lang.String externalizeImageDeliveryAsset​(org.apache.sling.api.resource.Resource resource, java.lang.String assetPath)  
      java.lang.String externalizeImageDeliveryUrl​(org.apache.sling.api.resource.Resource arg0, java.lang.String arg1)  
      java.lang.String getISProperty​(java.lang.String arg0, java.lang.String arg1)  
      java.lang.String getPublishNodeURL​(org.apache.sling.api.resource.Resource arg0)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DUMMY_HOST

        public static final java.lang.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 java.lang.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 java.lang.String externalizeImageDeliveryAsset​(org.apache.sling.api.resource.Resource resource,
                                                              java.lang.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 java.lang.String externalizeImageDeliveryUrl​(org.apache.sling.api.resource.Resource arg0,
                                                            java.lang.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 java.lang.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 java.lang.String getISProperty​(java.lang.String arg0,
                                              java.lang.String arg1)
        Specified by:
        getISProperty in interface com.day.cq.dam.api.s7dam.utils.PublishUtils