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

no.digipost.api.PMode Maven / Gradle / Ivy

The newest version!
package no.digipost.api;

public interface PMode {

    // ROLES
    public static final String ROLE_MELDINGSFORMIDLER = "urn:sdp:meldingsformidler";
    public static final String ROLE_AVSENDER = "urn:sdp:avsender";
    public static final String ROLE_POSTKASSE = "urn:sdp:postkasseleverandør";

    // PARTY IDs
    public static final String PARTY_ID_TYPE = "urn:oasis:names:tc:ebcore:partyid-type:iso6523:9908";

    // COLLABORATION INFO
    public static final String FORMIDLING_DIGITAL_AGREEMENT_REF = "http://begrep.difi.no/SikkerDigitalPost/1.0/transportlag/Meldingsutveksling/FormidleDigitalPostForsendelse";
    public static final String FORMIDLING_FYSISK_AGREEMENT_REF = "http://begrep.difi.no/SikkerDigitalPost/1.0/transportlag/Meldingsutveksling/FormidleFysiskPostForsendelse";
    public static final String FLYTT_AGREEMENT_REF = "http://begrep.difi.no/SikkerDigitalPost/1.0/transportlag/Meldingsutveksling/FlyttetDigitalPost";
    public static final String SERVICE = "SDP";
    public static final String FORMIDLING_AGREEMENT_REF_OLD = "http://begrep.difi.no/SikkerDigitalPost/Meldingsutveksling/FormidleDigitalPostForsendelse";

    public enum Action {
        FORMIDLE_DIGITAL("FormidleDigitalPost", FORMIDLING_DIGITAL_AGREEMENT_REF),
        FORMIDLE_FYSISK("FormidleFysiskPost", FORMIDLING_FYSISK_AGREEMENT_REF),
        KVITTERING("KvitteringsForespoersel", FORMIDLING_DIGITAL_AGREEMENT_REF),
        FLYTT("FlyttetDigitalPost", FLYTT_AGREEMENT_REF);
        public final String value;
        public final String agreementRef;

        Action(final String value, final String agreementRef) {
            this.value = value;
            this.agreementRef = agreementRef;
        }

        public static Action fromValue(final String value) {
            for (Action action : values()) {
                if (action.value.equals(value)) {
                    return action;
                }
            }
            return null;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy