Publish / unpublish History | Community
Skip to main content
Level 2
Oct 19, 2022 6:33 AM UTC
Solved

Publish / unpublish History

Hi

 

Is there any way of checking if a page was unpublished before it was published?
Want to check when (Date) it got published and when (Date) it got unpublished and User who published & unpublished

Thanks in Advance !!!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Shiv_Prakash_Patel
Shiv_Prakash_PatelAccepted solution
New Participant
Oct 19, 2022 8:01 AM UTC

Hi @sigarambotla_hemanthku ,

You can use ReplicationStatus to get the deactivated/unpublished status of the page:

 

ReplicationStatus status = page.adaptTo(ReplicationStatus.class);
boolean deactivatedStatus = status.isDeactivated();

 You can also check the activated/published status below:

boolean activatedStatus = status.isActivated();

Hope this could help you

Thanks

Shiv 

Shiv Prakash

3 replies

Shiv_Prakash_Patel
Shiv_Prakash_PatelAccepted solution
New Participant
Oct 19, 2022 8:01 AM UTC

Hi @sigarambotla_hemanthku ,

You can use ReplicationStatus to get the deactivated/unpublished status of the page:

 

ReplicationStatus status = page.adaptTo(ReplicationStatus.class);
boolean deactivatedStatus = status.isDeactivated();

 You can also check the activated/published status below:

boolean activatedStatus = status.isActivated();

Hope this could help you

Thanks

Shiv 

Translate
Shiv Prakash
Bhuwan_B
New Participant
Oct 19, 2022 7:09 AM UTC
Level 2
Oct 19, 2022 7:29 AM UTC

Is there any other way as i am not finding that /etc/acs-commons/audit-log-search.html  path in that

 

 

Translate