Getting all properties of directory

View: New views
3 Messages — Rating Filter:   Alert me  

Getting all properties of directory

by svncheeta :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am setting properties on one of the folder as follows:
 ourClientManager.getWCClient().doSetProperty(file, "description", "about maintenance", false, false, null);

Say I set 10 properties like this. Now when I want to retrieve values of properties, I do not see any method in SVNKIT API that would return me collection of all the properties name and values on this folder. If there is no such method, then I will have to keep a string array with hard coded property names of this folder (for example description in this case along with other names) and pass property name to doGetProperty() one by one to retrieve values. It would have been better if a method in API could return me hashmap of all the properties name and values for a given directory/file.

Kindly let me know if there is a way to get all properties names and values.

Re: Getting all properties of directory

by Normen Mueller :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

svncheeta wrote:
> Kindly let me know if there is a way to get all properties names and values.

...of a special namespace (if namespace is null then retrieve all).  That would also be nice ;-)

Cheers,
  /nm


---------------------------------------------------------------------
To unsubscribe, e-mail: svnkit-users-unsubscribe@...
For additional commands, e-mail: svnkit-users-help@...


Re: Getting all properties of directory

by Alexander Kitaev-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

Passing null as property name to doGetProperty method will make SVNKit
report all properties to ISVNPropertyHandler callback.

Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!

svncheeta wrote:

> I am setting properties on one of the folder as follows:
>  ourClientManager.getWCClient().doSetProperty(file, "description", "about
> maintenance", false, false, null);
>
> Say I set 10 properties like this. Now when I want to retrieve values of
> properties, I do not see any method in SVNKIT API that would return me
> collection of all the properties name and values on this folder. If there is
> no such method, then I will have to keep a string array with hard coded
> property names of this folder (for example description in this case along
> with other names) and pass property name to doGetProperty() one by one to
> retrieve values. It would have been better if a method in API could return
> me hashmap of all the properties name and values for a given directory/file.
>
> Kindly let me know if there is a way to get all properties names and values.

---------------------------------------------------------------------
To unsubscribe, e-mail: svnkit-users-unsubscribe@...
For additional commands, e-mail: svnkit-users-help@...

LightInTheBox - Buy quality products at wholesale price!