public void update(final AddedFeaturedStreamResponseEvent event)
{
if (Session.getInstance().getCurrentPersonRoles().contains(Role.SYSTEM_ADMIN))
{
FeaturedStreamModel.getInstance().fetch(
new GetFeaturedStreamsPageRequest(0, Integer.MAX_VALUE), true);
}
}
});
EventBus.getInstance().addObserver(DeletedFeaturedStreamResponse.class,
new Observer<DeletedFeaturedStreamResponse>()
{
public void update(final DeletedFeaturedStreamResponse event)
{
if (Session.getInstance().getCurrentPersonRoles().contains(Role.SYSTEM_ADMIN))
{
FeaturedStreamModel.getInstance().fetch(
new GetFeaturedStreamsPageRequest(0, Integer.MAX_VALUE), true);
}
}
});
}