Class AttachmentHelper
Utility class for attachments helper methods.
Inheritance
AttachmentHelper
Assembly: SoDataBase.dll
Syntax
public static class AttachmentHelper
Methods
AddAttachmentsToMessage(int, int[])
Utility class for attachments helper methods.
Declaration
public static void AddAttachmentsToMessage(int ejMessageId, int[] attachmentIds)
Parameters
Type |
Name |
Description |
int |
ejMessageId |
|
int[] |
attachmentIds |
|
AddAttachmentsToMessage2(int, int[])
TicketAgentImplementation::AddAttachments
Declaration
public static void AddAttachmentsToMessage2(int ejMessageId, int[] attachmentIds)
Parameters
Type |
Name |
Description |
int |
ejMessageId |
|
int[] |
attachmentIds |
|
Exceptions
DeleteAttachment(int)
Deletes attachment from attachment table and from disk. It will NOT delete the link between the attachment and ticket, kb entry etc.
Declaration
public static void DeleteAttachment(int attachmentId)
Parameters
Type |
Name |
Description |
int |
attachmentId |
Id of attachment to delete
|
GetAttachmentCount(params int[])
Utility class for attachments helper methods.
Declaration
public static int GetAttachmentCount(params int[] ticketIds)
Parameters
Type |
Name |
Description |
int[] |
ticketIds |
|
Returns
GetDefaultAttachmentLocationId()
Utility class for attachments helper methods.
Declaration
public static int GetDefaultAttachmentLocationId()
Returns
HasAttachmentAccess(int, EFieldRight)
Utility class for attachments helper methods.
Declaration
public static bool HasAttachmentAccess(int attachmentId, EFieldRight requiredRight)
Parameters
Returns
UpdateTicketHasAttachment(int, bool)
Utility class for attachments helper methods.
Declaration
public static void UpdateTicketHasAttachment(int ticketId, bool value)
Parameters
Type |
Name |
Description |
int |
ticketId |
|
bool |
value |
|