• Email Folder Subscription

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #958  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?
 #963  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.
 #969  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
 #971  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?
 #978  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
 #979  by pavila
 
These methods will be published in the next OpenKM release.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.