Harmon.ie SDK








Loading…
Searching…
No Matches

Harmonie.SDK.UploadOperationHandler Class Reference

This class changes the harmon.ie upload behavior.

More…

Inheritance diagram for Harmonie.SDK.UploadOperationHandler:

Harmonie.SDK.IUploadOperationHandler AutoPDFSave.AutoPDFSave MsgToEmlPlugin.MsgToEmlPlugin RestoreFromEVaultAndSave.RestoreFromEVaultAndSave TopicsAddIn.TopicsManager


Public Member Functions

virtual voidย  init (ISidebar sidebar, bool isMulti)
ย  Initialize the plugin with the sidebar context.
ย 
virtual boolย  onBeforeUpload (IWrappedList items)
ย  This method is called before starting to upload all the items to SharePoint. This is the recommended entry point for changing the upload behavior. In order to rename the document, you must implement this method.
ย 
virtual UploadActionย  onBeforeUpload (IUploadItemData single)
ย  This method is called for each uploaded item, before it is uploaded to SharePoint. Implement this method for specific item manipulating, for example, displaying a specific UI for each item.
ย 
virtual voidย  onAfterUpload (IWrappedList items, bool uploadCancelled)
ย  This method is called after uploading all the items to SharePoint. It is recommended to implement this method for cleanup.
ย 
virtual voidย  onAfterUpload (IUploadItemData single, UploadAction res)
ย  This method is called for each uploaded item, after it is uploaded to SharePoint. Implement this method if you want to change the metadata of successfully-uploaded items.
ย 
-ย Public Member Functions inherited from Harmonie.SDK.IUploadOperationHandler


Properties


ISidebarย 
Sidebar [get]
ย  Returns the sidebar object.
ย 

boolย 
IsMultiUpload [get]
ย  Are we uploading one or multiple items.
ย 

Detailed Description

This class changes the harmon.ie upload behavior.

Member Function Documentation

โ—†ย init()

virtual void Harmonie.SDK.UploadOperationHandler.init ( ISidebar sidebar,
bool isMultiย )
inlinevirtual

Initialize the plugin with the sidebar context.

Parameters
sidebar The sidebar object
isMulti Are we uploading one or multiple items

Implements Harmonie.SDK.IUploadOperationHandler.

Reimplemented in AutoPDFSave.AutoPDFSave, and TopicsAddIn.TopicsManager.

โ—†ย onAfterUpload() [1/2]

virtual void Harmonie.SDK.UploadOperationHandler.onAfterUpload ( IUploadItemData single,
UploadAction resย )
inlinevirtual

This method is called for each uploaded item, after it is uploaded to SharePoint. Implement this method if you want to change the metadata of successfully-uploaded items.

Parameters
items IUploadItemData item that was actually uploaded to SharePoint
uploadCancelled Indicates whether the upload process was cancelled before this method was called

Implements Harmonie.SDK.IUploadOperationHandler.

โ—†ย onAfterUpload() [2/2]

virtual void Harmonie.SDK.UploadOperationHandler.onAfterUpload ( IWrappedList items,
bool uploadCancelledย )
inlinevirtual

This method is called after uploading all the items to SharePoint. It is recommended to implement this method for cleanup.

Parameters
items List of IUploadItemData items that were actually uploaded to SharePoint
uploadCancelled Indicates whether the upload process was cancelled before this method was called

Implements Harmonie.SDK.IUploadOperationHandler.

Reimplemented in MsgToEmlPlugin.MsgToEmlPlugin.

โ—†ย onBeforeUpload() [1/2]

virtual UploadAction Harmonie.SDK.UploadOperationHandler.onBeforeUpload ( IUploadItemData single )
inlinevirtual

This method is called for each uploaded item, before it is uploaded to SharePoint. Implement this method for specific item manipulating, for example, displaying a specific UI for each item.

Parameters
single IUploadItemData item that is to be uploaded to SharePoint
Returns
false if upload process must be cancelled, true – otherwise

Implements Harmonie.SDK.IUploadOperationHandler.

Reimplemented in AutoPDFSave.AutoPDFSave, and TopicsAddIn.TopicsManager.

โ—†ย onBeforeUpload() [2/2]

virtual bool Harmonie.SDK.UploadOperationHandler.onBeforeUpload ( IWrappedList items )
inlinevirtual

This method is called before starting to upload all the items to SharePoint. This is the recommended entry point for changing the upload behavior. In order to rename the document, you must implement this method.

Parameters
items List of IUploadItemData items that are to be uploaded to SharePoint
Returns
false if upload process must be cancelled, true – otherwise

Implements Harmonie.SDK.IUploadOperationHandler.

Reimplemented in AutoPDFSave.AutoPDFSave, MsgToEmlPlugin.MsgToEmlPlugin, and RestoreFromEVaultAndSave.RestoreFromEVaultAndSave.


The documentation for this class was generated from the following file:

  • src/Harmonie/SDK/UploadOperationHandler.cs