Search in sources :

Example 1 with GroupDto

use of org.camunda.bpm.engine.rest.dto.identity.GroupDto in project camunda-bpm-platform by camunda.

the class GroupResourceImpl method getGroup.

public GroupDto getGroup(UriInfo context) {
    Group dbGroup = findGroupObject();
    if (dbGroup == null) {
        throw new InvalidRequestException(Status.NOT_FOUND, "Group with id " + resourceId + " does not exist");
    }
    GroupDto group = GroupDto.fromGroup(dbGroup);
    return group;
}
Also used : Group(org.camunda.bpm.engine.identity.Group) GroupDto(org.camunda.bpm.engine.rest.dto.identity.GroupDto) InvalidRequestException(org.camunda.bpm.engine.rest.exception.InvalidRequestException)

Aggregations

Group (org.camunda.bpm.engine.identity.Group)1 GroupDto (org.camunda.bpm.engine.rest.dto.identity.GroupDto)1 InvalidRequestException (org.camunda.bpm.engine.rest.exception.InvalidRequestException)1