@Override protected boolean shouldDisplay(NotificationContext context) { final ConfluenceEntityObject content = context.getContent(); return content instanceof AbstractPage && Page.CONTENT_TYPE.equals(((AbstractPage) content).getType()); } }
@Override protected boolean shouldDisplay(NotificationContext context) { return context.getContent() instanceof AbstractPage && BlogPost.CONTENT_TYPE.equals(((AbstractPage) context.getContent()).getType()); } }