EventBus.getInstance().addObserver(GotPersonalInformationResponseEvent.class,
new Observer<GotPersonalInformationResponseEvent>()
{
public void update(final GotPersonalInformationResponseEvent event)
{
PersonModelView person = event.getResponse();
currentDisplayName = person.getDisplayName();
currentScopeId = person.getStreamId();
if (person.isAccountLocked())
{
streamOptionsPanel.getStyle().setDisplay(Display.NONE);
currentStream.setScopeType(null);
errorPanel.clear();
errorPanel.setVisible(true);
activitySpinner.addClassName(StaticResourceBundle.INSTANCE.coreCss().displayNone());
errorPanel.add(new Label("Employee profile not found"));
errorPanel.add(new Label(LOCKED_USER_TEXT));
streamPanel.removeStyleName(StaticResourceBundle.INSTANCE.coreCss().hidden());
streamDetailsComposite.setVisible(false);
currentStream.setScopeType(null);
// block display of activities
currentStreamRequest = null;
streamPanel.clear();
unseenActivityNotificationPanel.setActive(false);
activitySpinner.addClassName(StaticResourceBundle.INSTANCE.coreCss().displayNone());
streamPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().hidden());
noResults.addClassName(StaticResourceBundle.INSTANCE.coreCss().displayNone());
moreLink.setVisible(false);
}
else
{
currentStream.setDisplayName(person.getDisplayName());
streamDetailsComposite.setVisible(true);
}
if (!person.isStreamPostable()
&& !person.getAccountId().equals(
Session.getInstance().getCurrentPerson().getAccountId()))
{
currentStream.setScopeType(null);
}
/*if (currentStream.getScopeType() != null)