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

Bring2mind Forums

configure a collection via API
Last Post 12/02/2010 11:00 AM by Peter Donker. 1 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Geert Huisman
New Member
New Member
Posts:3


--
11/22/2010 3:57 PM

Is it possible to configure a new collection with sub collections with their own security settings via an API?

I want to generate automatically (on the fly) a collection with sub collections including the security settings, so a specific group of users will have (edit/view) rights. This specific group will be a sub set of the complete set of portal users.

looking forward to your reaction.

Kind regards,
Geert 

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
12/02/2010 11:00 AM
Hi Geert,

It is not too hard. There are several approaches I can think of:

1. Use the EntriesController simple create folder method. This creates the folder (i.e. collection) and gives default (i.e. inherited) permissions. It returns the EntryID of the new folder. You'd then call up the entryinfo and adjust permissions.

2. Alternatively you start from scratch and build your entryinfo. Make sure to set title as follows:
objEntry.TitleML("").Texts("")=mytitle
Then add EntryPermissionInfos to objEntry.Permissions. Use the entriescontroller to submit to the DB.

Best,

Peter
You are not authorized to post a reply.