de.uplanet.lucy.server.businesslogic.util
Class FileUCHelper

java.lang.Object
  extended by de.uplanet.lucy.server.businesslogic.util.FileUCHelper

@Scriptable
public final class FileUCHelper
extends Object

Version:
$Revision: 107118 $

Method Summary
static File copyFileToIntrexx(IProcessingContext p_ctx, File p_fileSrc, String p_strFieldGuid, Object p_recId, boolean p_bTriggerWorkflow)
           
static File copyFileToIntrexx(IProcessingContext p_ctx, File p_fileSrc, String p_strFieldGuid, Object p_recId, String p_strDestFileName, boolean p_bTriggerWorkflow)
           
static File copyFileToIntrexx(IProcessingContext p_ctx, File p_fileSrc, String p_strFieldGuid, Object p_recId, String p_strDestFileName, String p_strContentType, boolean p_bTriggerWorkflow)
           
static File copyFileToIntrexx(IProcessingContext p_ctx, String p_strSrcFile, String p_strFieldGuid, Object p_recId, boolean p_bTriggerWorkflow)
           
static File copyFileToIntrexx(IProcessingContext p_ctx, String p_strSrcFile, String p_strFieldGuid, Object p_recId, String p_strDestFileName, boolean p_bTriggerWorkflow)
           
static File copyFileToIntrexx(IProcessingContext p_ctx, String p_strSrcFile, String p_strFieldGuid, Object p_recId, String p_strDestFileName, String p_strContentType, boolean p_bTriggerWorkflow)
           
static void deleteFileFromIntrexx(IProcessingContext p_ctx, String p_strFieldGuid, Object p_recId)
           
static IFileValueHolder getFileValueHolder(IProcessingContext p_ctx, String p_strFieldGuid, Object p_recId)
           
static File moveFileToIntrexx(IProcessingContext p_ctx, File p_fileSrc, String p_strFieldGuid, Object p_recId, boolean p_bTriggerWorkflow)
           
static File moveFileToIntrexx(IProcessingContext p_ctx, File p_fileSrc, String p_strFieldGuid, Object p_recId, String p_strDestFileName, boolean p_bTriggerWorkflow)
           
static File moveFileToIntrexx(IProcessingContext p_ctx, File p_fileSrc, String p_strFieldGuid, Object p_recId, String p_strDestFileName, String p_strContentType, boolean p_bTriggerWorkflow)
           
static File moveFileToIntrexx(IProcessingContext p_ctx, String p_strSrcFile, String p_strFieldGuid, Object p_recId, boolean p_bTriggerWorkflow)
           
static File moveFileToIntrexx(IProcessingContext p_ctx, String p_strSrcFile, String p_strFieldGuid, Object p_recId, String p_strDestFileName, boolean p_bTriggerWorkflow)
           
static File moveFileToIntrexx(IProcessingContext p_ctx, String p_strSrcFile, String p_strFieldGuid, Object p_recId, String p_strDestFileName, String p_strContentType, boolean p_bTriggerWorkflow)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

copyFileToIntrexx

public static File copyFileToIntrexx(IProcessingContext p_ctx,
                                     String p_strSrcFile,
                                     String p_strFieldGuid,
                                     Object p_recId,
                                     boolean p_bTriggerWorkflow)
                              throws Exception
Parameters:
p_ctx - The processing context.
p_strSrcFile - The source file.
p_strFieldGuid - The file data field GUID.
p_recId - The record ID.
p_bTriggerWorkflow - true if workflows should be triggered on change, or false otherwise.
Returns:
The copied file.
Throws:
Exception - If an error occurred.

copyFileToIntrexx

public static File copyFileToIntrexx(IProcessingContext p_ctx,
                                     File p_fileSrc,
                                     String p_strFieldGuid,
                                     Object p_recId,
                                     boolean p_bTriggerWorkflow)
                              throws Exception
Parameters:
p_ctx - The processing context.
p_fileSrc - The source file.
p_strFieldGuid - The file data field GUID.
p_recId - The record ID.
p_bTriggerWorkflow - true if workflows should be triggered on change, or false otherwise.
Returns:
The copied file.
Throws:
Exception - If an error occurred.

copyFileToIntrexx

public static File copyFileToIntrexx(IProcessingContext p_ctx,
                                     String p_strSrcFile,
                                     String p_strFieldGuid,
                                     Object p_recId,
                                     String p_strDestFileName,
                                     boolean p_bTriggerWorkflow)
                              throws Exception
Parameters:
p_ctx - The processing context.
p_strSrcFile - The source file.
p_strFieldGuid - The file data field GUID.
p_recId - The record ID.
p_strDestFileName - The destination file name.
p_bTriggerWorkflow - true if workflows should be triggered on change, or false otherwise.
Returns:
The copied file.
Throws:
Exception - If an error occurred.

copyFileToIntrexx

public static File copyFileToIntrexx(IProcessingContext p_ctx,
                                     File p_fileSrc,
                                     String p_strFieldGuid,
                                     Object p_recId,
                                     String p_strDestFileName,
                                     boolean p_bTriggerWorkflow)
                              throws Exception
Parameters:
p_ctx - The processing context.
p_fileSrc - The source file.
p_strFieldGuid - The file data field GUID.
p_recId - The record ID.
p_strDestFileName - The destination file name.
p_bTriggerWorkflow - true if workflows should be triggered on change, or false otherwise.
Returns:
The copied file.
Throws:
Exception - If an error occurred.

copyFileToIntrexx

public static File copyFileToIntrexx(IProcessingContext p_ctx,
                                     String p_strSrcFile,
                                     String p_strFieldGuid,
                                     Object p_recId,
                                     String p_strDestFileName,
                                     String p_strContentType,
                                     boolean p_bTriggerWorkflow)
                              throws Exception
Parameters:
p_ctx - The processing context.
p_strSrcFile - The source file.
p_strFieldGuid - The file data field GUID.
p_recId - The record ID.
p_strDestFileName - The destination file name.
p_strContentType - The file content type.
p_bTriggerWorkflow - true if workflows should be triggered on change, or false otherwise.
Returns:
The copied file.
Throws:
Exception - If an error occurred.

copyFileToIntrexx

public static File copyFileToIntrexx(IProcessingContext p_ctx,
                                     File p_fileSrc,
                                     String p_strFieldGuid,
                                     Object p_recId,
                                     String p_strDestFileName,
                                     String p_strContentType,
                                     boolean p_bTriggerWorkflow)
                              throws Exception
Parameters:
p_ctx - The processing context.
p_fileSrc - The source file.
p_strFieldGuid - The file data field GUID.
p_recId - The record ID.
p_strDestFileName - The destination file name.
p_strContentType - The file content type.
p_bTriggerWorkflow - true if workflows should be triggered on change, or false otherwise.
Returns:
The copied file.
Throws:
Exception - If an error occurred.

moveFileToIntrexx

public static File moveFileToIntrexx(IProcessingContext p_ctx,
                                     String p_strSrcFile,
                                     String p_strFieldGuid,
                                     Object p_recId,
                                     boolean p_bTriggerWorkflow)
                              throws Exception
Parameters:
p_ctx - The processing context.
p_strSrcFile - The source file.
p_strFieldGuid - The file data field GUID.
p_recId - The record ID.
p_bTriggerWorkflow - true if workflows should be triggered on change, or false otherwise.
Returns:
The moved file.
Throws:
Exception - If an error occurred.

moveFileToIntrexx

public static File moveFileToIntrexx(IProcessingContext p_ctx,
                                     File p_fileSrc,
                                     String p_strFieldGuid,
                                     Object p_recId,
                                     boolean p_bTriggerWorkflow)
                              throws Exception
Parameters:
p_ctx - The processing context.
p_fileSrc - The source file.
p_strFieldGuid - The file data field GUID.
p_recId - The record ID.
p_bTriggerWorkflow - true if workflows should be triggered on change, or false otherwise.
Returns:
The moved file.
Throws:
Exception - If an error occurred.

moveFileToIntrexx

public static File moveFileToIntrexx(IProcessingContext p_ctx,
                                     String p_strSrcFile,
                                     String p_strFieldGuid,
                                     Object p_recId,
                                     String p_strDestFileName,
                                     boolean p_bTriggerWorkflow)
                              throws Exception
Parameters:
p_ctx - The processing context.
p_strSrcFile - The source file.
p_strFieldGuid - The file data field GUID.
p_recId - The record ID.
p_strDestFileName - The destination file name.
p_bTriggerWorkflow - true if workflows should be triggered on change, or false otherwise.
Returns:
The moved file.
Throws:
Exception - If an error occurred.

moveFileToIntrexx

public static File moveFileToIntrexx(IProcessingContext p_ctx,
                                     File p_fileSrc,
                                     String p_strFieldGuid,
                                     Object p_recId,
                                     String p_strDestFileName,
                                     boolean p_bTriggerWorkflow)
                              throws Exception
Parameters:
p_ctx - The processing context.
p_fileSrc - The source file.
p_strFieldGuid - The file data field GUID.
p_recId - The record ID.
p_strDestFileName - The destination file name.
p_bTriggerWorkflow - true if workflows should be triggered on change, or false otherwise.
Returns:
The moved file.
Throws:
Exception - If an error occurred.

moveFileToIntrexx

public static File moveFileToIntrexx(IProcessingContext p_ctx,
                                     String p_strSrcFile,
                                     String p_strFieldGuid,
                                     Object p_recId,
                                     String p_strDestFileName,
                                     String p_strContentType,
                                     boolean p_bTriggerWorkflow)
                              throws Exception
Parameters:
p_ctx - The processing context.
p_strSrcFile - The source file.
p_strFieldGuid - The field GUID.
p_recId - The record ID.
p_strDestFileName - The destination file name.
p_strContentType - The content type.
p_bTriggerWorkflow - true if workflows should be triggered on change, or false otherwise.
Returns:
The moved file.
Throws:
Exception

moveFileToIntrexx

public static File moveFileToIntrexx(IProcessingContext p_ctx,
                                     File p_fileSrc,
                                     String p_strFieldGuid,
                                     Object p_recId,
                                     String p_strDestFileName,
                                     String p_strContentType,
                                     boolean p_bTriggerWorkflow)
                              throws Exception
Parameters:
p_ctx - The processing context.
p_fileSrc - The source file.
p_strFieldGuid - The field GUID.
p_recId - The record ID.
p_strDestFileName - The destination file name.
p_strContentType - The content type.
p_bTriggerWorkflow - true if workflows should be triggered on change, or false otherwise.
Returns:
The moved file.
Throws:
Exception - If an error occurred.

deleteFileFromIntrexx

public static void deleteFileFromIntrexx(IProcessingContext p_ctx,
                                         String p_strFieldGuid,
                                         Object p_recId)
                                  throws Exception
Parameters:
p_ctx - The processing context.
p_strFieldGuid - The file field GUID.
p_recId - The record GUID.
Throws:
Exception - If an error occurred.

getFileValueHolder

public static IFileValueHolder getFileValueHolder(IProcessingContext p_ctx,
                                                  String p_strFieldGuid,
                                                  Object p_recId)
                                           throws Exception
Parameters:
p_ctx - The processing context.
p_strFieldGuid - The data field GUID.
p_recId - The record ID.
Returns:
A file value holder (could be null).
Throws:
Exception - If an error occurred.