Search in sources :

Example 1 with UserHomepageSelectedEvent

use of org.kie.workbench.common.screens.social.hp.client.homepage.events.UserHomepageSelectedEvent in project kie-wb-common by kiegroup.

the class UserHomePageSidePresenter method refreshCacheAndGeneratesSelectEvent.

void refreshCacheAndGeneratesSelectEvent(final String userName) {
    socialUserRepositoryAPI.call(new RemoteCallback<SocialUser>() {

        public void callback(final SocialUser user) {
            users.put(user.getUserName(), user);
            selectedEvent.fire(new UserHomepageSelectedEvent(userName));
        }
    }).findSocialUser(userName);
}
Also used : UserHomepageSelectedEvent(org.kie.workbench.common.screens.social.hp.client.homepage.events.UserHomepageSelectedEvent) SocialUser(org.ext.uberfire.social.activities.model.SocialUser) RemoteCallback(org.jboss.errai.common.client.api.RemoteCallback)

Aggregations

SocialUser (org.ext.uberfire.social.activities.model.SocialUser)1 RemoteCallback (org.jboss.errai.common.client.api.RemoteCallback)1 UserHomepageSelectedEvent (org.kie.workbench.common.screens.social.hp.client.homepage.events.UserHomepageSelectedEvent)1