PeppolProcessTypeIdAcronym(String profileId) { processIdentifier = ProcessIdentifier.of(profileId); }
@Override public String toString() { return processIdentifier.toString(); } }
public static ProcessIdentifier of(String identifier) { return new ProcessIdentifier(identifier, DEFAULT_SCHEME); }
static Scope createScope(ProcessIdentifier processIdentifier) { Scope scope = new Scope(); scope.setType("PROCESSID"); scope.setInstanceIdentifier(processIdentifier.getIdentifier()); if (!processIdentifier.getScheme().equals(ProcessIdentifier.DEFAULT_SCHEME)) scope.setIdentifier(processIdentifier.getScheme().getIdentifier()); return scope; }
/** * Returns a list of "restricted" header names that will be overridden when calling #createEffectiveHeader * The restricted header names are SenderId, RecipientId, DocumentTypeIdentifier and ProfileTypeIdentifier * Compares values that exist both as parsed and supplied headers. * Ignores values that only exists in one of them (that allows for sending new and unknown document types) */ protected List<String> findRestricedHeadersThatWillBeOverridden(final PeppolStandardBusinessHeader parsed, final PeppolStandardBusinessHeader supplied) { List<String> headers = new ArrayList<>(); if ((parsed.getSenderId() != null) && (supplied.getSenderId() != null) && (!supplied.getSenderId().equals(parsed.getSenderId()))) headers.add("SenderId"); if ((parsed.getRecipientId() != null) && (supplied.getRecipientId() != null) && (!supplied.getRecipientId().equals(parsed.getRecipientId()))) headers.add("RecipientId"); if ((parsed.getDocumentTypeIdentifier() != null) && (supplied.getDocumentTypeIdentifier() != null) && (!supplied.getDocumentTypeIdentifier().equals(parsed.getDocumentTypeIdentifier()))) headers.add("DocumentTypeIdentifier"); if ((parsed.getProfileTypeIdentifier() != null) && (supplied.getProfileTypeIdentifier() != null) && (!supplied.getProfileTypeIdentifier().equals(parsed.getProfileTypeIdentifier()))) headers.add("ProfileTypeIdentifier"); return headers; }
PeppolProcessTypeIdAcronym(String profileId) { processIdentifier = ProcessIdentifier.of(profileId); }
@Override public String toString() { return processIdentifier.toString(); } }
public static ProcessIdentifier of(String identifier, Scheme scheme) { return new ProcessIdentifier(identifier, scheme); }
PeppolProcessTypeIdAcronym(String profileId) { processIdentifier = ProcessIdentifier.of(profileId); }
@Override public String toString() { return processIdentifier.toString(); } }
public ProcessIdentifier fetchProcessTypeId() { String value = retriveValueForXpath("//cbc:ProfileID"); return ProcessIdentifier.of(value); }
ps.setString(5, rawStatistics.getReceiver().getIdentifier()); ps.setString(6, rawStatistics.getDocumentTypeIdentifier().toString()); ps.setString(7, rawStatistics.getProcessIdentifier().toString()); ps.setString(8, rawStatistics.getChannelId() == null ? null : rawStatistics.getChannelId().stringValue());
public static ProcessIdentifier parse(String str) throws PeppolParsingException { String[] parts = str.split("::", 2); if (parts.length != 2) throw new PeppolParsingException(String.format("Unable to parse process identifier '%s'.", str)); return of(parts[1], Scheme.of(parts[0])); }
ps.setString(5, rawStatistics.getReceiver().getIdentifier()); ps.setString(6, rawStatistics.getDocumentTypeIdentifier().toString()); ps.setString(7, rawStatistics.getProcessIdentifier().toString()); ps.setString(8, rawStatistics.getChannelId() == null ? null : rawStatistics.getChannelId().stringValue());
params.setProcessIdentifier(ProcessIdentifier.of(value));
ps.setString(5, rawStatistics.getReceiver().getIdentifier()); ps.setString(6, rawStatistics.getDocumentTypeIdentifier().toString()); ps.setString(7, rawStatistics.getProcessIdentifier().toString()); ps.setString(8, rawStatistics.getChannelId() == null ? null : rawStatistics.getChannelId().stringValue());
params.setProcessIdentifier(ProcessIdentifier.of(value));
ps.setString(5, rawStatistics.getReceiver().getIdentifier()); ps.setString(6, rawStatistics.getDocumentTypeIdentifier().toString()); ps.setString(7, rawStatistics.getProcessIdentifier().toString()); ps.setString(8, rawStatistics.getChannelId() == null ? null : rawStatistics.getChannelId().stringValue());
ProcessIdentifier.of( processType.getProcessIdentifier().getValue(), Scheme.of(processType.getProcessIdentifier().getScheme())
ProcessIdentifier.of( processType.getProcessIdentifier().getValue(), Scheme.of(processType.getProcessIdentifier().getScheme())