com.atlassian.jira.plugin.userformat
Class DefaultUserFormatManager

java.lang.Object
  extended by com.atlassian.jira.plugin.userformat.DefaultUserFormatManager
All Implemented Interfaces:
UserFormatManager

Deprecated. Substituted by DefaultUserFormats

@Deprecated
public class DefaultUserFormatManager
extends Object
implements UserFormatManager

Since:
v3.13
See Also:
DefaultUserFormats, UserFormats

Constructor Summary
DefaultUserFormatManager(UserFormats userFormats)
          Deprecated.  
 
Method Summary
 String formatUser(String key, String type, String id)
          Deprecated. Convenience method to format a given user.
 String formatUser(String key, String type, String id, Map params)
          Deprecated. Convenience method to format a given user.
 String formatUserkey(String userkey, String type, String id)
          Deprecated. Convenience method to format a given user.
 String formatUserkey(String userkey, String type, String id, Map params)
          Deprecated. Convenience method to format a given user.
 String formatUsername(String username, String type, String id)
          Deprecated. Convenience method to format a given user.
 String formatUsername(String username, String type, String id, Map params)
          Deprecated. Convenience method to format a given user.
 UserFormat getUserFormat(String type)
          Deprecated. Returns the UserFormat for a specific type, or null if none exists
 UserFormatter getUserFormatter(String type)
          Deprecated. Returns the UserFormat for a specific type, or null if none exists
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultUserFormatManager

public DefaultUserFormatManager(UserFormats userFormats)
Deprecated. 
Method Detail

formatUser

public String formatUser(String key,
                         String type,
                         String id)
Deprecated. 
Description copied from interface: UserFormatManager
Convenience method to format a given user. Method looks up the mapped user format for the type and passes the username and id to this user format. Returns null if no mapped user format can be found.

Specified by:
formatUser in interface UserFormatManager
Parameters:
key - The user to format
type - The user format type to use
id - A context sensitive id
Returns:
formatted user or null.

formatUsername

public String formatUsername(String username,
                             String type,
                             String id)
Deprecated. 
Description copied from interface: UserFormatManager
Convenience method to format a given user. Method looks up the mapped user format for the type and passes the username and id to this user format. Returns null if no mapped user format can be found.

Specified by:
formatUsername in interface UserFormatManager
Parameters:
username - The key of the user to format
type - The user format type to use
id - A context sensitive id
Returns:
formatted user or null.

formatUserkey

public String formatUserkey(String userkey,
                            String type,
                            String id)
Deprecated. 
Description copied from interface: UserFormatManager
Convenience method to format a given user. Method looks up the mapped user format for the type and passes the user key and id to this user format. Returns null if no mapped user format can be found.

Specified by:
formatUserkey in interface UserFormatManager
Parameters:
userkey - The key of the user to format
type - The user format type to use
id - A context sensitive id
Returns:
formatted user or null.

formatUser

public String formatUser(String key,
                         String type,
                         String id,
                         Map params)
Deprecated. 
Description copied from interface: UserFormatManager
Convenience method to format a given user. The params user allows a user to pass any information needed for additional context to the underlying UserFormat.

Specified by:
formatUser in interface UserFormatManager
Parameters:
key - The user to format
type - The user format type to use
id - A context sensitive id
params - Additional context to provide to the userformatter.
Returns:
formatted user or null.

formatUsername

public String formatUsername(String username,
                             String type,
                             String id,
                             Map params)
Deprecated. 
Description copied from interface: UserFormatManager
Convenience method to format a given user. The params user allows a user to pass any information needed for additional context to the underlying UserFormat.

Specified by:
formatUsername in interface UserFormatManager
Parameters:
username - The key of the user to format
type - The user format type to use
id - A context sensitive id
params - Additional context to provide to the userformatter.
Returns:
formatted user or null.

formatUserkey

public String formatUserkey(String userkey,
                            String type,
                            String id,
                            Map params)
Deprecated. 
Description copied from interface: UserFormatManager
Convenience method to format a given user. The params user allows a user to pass any information needed for additional context to the underlying UserFormat.

Specified by:
formatUserkey in interface UserFormatManager
Parameters:
userkey - The key of the user to format
type - The user format type to use
id - A context sensitive id
params - Additional context to provide to the userformatter.
Returns:
formatted user or null.

getUserFormat

public UserFormat getUserFormat(String type)
Deprecated. 
Description copied from interface: UserFormatManager
Returns the UserFormat for a specific type, or null if none exists

Specified by:
getUserFormat in interface UserFormatManager
Parameters:
type - the specific type for which to find a UserFormat.
Returns:
the UserFormat for a specific type, or null if none exists

getUserFormatter

public UserFormatter getUserFormatter(String type)
Deprecated. 
Description copied from interface: UserFormatManager
Returns the UserFormat for a specific type, or null if none exists

Specified by:
getUserFormatter in interface UserFormatManager
Parameters:
type - the specific type for which to find a UserFormat.
Returns:
the UserFormat for a specific type, or null if none exists


Copyright © 2002-2014 Atlassian. All Rights Reserved.