Class GroovyFileUrlBuilder
- java.lang.Object
-
- de.uplanet.lucy.server.businesslogic.util.scriptable.GroovyFileUrlBuilder
-
@Scriptable public final class GroovyFileUrlBuilder extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static String
getDownloadQueryComponent(String p_strQueryPrefix, String p_strGuid, de.uplanet.lucy.server.util.IVHFileAdapterDescriptor p_fileDescriptor)
Deprecated.Since Intrexx 9.5.static String
getDownloadQueryComponent(String p_strQueryPrefix, String p_strGuid, de.uplanet.lucy.server.util.IVHFileAdapterDescriptor p_fileDescriptor, boolean p_bAsAttachment)
Deprecated.Since Intrexx 9.5.static String
getDownloadQueryComponent(String p_strQueryPrefix, String p_strGuid, String p_strRecId)
Deprecated.Since Intrexx 9.5.static String
getDownloadQueryComponent(String p_strQueryPrefix, String p_strGuid, String p_strRecId, boolean p_bAttachment)
Deprecated.Since Intrexx 9.5.static String
getDownloadQueryComponent(String p_strQueryPrefix, String p_strGuid, String p_strRecId, String p_strFileId)
Deprecated.Since Intrexx 9.5.static String
getDownloadQueryComponent(String p_strQueryPrefix, String p_strGuid, String p_strRecId, String p_strFileId, boolean p_bAsAttachment)
Deprecated.Since Intrexx 9.5.static String
getDownloadQueryComponent(String p_strQueryPrefix, String p_strGuid, String p_strRecId, String p_strFileId, Date p_lastModified)
Deprecated.Since Intrexx 9.5.static String
getDownloadQueryComponent(String p_strQueryPrefix, String p_strGuid, String p_strRecId, String p_strFileId, Date p_lastModified, boolean p_bAsAttachment)
Deprecated.Since Intrexx 9.5.static String
getDownloadUrl(IRequestProcessingContext p_ctx, String p_strGuid, de.uplanet.lucy.server.util.IVHFileAdapterDescriptor p_fileDescriptor)
static String
getDownloadUrl(IRequestProcessingContext p_ctx, String p_strGuid, de.uplanet.lucy.server.util.IVHFileAdapterDescriptor p_fileDescriptor, boolean p_bAsAttachment)
static String
getDownloadUrl(IRequestProcessingContext p_ctx, String p_strGuid, String p_strRecId)
Returns the first file.static String
getDownloadUrl(IRequestProcessingContext p_ctx, String p_strGuid, String p_strRecId, boolean p_bAttachment)
static String
getDownloadUrl(IRequestProcessingContext p_ctx, String p_strGuid, String p_strRecId, String p_strFileId)
static String
getDownloadUrl(IRequestProcessingContext p_ctx, String p_strGuid, String p_strRecId, String p_strFileId, boolean p_bAsAttachment)
static String
getDownloadUrl(IRequestProcessingContext p_ctx, String p_strGuid, String p_strRecId, String p_strFileId, Date p_lastModified)
static String
getDownloadUrl(IRequestProcessingContext p_ctx, String p_strGuid, String p_strRecId, String p_strFileId, Date p_lastModified, boolean p_bAsAttachment)
-
-
-
Method Detail
-
getDownloadUrl
public static String getDownloadUrl(IRequestProcessingContext p_ctx, String p_strGuid, de.uplanet.lucy.server.util.IVHFileAdapterDescriptor p_fileDescriptor)
- Parameters:
p_ctx
- The processing contextp_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)
Deprecated.Since Intrexx 9.5.- 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.
-
getDownloadUrl
public static String getDownloadUrl(IRequestProcessingContext p_ctx, String p_strGuid, de.uplanet.lucy.server.util.IVHFileAdapterDescriptor p_fileDescriptor, boolean p_bAsAttachment)
- Parameters:
p_ctx
- The processing contextp_strGuid
- The control or adapter GUID.p_fileDescriptor
- The file descriptorp_bAsAttachment
- Download link as attachment otherwise inline- 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 9.5.- 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 descriptorp_bAsAttachment
- Download link as attachment otherwise inline- Returns:
- The download URL.
-
getDownloadUrl
public static String getDownloadUrl(IRequestProcessingContext p_ctx, String p_strGuid, String p_strRecId, String p_strFileId, Date p_lastModified)
- Parameters:
p_ctx
- The processing contextp_strGuid
- The control or adapter GUID.p_strRecId
- The record id.p_strFileId
- The file record id. Ifnull
the first file will be returned.p_lastModified
- The last modified date. (maybe required for browser cache reasons, could benull
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_lastModified)
Deprecated.Since Intrexx 9.5.- 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. Ifnull
the first file will be returned.p_lastModified
- The last modified date. (maybe required for browser cache reasons, could benull
or a dummy date.)- Returns:
- The download URL.
-
getDownloadUrl
public static String getDownloadUrl(IRequestProcessingContext p_ctx, String p_strGuid, String p_strRecId, String p_strFileId, Date p_lastModified, boolean p_bAsAttachment)
- Parameters:
p_ctx
- The processing contextp_strGuid
- The control or adapter GUID.p_strRecId
- The record id.p_strFileId
- The file record id. Ifnull
the first file will be returned.p_lastModified
- The last modified date. (maybe required for browser cache reasons, could benull
or a dummy date.)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_lastModified, boolean p_bAsAttachment)
Deprecated.Since Intrexx 9.5.- 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. Ifnull
the first file will be returned.p_lastModified
- The last modified date. (maybe required for browser cache reasons, could benull
or a dummy date.)p_bAsAttachment
- Download link as attachment otherwise inline- Returns:
- The download URL.
-
getDownloadUrl
public static String getDownloadUrl(IRequestProcessingContext p_ctx, String p_strGuid, String p_strRecId, String p_strFileId)
- Parameters:
p_ctx
- The processing contextp_strGuid
- The control or adapter GUID.p_strRecId
- The record id.p_strFileId
- The file record id. Ifnull
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)
Deprecated.Since Intrexx 9.5.- 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. Ifnull
the first file will be returned.- Returns:
- The download URL.
-
getDownloadUrl
public static String getDownloadUrl(IRequestProcessingContext p_ctx, String p_strGuid, String p_strRecId, String p_strFileId, boolean p_bAsAttachment)
- Parameters:
p_ctx
- The processing contextp_strGuid
- The control or adapter GUID.p_strRecId
- The record id.p_strFileId
- The file record id. Ifnull
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, boolean p_bAsAttachment)
Deprecated.Since Intrexx 9.5.- 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. Ifnull
the first file will be returned.p_bAsAttachment
- Download link as attachment otherwise inline.- Returns:
- The download URL.
-
getDownloadUrl
public static String getDownloadUrl(IRequestProcessingContext p_ctx, String p_strGuid, String p_strRecId)
Returns the first file.- Parameters:
p_ctx
- The processing contextp_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)
Deprecated.Since Intrexx 9.5.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.
-
getDownloadUrl
public static String getDownloadUrl(IRequestProcessingContext p_ctx, String p_strGuid, String p_strRecId, boolean p_bAttachment)
- Parameters:
p_ctx
- The processing contextp_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, boolean p_bAttachment)
Deprecated.Since Intrexx 9.5.- 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.
-
-