Search in sources :

Example 1 with ResourceWrapper

use of eu.bcvsolutions.idm.core.api.rest.domain.ResourceWrapper in project CzechIdMng by bcvsolutions.

the class WorkflowDefinitionAssembler method toResource.

@Override
public ResourceWrapper<WorkflowProcessDefinitionDto> toResource(WorkflowProcessDefinitionDto entity) {
    ResourceWrapper<WorkflowProcessDefinitionDto> wrapper = new ResourceWrapper<WorkflowProcessDefinitionDto>(entity);
    Link selfLink = linkTo(methodOn(WorkflowDefinitionController.class).get(entity.getKey())).withSelfRel();
    wrapper.add(selfLink);
    return wrapper;
}
Also used : ResourceWrapper(eu.bcvsolutions.idm.core.api.rest.domain.ResourceWrapper) WorkflowDefinitionController(eu.bcvsolutions.idm.core.workflow.rest.WorkflowDefinitionController) WorkflowProcessDefinitionDto(eu.bcvsolutions.idm.core.workflow.model.dto.WorkflowProcessDefinitionDto) Link(org.springframework.hateoas.Link)

Aggregations

ResourceWrapper (eu.bcvsolutions.idm.core.api.rest.domain.ResourceWrapper)1 WorkflowProcessDefinitionDto (eu.bcvsolutions.idm.core.workflow.model.dto.WorkflowProcessDefinitionDto)1 WorkflowDefinitionController (eu.bcvsolutions.idm.core.workflow.rest.WorkflowDefinitionController)1 Link (org.springframework.hateoas.Link)1