Package lumis.portal.user
Class UserInternalResource
- java.lang.Object
-
- lumis.portal.user.UserInternalResource
-
-
Constructor Summary
Constructors Constructor Description UserInternalResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response
getProfileImage(String userId)
Get the profile image file of the specified user based on his identifier or sends redirect to default image of no profile image is set.List<UserConfig>
getUsers(String query)
Returns a list of user information given a query string.
-
-
-
Method Detail
-
getProfileImage
@Path("/{id:(([A-F0-9]{32})|default|current)}/profileimage") @GET public Response getProfileImage(@NotNull @PathParam("id") String userId)
Get the profile image file of the specified user based on his identifier or sends redirect to default image of no profile image is set.- Parameters:
userId
- the user identifier may be default, current or user identifier.- Returns:
- Response a response answering to use a cached image or with the profile image.
-
getUsers
@Path("/getusers") @GET @Produces("application/json") public List<UserConfig> getUsers(@QueryParam("query") @NotNull String query) throws PortalException, SQLException
Returns a list of user information given a query string. The search is applied to the user login and user name.- Parameters:
query
-- Returns:
- List of users which matches the search query.
- Throws:
PortalException
SQLException
- Since:
- 10.1.0
- See Also:
IUserManagerSPI.findUsers(String)
-
-