}
public final int doWikiStartTag() throws IOException, WikiSecurityException
{
UserManager manager = m_wikiContext.getEngine().getUserManager();
UserProfile profile = manager.getUserProfile( m_wikiContext.getWikiSession() );
String result = null;
if ( EXISTS.equals( m_prop ) || NOT_NEW.equals( m_prop ) )
{
return profile.isNew() ? SKIP_BODY : EVAL_BODY_INCLUDE;
}
else if ( NEW.equals( m_prop ) || NOT_EXISTS.equals( m_prop ) )
{
return profile.isNew() ? EVAL_BODY_INCLUDE : SKIP_BODY;
}
else if ( CREATED.equals( m_prop ) && profile.getCreated() != null )
{
result = profile.getCreated().toString();
}
else if ( EMAIL.equals( m_prop ) )
{
result = profile.getEmail();
}
else if ( FULLNAME.equals( m_prop ) )
{
result = profile.getFullname();
}
else if ( GROUPS.equals( m_prop ) )
{
result = printGroups( m_wikiContext );
}
else if ( LOGINNAME.equals( m_prop ) )
{
result = profile.getLoginName();
}
else if ( MODIFIED.equals( m_prop ) && profile.getLastModified() != null )
{
result = profile.getLastModified().toString();
}
else if ( ROLES.equals( m_prop ) )
{
result = printRoles( m_wikiContext );
}
else if ( WIKINAME.equals( m_prop ) )
{
result = profile.getWikiName();
if( result == null )
{
//
// Default back to the declared user name