com.atlassian.jira.user.profile
Interface UserProfileFragment

All Known Implementing Classes:
AbstractUserProfileFragment, ActivityUserProfileFragment, AssignedAndOpenUserProfileFragment, DetailsUserProfileFragment, PreferencesUserProfileFragment

public interface UserProfileFragment

A class that respresents a small piece of a screen on a User Profile Tab that is fragment based.


Method Summary
 String getFragmentHtml(com.atlassian.crowd.embedded.api.User profileUser, com.atlassian.crowd.embedded.api.User currentUser)
          Creates the HTML for this fragment.
 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)
          Whether or not we display this fragment.
 

Method Detail

showFragment

boolean showFragment(com.atlassian.crowd.embedded.api.User profileUser,
                     com.atlassian.crowd.embedded.api.User currentUser)
Whether or not we display this fragment.

Parameters:
profileUser - The user whose profile the current user is looking at
currentUser - The current user
Returns:
true if we should display this fragment, otherwise false
Since:
v4.3

getFragmentHtml

String getFragmentHtml(com.atlassian.crowd.embedded.api.User profileUser,
                       com.atlassian.crowd.embedded.api.User currentUser)
Creates the HTML for this fragment.

Parameters:
profileUser - The user whose profile the current user is looking at
currentUser - The current user
Returns:
The HTML of this fragment
Since:
v4.3

getId

String getId()
Returns a unique id for this fragment. The id should be HTML compliant for ids.

Returns:
a unique id for this fragment


Copyright © 2002-2011 Atlassian. All Rights Reserved.