Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<div id="domain-panel" class="mat-elevation-z2" >
<form [formGroup]="domainForm" (ngSubmit)="onSaveClicked()">
<h3>Domain details</h3>
<mat-form-field style="width:100%">
<mat-label>Domain Code</mat-label>
<input matInput placeholder="Domain Code"
id="domainCode_id" #domainCode
matTooltip="The SMP's domain code. The code must be unique and is used in HTTP header 'Domain' or URL path sequence when retrieving /creating the resource using the webservice API"
formControlName="domainCode" maxlength="63"
(keydown)="onFieldKeyPressed('domainCode', 'domainCodeTimeout')"
required>
<mat-hint align="end">For WS API integration: the Domain property</mat-hint>
<div
*ngIf="(!editMode && domainForm.controls['domainCode'].touched || editMode) && domainForm.controls['domainCode'].hasError('pattern')"
style="color:red; font-size: 70%">
Domain code must contain only chars and numbers and must be less than 63 chars long.
</div>
<div
*ngIf="!!fieldWarningTimeoutMap.domainCodeTimeout"
style="color:darkorange; font-size: 70%">
Domain code must contain only chars and numbers and must be less than 63 chars long.
</div>
<div
*ngIf="(!editMode && domainForm.controls['domainCode'].touched || editMode) && domainForm.controls['domainCode'].hasError('notInList')"
style="color:red; font-size: 70%">
The Domain code already exists!
</div>
</mat-form-field>
<mat-form-field style="width:100%">
<input matInput placeholder="SML domain"
matTooltip="The domain-specific part of the SML DNS zone (e.g., ‘mydomain’ for mydomain.sml.dns.zone or leave empty for sml.dns.zone). Note: has informative value only, SML DNS zone used for publishing is based on SML configuration."
name="smlSubdomain"
(keydown)="onFieldKeyPressed('domainCode', 'smlSubdomainTimeout')"
id="smldomain_id"
formControlName="smlSubdomain" maxlength="63">
<mat-hint align="end">The domain-specific part of the SML DNS zone (e.g., ‘mydomain’ for
mydomain.sml.dns.zone).
</mat-hint>
<div
*ngIf="(!editMode && domainForm.controls['smlSubdomain'].touched || editMode)
&& domainForm.controls['smlSubdomain'].hasError('pattern')"
style="color:red; font-size: 70%">
SML domain should be up to 63 characters long, should only contain alphanumeric and hyphen characters,
should not start with a digit nor a hyphen and should not end with a hyphen.
</div>
<div
*ngIf="!!fieldWarningTimeoutMap.smlSubdomainTimeout"
style="color:darkorange; font-size: 70%">
SML domain should be up to 63 characters long, should only contain alphanumeric and hyphen characters,
should not start with a digit nor a hyphen and should not end with a hyphen.
</div>
<div
*ngIf="(!editMode && domainForm.controls['smlSubdomain'].touched || editMode) && domainForm.controls['smlSubdomain'].hasError('notInList')"
style="color:red; font-size: 70%">
The SML subdomain is already defined!
</div>
<div
*ngIf="(!editMode && domainForm.controls['smlSubdomain'].hasError('blankDomainError'))"
style="color:red; font-size: 70%">
Domain with empty sml subdomain already exists!
</div>
</mat-form-field>
<mat-form-field style="width:100%">
<mat-select placeholder="Response signature Certificate (Signature CertAlias)"
formControlName="signatureKeyAlias"
name="cert"
matTooltip="Certificate is used for signing REST responses for the domain."
id="signatureKeyAlias_id">
<mat-option [value]="''">Choose certificate for signing soap response</mat-option>
<mat-option *ngFor="let cert of keystoreCertificates" [value]="cert.alias">
{{cert.alias}} ({{cert.certificateId}})
</mat-option>
</mat-select>
<mat-hint align="end">Empty value will cause that Resource responses will not be signed by SMP!
</mat-hint>
</mat-form-field>
</form>
</div>