Interface UserFormatManager
- All Known Implementing Classes:
DefaultUserFormatManager
Deprecated.
Manages the
UserFormat
to type mapping. UserFormat modules may be provided for various different types.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionformatUser
(String username, String type, String id) Deprecated.formatUser
(String username, String type, String id, Map params) Deprecated.formatUserkey
(String userkey, String type, String id) Deprecated.Convenience method to format a given user.formatUserkey
(String userkey, String type, String id, Map params) Deprecated.Convenience method to format a given user.formatUsername
(String username, String type, String id) Deprecated.Convenience method to format a given user.formatUsername
(String username, String type, String id, Map params) Deprecated.Convenience method to format a given user.getUserFormat
(String type) Deprecated.Returns theUserFormat
for a specific type, or null if none existsgetUserFormatter
(String type) Deprecated.Returns theUserFormat
for a specific type, or null if none exists
-
Method Details
-
getUserFormat
Deprecated.Returns theUserFormat
for a specific type, or null if none exists- Parameters:
type
- the specific type for which to find a UserFormat.- Returns:
- the
UserFormat
for a specific type, or null if none exists
-
getUserFormatter
Deprecated.Returns theUserFormat
for a specific type, or null if none exists- Parameters:
type
- the specific type for which to find a UserFormat.- Returns:
- the
UserFormat
for a specific type, or null if none exists - Since:
- 6.0
-
formatUser
Deprecated.UseformatUserkey(String, String, String)
orformatUsername(String, String, String)
instead. Since v6.0.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.- Parameters:
username
- The user to formattype
- The user format type to useid
- A context sensitive id- Returns:
- formatted user or null.
-
formatUsername
Deprecated.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.- Parameters:
username
- The key of the user to formattype
- The user format type to useid
- A context sensitive id- Returns:
- formatted user or null.
- Since:
- 6.0
-
formatUserkey
Deprecated.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.- Parameters:
userkey
- The key of the user to formattype
- The user format type to useid
- A context sensitive id- Returns:
- formatted user or null.
- Since:
- 6.0
-
formatUser
Deprecated.UseformatUserkey(String, String, String, java.util.Map)
orformatUsername(String, String, String, java.util.Map)
instead. Since v6.0.Convenience method to format a given user. The params user allows a user to pass any information needed for additional context to the underlyingUserFormat
.- Parameters:
username
- The user to formattype
- The user format type to useid
- A context sensitive idparams
- Additional context to provide to the userformatter.- Returns:
- formatted user or null.
-
formatUsername
Deprecated.Convenience method to format a given user. The params user allows a user to pass any information needed for additional context to the underlyingUserFormat
.- Parameters:
username
- The key of the user to formattype
- The user format type to useid
- A context sensitive idparams
- Additional context to provide to the userformatter.- Returns:
- formatted user or null.
- Since:
- 6.0
-
formatUserkey
Deprecated.Convenience method to format a given user. The params user allows a user to pass any information needed for additional context to the underlyingUserFormat
.- Parameters:
userkey
- The key of the user to formattype
- The user format type to useid
- A context sensitive idparams
- Additional context to provide to the userformatter.- Returns:
- formatted user or null.
- Since:
- 6.0
-
UserFormats
instead.