Search in sources :

Example 11 with RequestOrigin

use of se.inera.intyg.infra.security.common.model.RequestOrigin in project webcert by sklintyg.

the class TakServiceImplTest method createRequestOrigin.

private RequestOrigin createRequestOrigin(String name, List<String> intygstyper) {
    RequestOrigin o = new RequestOrigin();
    o.setName(name);
    o.setIntygstyper(intygstyper);
    return o;
}
Also used : RequestOrigin(se.inera.intyg.infra.security.common.model.RequestOrigin)

Example 12 with RequestOrigin

use of se.inera.intyg.infra.security.common.model.RequestOrigin in project webcert by sklintyg.

the class BaseCreateDraftCertificateTest method createPrivilege.

private Privilege createPrivilege(String privilege) {
    Privilege priv = new Privilege();
    priv.setName(privilege);
    RequestOrigin requestOrigin = new RequestOrigin();
    requestOrigin.setName(UserOriginType.DJUPINTEGRATION.name());
    requestOrigin.setIntygstyper(Arrays.asList(FK7263, TSBAS));
    priv.setRequestOrigins(Arrays.asList(requestOrigin));
    priv.setIntygstyper(Arrays.asList(FK7263, TSBAS));
    return priv;
}
Also used : RequestOrigin(se.inera.intyg.infra.security.common.model.RequestOrigin) Privilege(se.inera.intyg.infra.security.common.model.Privilege)

Aggregations

RequestOrigin (se.inera.intyg.infra.security.common.model.RequestOrigin)12 Privilege (se.inera.intyg.infra.security.common.model.Privilege)8 WebCertUser (se.inera.intyg.webcert.web.service.user.dto.WebCertUser)3 Feature (se.inera.intyg.infra.security.common.model.Feature)2 IntegrationParameters (se.inera.intyg.webcert.web.web.controller.integration.dto.IntegrationParameters)2 IOException (java.io.IOException)1 List (java.util.List)1 Test (org.junit.Test)1 AuthoritiesConfiguration (se.inera.intyg.infra.security.authorities.AuthoritiesConfiguration)1 Role (se.inera.intyg.infra.security.common.model.Role)1 Title (se.inera.intyg.infra.security.common.model.Title)1 TitleCode (se.inera.intyg.infra.security.common.model.TitleCode)1