This conversation has been locked due to inactivity. Please create a new post.
 
     
     
    
            
          
This conversation has been locked due to inactivity. Please create a new post.
          
        
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 !!!
Solved! Go to Solution.
Views
Replies
Total Likes
          
        
Hi @Sigkumar ,
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
 
          
        
@Sigkumar Can you please check Acs commons Audit log Search.
https://adobe-consulting-services.github.io/acs-aem-commons/features/audit-log-search/index.html
 
          
        
          
        
Hi @Sigkumar ,
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
 
 
					
				
				
			
		
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies