Class DefaultUserFormatManager

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

@Deprecated public class DefaultUserFormatManager extends Object implements UserFormatManager
Deprecated.
Substituted by DefaultUserFormats
Since:
v3.13
See Also:
  • Constructor Details

    • DefaultUserFormatManager

      public DefaultUserFormatManager(UserFormats userFormats)
      Deprecated.
  • Method Details

    • 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