You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-dev@jackrabbit.apache.org by Tuhin Subhra Mandal <my...@gmail.com> on 2019/05/10 08:16:18 UTC

Queries for migrating to jackrabbti oak from jackrabbti 2.18

Hi Team

I have couple of queries on this migration :

1. *Oak does not index as much content by default as does Jackrabbit 2.
Custom indexes need to be created when necessary, much like in traditional
RDBMSs. If there is no index for a specific query then the repository will
be traversed. The query will still work but probably will be very slow. *
*---> How do I address this?*

*2. **Sessions in JR always reflects the latest state of the repository,
whereas sessions in Oak reflects the state of the repository at the time of
session acquisition.*
---> *How do we address this issue ? I mean let's say I have a requirement
where I have to get latest state from session.*

3. *I have to tag some document / artifacts is it possible in OAK ?*

4. *Security: Does OAK has out of the box token based authentication &
authorization ?*

-- 
*Regards*
*Tuhin*

Re: Queries for migrating to jackrabbti oak from jackrabbti 2.18

Posted by Angela Schreiber <an...@adobe.com.INVALID>.
Hi Tuhin

Answers inline below

> 5. Does OAK provide multiple workspaces in one repository ?

No, workspace management is currently not supported in Oak [0].

> I have couple of queries on this migration :
>
> 1. *Oak does not index as much content by default as does Jackrabbit 2.
> Custom indexes need to be created when necessary, much like in traditional
> RDBMSs. If there is no index for a specific query then the repository will
> be traversed. The query will still work but probably will be very slow. *
> *---> How do I address this?*

see http://jackrabbit.apache.org/oak/docs/query/query-troubleshooting.html

> *2. **Sessions in JR always reflects the latest state of the repository,
> whereas sessions in Oak reflects the state of the repository at the time of
> session acquisition.*
> ---> *How do we address this issue ? I mean let's say I have a
> requirement where I have to get latest state from session.*

Session.refresh is what you are looking for.

> 3. *I have to tag some document / artifacts is it possible in OAK ?*

That's for sure possible... likely the same way as you did it in Jackrabbit 2.x. The node types defined by JSR 283 are still available. In addition Oak comes with some improved variants like oak:Resource and oak:Unstructured. The details on how to do this depend mainly on the nature of the node types of your documents. Lacking insight on your existing/envisioned content structure, I would suggest to create a mixin type that you attach to the documents and then collect the tags therein. This would make it easier later on to identify these nodes/properties as additional tagging information associated with the doc.

> 4. *Security: Does OAK has out of the box token based authentication &
> authorization ?*

Oak has token based authentication very similar to the one present in Jackrabbit 2.x [1]. The default authorization has a few differences compared to Jackrabbit 2.x [2] but was built to be compatible whenever possible. 

Hope that helps
Angela

[0[ http://jackrabbit.apache.org/oak/docs/differences.html
[1] http://jackrabbit.apache.org/oak/docs/security/authentication/tokenmanagement.html
[2] http://jackrabbit.apache.org/oak/docs/security/permission/differences.html

Re: Queries for migrating to jackrabbti oak from jackrabbti 2.18

Posted by Tuhin Subhra Mandal <my...@gmail.com>.
Another question.

Does OAK provide multiple workspaces in one repository ?


On Fri, May 10, 2019 at 1:46 PM Tuhin Subhra Mandal <my...@gmail.com>
wrote:

> Hi Team
>
> I have couple of queries on this migration :
>
> 1. *Oak does not index as much content by default as does Jackrabbit 2.
> Custom indexes need to be created when necessary, much like in traditional
> RDBMSs. If there is no index for a specific query then the repository will
> be traversed. The query will still work but probably will be very slow. *
> *---> How do I address this?*
>
> *2. **Sessions in JR always reflects the latest state of the repository,
> whereas sessions in Oak reflects the state of the repository at the time of
> session acquisition.*
> ---> *How do we address this issue ? I mean let's say I have a
> requirement where I have to get latest state from session.*
>
> 3. *I have to tag some document / artifacts is it possible in OAK ?*
>
> 4. *Security: Does OAK has out of the box token based authentication &
> authorization ?*
>
> --
> *Regards*
> *Tuhin*
>
>
>

-- 
*Regards*
*Tuhin*