@StableMinor(version="12.2", sinceVersion="8.0") @Path(value="/lumis/authentication/users") public class UserResource extends Object
Constructor and Description |
---|
UserResource() |
Modifier and Type | Method and Description |
---|---|
UserConfig |
getCurrentUser()
Returns the current logged in user.
|
Response |
isMember(String groupAlias)
Returns
true if the user of the given session is member of the group with the given alias or
false otherwise. |
@GET @Path(value="/current") @Produces(value="application/json") public UserConfig getCurrentUser() throws PortalException
{
"id":"8A488AF9475E73CD01475FEAEC140F88",
"login":"johnsmith",
"name":"John Stuart Smith",
"firstName":"John",
"middleName":"Stuart",
"lastName":"Smith",
"profileImageHref":"http://localhost:8080/portal/lumis/api/rest/lum-internal/users/8A488AF9475E73CD01475FEAEC140F88/profileimage"
}
PortalException
@Path(value="/current/isMemberOf/{groupAlias:[^/]{1,100}}") @GET @Produces(value="application/json") public Response isMember(@PathParam(value="groupAlias") @NotBlank String groupAlias) throws PortalException
true
if the user of the given session is member of the group with the given alias or
false
otherwise.groupAlias
- the group alias.userSessionId
- the user session identifier.true
if the user of the given session is member of the group with the given alias or
false
otherwise.PortalException
LumisXP 12.2.0.200122 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.