ch.sbb.polarion.extension.api.extender.rest.controller.ProjectCustomFieldApiController Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ch.sbb.polarion.extension.api-extender Show documentation
Show all versions of ch.sbb.polarion.extension.api-extender Show documentation
This Polarion extension provides additional functionality which is not implemented in standard Polarion API for some reason
The newest version!
package ch.sbb.polarion.extension.api.extender.rest.controller;
import ch.sbb.polarion.extension.api.extender.rest.model.Field;
import ch.sbb.polarion.extension.generic.rest.filter.Secured;
import javax.ws.rs.Path;
@Secured
@Path("/api")
public class ProjectCustomFieldApiController extends ProjectCustomFieldInternalController {
@Override
public Field getCustomValue(String projectId, String key) {
return polarionService.callPrivileged(() -> super.getCustomValue(projectId, key));
}
@Override
public void setCustomValue(String projectId, String key, Field field) {
polarionService.callPrivileged(() -> super.setCustomValue(projectId, key, field));
}
@Override
public void deleteCustomValue(String projectId, String key) {
polarionService.callPrivileged(() -> super.deleteCustomValue(projectId, key));
}
}