You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by rohit mittal <ro...@gmail.com> on 2009/10/05 09:31:33 UTC

Problem in shareable file in jackrabbit

Hi Users,

In my application , each user has own workspace . When user uploads a file
in his workspace then how can this file be shareable for the other users ?
How can I make this file shareable?



Thanks
Rohit Mittal

Re: Problem in shareable file in jackrabbit

Posted by rohit mittal <ro...@gmail.com>.
Hi Users,

I am using seperate folder for each users in a single workspace and
sharing content from user folders by using the code :-

root = session.getRootNode();
folderNode = root.getNode("test1")
Node b1 = folderNode.addNode("test2", "nt:folder");
root.save();

// add mixin
b1.addMixin("mix:shareable");
b1.save();

// clone
Workspace workspace = b1.getSession().getWorkspace();
workspace.clone(workspace.getName(), b1.getPath(), "/ShareFolder", false);

Is it the right way of sharing folder or content?
Now i want to unshare the shared folder.How can i do it using JCR 1.0 ?


Thanks
Rohit Mittal

On Mon, Oct 5, 2009 at 5:01 PM, rohit mittal <ro...@gmail.com> wrote:

> Hi Alex,
>
> Can you give me some details about how to implement access control to
> manage who can see
> what ?
>
>
> Thanks
> Rohit Mittal
>
>
> On Mon, Oct 5, 2009 at 4:33 PM, Alexander Klimetschek <ak...@day.com>wrote:
>
>> On Mon, Oct 5, 2009 at 09:31, rohit mittal <ro...@gmail.com> wrote:
>> > In my application , each user has own workspace . When user uploads a
>> file
>> > in his workspace then how can this file be shareable for the other users
>> ?
>> > How can I make this file shareable?
>>
>> Use a single workspace for your entire application and place users in
>> different directories, using access control to manage who can see
>> what. See also [1]. In general, access control is an important driver
>> for your content model.
>>
>> [1]
>> http://wiki.apache.org/jackrabbit/DavidsModel#Rule_.233:_Workspaces_are_for_clone.28.29.2C_merge.28.29_and_update.28.29
>> .
>>
>> Regards,
>> Alex
>>
>> --
>> Alexander Klimetschek
>> alexander.klimetschek@day.com
>>
>
>

Re: Problem in shareable file in jackrabbit

Posted by rohit mittal <ro...@gmail.com>.
Hi Alex,

Can you give me some details about how to implement access control to manage
who can see
what ?


Thanks
Rohit Mittal

On Mon, Oct 5, 2009 at 4:33 PM, Alexander Klimetschek <ak...@day.com>wrote:

> On Mon, Oct 5, 2009 at 09:31, rohit mittal <ro...@gmail.com> wrote:
> > In my application , each user has own workspace . When user uploads a
> file
> > in his workspace then how can this file be shareable for the other users
> ?
> > How can I make this file shareable?
>
> Use a single workspace for your entire application and place users in
> different directories, using access control to manage who can see
> what. See also [1]. In general, access control is an important driver
> for your content model.
>
> [1]
> http://wiki.apache.org/jackrabbit/DavidsModel#Rule_.233:_Workspaces_are_for_clone.28.29.2C_merge.28.29_and_update.28.29
> .
>
> Regards,
> Alex
>
> --
> Alexander Klimetschek
> alexander.klimetschek@day.com
>

Re: Problem in shareable file in jackrabbit

Posted by Alexander Klimetschek <ak...@day.com>.
On Mon, Oct 5, 2009 at 09:31, rohit mittal <ro...@gmail.com> wrote:
> In my application , each user has own workspace . When user uploads a file
> in his workspace then how can this file be shareable for the other users ?
> How can I make this file shareable?

Use a single workspace for your entire application and place users in
different directories, using access control to manage who can see
what. See also [1]. In general, access control is an important driver
for your content model.

[1] http://wiki.apache.org/jackrabbit/DavidsModel#Rule_.233:_Workspaces_are_for_clone.28.29.2C_merge.28.29_and_update.28.29.

Regards,
Alex

-- 
Alexander Klimetschek
alexander.klimetschek@day.com