Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

using API for import
Last Post 12/01/2011 11:40 AM by Peter Donker. 1 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Gus
New Member
New Member
Posts:41


--
11/30/2011 5:07 PM
Hi

We have been struggling to import a large file system into DMX without success for some time now and wondered if we could build something to do the job that works independently on the server outside of IIS/ASP.NET.

Does anyone have any experience of doing this with the API? I can't find any documentation or examples so where would we start?

Gus
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
12/01/2011 11:40 AM
This is what I wrote to Gus earlier for those that stumbled on this page:

The first step, IMO, is to examine the DMX data model and get to grips with it. The central table is DMX_Entries. This is where all folders and files are stored (that is: their metadata). There are 3 important columns that govern the tree structure: EntryId, which is the auto incremented ID field of the record, (2) CollectionId, which points to the EntryId of the parent record, and (3) LastVersionId which points to the EntryId of the last version of this record. Note there is a trigger on this table to ensure its consistency. Notably it governs LastModified, Path (which is a string with EntryIds leading to this entry) and FileSize which for folders is the size of content below.
Second thing to note is that Entry stores the "key" to the actual file. If you're using the file based storage (StorageProviderID=1) then it is a relative path to the file. Most other fields are self-explanatory.

Once you've gotten to grips with DMX_Entries there are a number of satellite tables to consider. The most important is DMX_EntryPermissions. This governs permissions. It either binds an entry to a role ID or a user ID. It works just like DNN's module/tab permissions.
You are not authorized to post a reply.