Example #1
0
 public void CopyAttachment(string sourceAttachedFileName, string targetAttachedFileName, TIS_ATTACHMENT_EXISTS_ACTION enAttachmentExistsAction)
 {
     // Copy attachment
     StaticStorageServices.Copy(
         m_SourceStorage,
         m_SourceStorage,
         sourceAttachedFileName,
         targetAttachedFileName);
 }
Example #2
0
        public ReadOnlyCollection <string> QueryAttachedTypes()
        {
            List <string> attachmentTypes = new List <string>();

            attachmentTypes.AddRange(StaticStorageServices.GetUsedExtenstions(m_SourceStorage, GetSourcePath(), true));

            ReadOnlyCollection <string> result = new ReadOnlyCollection <string>(attachmentTypes);

            return(result);
        }
Example #3
0
 public void RemoveAttachmentsOfType(string attachmentTypes)
 {
     // Delete BLOBs (including sub-dirs)
     StaticStorageServices.DeleteStorage(m_SourceStorage, GetSourcePath(), "*." + attachmentTypes, true);
 }
Example #4
0
 public void RemoveAllAttachments()
 {
     // Delete Storages (including sub-dirs)
     StaticStorageServices.DeleteStorage(m_SourceStorage, GetSourcePath(), "*.*", true);
 }