Shahbaz | 1 Jun 2010 08:56
Picon
Favicon

Backup/Copy selected nodes


Hi,

I have a repository of persisted email contents. for which user have the
option to archive his specific (by date) emails . Can I backup/copy specific
nodes to same or different repository? If yes then how? I will be please
with the an immediate response..

--

-- 
View this message in context: http://jackrabbit.510166.n4.nabble.com/Backup-Copy-selected-nodes-tp2238086p2238086.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

François Cassistat | 1 Jun 2010 16:42
Favicon

Re: Backup/Copy selected nodes

Hi,

To copy on the same repository, simply use Workspace.copy :
http://www.day.com/maven/javax.jcr/javadocs/jcr-2.0/javax/jcr/Workspace.html#copy%28java.lang.String,%20java.lang.String,%20java.lang.String%29

To copy to another repository, you need to export the nodes into an intermediary format, Jackrabbit
supports exporting and importing in XML. Use Session.exportSystemView and Session.importXML to
export/import nodes one by one.
http://www.day.com/maven/javax.jcr/javadocs/jcr-2.0/javax/jcr/Session.html#exportDocumentView%28java.lang.String,%20java.io.OutputStream,%20boolean,%20boolean%29
http://www.day.com/maven/javax.jcr/javadocs/jcr-2.0/javax/jcr/Session.html#importXML%28java.lang.String,%20java.io.InputStream,%20int%29

You can use PipedOutputStream and PipedInputStream to pass directly the XML from one repository to
another or use temporary files. Also, you may want to put different locks on nodes when exporting if you
allow concurrent accesses to your repositories.

Frank

Le 2010-06-01 à 2:56 AM, Shahbaz a écrit :

> 
> Hi,
> 
> I have a repository of persisted email contents. for which user have the
> option to archive his specific (by date) emails . Can I backup/copy specific
> nodes to same or different repository? If yes then how? I will be please
> with the an immediate response..
> 
> 
> -- 
> View this message in context: http://jackrabbit.510166.n4.nabble.com/Backup-Copy-selected-nodes-tp2238086p2238086.html
(Continue reading)

Suganthi Manoharan | 2 Jun 2010 11:14
Picon

Re: Jackrabbit Clustering in File System

Hi All,
Thanks for the reply. I am now using "BundleDbPersistenceManager"
along with File Data Store. This works fine in a clustered
environment.

On Mon, May 31, 2010 at 12:41 PM, Thomas Müller <thomas.mueller <at> day.com> wrote:
> Hi,
>
> It looks like you are using BundleFsPersistenceManager. This
> persistence manager is not supported.
>
> Also, the persistence needs to be shared for all cluster nodes. See
> also: http://wiki.apache.org/jackrabbit/Clustering#Persistence_Manager_Configuration
>
> Regards,
> Thomas
>
>
> On Mon, May 31, 2010 at 8:58 AM, Suganthi Manoharan
> <suganthi.manoharan <at> gmail.com> wrote:
>> I am trying to configure Jackrabbit(deployed in Tomcat) in a clustered
>> mode (Between Node A and Node B) in file system .I followed the
>> instructions in http://wiki.apache.org/jackrabbit/Clustering . Both
>> the repositories start successfully with no lock issue.
>> However if I upload a file in Node A its not visible in Node B.I have
>> the following logs in Node B. It looks like both the clustered
>> nodes are not in sync. I have attached both the repository.xml files.
>>
>> I have the following logs in Node B.
>>
(Continue reading)

Mat Lowery | 2 Jun 2010 15:16
Favicon

how can roles/groups be distinguished from users?

> I am working on jackrabbit, how can roles/groups be distinguished from
users?

Speaking about Jackrabbit 1.6 (although I believe 2.0 is similar):

If you're talking about ACLs, then the recipient in each ACL is of type
java.security.Principal.  You can test if principals are instanceof
java.security.acl.Group.  This will tell you if the principal is a
group/role or not.

A org.apache.jackrabbit.core.security.principal.PrincipalProvider is
responsible for converting a String into a principal (or group).

shivalika | 3 Jun 2010 06:17
Picon

how users & roles can be implemented in jackrabbit


how users & roles can be implemented in jackrabbit

--

-- 
View this message in context: http://jackrabbit.510166.n4.nabble.com/how-users-roles-can-be-implemented-in-jackrabbit-tp2241157p2241157.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

shivalika | 3 Jun 2010 08:09
Picon

Authorization in JackRabbit


It have seen that Jackrabbit has no "native" Authorization provided with it.  

From "Authorization" i want that a logged in user has permissions to
read/write/remove a: Node and/or property or even rights to login to a
workspace.

Are people implementing it by themselves on AccessMAnager??
or they using JeCARS to implement repository Authorization??
or some other pre-built product?

what others are witnessing with Authorization & permissions in JackRabbit?
--

-- 
View this message in context: http://jackrabbit.510166.n4.nabble.com/Authorization-in-JackRabbit-tp2241239p2241239.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

shivalika | 3 Jun 2010 12:24
Picon

users in Jackrabbit


can we create users in Jackrabbit through DAV?

Before we were using slide, & were able to create users. Can we get the same
functionality through Jackrabbit??

thanking you.
--

-- 
View this message in context: http://jackrabbit.510166.n4.nabble.com/users-in-Jackrabbit-tp2241470p2241470.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Justin Edelson | 3 Jun 2010 17:47
Picon

Re: Authorization in JackRabbit

On 6/3/10 2:09 AM, shivalika wrote:
> 
> It have seen that Jackrabbit has no "native" Authorization provided with it.  
This is not the case.

> 
> From "Authorization" i want that a logged in user has permissions to
> read/write/remove a: Node and/or property or even rights to login to a
> workspace.
By default, login rights to a workspace are implemented by granting read
access to the root node in the workspace. Note that JCR and Jackrabbit
do not support the notion of per-property access control. You can,
however, separate the ability to modify properties from the ability to
add and remove child nodes.

Justin
> 
> Are people implementing it by themselves on AccessMAnager??
> or they using JeCARS to implement repository Authorization??
> or some other pre-built product?
> 
> what others are witnessing with Authorization & permissions in JackRabbit?

shivalika | 3 Jun 2010 19:17
Picon

Re: Authorization in JackRabbit


Thanx for sharing information about this.

how can users be created using DAVExplorer in jackrabbit?

Thank you & regards..
--

-- 
View this message in context: http://jackrabbit.510166.n4.nabble.com/Authorization-in-JackRabbit-tp2241239p2242024.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Justin Edelson | 3 Jun 2010 19:55
Picon

Re: Authorization in JackRabbit


On Jun 3, 2010, at 1:17 PM, shivalika <destinee707 <at> gmail.com> wrote:

>
> Thanx for sharing information about this.
>
> how can users be created using DAVExplorer in jackrabbit?
I'm not aware that they can be.
>
> Thank you & regards..
> -- 
> View this message in context: http://jackrabbit.510166.n4.nabble.com/Authorization-in-JackRabbit-tp2241239p2242024.html
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Gmane