Class FileUrlBuilder


  • @VelocityCallable("singleton")
    public final class FileUrlBuilder
    extends Object
    • Constructor Detail

      • FileUrlBuilder

        public FileUrlBuilder()
        Explicit public default constructor
    • Method Detail

      • createImageMode

        public static de.uplanet.lucy.server.businesslogic.util.ImageMode createImageMode​(boolean p_bAutoRotate)
        Creates a image mode for an original size image
        Parameters:
        p_bAutoRotate - true if the image should be rotated.
        Returns:
        The image mode.
      • createImageMode

        public static de.uplanet.lucy.server.businesslogic.util.ImageMode createImageMode​(int p_iWidth,
                                                                                          int p_iHeight,
                                                                                          boolean p_bCropped,
                                                                                          boolean p_bCroppedMaximize,
                                                                                          boolean p_bOptimizeSize)
        Creates a image mode for a scaled image
        Parameters:
        p_iWidth - The image width
        p_iHeight - The image height
        p_bCropped - Should the image cropped
        p_bCroppedMaximize - Should the image cropped with up scale
        p_bOptimizeSize - Optimize the size
        Returns:
        The image mode.
      • createImageMode

        public static de.uplanet.lucy.server.businesslogic.util.ImageMode createImageMode​(int p_iWidth,
                                                                                          int p_iHeight,
                                                                                          boolean p_bCropped,
                                                                                          boolean p_bCroppedMaximize,
                                                                                          int p_iDegress,
                                                                                          boolean p_bOptimizeSize)
        Creates a image mode for a scaled image
        Parameters:
        p_iWidth - The image width
        p_iHeight - The image height
        p_bCropped - Should the image cropped
        p_bCroppedMaximize - Should the image cropped with up scale
        p_iDegress - The rotation degrees. If the value is 0 then the image will be auto rotated.
        p_bOptimizeSize - Optimize the size
        Returns:
        The image mode.
      • getDownloadQueryComponent

        @Deprecated
        public static String getDownloadQueryComponent​(String p_strQueryPrefix,
                                                       String p_strGuid,
                                                       de.uplanet.lucy.server.util.IVHFileAdapterDescriptor p_fileDescriptor)
        Deprecated.
        Since Intrexx 8.1.
        Parameters:
        p_strQueryPrefix - The query prefix. Result will be the concatenation of this prefix and the query component.
        p_strGuid - The control or adapter GUID.
        p_fileDescriptor - The file descriptor
        Returns:
        The download URL.
      • getDownloadQueryComponent

        @Deprecated
        public static String getDownloadQueryComponent​(String p_strQueryPrefix,
                                                       String p_strGuid,
                                                       de.uplanet.lucy.server.util.IVHFileAdapterDescriptor p_fileDescriptor,
                                                       boolean p_bAsAttachment)
        Deprecated.
        Since Intrexx 8.1.
        Parameters:
        p_strQueryPrefix - The query prefix. Result will be the concatenation of this prefix and the query component.
        p_strGuid - The control or adapter GUID.
        p_fileDescriptor - The file descriptor
        p_bAsAttachment - Download link as attachment otherwise inline
        Returns:
        The download URL.
      • getDownloadQueryComponent

        @Deprecated
        public static String getDownloadQueryComponent​(String p_strQueryPrefix,
                                                       String p_strGuid,
                                                       String p_strRecId)
        Deprecated.
        Since Intrexx 8.1.
        Returns the first file.
        Parameters:
        p_strQueryPrefix - The query prefix. Result will be the concatenation of this prefix and the query component.
        p_strGuid - The control or adapter GUID.
        p_strRecId - The record id.
        Returns:
        The download URL.
      • getDownloadQueryComponent

        @Deprecated
        public static String getDownloadQueryComponent​(String p_strQueryPrefix,
                                                       String p_strGuid,
                                                       String p_strRecId,
                                                       boolean p_bAttachment)
        Deprecated.
        Since Intrexx 8.1.
        Parameters:
        p_strQueryPrefix - The query prefix. Result will be the concatenation of this prefix and the query component.
        p_strGuid - The control or adapter GUID.
        p_strRecId - The record id.
        p_bAttachment - Download link as attachment otherwise inline
        Returns:
        The download URL.
      • getDownloadQueryComponent

        @Deprecated
        public static String getDownloadQueryComponent​(String p_strQueryPrefix,
                                                       String p_strGuid,
                                                       String p_strRecId,
                                                       String p_strFileId)
        Deprecated.
        Since Intrexx 8.1.
        Parameters:
        p_strQueryPrefix - The query prefix. Result will be the concatenation of this prefix and the query component.
        p_strGuid - The control or adapter GUID.
        p_strRecId - The record id.
        p_strFileId - The file record id. If null the first file will be returned.
        Returns:
        The download URL.
      • getDownloadQueryComponent

        @Deprecated
        public static String getDownloadQueryComponent​(String p_strQueryPrefix,
                                                       String p_strGuid,
                                                       String p_strRecId,
                                                       String p_strFileId,
                                                       boolean p_bAsAttachment)
        Deprecated.
        Since Intrexx 8.1.
        Parameters:
        p_strQueryPrefix - The query prefix. Result will be the concatenation of this prefix and the query component.
        p_strGuid - The control or adapter GUID.
        p_strRecId - The record id.
        p_strFileId - The file record id. If null the first file will be returned.
        p_bAsAttachment - Download link as attachment otherwise inline
        Returns:
        The download URL.
      • getDownloadQueryComponent

        @Deprecated
        public static String getDownloadQueryComponent​(String p_strQueryPrefix,
                                                       String p_strGuid,
                                                       String p_strRecId,
                                                       String p_strFileId,
                                                       Date p_dtLastModified)
        Deprecated.
        Since Intrexx 8.1.
        Parameters:
        p_strQueryPrefix - The query prefix. Result will be the concatenation of this prefix and the query component.
        p_strGuid - The control or adapter GUID.
        p_strRecId - The record id.
        p_strFileId - The file record id. If null the first file will be returned.
        p_dtLastModified - The last modified date. (maybe required for browser cache reasons, could be null or a dummy date.)
        Returns:
        The download URL.
      • getDownloadQueryComponent

        @Deprecated
        public static String getDownloadQueryComponent​(String p_strQueryPrefix,
                                                       String p_strGuid,
                                                       String p_strRecId,
                                                       String p_strFileId,
                                                       Date p_dtLastModified,
                                                       boolean p_bAsAttachment)
        Deprecated.
        Since Intrexx 8.1.
        Parameters:
        p_strQueryPrefix - The query prefix. Result will be the concatenation of this prefix and the query component.
        p_strGuid - The control or adapter GUID.
        p_strRecId - The record id.
        p_strFileId - The file record id. If null the first file will be returned.
        p_dtLastModified - The last modified date. (maybe required for browser cache reasons, could be null or a dummy date.)
        p_bAsAttachment - Download link as attachment otherwise inline
        Returns:
        The download URL.
      • getDownloadQueryComponentFromAdapter

        @Deprecated
        public static String getDownloadQueryComponentFromAdapter​(String p_strQueryPrefix,
                                                                  String p_strAdapterGuid,
                                                                  de.uplanet.lucy.server.util.IVHFileAdapterDescriptor p_fileDescriptor)
        Deprecated.
        Since Intrexx 8.1.
        Parameters:
        p_strQueryPrefix - The query prefix. Result will be the concatenation of this prefix and the query component.
        p_strAdapterGuid - The file field GUID (not null)
        p_fileDescriptor - The file descriptor (not null)
        Returns:
        Returns the download URL for the given file.
      • getDownloadQueryComponentFromAdapter

        @Deprecated
        public static String getDownloadQueryComponentFromAdapter​(String p_strQueryPrefix,
                                                                  String p_strAdapterGuid,
                                                                  String p_strRecId)
        Deprecated.
        Since Intrexx 8.1.
        Parameters:
        p_strQueryPrefix - The query prefix. Result will be the concatenation of this prefix and the query component.
        p_strAdapterGuid - The file field GUID (not null)
        p_strRecId - The record id (not null)
        Returns:
        Returns the download URL for the first file.
      • getDownloadQueryComponentFromAdapter

        @Deprecated
        public static String getDownloadQueryComponentFromAdapter​(String p_strQueryPrefix,
                                                                  String p_strAdapterGuid,
                                                                  String p_strRecId,
                                                                  String p_strFileId)
        Deprecated.
        Since Intrexx 8.1.
        Parameters:
        p_strQueryPrefix - The query prefix. Result will be the concatenation of this prefix and the query component.
        p_strAdapterGuid - The file field GUID (not null)
        p_strRecId - The record id (not null)
        p_strFileId - The file id (not null)
        Returns:
        Returns the download URL for the given file.
      • getDownloadQueryComponentFromAdapter

        @Deprecated
        public static String getDownloadQueryComponentFromAdapter​(String p_strQueryPrefix,
                                                                  String p_strAdapterGuid,
                                                                  String p_strRecId,
                                                                  String p_strFileId,
                                                                  Date p_dtLastModified)
        Deprecated.
        Since Intrexx 8.1.
        Parameters:
        p_strQueryPrefix - The query prefix. Result will be the concatenation of this prefix and the query component.
        p_strAdapterGuid - The file field GUID (not null)
        p_strRecId - The record id (not null)
        p_strFileId - The file id (not null)
        p_dtLastModified - The last modified date (could be null), used for browser caching reasons.
        Returns:
        Returns the download URL for the given file.
      • getDownloadQueryComponentFromControl

        @Deprecated
        public static String getDownloadQueryComponentFromControl​(String p_strQueryPrefix,
                                                                  String p_strControlGuid,
                                                                  de.uplanet.lucy.server.util.IVHFileAdapterDescriptor p_fileDescriptor)
        Deprecated.
        Since Intrexx 8.1.
        Parameters:
        p_strQueryPrefix - The query prefix. Result will be the concatenation of this prefix and the query component.
        p_strControlGuid - The control GUID (not null)
        p_fileDescriptor - The file descriptor (not null)
        Returns:
        Returns the download URL for the given file.
      • getDownloadQueryComponentFromControl

        @Deprecated
        public static String getDownloadQueryComponentFromControl​(String p_strQueryPrefix,
                                                                  String p_strControlGuid,
                                                                  String p_strRecId)
        Deprecated.
        Since Intrexx 8.1.
        Parameters:
        p_strQueryPrefix - The query prefix. Result will be the concatenation of this prefix and the query component.
        p_strControlGuid - The control GUID (not null)
        p_strRecId - The record id, The first file will be returned).
        Returns:
        Returns the download URL.
      • getDownloadQueryComponentFromControl

        @Deprecated
        public static String getDownloadQueryComponentFromControl​(String p_strQueryPrefix,
                                                                  String p_strControlGuid,
                                                                  String p_strRecId,
                                                                  String p_strFileId)
        Deprecated.
        Since Intrexx 8.1.
        Parameters:
        p_strQueryPrefix - The query prefix. Result will be the concatenation of this prefix and the query component.
        p_strControlGuid - The control GUID (not null)
        p_strRecId - The record id (not null)
        p_strFileId - The file id (could be null, if null than the URL for the first file will be returned)
        Returns:
        The download URL.
      • getDownloadQueryComponentFromControl

        @Deprecated
        public static String getDownloadQueryComponentFromControl​(String p_strQueryPrefix,
                                                                  String p_strControlGuid,
                                                                  String p_strRecId,
                                                                  String p_strFileId,
                                                                  Date p_dtLastModified)
        Deprecated.
        Since Intrexx 8.1.
        Parameters:
        p_strQueryPrefix - The query prefix. Result will be the concatenation of this prefix and the query component.
        p_strControlGuid - The control GUID (not null)-
        p_strRecId - The record id (not null)
        p_strFileId - The file id (could be null, than the first file will returned).
        p_dtLastModified - The last modify date (could be null, used for browser cache reasons).
        Returns:
        The download URL.
      • getDownloadUrl

        public static String getDownloadUrl​(de.uplanet.lucy.server.connector.IRequestProcessingContext p_ctx,
                                            String p_strGuid,
                                            de.uplanet.lucy.server.util.IVHFileAdapterDescriptor p_fileDescriptor)
        Parameters:
        p_ctx - The processing context
        p_strGuid - The control or adapter GUID.
        p_fileDescriptor - The file descriptor
        Returns:
        The download URL.
      • getDownloadUrl

        public static String getDownloadUrl​(de.uplanet.lucy.server.connector.IRequestProcessingContext p_ctx,
                                            String p_strGuid,
                                            de.uplanet.lucy.server.util.IVHFileAdapterDescriptor p_fileDescriptor,
                                            boolean p_bAsAttachment)
        Parameters:
        p_ctx - The processing context
        p_strGuid - The control or adapter GUID.
        p_fileDescriptor - The file descriptor
        p_bAsAttachment - Download link as attachment otherwise inline
        Returns:
        The download URL.
      • getDownloadUrl

        public static String getDownloadUrl​(de.uplanet.lucy.server.connector.IRequestProcessingContext p_ctx,
                                            String p_strGuid,
                                            String p_strRecId)
        Returns the first file.
        Parameters:
        p_ctx - The processing context
        p_strGuid - The control or adapter GUID.
        p_strRecId - The record id.
        Returns:
        The download URL.
      • getDownloadUrl

        public static String getDownloadUrl​(de.uplanet.lucy.server.connector.IRequestProcessingContext p_ctx,
                                            String p_strGuid,
                                            String p_strRecId,
                                            boolean p_bAttachment)
        Parameters:
        p_ctx - The processing context
        p_strGuid - The control or adapter GUID.
        p_strRecId - The record id.
        p_bAttachment - Download link as attachment otherwise inline
        Returns:
        The download URL.
      • getDownloadUrl

        public static String getDownloadUrl​(de.uplanet.lucy.server.connector.IRequestProcessingContext p_ctx,
                                            String p_strGuid,
                                            String p_strRecId,
                                            String p_strFileId)
        Parameters:
        p_ctx - The processing context
        p_strGuid - The control or adapter GUID.
        p_strRecId - The record id.
        p_strFileId - The file record id. If null the first file will be returned.
        Returns:
        The download URL.
      • getDownloadUrl

        public static String getDownloadUrl​(de.uplanet.lucy.server.connector.IRequestProcessingContext p_ctx,
                                            String p_strGuid,
                                            String p_strRecId,
                                            String p_strFileId,
                                            boolean p_bAsAttachment)
        Parameters:
        p_ctx - The processing context
        p_strGuid - The control or adapter GUID.
        p_strRecId - The record id.
        p_strFileId - The file record id. If null the first file will be returned.
        p_bAsAttachment - Download link as attachment otherwise inline
        Returns:
        The download URL.
      • getDownloadUrl

        public static String getDownloadUrl​(de.uplanet.lucy.server.connector.IRequestProcessingContext p_ctx,
                                            String p_strGuid,
                                            String p_strRecId,
                                            String p_strFileId,
                                            Date p_dtLastModified)
        Parameters:
        p_ctx - The processing context
        p_strGuid - The control or adapter GUID.
        p_strRecId - The record id.
        p_strFileId - The file record id. If null the first file will be returned.
        p_dtLastModified - The last modified date. (maybe required for browser cache reasons, could be null or a dummy date.)
        Returns:
        The download URL.
      • getDownloadUrl

        public static String getDownloadUrl​(de.uplanet.lucy.server.connector.IRequestProcessingContext p_ctx,
                                            String p_strGuid,
                                            String p_strRecId,
                                            String p_strFileId,
                                            Date p_dtLastModified,
                                            boolean p_bAsAttachment)
        Parameters:
        p_ctx - The processing context
        p_strGuid - The control or adapter GUID.
        p_strRecId - The record id.
        p_strFileId - The file record id. If null the first file will be returned.
        p_dtLastModified - The last modified date. (maybe required for browser cache reasons, could be null or a dummy date.)
        p_bAsAttachment - Download link as attachment otherwise inline
        Returns:
        The download URL.
      • getDownloadUrlFromAdapter

        public static String getDownloadUrlFromAdapter​(de.uplanet.lucy.server.connector.IRequestProcessingContext p_ctx,
                                                       String p_strAdapterGuid,
                                                       de.uplanet.lucy.server.util.IVHFileAdapterDescriptor p_fileDescriptor)
        Parameters:
        p_ctx - The processing context (not null)
        p_strAdapterGuid - The file field GUID (not null)
        p_fileDescriptor - The file descriptor (not null)
        Returns:
        Returns the download URL for the given file.
      • getDownloadUrlFromAdapter

        public static String getDownloadUrlFromAdapter​(de.uplanet.lucy.server.connector.IRequestProcessingContext p_ctx,
                                                       String p_strAdapterGuid,
                                                       String p_strRecId)
        Parameters:
        p_ctx - The processing context (not null)
        p_strAdapterGuid - The file field GUID (not null)
        p_strRecId - The record id (not null)
        Returns:
        Returns the download URL for the first file.
      • getDownloadUrlFromAdapter

        public static String getDownloadUrlFromAdapter​(de.uplanet.lucy.server.connector.IRequestProcessingContext p_ctx,
                                                       String p_strAdapterGuid,
                                                       String p_strRecId,
                                                       String p_strFileId)
        Parameters:
        p_ctx - The processing context (not null)
        p_strAdapterGuid - The file field GUID (not null)
        p_strRecId - The record id (not null)
        p_strFileId - The file id (not null)
        Returns:
        Returns the download URL for the given file.
      • getDownloadUrlFromAdapter

        public static String getDownloadUrlFromAdapter​(de.uplanet.lucy.server.connector.IRequestProcessingContext p_ctx,
                                                       String p_strAdapterGuid,
                                                       String p_strRecId,
                                                       String p_strFileId,
                                                       Date p_dtLastModified)
        Parameters:
        p_ctx - The processing context (not null)
        p_strAdapterGuid - The file field GUID (not null)
        p_strRecId - The record id (not null)
        p_strFileId - The file id (not null)
        p_dtLastModified - The last modified date (could be null), used for browser caching reasons.
        Returns:
        Returns the download URL for the given file.
      • getDownloadUrlFromControl

        public static String getDownloadUrlFromControl​(de.uplanet.lucy.server.connector.IRequestProcessingContext p_ctx,
                                                       String p_strControlGuid,
                                                       de.uplanet.lucy.server.util.IVHFileAdapterDescriptor p_fileDescriptor)
        Parameters:
        p_ctx - The processing context (not null)
        p_strControlGuid - The control GUID (not null)
        p_fileDescriptor - The file descriptor (not null)
        Returns:
        Returns the download URL for the given file.
      • getDownloadUrlFromControl

        public static String getDownloadUrlFromControl​(de.uplanet.lucy.server.connector.IRequestProcessingContext p_ctx,
                                                       String p_strControlGuid,
                                                       String p_strRecId)
        Parameters:
        p_ctx - The processing context (not null)
        p_strControlGuid - The control GUID (not null)
        p_strRecId - The record id, The first file will be returned).
        Returns:
        Returns the download URL.
      • getDownloadUrlFromControl

        public static String getDownloadUrlFromControl​(de.uplanet.lucy.server.connector.IRequestProcessingContext p_ctx,
                                                       String p_strControlGuid,
                                                       String p_strRecId,
                                                       String p_strFileId)
        Parameters:
        p_ctx - The processing context (not null)
        p_strControlGuid - The control GUID (not null)
        p_strRecId - The record id (not null)
        p_strFileId - The file id (could be null, if null than the URL for the first file will be returned)
        Returns:
        The download URL.
      • getDownloadUrlFromControl

        public static String getDownloadUrlFromControl​(de.uplanet.lucy.server.connector.IRequestProcessingContext p_ctx,
                                                       String p_strControlGuid,
                                                       String p_strRecId,
                                                       String p_strFileId,
                                                       Date p_dtLastModified)
        Parameters:
        p_ctx - The processing context (not null).
        p_strControlGuid - The control GUID (not null)-
        p_strRecId - The record id (not null)
        p_strFileId - The file id (could be null, than the first file will returned).
        p_dtLastModified - The last modify date (could be null, used for browser cache reasons).
        Returns:
        The download URL.
      • getImageDownloadQueryComponent

        @Deprecated
        public static String getImageDownloadQueryComponent​(String p_strQueryPrefix,
                                                            String p_strGuid,
                                                            de.uplanet.lucy.server.util.IVHFileAdapterDescriptor p_fileDescriptor,
                                                            de.uplanet.lucy.server.businesslogic.util.ImageMode p_imageMode)
        Deprecated.
        Since Intrexx 8.1.
        Parameters:
        p_strQueryPrefix - The query prefix. Result will be the concatenation of this prefix and the query component.
        p_strGuid - The file adapter GUID or a file control GUID. (not null)
        p_fileDescriptor - The file descriptor (not null)
        p_imageMode - The image scaling mode (could be null) (To create, use one of the method createImageMode(boolean), createImageMode(int, int, boolean, boolean, boolean) or createImageMode(int, int, boolean, boolean, int, boolean))
        Returns:
        The URL to the image
      • getImageDownloadQueryComponentFromAdapter

        @Deprecated
        public static String getImageDownloadQueryComponentFromAdapter​(String p_strQueryPrefix,
                                                                       String p_strAdapterGuid,
                                                                       de.uplanet.lucy.server.util.IVHFileAdapterDescriptor p_fileDescriptor,
                                                                       de.uplanet.lucy.server.businesslogic.util.ImageMode p_imageMode)
        Deprecated.
        Since Intrexx 8.1.
        Parameters:
        p_strQueryPrefix - The query prefix. Result will be the concatenation of this prefix and the query component.
        p_strAdapterGuid - The file adapter GUID. (not null)
        p_fileDescriptor - The file descriptor (not null)
        p_imageMode - The image scaling mode (could be null) (To create, use one of the method createImageMode(boolean), createImageMode(int, int, boolean, boolean, boolean) or createImageMode(int, int, boolean, boolean, int, boolean))
        Returns:
        The URL to the image
      • getImageDownloadQueryComponentFromAdapter

        @Deprecated
        public static String getImageDownloadQueryComponentFromAdapter​(String p_strQueryPrefix,
                                                                       String p_strAdapterGuid,
                                                                       String p_strRecId,
                                                                       de.uplanet.lucy.server.businesslogic.util.ImageMode p_imageMode,
                                                                       Date p_dtLastModified)
        Deprecated.
        Since Intrexx 8.1.
        Parameters:
        p_strQueryPrefix - The query prefix. Result will be the concatenation of this prefix and the query component.
        p_strAdapterGuid - The file adapter GUID. (not null)
        p_strRecId - The record id (not null)
        p_imageMode - The image scaling mode (could be null) (To create, use one of the method createImageMode(boolean), createImageMode(int, int, boolean, boolean, boolean) or createImageMode(int, int, boolean, boolean, int, boolean))
        p_dtLastModified - Used for browser caching reasons (could be null)
        Returns:
        The URL to the first image
      • getImageDownloadQueryComponentFromAdapter

        @Deprecated
        public static String getImageDownloadQueryComponentFromAdapter​(String p_strQueryPrefix,
                                                                       String p_strAdapterGuid,
                                                                       String p_strRecId,
                                                                       String p_strFiledId,
                                                                       de.uplanet.lucy.server.businesslogic.util.ImageMode p_imageMode,
                                                                       Date p_dtLastModified)
        Deprecated.
        Since Intrexx 8.1.
        Parameters:
        p_strQueryPrefix - The query prefix. Result will be the concatenation of this prefix and the query component.
        p_strAdapterGuid - The file adapter GUID. (not null)
        p_strRecId - The record id (not null)
        p_strFiledId - The file id (could be null) if null the first file will be returned.
        p_imageMode - The image scaling mode (could be null) (To create, use one of the method createImageMode(boolean), createImageMode(int, int, boolean, boolean, boolean) or createImageMode(int, int, boolean, boolean, int, boolean))
        Returns:
        The URL to the image
      • getImageDownloadQueryComponentFromControl

        @Deprecated
        public static String getImageDownloadQueryComponentFromControl​(String p_strQueryPrefix,
                                                                       String p_strControlGuid,
                                                                       String p_strRecId,
                                                                       String p_strFiledId,
                                                                       de.uplanet.lucy.server.businesslogic.util.ImageMode p_imageMode,
                                                                       Date p_dtLastModified)
        Deprecated.
        Since Intrexx 8.1.
        Parameters:
        p_strQueryPrefix - The query prefix. Result will be the concatenation of this prefix and the query component.
        p_strControlGuid - The control GUID (not null)
        p_strRecId - The record id (not null)
        p_strFiledId - The file id (could be null, if null the URL of the first image will returned)
        p_imageMode - The image mode (not null) (for creation @see createImageMode(boolean), createImageMode(int, int, boolean, boolean, boolean) or createImageMode(int, int, boolean, boolean, int, boolean)
        p_dtLastModified - The last modified date (could be null, used for browser caching reasons).
        Returns:
        Returns the image URL.
      • getImageDownloadUrlFromAdapter

        public static String getImageDownloadUrlFromAdapter​(de.uplanet.lucy.server.connector.IRequestProcessingContext p_ctx,
                                                            String p_strAdapterGuid,
                                                            de.uplanet.lucy.server.util.IVHFileAdapterDescriptor p_fileDescriptor,
                                                            de.uplanet.lucy.server.businesslogic.util.ImageMode p_imageMode)
        Parameters:
        p_ctx - The processing context (not null)
        p_strAdapterGuid - The file adapter GUID. (not null)
        p_fileDescriptor - The file descriptor (not null)
        p_imageMode - The image scaling mode (could be null) (To create, use one of the method createImageMode(boolean), createImageMode(int, int, boolean, boolean, boolean) or createImageMode(int, int, boolean, boolean, int, boolean))
        Returns:
        The URL to the image
      • getImageDownloadUrlFromControl

        public static String getImageDownloadUrlFromControl​(de.uplanet.lucy.server.connector.IRequestProcessingContext p_ctx,
                                                            String p_strControlGuid,
                                                            String p_strRecId,
                                                            String p_strFiledId,
                                                            de.uplanet.lucy.server.businesslogic.util.ImageMode p_imageMode,
                                                            Date p_dtLastModified)
        Parameters:
        p_ctx - The processing context (not null)
        p_strControlGuid - The control GUID (not null)
        p_strRecId - The record id (not null)
        p_strFiledId - The file id (could be null, if null the URL of the first image will returned)
        p_imageMode - The image mode (not null) (for creation @see createImageMode(boolean), createImageMode(int, int, boolean, boolean, boolean) or createImageMode(int, int, boolean, boolean, int, boolean)
        p_dtLastModified - The last modified date (could be null, used for browser caching reasons).
        Returns:
        Returns the image URL.
      • getFileWalkerDownloadUrl

        public static String getFileWalkerDownloadUrl​(de.uplanet.lucy.server.connector.IRequestProcessingContext p_ctx,
                                                      String p_strGuid,
                                                      String p_strServerRootPath,
                                                      String p_strFile)
                                               throws IOException
        Throws:
        IOException