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(User profileUser, User currentUser)
          Creates the HTML for this fragment.
 String getId()
          Returns a unique id for this fragment.
 boolean showFragment(User profileUser, User currentUser)
          Whether or not we display this fragment.
 

Method Detail

showFragment

boolean showFragment(User profileUser,
                     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 disply this fragment, otherwise false

getFragmentHtml

String getFragmentHtml(User profileUser,
                       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

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-2010 Atlassian. All Rights Reserved.