Class GroovyFileUrlBuilder
java.lang.Object
de.uplanet.lucy.server.businesslogic.util.scriptable.GroovyFileUrlBuilder
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetDownloadQueryComponent(String p_strQueryPrefix, String p_strGuid, IVHFileAdapterDescriptor p_fileDescriptor) Deprecated.Since Intrexx 9.5.static StringgetDownloadQueryComponent(String p_strQueryPrefix, String p_strGuid, IVHFileAdapterDescriptor p_fileDescriptor, boolean p_bAsAttachment) Deprecated.Since Intrexx 9.5.static StringgetDownloadQueryComponent(String p_strQueryPrefix, String p_strGuid, String p_strRecId) Deprecated.Since Intrexx 9.5.static StringgetDownloadQueryComponent(String p_strQueryPrefix, String p_strGuid, String p_strRecId, boolean p_bAttachment) Deprecated.Since Intrexx 9.5.static StringgetDownloadQueryComponent(String p_strQueryPrefix, String p_strGuid, String p_strRecId, String p_strFileId) Deprecated.Since Intrexx 9.5.static StringgetDownloadQueryComponent(String p_strQueryPrefix, String p_strGuid, String p_strRecId, String p_strFileId, boolean p_bAsAttachment) Deprecated.Since Intrexx 9.5.static StringgetDownloadQueryComponent(String p_strQueryPrefix, String p_strGuid, String p_strRecId, String p_strFileId, Date p_lastModified) Deprecated.Since Intrexx 9.5.static StringgetDownloadQueryComponent(String p_strQueryPrefix, String p_strGuid, String p_strRecId, String p_strFileId, Date p_lastModified, boolean p_bAsAttachment) Deprecated.Since Intrexx 9.5.static StringgetDownloadUrl(IRequestProcessingContext p_ctx, String p_strGuid, IVHFileAdapterDescriptor p_fileDescriptor) static StringgetDownloadUrl(IRequestProcessingContext p_ctx, String p_strGuid, IVHFileAdapterDescriptor p_fileDescriptor, boolean p_bAsAttachment) static StringgetDownloadUrl(IRequestProcessingContext p_ctx, String p_strGuid, String p_strRecId) Returns the first file.static StringgetDownloadUrl(IRequestProcessingContext p_ctx, String p_strGuid, String p_strRecId, boolean p_bAttachment) static StringgetDownloadUrl(IRequestProcessingContext p_ctx, String p_strGuid, String p_strRecId, String p_strFileId) static StringgetDownloadUrl(IRequestProcessingContext p_ctx, String p_strGuid, String p_strRecId, String p_strFileId, boolean p_bAsAttachment) static StringgetDownloadUrl(IRequestProcessingContext p_ctx, String p_strGuid, String p_strRecId, String p_strFileId, Date p_lastModified) static StringgetDownloadUrl(IRequestProcessingContext p_ctx, String p_strGuid, String p_strRecId, String p_strFileId, Date p_lastModified, boolean p_bAsAttachment)
-
Method Details
-
getDownloadUrl
public static String getDownloadUrl(IRequestProcessingContext p_ctx, String p_strGuid, 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, 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, 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, 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. Ifnullthe first file will be returned.p_lastModified- The last modified date. (maybe required for browser cache reasons, could benullor 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. Ifnullthe first file will be returned.p_lastModified- The last modified date. (maybe required for browser cache reasons, could benullor 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. Ifnullthe first file will be returned.p_lastModified- The last modified date. (maybe required for browser cache reasons, could benullor 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. Ifnullthe first file will be returned.p_lastModified- The last modified date. (maybe required for browser cache reasons, could benullor 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. Ifnullthe 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. Ifnullthe 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. Ifnullthe 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. Ifnullthe 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.
-