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
4
votes
2 answers

What's the correct way to read an inputStream into a node property in JCR 2?

In JCR 1 you could do: final InputStream in = zip.getInputStream(zip.getEntry(zipEntryName)); node.setProperty(JcrConstants.JCR_CONTENT, in); But that's deprecated in JCR 2 as detailed at…
Stuart
  • 575
  • 1
  • 3
  • 12
4
votes
3 answers

Cannot get/set data from sling models

We have sling model. For example @Model(adaptables=Resource.class) public class MyModel { @Inject private String propertyName; } public Image getPropertyName) { return propertyName; } Also we have added
MastAvalons
  • 1,150
  • 1
  • 14
  • 23
4
votes
3 answers

Get a node form currenPage in CQ5

I have a component that needs to fetch properties from another component on the same page. Is there a way to get a component's NODE object from currentPage ? I have the name of the node I need to fetch available in the code.
Riju Mahna
  • 6,718
  • 12
  • 52
  • 91
4
votes
1 answer

Java JCR how to change order of nodes?

I am using Jackrabbit with JCR, how can I change the order of the nodes?
Phil
  • 46,436
  • 33
  • 110
  • 175
4
votes
2 answers

JCR query by path

i am trying to query a subtree for a given node type by a this query: SELECT * FROM [my:Type] AS my WHERE PATH(my) LIKE '/content/subtree/%' somehow it does not give any results - using ISDESCENDANTNODE works - but query performance is terrible as…
light_303
  • 2,101
  • 2
  • 18
  • 35
4
votes
1 answer

Sling vs CMIS as a REST interface for Apache jackrabbit

If I get it, Apache Sling acts a REST CRUD interface for a Jackrabbit JCR repository. As there already exists a RESTful protocol (CMIS in its AtomPub implementation) to work with JCR repositories, apart from the view/templating layer, is there any…
gpilotino
  • 13,055
  • 9
  • 48
  • 61
4
votes
2 answers

how to get array values of a node property in jcr

Need help in getting the string[] values of node property?? for example I have a node image which has property "references" of type String[] . I need to get the first value of array. Thanks
user2000633
  • 53
  • 1
  • 1
  • 3
4
votes
3 answers

Using Sling Launchpad for production

I was trying to understand deployment scenarios for Sling/JCR when I started wondering if I could simply use the Sling Launchpad and simply start the server using the jar. My project needs simplicity more than performance, but is there something…
3
votes
3 answers

Can I use MongoDB for Java Content Repository?

Can I use MongoDB for JCR storing file (XML file)?
murvinlai
  • 48,919
  • 52
  • 129
  • 177
3
votes
1 answer

How to snapshot backup & restore from JCR (Java Content Repository)

How can I snapshot backup/restore JCR repository? I need complete integrity. This means, single snapshot image produced by single backup command must be valid without any external dependancy. And it could be restored in other JCP instance…
eonil
  • 83,476
  • 81
  • 317
  • 516
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
1 answer

in CQ5 , How to connect an External Database in place of JCR?

I have to connect an External Database ( MySQL ) in place of the inbuilt Content Repository that is called JCR in CQ5 . I am unable to do it . Please give ideas . Suggestions are invited. Komal
Komal Arora
  • 303
  • 1
  • 3
  • 15
3
votes
1 answer

Explanation and use cases of JCR workspace for human beings

Could please anybody interpret JCR 2.0 specification in regard to JCR workspaces ? I understand that a session is always bound to exactly one persistent workspace, though a single persistent workspace may be bound to multiple sessions. Which…
lisak
  • 21,611
  • 40
  • 152
  • 243
3
votes
1 answer

How to read a JCR Node's properties BEFORE it's deleted in Adobe Experience Manager?

I need to audit properties of a JCR Node before the OTB deleted workflow physically deletes the node. AEM provides a few ways to listen to deleted events. I've tried both the EventListener and a ResourceChangeListner. Both scenarios alert my code…
Dee
  • 31
  • 1
3
votes
1 answer

Scaling Repositories horizontally on common x86 hardware

I was wondering if you guys had any tips which repository implementation has good clustering and horizontal scaling characteristics on common hardware? The problem is that we have to implement a preservation system on top of a repository which is…
fasseg
  • 17,504
  • 8
  • 62
  • 73