Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

To rollout and publish the rolledout pages

Avatar

Avatar
Shape 1
Level 1
abinayaSirius
Level 1

Likes

2 likes

Total Posts

3 posts

Correct reply

1 solution
Top badges earned
Shape 1
Give Back
Boost 1
Affirm 1
View profile

Avatar
Shape 1
Level 1
abinayaSirius
Level 1

Likes

2 likes

Total Posts

3 posts

Correct reply

1 solution
Top badges earned
Shape 1
Give Back
Boost 1
Affirm 1
View profile
abinayaSirius
Level 1

07-09-2021

Request for Feature Enhancement (RFE) Summary: Rollout and publish the rolledout pages.
Use-case: A feature in the OOB toolbox that will enable the authors to rollout a page. As a summary of the rollout we need to display which are all the pages that are affected along with a publish button by the side of the list. Rightnow, the author is unaware of what are the pages that affected by the rollout. Publishing each page after the rollout is very difficult.
Current/Experienced Behavior: we dont have an option in the sites.html to rollout a page. 
Improved/Expected Behavior: We need to check if the page is a blueprint or not and conditionally display a button that says "rollout and publish". Once rollout operation is completed the author should be able o see a list of pages affected by the rollout and need a publish button so that the rolledout pages can be published without hastle.
Environment Details (AEM version/service pack, any other specifics if applicable):  
Customer-name/Organization name: Abinaya/Perficient
Screenshot (if applicable):  
Code package (if applicable):  
2 Comments

Avatar

Avatar
Boost 25
Level 4
Rohit_Negi550
Level 4

Likes

37 likes

Total Posts

39 posts

Correct reply

9 solutions
Top badges earned
Boost 25
Springboard
Validate 1
Applaud 25
Affirm 5
View profile

Avatar
Boost 25
Level 4
Rohit_Negi550
Level 4

Likes

37 likes

Total Posts

39 posts

Correct reply

9 solutions
Top badges earned
Boost 25
Springboard
Validate 1
Applaud 25
Affirm 5
View profile
Rohit_Negi550
Level 4

07-09-2021

Hi @abinayaSirius 

One way to know whether a page is a blueprint or not can be by knowing whether it have  livecopy or not.

You can use below code to know whether it has a livecopy or not:

Resource resource = req.getResourceResolver().getResource("<path of the page you wanted to check for blueprint>");

LiveRelationshipManager liveRelationshipManager = req.getResourceResolver().adaptTo(LiveRelationshipManager.class);
RangeIterator rangeIterator = liveRelationshipManager.getLiveRelationships(resource,"",null);

 

if rangeIterator is null that means it doesn't have any live copy hence is not a blueprint.

You can use the same code to get all the live copies if the path provided is a blueprint.

Avatar

Avatar
Employee
clatimier
Employee

Likes

0 likes

Total Posts

0 posts

Correct reply

0 solutions
View profile

Avatar
Employee
clatimier
Employee

Likes

0 likes

Total Posts

0 posts

Correct reply

0 solutions
View profile
clatimier
Employee

13-09-2021

Hello @abinayaSirius 

Could you please let us if the proposal from @Rohit_Negi550 works for your use case and if you managed to get the information as needed?


Thanks

Status changed to: Needs Info