You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by ould sid'ahmed <no...@emn.fr> on 2006/09/01 15:05:58 UTC

configuration Slide

Hello,
I want, if a person upload document, it will be locked for the other users.
how I can't this with Slide.

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: configuration Slide

Posted by ould sid'ahmed <no...@emn.fr>.
Hello, thanks for your response, but it isn't go,
can you send me if you have a documents at Slide please.

thanks.

Martin Petras a écrit :
> Hi,
> try this solution. You have to code a little bit:
>
> 1) create your adapter i.e.
>    public class MyWebdavAdapter extends WebdavAdapter {
>        public void putAfter(WebdavEvent event) throws VetoException{
>              // perform lock
>        }
>    }
>
> 2) build it and add it to the slide classpath i.e. slide/WEB-INF/lib
> 3) change Domain.xml this way:
>    ....
>    <events>
>          <listener classname="com.mycompany.MyWebdavAdapter" />
>          ....
>    </events>
>
>
> That's all. Hope it helps.
>
> Best regards
>
> Martin Petras
> S&K Management Systems
>
>
>
> ould sid'ahmed wrote:
>> Hello,
>> I want, if a person upload document, it will be locked for the other 
>> users.
>> how I can't this with Slide.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: configuration Slide

Posted by Martin Petras <pe...@skms.sk>.
Hi,
try this solution. You have to code a little bit:

1) create your adapter i.e.
    public class MyWebdavAdapter extends WebdavAdapter {
        public void putAfter(WebdavEvent event) throws VetoException{
              // perform lock
        }
    }

2) build it and add it to the slide classpath i.e. slide/WEB-INF/lib
3) change Domain.xml this way:
    ....
    <events>
          <listener classname="com.mycompany.MyWebdavAdapter" />
          ....
    </events>


That's all. Hope it helps.

Best regards

Martin Petras
S&K Management Systems



ould sid'ahmed wrote:
> Hello,
> I want, if a person upload document, it will be locked for the other 
> users.
> how I can't this with Slide.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org