Page 1 of 1

Email Folder Subscription

PostPosted:Wed Aug 06, 2008 3:50 am
by sbs
Hi,

I\'m trying to set the email Folder Subscription on folder creation, using a third party app.

The application checks if home folder exists for a given user and creates the folder if it doesn\'t, using the system account. I\'ve got code that removes read and write access from the UserRol and sets Read and Write access to only the user. What I want to do is to set the folder subscription to true for that particular user, is this possible?

So what I want to happen for example:

User 1000 logs in for the first time.

The folder okm:root\\1000 is created using the system account
UserRol group has read and write access removed
1000 has read and write access added
1000 is then subscribed to email notification on that folder

I\'ve got everything sorted except the last bit. Is it possible to do this?

Re:Email Folder Subscription

PostPosted:Wed Aug 06, 2008 9:21 am
by pavila
Are you using WebServices? Notification API is not exposed by WebServices actually, but is is easy. We well do it in the next release.

Re:Email Folder Subscription

PostPosted:Wed Aug 06, 2008 8:43 pm
by sbs
Hi, Yes we are using web services. The idea is to use it as an online repository for files sent from another application, and we have the username and password thing modified to check the other app for logon details.

However, this means that none of our users specifically have logon details setup in openkm. We\'ve found this isn\'t a problem for assigning folder permissions, I assume it won\'t be a problem for changing the notification settings?

So how would I go about using the notification api?

Thanks

Re:Email Folder Subscription

PostPosted:Thu Aug 07, 2008 9:48 am
by pavila
Notification API have these three methods:
Code: Select all
void subscribe(String token, String nodePath) 
void unsubscribe(String token, String nodePath) 
StringArray getSubscriptors(String token, String nodePath)
It is ok for you?

Re:Email Folder Subscription

PostPosted:Sun Aug 10, 2008 8:53 pm
by sbs
Hi,

Sorry, I\'m pretty new to this sort of thing. How would I call that? Do I need to include it in a reference in my program, or is it just not possible using web services until the next version?

Thanks

Re:Email Folder Subscription

PostPosted:Mon Aug 11, 2008 9:44 am
by pavila
These methods will be published in the next OpenKM release.