Class PrincipalRolesResource
java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.rest.principal.impl.resources.PrincipalRolesResource
- All Implemented Interfaces:
RestResource
@Path("principals/{pk: (?!.*(businessunits))[^/]+}")
public class PrincipalRolesResource
extends AbstractRestResource
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
static final record
static final record
-
Field Summary
Fields inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
uriInfo
-
Constructor Summary
ConstructorDescriptionPrincipalRolesResource
(Context context, LoginRoleActionService loginRoleActionService) -
Method Summary
Modifier and TypeMethodDescriptiongetRoles()
jakarta.ws.rs.core.Response
setSelectedRoles
(String pk, LoginRoleActionService.LoginRoleUpdate[] updates) Methods inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
getPathParameter, setUriInfo, tryGetInt
-
Constructor Details
-
PrincipalRolesResource
-
-
Method Details
-
getRoles
@GET @Path("available-roles") @Produces("application/json") public PrincipalRolesResource.Roles getRoles() -
getBusinessUnits
@GET @Path("available-business-units") @Produces("application/json") public PrincipalRolesResource.BusinessUnits getBusinessUnits() -
getSelectedRoles
@GET @Path("selected-roles") @Produces("application/json") public PrincipalRolesResource.LoginRoles getSelectedRoles(@PathParam("pk") String pk) -
setSelectedRoles
@PATCH @Path("selected-roles") @Produces("application/json") public jakarta.ws.rs.core.Response setSelectedRoles(@PathParam("pk") String pk, LoginRoleActionService.LoginRoleUpdate[] updates)
-