Ok, let me see if I understand you correctly here.
You're trying to integrate your CMS and Slide by modifying your CMS to use Slide as its repository. Using the webdav client library you've done this, but you want to be able to use other webdav clients (WebFolders), and since those will access Slide directly you need a way make Slide aware of the business rules in your CMS that govern access to content. Correct me if I got any of that wrong.
I see two ways to accomplish this:
1) The way Slide is usually integrated with other CMSs is an inverse of the approach you've taken. Slide has an extendable Store architecture which would allow it to use *your* CMS to store data, rather than your CMS using Slide to store data. You would then use this Store interface to tell Slide how your access model works and Slide would take care of access checking for all requests.
At the moment writing a Store implementation is not trivial, due mostly to a lack of documentation and a steep learning curve. We're working on that, though ;). If you want to take this approach, it will probably give you the best result.
2) There's an event framework in the upcoming Slide release (2.1) that you may be able to take advantage of here. What you would need to is create Event Listeners for the different access requests. These event listeners would then communicate with your CMS and check that the user making the request has the appropriate rights. If access is denied to the user the listeners would throw a Veto exception and Slide would cancel the request.
-James
Ragia wrote:
Thanx a lot for the reply!!
Well, here is my sample code:
HttpURL homeUrl = new HttpURL("http://ragia:8888/webapp/slide/files"); res = new WebdavResource(homeUrl); File f = new File("c:\\test.txt"); boolean b = res.putMethod("/webapp/slide/files/test.txt", f);
That was how to add a document to slide.
And that is how I can retrieve documents from Slide store
for (Iterator i = res.listBasic().iterator(); i.hasNext(); )
{
String []arr2 = (String [])i.next();
for (int j=0 ; j< arr2.length; j++)
{
System.out.println(arr2[j]);
}
}
So that I can add/view documents, Now I need to know how to respond to the addition/deletion and all the actions that happens from Windows Explorer. I also need to let My CMS access rules apply on The Wndows Explorer repository.
Am I going on the right way??
Regards,
Ragia
-----Original Message-----
From: James Mason [mailto:[EMAIL PROTECTED] Sent: Thursday, July 29, 2004 5:49 PM
To: [EMAIL PROTECTED]
Subject: Re: Need Help !
How did you achieve the integration? Was it by writing a Store implementation? If so, I'm not sure what you mean by letting your CMS respond to the addition/deletion of files.
As for access, if you implement SecurityStore you can decide how to map the NodePermission objects to access rights in your CMS.
-James
[EMAIL PROTECTED] 07/29/04 6:55 AM >>>
Hi,
I am trying to integrate my own CMS (Content Management System) to Slide, I
succeeded in adding/viewing my documents from my own CMS client to the slide
repository.
My next step is that I need to let my CMS responds to the addition/deletion of files from my Windows web folder, is this possible through the Slide API's ?? Also I need to apply my OWN CMS access rules to the windows web folders.
Any tiny idea will be highly appreciated.. Thanx in advance,
Ragia
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
