You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by paksegu <pa...@yahoo.com> on 2006/11/01 16:25:53 UTC
Repository and workspaces
Hi is there a way that I can create just one repository but with numerous workspaces whereby user can login into the own workspaces?
Ransford Segu-Baffoe
paksegu@yahoo.com
paksegu@NoqturnalMediaSystems.com
http://www.noqturnalmediasystems.com/
http://www.noqturnalmediasystems.com/Serenade/
https://serenade.dev.java.net/
---------------------------------
Want to start your own business? Learn how on Yahoo! Small Business.
Re: Repository and workspaces
Posted by paksegu <pa...@yahoo.com>.
Okay how do i go about creating an authentication for each workspace as it is done in the file import example whre the authenticated via the repository?
Tobias Bocanegra <to...@day.com> wrote:
yes, you can. just create a workspace for each user.
regards, toby
On 11/1/06, paksegu
wrote:
> Hi is there a way that I can create just one repository but with numerous workspaces whereby user can login into the own workspaces?
>
>
> Ransford Segu-Baffoe
>
> paksegu@yahoo.com
> paksegu@NoqturnalMediaSystems.com
>
> http://www.noqturnalmediasystems.com/
> http://www.noqturnalmediasystems.com/Serenade/
> https://serenade.dev.java.net/
>
> ---------------------------------
> Want to start your own business? Learn how on Yahoo! Small Business.
>
--
-----------------------------------------< tobias.bocanegra@day.com >---
Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel
T +41 61 226 98 98, F +41 61 226 98 97
-----------------------------------------------< http://www.day.com >---
Ransford Segu-Baffoe
paksegu@yahoo.com
paksegu@NoqturnalMediaSystems.com
http://www.noqturnalmediasystems.com/
http://www.noqturnalmediasystems.com/Serenade/
https://serenade.dev.java.net/
---------------------------------
Everyone is raving about the all-new Yahoo! Mail.
Re: Searching linked files
Posted by Marcel Reutegger <ma...@day.com>.
Jaka Jaksic wrote:
> //element(*, nt:linkedFile)[jcr:contains(@jcr:content, 'search string')]
the jcr:content property on nt:linkedFile is a reference property and matching
the uuid against 'search string' will of course never match.
> //element(*, nt:linkedFile)[jcr:contains(jcr:deref(@jcr:content, '*'),
> 'search string')]
this one does not work because the jcr:contains function only allows a reference
to the current node or a property of the current node.
> //element(*, nt:linkedFile)[jcr:deref(@jcr:content, '*')/jcr:contains(.,
> 'search string')]
predicates in jackrabbit currently do not support the child axis. Only the
attribute axis (jcr property name) is possible.
> One possible solution would be to search the resource nodes, then manually
> call getReferences() on each returned node etc., but this would require a
> lot of roundtripping and I would feel like I'm reinventing the wheel...
That's currently the only way to get to linkedFile nodes. Why do you think this
workaround will cause a lot of round trips?
> Is there a *proper* solution to this problem?
The proper solution is to fix issue JCR-247 :-/
regards
marcel
Searching linked files
Posted by Jaka Jaksic <ja...@telemach.net>.
Hi!
I wasn't able to find any info on this, although it seems quite basic... How
do I do a full text search of linked files? I can search the nt:resource
nodes, but I'd like the query to return a set of nt:linkedFile nodes (the
actual files, not their content nodes), whose referenced nt:resource nodes
match the search criteria.
I expected one of the following would work:
//element(*, nt:linkedFile)[jcr:contains(@jcr:content, 'search string')]
//element(*, nt:linkedFile)[jcr:contains(jcr:deref(@jcr:content, '*'),
'search string')]
//element(*, nt:linkedFile)[jcr:deref(@jcr:content, '*')/jcr:contains(.,
'search string')]
But nothing seems to work.
One possible solution would be to search the resource nodes, then manually
call getReferences() on each returned node etc., but this would require a
lot of roundtripping and I would feel like I'm reinventing the wheel...
Is there a *proper* solution to this problem?
Thanks,
Jaka
Re: Repository and workspaces
Posted by Tobias Bocanegra <to...@day.com>.
yes, you can. just create a workspace for each user.
regards, toby
On 11/1/06, paksegu <pa...@yahoo.com> wrote:
> Hi is there a way that I can create just one repository but with numerous workspaces whereby user can login into the own workspaces?
>
>
> Ransford Segu-Baffoe
>
> paksegu@yahoo.com
> paksegu@NoqturnalMediaSystems.com
>
> http://www.noqturnalmediasystems.com/
> http://www.noqturnalmediasystems.com/Serenade/
> https://serenade.dev.java.net/
>
> ---------------------------------
> Want to start your own business? Learn how on Yahoo! Small Business.
>
--
-----------------------------------------< tobias.bocanegra@day.com >---
Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel
T +41 61 226 98 98, F +41 61 226 98 97
-----------------------------------------------< http://www.day.com >---