Interface UserFormatter
- All Known Implementing Classes:
UserFormatterImpl
@PublicApi
public interface UserFormatter
- Since:
- v6.0
-
Method Summary
Modifier and TypeMethodDescriptionformatUserkey(String userkey, String id) Renders the formatted user for a given section on the screen.Renders the formatted user for a given section on the screen.formatUsername(String username, String id) Renders the formatted user for a given section on the screen.Renders the formatted user for a given section on the screen.
-
Method Details
-
formatUserkey
Renders the formatted user for a given section on the screen.The result should always be ready to display in an HTML response i.e. it should be HTML encoded if necessary.
- Parameters:
userkey- the user to format.id- A value providing extra context to the rendering process.- Returns:
- the formatted user
-
formatUserkey
Renders the formatted user for a given section on the screen.The result should always be ready to display in an HTML response i.e. it should be HTML encoded if necessary.
- Parameters:
userkey- the user to format.id- A value providing extra context to the rendering process.params- Additional context to pass to the renderer- Returns:
- the formatted user
-
formatUsername
Renders the formatted user for a given section on the screen.The result should always be ready to display in an HTML response i.e. it should be HTML encoded if necessary.
- Parameters:
username- the user to format.id- A value providing extra context to the rendering process.- Returns:
- the formatted user
-
formatUsername
Renders the formatted user for a given section on the screen.The result should always be ready to display in an HTML response i.e. it should be HTML encoded if necessary.
- Parameters:
username- the user to format.id- A value providing extra context to the rendering process.params- Additional context to pass to the renderer- Returns:
- the formatted user
-