io.securecodebox.persistence.defectdojo.service.GroupMemberService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of defectdojo-client Show documentation
Show all versions of defectdojo-client Show documentation
This library helps with interacting with the REST API of DefectDojo.
The newest version!
// SPDX-FileCopyrightText: the secureCodeBox authors
//
// SPDX-License-Identifier: Apache-2.0
package io.securecodebox.persistence.defectdojo.service;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import io.securecodebox.persistence.defectdojo.config.Config;
import io.securecodebox.persistence.defectdojo.model.GroupMember;
import io.securecodebox.persistence.defectdojo.model.PaginatedResult;
import lombok.NonNull;
public class GroupMemberService extends GenericDefectDojoService {
public GroupMemberService(Config config) {
super(config);
}
@Override
protected String getUrlPath() {
return "dojo_group_members";
}
@Override
protected Class getModelClass() {
return GroupMember.class;
}
@Override
protected PaginatedResult deserializeList(@NonNull String response) throws JsonProcessingException {
return this.objectMapper.readValue(response, new TypeReference<>() {
});
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy