FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
Email Folder Subscription (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Email Folder Subscription
#958
sbs (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Email Folder Subscription 3 Months, 2 Weeks ago Karma: 0  
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?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#963
pavila (Admin)
Admin
Posts: 304
graph
User Offline Click here to see the profile of this user
Gender: Male OpenKM
Re:Email Folder Subscription 3 Months, 2 Weeks ago Karma: 7  
Are you using WebServices? Notification API is not exposed by WebServices actually, but is is easy. We well do it in the next release.
 
Report to moderator   Logged Logged  
 
Be open, my friend!
  The administrator has disabled public write access.
#969
sbs (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:Email Folder Subscription 3 Months, 2 Weeks ago Karma: 0  
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
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#971
pavila (Admin)
Admin
Posts: 304
graph
User Offline Click here to see the profile of this user
Gender: Male OpenKM
Re:Email Folder Subscription 3 Months, 2 Weeks ago Karma: 7  
Notification API have these three methods:

Code:

void subscribe(String token, String nodePath) void unsubscribe(String token, String nodePath) StringArray getSubscriptors(String token, String nodePath)
It is ok for you?
 
Report to moderator   Logged Logged  
 
Be open, my friend!
  The administrator has disabled public write access.
#978
sbs (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:Email Folder Subscription 3 Months, 1 Week ago Karma: 0  
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
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#979
pavila (Admin)
Admin
Posts: 304
graph
User Offline Click here to see the profile of this user
Gender: Male OpenKM
Re:Email Folder Subscription 3 Months, 1 Week ago Karma: 7  
These methods will be published in the next OpenKM release.
 
Report to moderator   Logged Logged  
 
Be open, my friend!
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop