Package com.logicaldoc.core.automation
Class UserTool
java.lang.Object
com.logicaldoc.core.automation.UserTool
Utility methods to handle some user related operations from within the
 Automation
- Since:
- 8.6.1
- Author:
- Meschieri - LogicalDOC
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGenerates and retrieves the avatar image for a given usergetAvatarImg(long userId, int size) Generates the HTML img tag for displaying an avatargetAvatarImg(String username, int size) Generates the HTML img tag for displaying an avatargetUser(long userId) Retrieves a user objectRetrieves a user objectvoidinitialize(User user) Initializes lazy loaded collections
- 
Constructor Details- 
UserToolpublic UserTool()
 
- 
- 
Method Details- 
getUserRetrieves a user object- Parameters:
- username- the username
- Returns:
- the user object
 
- 
getUserRetrieves a user object- Parameters:
- userId- the user ID
- Returns:
- the user object
 
- 
initializeInitializes lazy loaded collections- Parameters:
- user- the user to initialize
 
- 
getAvatarGenerates and retrieves the avatar image for a given user- Parameters:
- username- username of the user
- Returns:
- the avatar in Base64
 
- 
getAvatarImgGenerates the HTML img tag for displaying an avatar- Parameters:
- username- username of the user
- size- image size
- Returns:
- the avatar in Base64
 
- 
getAvatarImgGenerates the HTML img tag for displaying an avatar- Parameters:
- userId- identifier of the user
- size- image size
- Returns:
- the avatar in Base64
 
 
-