All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ch.sbb.polarion.extension.api.extender.rest.controller.ProjectCustomFieldApiController Maven / Gradle / Ivy

Go to download

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));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy