Class ODataFileUtil


  • @Scriptable
    public final class ODataFileUtil
    extends Object
    Utility class for copying files between Intrexx datagroups via Intrexx OData Provider services.
    • Method Detail

      • receiveFilesFromOData

        public static void receiveFilesFromOData​(IProcessingContext p_ctx,
                                                 String p_strConsumerServiceName,
                                                 String p_strSourceFileFieldGuid,
                                                 String p_strSourceRecId,
                                                 String p_strTargetFileFieldGuid,
                                                 String p_strTargetRecId,
                                                 boolean p_bReplace,
                                                 String p_strImpersonationGuid,
                                                 boolean p_bUseStream)
                                          throws de.uplanet.lucy.server.odata.ODataException
        Receives all files from a remote Intrexx datagroup file field to a local Intrexx data group file field. This operation is only supported with Intrexx provided OData services.
        Parameters:
        p_ctx - The context.
        p_strConsumerServiceName - The name of the OData consumer service.
        p_strSourceFileFieldGuid - The remote source file field GUID.
        p_strSourceRecId - The remote source record ID.
        p_strTargetFileFieldGuid - The target file field GUID.
        p_strTargetRecId - The target record ID.
        p_bReplace - true, if existing files should be replaced.
        p_strImpersonationGuid - The impersonation user GUID or null for the current user.
        p_bUseStream - true, if file should be copied by stream.
        Throws:
        de.uplanet.lucy.server.odata.ODataException - If operation failed.
      • receiveFileFromOData

        public static void receiveFileFromOData​(IProcessingContext p_ctx,
                                                String p_strConsumerServiceName,
                                                String p_strSourceFileFieldGuid,
                                                String p_strSourceRecId,
                                                String p_strSourceFileId,
                                                String p_strTargetFileFieldGuid,
                                                String p_strTargetRecId,
                                                boolean p_bReplace,
                                                String p_strImpersonationGuid,
                                                boolean p_bUseStream)
                                         throws de.uplanet.lucy.server.odata.ODataException
        Receives a single file from a remote Intrexx datagroup file field to a local Intrexx data group file field. This operation is only supported with Intrexx provided OData services.
        Parameters:
        p_ctx - The context.
        p_strConsumerServiceName - The name of the OData consumer service.
        p_strSourceFileFieldGuid - The remote source file field GUID.
        p_strSourceRecId - The remote source record ID.
        p_strSourceFileId - The remote source file ID.
        p_strTargetFileFieldGuid - The target file field GUID.
        p_strTargetRecId - The target record ID.
        p_bReplace - true, if existing files should be replaced.
        p_strImpersonationGuid - The impersonation user GUID or null for the current user.
        p_bUseStream - true, if file should be copied by stream.
        Throws:
        de.uplanet.lucy.server.odata.ODataException - If operation failed.
      • sendFilesToOData

        public static void sendFilesToOData​(IProcessingContext p_ctx,
                                            String p_strConsumerServiceName,
                                            String p_strSourceFileFieldGuid,
                                            String p_strSourceRecId,
                                            de.uplanet.lucy.server.util.IVHFileDescriptors p_fileDescriptors,
                                            String p_strTargetFileFieldGuid,
                                            String p_strTargetRecId,
                                            String p_strActionMode,
                                            String p_strImpersonationGuid)
                                     throws de.uplanet.lucy.server.odata.ODataException
        Sends all file from a local Intrexx datagroup file field to a remote datagroup file field via OData. This operation is only supported with Intrexx provided OData services.
        Parameters:
        p_ctx - The context.
        p_strConsumerServiceName - The name of the OData consumer service.
        p_strSourceFileFieldGuid - The source file field GUID.
        p_strSourceRecId - The source record ID.
        p_strTargetFileFieldGuid - The remote Intrexx target file field GUID.
        p_strTargetRecId - The remote Intrexx target record ID.
        p_strActionMode - The file action mode (either 'merge' or 'replace').
        p_strImpersonationGuid - The impersonation user GUID or null for the current user.
        Throws:
        de.uplanet.lucy.server.odata.ODataException - If operation failed.
      • sendFileToOData

        public static void sendFileToOData​(IProcessingContext p_ctx,
                                           String p_strConsumerServiceName,
                                           String p_strSourceFileFieldGuid,
                                           String p_strSourceRecId,
                                           String p_strSourceFileId,
                                           String p_strTargetFileFieldGuid,
                                           String p_strTargetRecId,
                                           String p_strActionMode,
                                           String p_strImpersonationGuid)
                                    throws de.uplanet.lucy.server.odata.ODataException
        Sends a file from a local Intrexx datagroup file field to a remote datagroup file field via OData. This operation is only supported with Intrexx provided OData services.
        Parameters:
        p_ctx - The context.
        p_strConsumerServiceName - The name of the OData consumer service.
        p_strSourceFileFieldGuid - The source file field GUID.
        p_strSourceRecId - The source record ID.
        p_strTargetFileFieldGuid - The remote Intrexx target file field GUID.
        p_strTargetRecId - The remote Intrexx target record ID.
        p_strActionMode - The file action mode (either 'merge' or 'replace').
        p_strImpersonationGuid - The impersonation user GUID or null for the current user.
        Throws:
        de.uplanet.lucy.server.odata.ODataException - If operation failed.
      • sendFileToOData

        public static void sendFileToOData​(String p_strConsumerServiceName,
                                           File p_file,
                                           String p_strTargetFileFieldGuid,
                                           String p_strTargetRecId,
                                           String p_strActionMode,
                                           String p_strImpersonationGuid)
                                    throws de.uplanet.lucy.server.odata.ODataException
        Sends a file to an OData datagroup file field. This operation is only supported with Intrexx provided OData services.
        Parameters:
        p_strConsumerServiceName - TThe name of the OData consumer service.
        p_file - The file.
        p_strTargetFileFieldGuid - p_strTargetFileFieldGuid The target file field GUID.
        p_strTargetRecId - The target record ID.
        p_strActionMode - The file action mode (either 'merge' or 'replace').
        p_strImpersonationGuid - The impersonation user GUID or null for the current user.
        Throws:
        de.uplanet.lucy.server.odata.ODataException - If operation failed.