com.atlassian.jira.user.profile
Class ActivityUserProfileFragment

java.lang.Object
  extended by com.atlassian.jira.user.profile.ActivityUserProfileFragment
All Implemented Interfaces:
UserProfileFragment

public class ActivityUserProfileFragment
extends Object
implements UserProfileFragment

Creates a fragment containing the User's activity stream

Since:
v4.1

Constructor Summary
ActivityUserProfileFragment(com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.gadgets.GadgetRequestContextFactory gadgetRequestContextFactory, I18nHelper.BeanFactory i18nFactory)
           
 
Method Summary
 String getFragmentHtml(com.atlassian.crowd.embedded.api.User profileUser, com.atlassian.crowd.embedded.api.User currentUser)
          Get the HTML Fragement.
 String getId()
          Returns a unique id for this fragment.
 boolean showFragment(com.atlassian.crowd.embedded.api.User profileUser, com.atlassian.crowd.embedded.api.User currentUser)
          We only display this is both the Activity Stream Plugin and Gadget Plugin are installed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivityUserProfileFragment

public ActivityUserProfileFragment(com.atlassian.plugin.PluginAccessor pluginAccessor,
                                   com.atlassian.gadgets.GadgetRequestContextFactory gadgetRequestContextFactory,
                                   I18nHelper.BeanFactory i18nFactory)
Method Detail

showFragment

public boolean showFragment(com.atlassian.crowd.embedded.api.User profileUser,
                            com.atlassian.crowd.embedded.api.User currentUser)
We only display this is both the Activity Stream Plugin and Gadget Plugin are installed

Specified by:
showFragment in interface UserProfileFragment
Parameters:
profileUser - The user whose profile the current user is looking at
currentUser - The current user
Returns:
true if both the Activity Stream Plugin and Gadget Plugin are installed, otherwise false
Since:
v4.3

getFragmentHtml

public String getFragmentHtml(com.atlassian.crowd.embedded.api.User profileUser,
                              com.atlassian.crowd.embedded.api.User currentUser)
Get the HTML Fragement.

Specified by:
getFragmentHtml in interface UserProfileFragment
Parameters:
profileUser - The user whose profile the current user is looking at
currentUser - The current user
Returns:
html
Since:
v4.3

getId

public String getId()
Description copied from interface: UserProfileFragment
Returns a unique id for this fragment. The id should be HTML compliant for ids.

Specified by:
getId in interface UserProfileFragment
Returns:
a unique id for this fragment


Copyright © 2002-2012 Atlassian. All Rights Reserved.