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

Get html output from a jcr node in CQ5

I wanted to know if there is a way to get the rendered HTML output of a Page node in CQ5 without hitting the actual url. I have the Page node and I want to get the rendered HTML output of that Page node programmatically in java and store it in a…
Rakesh
  • 4,264
  • 4
  • 32
  • 58
8
votes
1 answer

What's the purpose of resourceResolver.adaptTo(Session.class) in Apache Sling?

I am new to Apache Sling, CQ5, etc. In our codebase, we have a code snippet similar to this: void perform(SlingHttpServletRequest request, SlingHttpServletResponse response) { ResourceResolver resourceResolver = request.getResourceResolver(); …
TheFooProgrammer
  • 2,439
  • 5
  • 28
  • 43
8
votes
1 answer

Best Way to implements a tag based search system by JCR like Modeshape

I need a tag based search system by JCR like Modeshape. i want to search nodes by some tags. Question is that what is the best way to implement it? Adding new node type and mixins for tags so if that is true, where can i define my tags name that is…
Reza
  • 193
  • 1
  • 2
  • 19
8
votes
2 answers

How can I get the property of an older version of a node in jackrabbit?

I have created the node and created 3 versions. String path = "/my111"; MyClass m1 = new MyClass(); m1.setPath(path); m1.setName("Myname"); m1.setLanguage("English"); ocm.create(m1); ocm.save(); for (int i = 0; i < 4; i++) { …
vikiiii
  • 9,246
  • 9
  • 49
  • 68
8
votes
1 answer

Using file system instead of database to store pdf files in jackrabbit

In our project we use jackrabbit with spring and tomcat to manage pdf files. Currently MySql database is being used to store blob files (in terms of jackrabbit it's called BundleDbPersistenceManager). As soon as the number of generated files grow…
basilboli
  • 614
  • 1
  • 6
  • 21
7
votes
1 answer

How appropriate it is to use SAML_login with AEM with more than 1m users?

I am investigating a slow login time and some profile synchronisation problems of a large enterprise AEM project. The system has around 1.5m users. And the website is served by 10 publishers. The way this project is built, is that they have enabled…
Tolga Evcimen
  • 7,112
  • 11
  • 58
  • 91
7
votes
1 answer

How to use order by with multiple isdescendantnode

I am attempting to grab multiple nodes of the same type from different areas in the jcr and order them by a date. SELECT * FROM [social:asiResource] WHERE [sling:resourceType] = 'social/qna/components/hbs/topic' AND [isFeatured_b] = true AND NOT…
apothic
  • 345
  • 1
  • 9
7
votes
3 answers

jcr:lastModified vs cq:lastModified

What is the significance of having 2 separate last modified dates(jcr:lastModified and cq:lastModified)? Is there a scenario where one of the dates gets updated and second one not. Cant we live with one of the last modified (maybe jcr) and use it…
Saravana Prakash
  • 1,321
  • 13
  • 25
7
votes
2 answers

Why sling:OsgiConfig node not working in /etc/folder in AEM?

I have a component with properties as follows. @Component(immediate = true, metatype = true, label = "Conf Details") @Service(value = { LocationConfigurationUtil.class }) @Properties({ @Property(label = "location blueprint", name =…
Dileepa
  • 1,019
  • 1
  • 15
  • 40
7
votes
3 answers

What is the difference between jcr:primaryType and jcr:mixinTypes?

I am just curious to know what is the difference between jcr:primaryType and jcr:mixinTypes, and why exactly does jcr:mixinTypes is used ? what does it signifies ? If you check /content/dam folder in crx it shows jcr:primaryType property value as…
yash ahuja
  • 470
  • 1
  • 8
  • 23
6
votes
1 answer

Jackrabbit searches across joined nodes

I have tagged objects in a Jackrabbit repository (actually Adobe/Day CQ's CRX, but I think this is the Jackrabbit code): asset: tags = A, B child asset data 1: tags = A, C, E child asset data 2: tags = D, E I want to query against the union of…
Rup
  • 33,765
  • 9
  • 83
  • 112
6
votes
2 answers

JCR API or Apache Sling

I read a lot of articles like JCR vs Apache Sling and I'm confused about what to use. Some authors advise to use JCR API like more performance optimized and the rest are on the side of Apache Sling because it's faster to write and far more readable…
6
votes
2 answers

JCR vs. CMIS: Which repository API should I use?

I am starting a new project that needs to connect to a repository that offers JCR and CMIS APIs. The project is in Java and both APIs offer every operation we need. What API would you chose and why? JCR or CMIS?
Nicolas Raoul
  • 58,567
  • 58
  • 222
  • 373
6
votes
1 answer

Inject JCR Properties with colon in Sling Model

I'm working with sling models for a project in AEM. I have my sling model setup to inject values to variables. I can setup getters to retrieve properties from the adapted resource as long as the properties have names that don't break java syntax.…
Thomas
  • 303
  • 3
  • 14
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
1
2
3
52 53