Questions tagged [jsr170]

JSR 170 specifies a standard API to access content repositories in Java.

JSR 170 specifies a standard API to access content repositories in Java. The detailed description is here: http://jcp.org/en/jsr/detail?id=170

13 questions
14
votes
1 answer

Get File Out of JCR File Node

I have the following code to insert "rose.gif" into a roseNode. But how do I retrieve the file from the repository? Node roseNode = session.getRootNode().getNode("wiki:encyclopedia/wiki:entry[1]/"); File file = new File("rose.gif"); …
Steve
  • 11,831
  • 14
  • 51
  • 63
5
votes
1 answer

JCR jackrabbit pagination

I'm using the following JCR-SQL2 Query to retrieve some files from jackrabbit repository SELECT id FROM [nt:file] WHERE ISDESCENDANTNODE([/repo/cms]) How can I use pagination in jackrabbit to retrieve only a limit number of files. I mean the…
Ammar Bozorgvar
  • 1,230
  • 19
  • 30
4
votes
5 answers

How do I configure custom node definitions in Apache Jackrabbit?

Is there a way that I can configure custom node types for Apache Jackrabbit to be registered when a new repository is instantiated? I am automating my build using Apache Maven and have some unit tests to run with JUnit and integration tests to run…
Brian Matthews
  • 8,506
  • 7
  • 46
  • 68
3
votes
6 answers

browsing JACKRABBIT content visually?

i want to remove my current content from my DataBase tables. and take them to a Content Repository (JCR) is there any wizard that lets browsing Jackrabbit content visually. because working with jackrabbit and loosing time becouse of running simple…
Ammar Bozorgvar
  • 1,230
  • 19
  • 30
3
votes
2 answers

Logging into Jackrabbit with custom LoginModule

I am trying to write a LoginModule that authenticates users with Jackrabbit repository. However, I want it to check the credentials that are stored in repository itself. So the problem is, in my LoginModule I have to connect to the repository again,…
pitr
  • 715
  • 1
  • 8
  • 25
3
votes
1 answer

Migration of blobs from database to the file system in jackrabbit

As being proposed in the previous discussion Using file system instead of database to store pdf files in jackrabbit we can use FileDataStore to store blob files in the file system instead of database (i my case have stored ~ 100 kb size pdfs). The…
basilboli
  • 614
  • 1
  • 6
  • 21
2
votes
1 answer

Jackrabbit Running Queries against UUID

I am using Jackrabbit and I am trying to query for an existing node which has a UUID. My code is shown below. The problem is that UUID for referenceNode is of the form "'90be246a-a17c-445e-a5ad-81b064de0bee'" and it seems that the XPATH engine used…
Steve
  • 11,831
  • 14
  • 51
  • 63
2
votes
1 answer

JCR (JSR-170) connector for Lotus Notes

I'm looking for JCR (JSR-170) connector for Lotus Notes Domino Server 7 for integration between our customer Domino server and our software. Does anybody has an experience in dealing with such JCR connector? I found only day.com connector but not…
FoxyBOA
  • 5,788
  • 8
  • 48
  • 82
2
votes
1 answer

Clustering with Jackrabbit

I am about to get started with clustering a jackrabbit repository run by hippocms in the community version. I got it up and running but some parts of configuration I don't understand. I understood the concept of clustering jackrabbit this way: You…
cloudnaut
  • 982
  • 3
  • 13
  • 35
1
vote
1 answer

JCR Re-opening Connections

I am using JCR 1.0 and I am having problems re-opening JCR connections after I close them. Here are my two helper methods: private void openConnection() throws Exception { loadDbProperties(); repository = new…
Steve
  • 11,831
  • 14
  • 51
  • 63
1
vote
2 answers

Problems with hyphen in Jackrabbit XPath query

Firstly, let me just say that I'm very new to JSR-170 and Jackrabbit/Lucene in general. I have the following XPath query: //*[@sling:resourceType="users/user-profile" and jcr:contains(*/*/*,'sophie\-a')] order by @jcr:score descending I have a user…
Cyntech
  • 5,362
  • 6
  • 33
  • 47
0
votes
0 answers

JSR 283 Query and Seaching

I am in the early stage of a tagged document repository using Apache Jackrabbit. My initial exploration was with JSR 170. Upon learning that JSR 283 deprecates things like XPath, I began to look more at JSR 283. My (still quite ignorant) impression…
stuartw
  • 120
  • 4
0
votes
1 answer

How to set jsp pages unaccessible from addressing via browsers in Apache Sling?

I am developing a sling WCMS. When I call address [e.g. 'http://localhost:8080/apps/bcms/pages/test.jsp'] of a page in the browser, a save dialog box will appear and ask to save jsp file. How to prevent jsp pages accessible via direct addressing?
Babak Behzadi
  • 1,236
  • 2
  • 16
  • 33