page manager api uses

Avatar

Avatar

chotut66568952

Avatar

chotut66568952

chotut66568952

10-04-2019

hi all,

I have a component in 6.4 aem and i authored the value for that componet through dilog .now the component node has saved with dilogs fields inside conf template folder.now i need to access that component node and properties in my code or java code to map that node properties with some static data.how can i access that node to map that node properties woth spme data and where i need to do this in java code or somewhere else

please help me out

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831
Arun_Patidar
MVP

10-04-2019

Hi,

You can use either JCR Node API.

Node (Content Repository for Java Technology API Version 2.0)

or

If you are trying to achieving context aware config, then you can access properties using caconfig object.

Apache Sling :: Apache Sling Context-Aware Configuration

Answers (4)

Answers (4)

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

10-04-2019

You can use the JCR API to reference a node and modify any of its props. Are you familiar with using the JCR API? Do you know how to get a session by using a System user and the Sling Mapping Service?

Avatar

Avatar

ashishm85330433

Avatar

ashishm85330433

ashishm85330433

10-04-2019

Dear Arun, I am saving this node properties from dilog box and values getting updated in conf template folder where node get created.every time values getting changed but not property names.so do I need to create interface and implement class where I can use sling or node api .one another way also there using sling api..get resouse .plz suggest

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831
Arun_Patidar
MVP

10-04-2019

Hi,

If this is a fixed node and property, you can access using Node API.

Avatar

Avatar

ashishm85330433

Avatar

ashishm85330433

ashishm85330433

10-04-2019

Hi Arun, can you suggest which is best for the above use case I have only one node and properties. Now how I can access this node .do I need to write java imp class or any article if there is