Class ImageSpelFunctions.ImageSpelFunctionsWrapper

java.lang.Object
fr.becpg.repo.formulation.spel.ImageSpelFunctions.ImageSpelFunctionsWrapper
Enclosing class:
ImageSpelFunctions

public class ImageSpelFunctions.ImageSpelFunctionsWrapper extends Object
  • Field Details

  • Constructor Details

    • ImageSpelFunctionsWrapper

      public ImageSpelFunctionsWrapper(RepositoryEntity entity)
  • Method Details

    • getEntityImagePublicUrl

      public String getEntityImagePublicUrl()
    • getEntityImageBytes

      public byte[] getEntityImageBytes()
    • getEntityImagePublicUrl

      public String getEntityImagePublicUrl(RepositoryEntity entity)
    • getEntityImageBytes

      public byte[] getEntityImageBytes(RepositoryEntity entity)
    • getEntityImagePublicUrl

      public String getEntityImagePublicUrl(org.alfresco.service.cmr.repository.NodeRef entityNodeRef)
    • getEntityImageBytes

      public byte[] getEntityImageBytes(org.alfresco.service.cmr.repository.NodeRef entityNodeRef)
    • getImagePublicUrlByPath

      public String getImagePublicUrlByPath(String path)
    • getImagePublicUrlByPath

      public String getImagePublicUrlByPath(RepositoryEntity entity, String path)
    • getImagePublicUrlByPath

      public String getImagePublicUrlByPath(org.alfresco.service.cmr.repository.NodeRef entityNodeRef, String path)
    • getImageBytesByPath

      public byte[] getImageBytesByPath(String path)
    • getImageBytesByPath

      public byte[] getImageBytesByPath(RepositoryEntity entity, String path)
    • getImageBytesByPath

      public byte[] getImageBytesByPath(org.alfresco.service.cmr.repository.NodeRef entityNodeRef, String path)
    • shareImage

      private String shareImage(org.alfresco.service.cmr.repository.NodeRef imageNodeRef)
    • findOrCreateSharedId

      private String findOrCreateSharedId(org.alfresco.service.cmr.repository.NodeRef imageNodeRef)
      Returns the quick-share id of the image, reusing an existing share when present so no write is needed, otherwise creating it in a new read-write transaction. This keeps the method safe when called from a read-only transaction (e.g. Excel search export).
      Parameters:
      imageNodeRef - the image node
      Returns:
      the shared id, or null if the image could not be shared