|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.user.profile.AbstractUserProfileFragment
public abstract class AbstractUserProfileFragment
Abstract class for UserProfileFragment
that helps writing fragments that are
velocity rendered. It simply renders the template based of the fragment id and the implementing class can also
overide createVelocityParams(com.opensymphony.user.User, com.opensymphony.user.User)
Field Summary | |
---|---|
protected ApplicationProperties |
applicationProperties
|
protected JiraAuthenticationContext |
jiraAuthenticationContext
|
Constructor Summary | |
---|---|
AbstractUserProfileFragment(ApplicationProperties applicationProperties,
JiraAuthenticationContext jiraAuthenticationContext,
com.atlassian.velocity.VelocityManager velocityManager)
|
Method Summary | |
---|---|
protected Map<String,Object> |
createVelocityParams(User profileUser,
User currentUser)
Deprecated. Use createVelocityParams(User, User) . Since v4.3 |
protected Map<String,Object> |
createVelocityParams(com.atlassian.crowd.embedded.api.User profileUser,
com.atlassian.crowd.embedded.api.User currentUser)
Creates the parameters passed to the velocity template. |
String |
getFragmentHtml(User profileUser,
User currentUser)
Creates the HTML for this fragment. |
String |
getFragmentHtml(com.atlassian.crowd.embedded.api.User profileUser,
com.atlassian.crowd.embedded.api.User currentUser)
Creates the HTML for this fragment. |
boolean |
showFragment(User profileUser,
User currentUser)
Whether or not we display 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.jira.user.profile.UserProfileFragment |
---|
getId |
Field Detail |
---|
protected final ApplicationProperties applicationProperties
protected final JiraAuthenticationContext jiraAuthenticationContext
Constructor Detail |
---|
public AbstractUserProfileFragment(ApplicationProperties applicationProperties, JiraAuthenticationContext jiraAuthenticationContext, com.atlassian.velocity.VelocityManager velocityManager)
Method Detail |
---|
public final boolean showFragment(User profileUser, User currentUser)
UserProfileFragment
showFragment
in interface UserProfileFragment
profileUser
- The user whose profile the current user is looking atcurrentUser
- The current user
public boolean showFragment(com.atlassian.crowd.embedded.api.User profileUser, com.atlassian.crowd.embedded.api.User currentUser)
showFragment
in interface UserProfileFragment
profileUser
- The user whose profile the current user is looking atcurrentUser
- The current user
public final String getFragmentHtml(User profileUser, User currentUser)
UserProfileFragment
getFragmentHtml
in interface UserProfileFragment
profileUser
- The user whose profile the current user is looking atcurrentUser
- The current user
public String getFragmentHtml(com.atlassian.crowd.embedded.api.User profileUser, com.atlassian.crowd.embedded.api.User currentUser)
UserProfileFragment.getId()
getFragmentHtml
in interface UserProfileFragment
profileUser
- The user whose profile the current user is looking atcurrentUser
- The current user
protected final Map<String,Object> createVelocityParams(User profileUser, User currentUser)
createVelocityParams(User, User)
. Since v4.3
profileUser
- The user whose profile the current user is looking atcurrentUser
- The current user
protected Map<String,Object> createVelocityParams(com.atlassian.crowd.embedded.api.User profileUser, com.atlassian.crowd.embedded.api.User currentUser)
profileUser
- The user whose profile the current user is looking atcurrentUser
- The current user
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |