Questions tagged [jcr]

JCR is an acronym for Java Content Repository: an API and object database of hierarchical data mainly used by content management systems. Apache Jackrabbit is an open source implementation; there are several commercial products.

JCR is an acronym for Java Content Repository: an API and object database of hierarchical data mainly used by content management systems. Apache Jackrabbit and ModeShape are open source implementations. There are several commercial products such as Adobe CRX

Links

784 questions
5
votes
3 answers

Jackrabbit user management

I can hardly find any documentation on how to design and build a repository for multiple users. I'm quite new to Jackrabbit and I was always using one master user credentials to build a repository that was accessed by only one master user. Now I…
lisak
  • 21,611
  • 40
  • 152
  • 243
5
votes
2 answers

Why does CONTAINS find inequal text strings in JCR-SQL2?

Working with a JCR-SQL2 query I noticed that the CONTAINS operator finds nodes which do not have exactly the same string that was in the condition. Example The following query: SELECT * FROM [nt:base] AS s WHERE CONTAINS(s.*,…
pkalinow
  • 1,619
  • 1
  • 17
  • 43
5
votes
1 answer

How can you change the name of a JCR node?

I'm trying to change the name of a JCR node, but I have no idea how? Has someone of you some hints? Many thanks.
joksy82
  • 405
  • 2
  • 6
  • 13
5
votes
1 answer

Unique Constraint Violation on Root Node Bundle, Apache Jackrabbit with Oracle

Currently in early stage of evaluating using Apache Jackrabbit with our Oracle DB. When testing initial setup of repository.xml configuration, getting this error: 15:18:32.281 [main] ERROR o.a.j.c.p.p.BundleDbPersistenceManager - FATAL error while…
rees
  • 1,566
  • 1
  • 12
  • 19
5
votes
2 answers

cq5 get parent node properties

I have component hierarchy parsys -> parentcomp -> childcomp parentcomp node has some properties. I am trying to access parent parentcomp properties at childcomp level. I am not sure how to do this. Any idea how to get a parent node properties. I…
Sri
  • 1,205
  • 2
  • 21
  • 52
5
votes
1 answer

OSGi errors when running jackrabbit 2.11 in Karaf 2.4 / Felix 4.x

I'm trying to use JackRabbit 2.11.1 to connect to a remote repo (using jackrabbit-jcr-rmi). The bundles run in JBoss Fuse 6.2, which has Apache Karaf 2.4 / Felix 4.4 under the hood. On startup i get the exception below. If i try to use…
rwijngaa
  • 192
  • 3
  • 13
5
votes
1 answer

How to convert byte[] to Binary to set jcr:data with file contents?

I am trying to save binary data (image) into a JCR node. I'm fetching an image from an evernote Note using this method: public byte[] getBody() and then trying to set property jcr:data with the contents of the file using setProperty(string,…
Anthony
  • 33,838
  • 42
  • 169
  • 278
5
votes
2 answers

How to write an nt:file programmatically

I'm trying to store binary data in JCR, which is created on the fly. My problem is that the only way provided by the JCR API is via an InputStream: Session session = request.getResourceResolver().adaptTo(Session.class); ValueFactory valueFactory =…
Thomas
  • 6,325
  • 4
  • 30
  • 65
5
votes
1 answer

Meaning of filter tag in maven-vault-plugin->configuration->embeddeds->embedded?

I have following plugin configuartion in my pom.xml: com.day.jcr.vault maven-vault-plugin true
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
5
votes
1 answer

Jackrabbit repository locking for concurrent access

We have a REST layer and backend as Jackrabbit implementation. We have used TransientRepository with the default settings. When two requests (just for reading the nodes) are fired at the same time, we are facing with the following error…
averagejoe
  • 51
  • 5
5
votes
2 answers

JCR SQL2 - result query order as in JCR browser

I use an application where we can manipulate JCR nodes, typically you would rename, remove, delete, or else move them. Using the JCR API, I can access the nodes in my repository and return a set of nodes in the same order as they are in the JCR. I…
Adriano
  • 19,463
  • 19
  • 103
  • 140
5
votes
3 answers

How to run query on Apache Jackrabbit, explain with example

I am using Apache Jackrabbit as a database. In my case, root node has numbers of child nodes(only at depth 1). All child node has unique name, i.e., some Integer. Each child Node have some properties that I have used further. My task I have to take…
devsda
  • 4,112
  • 9
  • 50
  • 87
4
votes
1 answer

Is it safe to turn off Jackrabbit's indexing feature?

We only use Jackrabbit for storing files, which we are later retrieving using their full path or UUID. Is it safe to turn off the Jackrabbit index in this case? What about Jackrabbit XPath queries, do they use the fulltext index?
nwinkler
  • 52,665
  • 21
  • 154
  • 168
4
votes
3 answers

JCR SQL2 query with dynamic date comparison

I need to query the jcr repository to find nodes where a date property (e.g. jcr:created) is younger than a specific date. Using SQL2, I do the check "jcr:created > date" like that (which works fine): SELECT * FROM [nt:base] AS s WHERE…
nik-8000
  • 113
  • 1
  • 5
4
votes
1 answer

Update content of node in JCR 2.0

I try to update node in JCR 2.0 InputStream content = node.getProperty("jcr:content").getProperty("jcr:data").getBinary().getStream(); //TODO same with stream Binary value = ...; Node contentNode =…
Prevail
  • 57
  • 2
  • 7
1 2
3
52 53