how to get all permission granted to one given user

2005-03-29 Thread Yong Hu
All,
 
Can I use slide client lib api to get all permissions granted to on given user? 
 
I want to delete all permissions related to the user from permissions table 
using slide client lib api, so i have such requirement.
 
regards
Yong



-
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
美女明星应有尽有,搜遍美图、艳图和酷图
1G就是1000兆,雅虎电邮自助扩容!

can i delete users stored in LDAP using webdavResource.deleteMethod() ?

2005-03-29 Thread Yong Hu

I use LDAP to store all users, and config [EMAIL PROTECTED] domain.xml as the 
root user with all privilege on all nodes. When system starts up, [EMAIL 
PROTECTED] will be writen to uri and permission tables.
Now, for some reason, I want to delete this user through slide api(exactly, i 
want to delete the record from uri and permission tables). But when i call 
webdavResource.deleteMethod("/users/[EMAIL PROTECTED]"), ClassCastExeption is 
thrown from org.apache.slide.macro.MacroImpl.deleteObject(), and the concrete 
code is 
contentHelper.remove
(token, currentObject.getUri(),
 
(NodeRevisionNumber)revisionNumberEnum.nextElement());
I don't know why the exception is thrown. Can I delete a user stored in LDAP 
using webdavResource.deleteMethod()?  
 
Best Regards
Yong



-
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
美女明星应有尽有,搜遍美图、艳图和酷图
1G就是1000兆,雅虎电邮自助扩容!

Re: slide alternatives

2005-03-29 Thread Bill Keese
Thanks Oliver.  Yeah, I understand what you are saying about duplicating 
code.  But, what about just overriding the classes in package 
org.apache.slide.webdav.method?  It seems like that's the code that 
glues the webdav interface to the Slide CMS, so it would be a good point 
to connect to my CMS rather than the slide's CMS.

Oliver Zeigermann wrote:
I agree that threre is a lot of extra baggage that might not be
necessary for all (most) applications, but that simply may be the
drawback of a general solution. It will fit many applications, so it
is not specially geared towards yours.
Before I contributed to WCK I was considering a much more lean and
slim solution, but I that would have meant lots of double work.
Additionally, by making it as generic as the Slide WCK solution it
would almost have ended up in a similar complexity.
Just my 2 cents.
Oliver
On Tue, 29 Mar 2005 17:23:29 +0900, Bill Keese
<[EMAIL PROTECTED]> wrote:
 

Thanks Edmund. I have been using WCK but still have that feeling of so
much extra baggage, not to mention extra config files. Yes, I want to
write a class that implements an interface like the interface you
implement with WCK.
As for lock management, I can't use Slide's lock manager because there
are multiple interfaces to my application, so files might be
locked/unlocked from outside the webdav arena. (Like you might lock a
file via a SOAP call, and then that has to be reflected to a user
accessing the file over WEBDAV)
Edmund Urbani wrote:
   

Bill Keese wrote:
 

For webdav-enabling an existing java application, I'm just wondering
what the alternatives are to Slide, . Since Slide is a content
management system with a webdav service built on top of it, it functions
well as a CMS but it's overkill when you want to Webdav-enable an
existing system. It does all sorts of user-management and
lock-management stuff that I don't want.
I feel like I just want something that converts the HTTP requests into
calls to java functions. (And also does the XML serialize/deserialize
for stuff like PROPFIND.)
Comments?
Bill
   

I don't really know of any free alternatives to Slide, but integration
should not be too hard with the WebDAV Construction Kit (WCK). After
all, that's what it is for. You can find WCK is in the Slide CVS. There
has been no release yet AFAIK.
I think you can disable (most of) the user management stuff and simply
configure tomcat to do no authentication. And the lock management -
well, that kind of comes for free - no administrative overhead, so why
get rid of it?
Edmund
-
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]


Re: slide alternatives

2005-03-29 Thread Oliver Zeigermann
I agree that threre is a lot of extra baggage that might not be
necessary for all (most) applications, but that simply may be the
drawback of a general solution. It will fit many applications, so it
is not specially geared towards yours.

Before I contributed to WCK I was considering a much more lean and
slim solution, but I that would have meant lots of double work.
Additionally, by making it as generic as the Slide WCK solution it
would almost have ended up in a similar complexity.

Just my 2 cents.

Oliver


On Tue, 29 Mar 2005 17:23:29 +0900, Bill Keese
<[EMAIL PROTECTED]> wrote:
> Thanks Edmund. I have been using WCK but still have that feeling of so
> much extra baggage, not to mention extra config files. Yes, I want to
> write a class that implements an interface like the interface you
> implement with WCK.
> 
> As for lock management, I can't use Slide's lock manager because there
> are multiple interfaces to my application, so files might be
> locked/unlocked from outside the webdav arena. (Like you might lock a
> file via a SOAP call, and then that has to be reflected to a user
> accessing the file over WEBDAV)
> 
> 
> Edmund Urbani wrote:
> 
> >Bill Keese wrote:
> >
> >
> >>For webdav-enabling an existing java application, I'm just wondering
> >>what the alternatives are to Slide, . Since Slide is a content
> >>management system with a webdav service built on top of it, it functions
> >>well as a CMS but it's overkill when you want to Webdav-enable an
> >>existing system. It does all sorts of user-management and
> >>lock-management stuff that I don't want.
> >>
> >>I feel like I just want something that converts the HTTP requests into
> >>calls to java functions. (And also does the XML serialize/deserialize
> >>for stuff like PROPFIND.)
> >>
> >>Comments?
> >>
> >>Bill
> >>
> >>
> >
> >I don't really know of any free alternatives to Slide, but integration
> >should not be too hard with the WebDAV Construction Kit (WCK). After
> >all, that's what it is for. You can find WCK is in the Slide CVS. There
> >has been no release yet AFAIK.
> >
> >I think you can disable (most of) the user management stuff and simply
> >configure tomcat to do no authentication. And the lock management -
> >well, that kind of comes for free - no administrative overhead, so why
> >get rid of it?
> >
> > Edmund
> >
> >-
> >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]



RE: Best Practice to disassemble a large Store [w/ WCK]?

2005-03-29 Thread Darren Hartford
In attempting to break down a large Store into several smaller stores,
here is what I have found:

*Have not had success with the Slide commandline client (may just be
ignorance and not understand the documentation on how to use this tool
for this function).

*Have had success with DAVExplorer as a generic WebDAV GUI copy/moving
objects between stores -- but manual process.

*Looked at the Slide ANT tasks, these may or may not work, but need a
way to programatically identify (i.e. logically separate) which files
should be moved.

*Based on the assumption that Slide 2.2 will have WCK support/MacroStore
support built into the binary release, started working with the WCK kit.

I have gotten this far in using WCK utilizing the Macro Move/Copy
methods, but I'm assuming that the 'begin' method is where everything
gets setup, and I do not understand the usage of the 'begin' method as
far as what is usually passed to it:

[code]
//need WCK, slide-kernel.jar, and commons-transaction (and probably also
geronimo-jta)
WebdavFileStore wfs = new WebdavFileStore();

//Service, Principal, Object, LoggerFacade, Hashtable
wfs.begin(new ExtendedStore(),null,null,null,null);

//String sourceUri, String targetUri, boolean overwrite, boolean
recursive
String sourceUri = "http://localhost:8080/slide/files/";;
String targetUri = "http://localhost:8080/slide/files2/";;
boolean overwrite = true;
boolean recursive = true;

wfs.macroCopy(sourceUri, targetUri, overwrite, recursive);
wfs.commit(); //not utilized in WebdavFileStore, but good to keep
just-in-case.
[/code] 

I've looked at the WCK Wiki page and the API, but I'm just not smart
enough I guess ;-)

Slide 2.2pre1 CVS build (webapp dist), same CVS build of WCK with
macrostore support, on tomcat 5.0.28 and java 1.4.2.

-D

> -Original Message-
> From: Darren Hartford [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 24, 2005 11:36 AM
> To: Slide Users Mailing List
> Subject: Best Practice to disassemble a large Store?
> 
> Hey all,
> Does anyone have experience they would like to share on how 
> to disassemble a large Store into smaller stores?
> 
> Logically, I can break up the data by in various ways, but my 
> question is on how to copy/move many objects and metadata 
> from one store to another new store(TxFileContentStore, 
> TxXMLFileDescriptorsStore).  I think the WCK has some support 
> for this, but it seems like you have to rebuild the Slide 
> server to support it (and rather not do that). Using Slide 
> 2.1 binary with Tomcat 5.0.28.
> 
> Any ideas please?
> 
> -D
> 
> -
> 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]



Re: AW: howto implement an access log ?

2005-03-29 Thread Edmund Urbani
Daniel Florey wrote:
Please use the event framework. A description how to do that can be found in
the package.html of the event package.
Daniel
thanks for your advice!
(and for pointing me to those docs :)
I'll probably be experimenting/implementing a few things with the 
listener interface the next few days. so more questions will probably 
come this way...

 Edmund
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


AW: howto implement an access log ?

2005-03-29 Thread Daniel Florey
Please use the event framework. A description how to do that can be found in
the package.html of the event package.
Daniel

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Im Auftrag von Edmund Urbani
> Gesendet: Dienstag, 29. März 2005 11:19
> An: Slide Users Mailing List
> Betreff: howto implement an access log ?
> 
> 
> I am looking for a way to record all the read/write operations
> (resource, user, timestamp, type of operation, ... possibly more) on the
> slide server and make that collected data accessible to a webdav client.
> 
> in the Server API I found these 2 interfaces:
> org.apache.slide.content.ContentInterceptor
> org.apache.slide.event.ContentListener
> 
> which one should I use to collect the data I need? to me it looks like
> the Interceptor can do more? is there anything that can be done only
> with the Listener interface? are both going to stay in future slide
> versions?
> 
> then there's also the matter of storing the data someplace inside slide
> and retrieving it from the client (on a per-resource basis). i would
> like to keep things simple and let the client request the access log of
> a resource through a property, but i am not sure whether this would be a
> good idea in the long run.
> 
> i could really use some advice from someone who's had experience with
> the server API here.
> 
> thanks.
> 
>   Edmund
> 
> --
> liland open IT solutions GmbH
> 
> email: [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]



howto implement an access log ?

2005-03-29 Thread Edmund Urbani
I am looking for a way to record all the read/write operations 
(resource, user, timestamp, type of operation, ... possibly more) on the 
slide server and make that collected data accessible to a webdav client.

in the Server API I found these 2 interfaces: 
org.apache.slide.content.ContentInterceptor
org.apache.slide.event.ContentListener

which one should I use to collect the data I need? to me it looks like 
the Interceptor can do more? is there anything that can be done only 
with the Listener interface? are both going to stay in future slide 
versions?

then there's also the matter of storing the data someplace inside slide 
and retrieving it from the client (on a per-resource basis). i would 
like to keep things simple and let the client request the access log of 
a resource through a property, but i am not sure whether this would be a 
good idea in the long run.

i could really use some advice from someone who's had experience with 
the server API here.

thanks.
 Edmund
--
liland open IT solutions GmbH
email: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Double PUT from some clients

2005-03-29 Thread Julian Reschke
C Kramer wrote:
We had similar problem with MS Office applications.
When you save from Ms office app, it create file with 0 content and then 
it set the content in the next separate request.
You're right, only workaround really help here.
> ...
Doing that is completely legal; what's the issue here? In particular, 
Office does all of this inside a LOCK, so a server can easily detect 
that this is a set of related operations (a DeltaV server can easily use 
autoversioning to create exactly one new version for the whole operation).

Best regards, Julian
--
bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: slide alternatives

2005-03-29 Thread Bill Keese
Thanks Edmund. I have been using WCK but still have that feeling of so
(Bmuch extra baggage, not to mention extra config files. Yes, I want to
(Bwrite a class that implements an interface like the interface you
(Bimplement with WCK.
(B
(BAs for lock management, I can't use Slide's lock manager because there
(Bare multiple interfaces to my application, so files might be
(Blocked/unlocked from outside the webdav arena. (Like you might lock a
(Bfile via a SOAP call, and then that has to be reflected to a user
(Baccessing the file over WEBDAV)
(B
(B
(BEdmund Urbani wrote:
(B
(B>Bill Keese wrote:
(B>  
(B>
(B>>For webdav-enabling an existing java application, I'm just wondering
(B>>what the alternatives are to Slide, . Since Slide is a content
(B>>management system with a webdav service built on top of it, it functions
(B>>well as a CMS but it's overkill when you want to Webdav-enable an
(B>>existing system. It does all sorts of user-management and
(B>>lock-management stuff that I don't want.
(B>>
(B>>I feel like I just want something that converts the HTTP requests into
(B>>calls to java functions. (And also does the XML serialize/deserialize
(B>>for stuff like PROPFIND.)
(B>>
(B>>Comments?
(B>>
(B>>Bill
(B>>
(B>>
(B>
(B>I don't really know of any free alternatives to Slide, but integration
(B>should not be too hard with the WebDAV Construction Kit (WCK). After
(B>all, that's what it is for. You can find WCK is in the Slide CVS. There
(B>has been no release yet AFAIK.
(B>
(B>I think you can disable (most of) the user management stuff and simply
(B>configure tomcat to do no authentication. And the lock management -
(B>well, that kind of comes for free - no administrative overhead, so why
(B>get rid of it?
(B>
(B> Edmund
(B>
(B>-
(B>To unsubscribe, e-mail: [EMAIL PROTECTED]
(B>For additional commands, e-mail: [EMAIL PROTECTED]
(B>
(B>
(B>
(B>  
(B>
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

Re: slide alternatives

2005-03-29 Thread Edmund Urbani
Bill Keese wrote:
(B> For webdav-enabling an existing java application, I'm just wondering
(B> what the alternatives are to Slide, . Since Slide is a content
(B> management system with a webdav service built on top of it, it functions
(B> well as a CMS but it's overkill when you want to Webdav-enable an
(B> existing system. It does all sorts of user-management and
(B> lock-management stuff that I don't want.
(B> 
(B> I feel like I just want something that converts the HTTP requests into
(B> calls to java functions. (And also does the XML serialize/deserialize
(B> for stuff like PROPFIND.)
(B> 
(B> Comments?
(B> 
(B> Bill
(B
(BI don't really know of any free alternatives to Slide, but integration
(Bshould not be too hard with the WebDAV Construction Kit (WCK). After
(Ball, that's what it is for. You can find WCK is in the Slide CVS. There
(Bhas been no release yet AFAIK.
(B
(BI think you can disable (most of) the user management stuff and simply
(Bconfigure tomcat to do no authentication. And the lock management -
(Bwell, that kind of comes for free - no administrative overhead, so why
(Bget rid of it?
(B
(B Edmund
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]