소스 검색

[maven-release-plugin] copy for tag dddsample-1.1.0

peter_backlund 17 년 전
부모
커밋
eb151a9ad1
100개의 변경된 파일5개의 추가작업 그리고 1592개의 파일을 삭제
  1. 0
    181
      dddsample/src/main/java/com/aggregator/HandlingReport.java
  2. 0
    32
      dddsample/src/main/java/com/aggregator/HandlingReportErrors.java
  3. 0
    54
      dddsample/src/main/java/com/aggregator/HandlingReportErrors_Exception.java
  4. 0
    39
      dddsample/src/main/java/com/aggregator/HandlingReportService.java
  5. 0
    72
      dddsample/src/main/java/com/aggregator/HandlingReportService.wsdl
  6. 0
    66
      dddsample/src/main/java/com/aggregator/HandlingReportServiceService.java
  7. 0
    97
      dddsample/src/main/java/com/aggregator/ObjectFactory.java
  8. 0
    60
      dddsample/src/main/java/com/aggregator/SubmitReport.java
  9. 0
    32
      dddsample/src/main/java/com/aggregator/SubmitReportResponse.java
  10. 0
    2
      dddsample/src/main/java/com/aggregator/package-info.java
  11. 0
    7
      dddsample/src/main/java/com/aggregator/package.html
  12. 0
    0
      license.txt
  13. 5
    6
      pom.xml
  14. 0
    34
      register-app/assembly.xml
  15. 0
    92
      register-app/pom.xml
  16. 0
    40
      register-app/src/main/java/se/citerus/App.java
  17. 0
    249
      register-app/src/main/java/se/citerus/registerapp/RegisterApp.java
  18. 0
    14
      register-app/src/main/java/se/citerus/registerapp/service/HandlingEventService.java
  19. 0
    41
      register-app/src/main/java/se/citerus/registerapp/validation/AbstractFormValidationDecorator.java
  20. 0
    96
      register-app/src/main/java/se/citerus/registerapp/validation/AbstractValidator.java
  21. 0
    8
      register-app/src/main/java/se/citerus/registerapp/validation/ComponentValidator.java
  22. 0
    13
      register-app/src/main/java/se/citerus/registerapp/validation/FormValidationDecorator.java
  23. 0
    118
      register-app/src/main/java/se/citerus/registerapp/validation/FormValidationSwingDecorator.java
  24. 0
    25
      register-app/src/main/java/se/citerus/registerapp/validation/MandatoryTextFieldValidator.java
  25. 0
    1
      register-app/src/main/resources/app.properties
  26. 0
    32
      register-app/src/main/resources/context-app.xml
  27. BIN
      register-app/src/main/resources/icon/error_16x16.png
  28. 0
    23
      register-app/src/main/resources/log4j.properties
  29. 0
    38
      register-app/src/test/java/se/citerus/AppTest.java
  30. 0
    120
      register-app/src/test/java/se/citerus/registerapp/validation/ValidationTest.java
  31. 0
    0
      src/main/config/checkstyle.xml
  32. 0
    0
      src/main/config/dddsample-format-eclipse.pref
  33. 0
    0
      src/main/java/com/aggregator/HandlingReport.java
  34. 0
    0
      src/main/java/com/aggregator/HandlingReportErrors.java
  35. 0
    0
      src/main/java/com/aggregator/HandlingReportErrors_Exception.java
  36. 0
    0
      src/main/java/com/aggregator/HandlingReportService.java
  37. 0
    0
      src/main/java/com/aggregator/HandlingReportService.wsdl
  38. 0
    0
      src/main/java/com/aggregator/HandlingReportServiceService.java
  39. 0
    0
      src/main/java/com/aggregator/ObjectFactory.java
  40. 0
    0
      src/main/java/com/aggregator/SubmitReport.java
  41. 0
    0
      src/main/java/com/aggregator/SubmitReportResponse.java
  42. 0
    0
      src/main/java/com/aggregator/package-info.java
  43. 0
    0
      src/main/java/com/aggregator/package.html
  44. 0
    0
      src/main/java/com/pathfinder/api/GraphTraversalService.java
  45. 0
    0
      src/main/java/com/pathfinder/api/TransitEdge.java
  46. 0
    0
      src/main/java/com/pathfinder/api/TransitPath.java
  47. 0
    0
      src/main/java/com/pathfinder/api/package.html
  48. 0
    0
      src/main/java/com/pathfinder/internal/GraphDAO.java
  49. 0
    0
      src/main/java/com/pathfinder/internal/GraphTraversalServiceImpl.java
  50. 0
    0
      src/main/java/com/pathfinder/internal/package.html
  51. 0
    0
      src/main/java/com/pathfinder/package.html
  52. 0
    0
      src/main/java/se/citerus/dddsample/application/ApplicationEvents.java
  53. 0
    0
      src/main/java/se/citerus/dddsample/application/BookingService.java
  54. 0
    0
      src/main/java/se/citerus/dddsample/application/CargoInspectionService.java
  55. 0
    0
      src/main/java/se/citerus/dddsample/application/HandlingEventService.java
  56. 0
    0
      src/main/java/se/citerus/dddsample/application/impl/BookingServiceImpl.java
  57. 0
    0
      src/main/java/se/citerus/dddsample/application/impl/CargoInspectionServiceImpl.java
  58. 0
    0
      src/main/java/se/citerus/dddsample/application/impl/HandlingEventServiceImpl.java
  59. 0
    0
      src/main/java/se/citerus/dddsample/application/impl/package.html
  60. 0
    0
      src/main/java/se/citerus/dddsample/application/package.html
  61. 0
    0
      src/main/java/se/citerus/dddsample/application/util/DateTestUtil.java
  62. 0
    0
      src/main/java/se/citerus/dddsample/application/util/SampleDataGenerator.java
  63. 0
    0
      src/main/java/se/citerus/dddsample/application/util/package.html
  64. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/cargo/Cargo.java
  65. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/cargo/CargoRepository.java
  66. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/cargo/Delivery.java
  67. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/cargo/HandlingActivity.java
  68. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/cargo/Itinerary.java
  69. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/cargo/Leg.java
  70. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/cargo/RouteSpecification.java
  71. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/cargo/RoutingStatus.java
  72. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/cargo/TrackingId.java
  73. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/cargo/TransportStatus.java
  74. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/cargo/package.html
  75. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/handling/CannotCreateHandlingEventException.java
  76. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/handling/HandlingEvent.java
  77. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/handling/HandlingEventFactory.java
  78. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/handling/HandlingEventRepository.java
  79. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/handling/HandlingHistory.java
  80. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/handling/UnknownCargoException.java
  81. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/handling/UnknownLocationException.java
  82. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/handling/UnknownVoyageException.java
  83. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/handling/package.html
  84. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/location/Location.java
  85. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/location/LocationRepository.java
  86. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/location/SampleLocations.java
  87. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/location/UnLocode.java
  88. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/location/package.html
  89. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/package.html
  90. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/voyage/CarrierMovement.java
  91. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/voyage/SampleVoyages.java
  92. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/voyage/Schedule.java
  93. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/voyage/Voyage.java
  94. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/voyage/VoyageNumber.java
  95. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/voyage/VoyageRepository.java
  96. 0
    0
      src/main/java/se/citerus/dddsample/domain/model/voyage/package.html
  97. 0
    0
      src/main/java/se/citerus/dddsample/domain/package.html
  98. 0
    0
      src/main/java/se/citerus/dddsample/domain/service/RoutingService.java
  99. 0
    0
      src/main/java/se/citerus/dddsample/domain/service/package.html
  100. 0
    0
      src/main/java/se/citerus/dddsample/domain/shared/AbstractSpecification.java

+ 0
- 181
dddsample/src/main/java/com/aggregator/HandlingReport.java 파일 보기

@@ -1,181 +0,0 @@
1
-
2
-package com.aggregator;
3
-
4
-import javax.xml.bind.annotation.XmlAccessType;
5
-import javax.xml.bind.annotation.XmlAccessorType;
6
-import javax.xml.bind.annotation.XmlElement;
7
-import javax.xml.bind.annotation.XmlType;
8
-import javax.xml.datatype.XMLGregorianCalendar;
9
-import java.util.ArrayList;
10
-import java.util.List;
11
-
12
-
13
-/**
14
- * <p>Java class for handlingReport complex type.
15
- * 
16
- * <p>The following schema fragment specifies the expected content contained within this class.
17
- * 
18
- * <pre>
19
- * &lt;complexType name="handlingReport">
20
- *   &lt;complexContent>
21
- *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
22
- *       &lt;sequence>
23
- *         &lt;element name="completionTime" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
24
- *         &lt;element name="trackingIds" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
25
- *         &lt;element name="type" type="{http://www.w3.org/2001/XMLSchema}string"/>
26
- *         &lt;element name="unLocode" type="{http://www.w3.org/2001/XMLSchema}string"/>
27
- *         &lt;element name="voyageNumber" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
28
- *       &lt;/sequence>
29
- *     &lt;/restriction>
30
- *   &lt;/complexContent>
31
- * &lt;/complexType>
32
- * </pre>
33
- * 
34
- * 
35
- */
36
-@XmlAccessorType(XmlAccessType.FIELD)
37
-@XmlType(name = "handlingReport", propOrder = {
38
-    "completionTime",
39
-    "trackingIds",
40
-    "type",
41
-    "unLocode",
42
-    "voyageNumber"
43
-})
44
-public class HandlingReport {
45
-
46
-    @XmlElement(required = true)
47
-    protected XMLGregorianCalendar completionTime;
48
-    @XmlElement(required = true)
49
-    protected List<String> trackingIds;
50
-    @XmlElement(required = true)
51
-    protected String type;
52
-    @XmlElement(required = true)
53
-    protected String unLocode;
54
-    protected String voyageNumber;
55
-
56
-    /**
57
-     * Gets the value of the completionTime property.
58
-     * 
59
-     * @return
60
-     *     possible object is
61
-     *     {@link XMLGregorianCalendar }
62
-     *     
63
-     */
64
-    public XMLGregorianCalendar getCompletionTime() {
65
-        return completionTime;
66
-    }
67
-
68
-    /**
69
-     * Sets the value of the completionTime property.
70
-     * 
71
-     * @param value
72
-     *     allowed object is
73
-     *     {@link XMLGregorianCalendar }
74
-     *     
75
-     */
76
-    public void setCompletionTime(XMLGregorianCalendar value) {
77
-        this.completionTime = value;
78
-    }
79
-
80
-    /**
81
-     * Gets the value of the trackingIds property.
82
-     * 
83
-     * <p>
84
-     * This accessor method returns a reference to the live list,
85
-     * not a snapshot. Therefore any modification you make to the
86
-     * returned list will be present inside the JAXB object.
87
-     * This is why there is not a <CODE>set</CODE> method for the trackingIds property.
88
-     * 
89
-     * <p>
90
-     * For example, to add a new item, do as follows:
91
-     * <pre>
92
-     *    getTrackingIds().add(newItem);
93
-     * </pre>
94
-     * 
95
-     * 
96
-     * <p>
97
-     * Objects of the following type(s) are allowed in the list
98
-     * {@link String }
99
-     * 
100
-     * 
101
-     */
102
-    public List<String> getTrackingIds() {
103
-        if (trackingIds == null) {
104
-            trackingIds = new ArrayList<String>();
105
-        }
106
-        return this.trackingIds;
107
-    }
108
-
109
-    /**
110
-     * Gets the value of the type property.
111
-     * 
112
-     * @return
113
-     *     possible object is
114
-     *     {@link String }
115
-     *     
116
-     */
117
-    public String getType() {
118
-        return type;
119
-    }
120
-
121
-    /**
122
-     * Sets the value of the type property.
123
-     * 
124
-     * @param value
125
-     *     allowed object is
126
-     *     {@link String }
127
-     *     
128
-     */
129
-    public void setType(String value) {
130
-        this.type = value;
131
-    }
132
-
133
-    /**
134
-     * Gets the value of the unLocode property.
135
-     * 
136
-     * @return
137
-     *     possible object is
138
-     *     {@link String }
139
-     *     
140
-     */
141
-    public String getUnLocode() {
142
-        return unLocode;
143
-    }
144
-
145
-    /**
146
-     * Sets the value of the unLocode property.
147
-     * 
148
-     * @param value
149
-     *     allowed object is
150
-     *     {@link String }
151
-     *     
152
-     */
153
-    public void setUnLocode(String value) {
154
-        this.unLocode = value;
155
-    }
156
-
157
-    /**
158
-     * Gets the value of the voyageNumber property.
159
-     * 
160
-     * @return
161
-     *     possible object is
162
-     *     {@link String }
163
-     *     
164
-     */
165
-    public String getVoyageNumber() {
166
-        return voyageNumber;
167
-    }
168
-
169
-    /**
170
-     * Sets the value of the voyageNumber property.
171
-     * 
172
-     * @param value
173
-     *     allowed object is
174
-     *     {@link String }
175
-     *     
176
-     */
177
-    public void setVoyageNumber(String value) {
178
-        this.voyageNumber = value;
179
-    }
180
-
181
-}

+ 0
- 32
dddsample/src/main/java/com/aggregator/HandlingReportErrors.java 파일 보기

@@ -1,32 +0,0 @@
1
-
2
-package com.aggregator;
3
-
4
-import javax.xml.bind.annotation.XmlAccessType;
5
-import javax.xml.bind.annotation.XmlAccessorType;
6
-import javax.xml.bind.annotation.XmlType;
7
-
8
-
9
-/**
10
- * <p>Java class for HandlingReportErrors complex type.
11
- * 
12
- * <p>The following schema fragment specifies the expected content contained within this class.
13
- * 
14
- * <pre>
15
- * &lt;complexType name="HandlingReportErrors">
16
- *   &lt;complexContent>
17
- *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
18
- *       &lt;sequence>
19
- *       &lt;/sequence>
20
- *     &lt;/restriction>
21
- *   &lt;/complexContent>
22
- * &lt;/complexType>
23
- * </pre>
24
- * 
25
- * 
26
- */
27
-@XmlAccessorType(XmlAccessType.FIELD)
28
-@XmlType(name = "HandlingReportErrors")
29
-public class HandlingReportErrors {
30
-
31
-
32
-}

+ 0
- 54
dddsample/src/main/java/com/aggregator/HandlingReportErrors_Exception.java 파일 보기

@@ -1,54 +0,0 @@
1
-
2
-package com.aggregator;
3
-
4
-import javax.xml.ws.WebFault;
5
-
6
-
7
-/**
8
- * This class was generated by the JAX-WS RI.
9
- * JAX-WS RI 2.1.1 in JDK 6
10
- * Generated source version: 2.1
11
- * 
12
- */
13
-@WebFault(name = "HandlingReportErrors", targetNamespace = "http://ws.handling.interfaces.dddsample.citerus.se/")
14
-public class HandlingReportErrors_Exception
15
-    extends Exception
16
-{
17
-
18
-    /**
19
-     * Java type that goes as soapenv:Fault detail element.
20
-     * 
21
-     */
22
-    private HandlingReportErrors faultInfo;
23
-
24
-    /**
25
-     * 
26
-     * @param message
27
-     * @param faultInfo
28
-     */
29
-    public HandlingReportErrors_Exception(String message, HandlingReportErrors faultInfo) {
30
-        super(message);
31
-        this.faultInfo = faultInfo;
32
-    }
33
-
34
-    /**
35
-     * 
36
-     * @param message
37
-     * @param faultInfo
38
-     * @param cause
39
-     */
40
-    public HandlingReportErrors_Exception(String message, HandlingReportErrors faultInfo, Throwable cause) {
41
-        super(message, cause);
42
-        this.faultInfo = faultInfo;
43
-    }
44
-
45
-    /**
46
-     * 
47
-     * @return
48
-     *     returns fault bean: com.aggregator.HandlingReportErrors
49
-     */
50
-    public HandlingReportErrors getFaultInfo() {
51
-        return faultInfo;
52
-    }
53
-
54
-}

+ 0
- 39
dddsample/src/main/java/com/aggregator/HandlingReportService.java 파일 보기

@@ -1,39 +0,0 @@
1
-
2
-package com.aggregator;
3
-
4
-import javax.jws.WebMethod;
5
-import javax.jws.WebParam;
6
-import javax.jws.WebService;
7
-import javax.xml.bind.annotation.XmlSeeAlso;
8
-import javax.xml.ws.RequestWrapper;
9
-import javax.xml.ws.ResponseWrapper;
10
-
11
-
12
-/**
13
- * This class was generated by the JAX-WS RI.
14
- * JAX-WS RI 2.1.1 in JDK 6
15
- * Generated source version: 2.1
16
- * 
17
- */
18
-@WebService(name = "HandlingReportService", targetNamespace = "http://ws.handling.interfaces.dddsample.citerus.se/")
19
-@XmlSeeAlso({
20
-    ObjectFactory.class
21
-})
22
-public interface HandlingReportService {
23
-
24
-
25
-    /**
26
-     * 
27
-     * @param arg0
28
-     * @throws HandlingReportErrors_Exception
29
-     */
30
-    @WebMethod
31
-    @RequestWrapper(localName = "submitReport", targetNamespace = "http://ws.handling.interfaces.dddsample.citerus.se/", className = "com.aggregator.SubmitReport")
32
-    @ResponseWrapper(localName = "submitReportResponse", targetNamespace = "http://ws.handling.interfaces.dddsample.citerus.se/", className = "com.aggregator.SubmitReportResponse")
33
-    public void submitReport(
34
-        @WebParam(name = "arg0", targetNamespace = "")
35
-        HandlingReport arg0)
36
-        throws HandlingReportErrors_Exception
37
-    ;
38
-
39
-}

+ 0
- 72
dddsample/src/main/java/com/aggregator/HandlingReportService.wsdl 파일 보기

@@ -1,72 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<wsdl:definitions name="HandlingReportServiceService" targetNamespace="http://ws.handling.interfaces.dddsample.citerus.se/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://ws.handling.interfaces.dddsample.citerus.se/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
3
-  <wsdl:types>
4
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://ws.handling.interfaces.dddsample.citerus.se/" attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://ws.handling.interfaces.dddsample.citerus.se/">
5
-    <xs:element name="submitReport" type="tns:submitReport"/>
6
-    <xs:element name="submitReportResponse" type="tns:submitReportResponse"/>
7
-    <xs:complexType name="submitReport">
8
-        <xs:sequence>
9
-            <xs:element minOccurs="0" name="arg0" type="tns:handlingReport"/>
10
-        </xs:sequence>
11
-    </xs:complexType>
12
-    <xs:complexType name="handlingReport">
13
-        <xs:sequence>
14
-            <xs:element name="completionTime" type="xs:dateTime"/>
15
-            <xs:element maxOccurs="unbounded" name="trackingIds" type="xs:string"/>
16
-            <xs:element name="type" type="xs:string"/>
17
-            <xs:element name="unLocode" type="xs:string"/>
18
-            <xs:element minOccurs="0" name="voyageNumber" type="xs:string"/>
19
-        </xs:sequence>
20
-    </xs:complexType>
21
-    <xs:complexType name="submitReportResponse">
22
-        <xs:sequence/>
23
-    </xs:complexType>
24
-    <xs:element name="HandlingReportErrors" type="tns:HandlingReportErrors"/>
25
-    <xs:complexType name="HandlingReportErrors">
26
-        <xs:sequence/>
27
-    </xs:complexType>
28
-</xs:schema>
29
-  </wsdl:types>
30
-  <wsdl:message name="HandlingReportErrors">
31
-    <wsdl:part name="HandlingReportErrors" element="tns:HandlingReportErrors">
32
-    </wsdl:part>
33
-  </wsdl:message>
34
-  <wsdl:message name="submitReport">
35
-    <wsdl:part name="parameters" element="tns:submitReport">
36
-    </wsdl:part>
37
-  </wsdl:message>
38
-  <wsdl:message name="submitReportResponse">
39
-    <wsdl:part name="parameters" element="tns:submitReportResponse">
40
-    </wsdl:part>
41
-  </wsdl:message>
42
-  <wsdl:portType name="HandlingReportService">
43
-    <wsdl:operation name="submitReport">
44
-      <wsdl:input name="submitReport" message="tns:submitReport">
45
-    </wsdl:input>
46
-      <wsdl:output name="submitReportResponse" message="tns:submitReportResponse">
47
-    </wsdl:output>
48
-      <wsdl:fault name="HandlingReportErrors" message="tns:HandlingReportErrors">
49
-    </wsdl:fault>
50
-    </wsdl:operation>
51
-  </wsdl:portType>
52
-  <wsdl:binding name="HandlingReportServiceServiceSoapBinding" type="tns:HandlingReportService">
53
-    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
54
-    <wsdl:operation name="submitReport">
55
-      <soap:operation soapAction="" style="document"/>
56
-      <wsdl:input name="submitReport">
57
-        <soap:body use="literal"/>
58
-      </wsdl:input>
59
-      <wsdl:output name="submitReportResponse">
60
-        <soap:body use="literal"/>
61
-      </wsdl:output>
62
-      <wsdl:fault name="HandlingReportErrors">
63
-        <soap:fault name="HandlingReportErrors" use="literal"/>
64
-      </wsdl:fault>
65
-    </wsdl:operation>
66
-  </wsdl:binding>
67
-  <wsdl:service name="HandlingReportServiceService">
68
-    <wsdl:port name="HandlingReportServicePort" binding="tns:HandlingReportServiceServiceSoapBinding">
69
-      <soap:address location="http://localhost:9090/HandlingReportServicePort"/>
70
-    </wsdl:port>
71
-  </wsdl:service>
72
-</wsdl:definitions>

+ 0
- 66
dddsample/src/main/java/com/aggregator/HandlingReportServiceService.java 파일 보기

@@ -1,66 +0,0 @@
1
-
2
-package com.aggregator;
3
-
4
-import javax.xml.namespace.QName;
5
-import javax.xml.ws.Service;
6
-import javax.xml.ws.WebEndpoint;
7
-import javax.xml.ws.WebServiceClient;
8
-import javax.xml.ws.WebServiceFeature;
9
-import java.net.MalformedURLException;
10
-import java.net.URL;
11
-
12
-
13
-/**
14
- * This class was generated by the JAX-WS RI.
15
- * JAX-WS RI 2.1.1 in JDK 6
16
- * Generated source version: 2.1
17
- * 
18
- */
19
-@WebServiceClient(name = "HandlingReportServiceService", targetNamespace = "http://ws.handling.interfaces.dddsample.citerus.se/", wsdlLocation = "file:///Users/peter/src/dddsample/src/main/resources/HandlingReportService.wsdl")
20
-public class HandlingReportServiceService
21
-    extends Service
22
-{
23
-
24
-    private final static URL HANDLINGREPORTSERVICESERVICE_WSDL_LOCATION;
25
-
26
-    static {
27
-        URL url = null;
28
-        try {
29
-            url = new URL("file:/Users/peter/src/dddsample/src/main/resources/HandlingReportService.wsdl");
30
-        } catch (MalformedURLException e) {
31
-            e.printStackTrace();
32
-        }
33
-        HANDLINGREPORTSERVICESERVICE_WSDL_LOCATION = url;
34
-    }
35
-
36
-    public HandlingReportServiceService(URL wsdlLocation, QName serviceName) {
37
-        super(wsdlLocation, serviceName);
38
-    }
39
-
40
-    public HandlingReportServiceService() {
41
-        super(HANDLINGREPORTSERVICESERVICE_WSDL_LOCATION, new QName("http://ws.handling.interfaces.dddsample.citerus.se/", "HandlingReportServiceService"));
42
-    }
43
-
44
-    /**
45
-     * 
46
-     * @return
47
-     *     returns HandlingReportService
48
-     */
49
-    @WebEndpoint(name = "HandlingReportServicePort")
50
-    public HandlingReportService getHandlingReportServicePort() {
51
-        return (HandlingReportService)super.getPort(new QName("http://ws.handling.interfaces.dddsample.citerus.se/", "HandlingReportServicePort"), HandlingReportService.class);
52
-    }
53
-
54
-    /**
55
-     * 
56
-     * @param features
57
-     *     A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy.  Supported features not in the <code>features</code> parameter will have their default values.
58
-     * @return
59
-     *     returns HandlingReportService
60
-     */
61
-    @WebEndpoint(name = "HandlingReportServicePort")
62
-    public HandlingReportService getHandlingReportServicePort(WebServiceFeature... features) {
63
-        return (HandlingReportService)super.getPort(new QName("http://ws.handling.interfaces.dddsample.citerus.se/", "HandlingReportServicePort"), HandlingReportService.class, features);
64
-    }
65
-
66
-}

+ 0
- 97
dddsample/src/main/java/com/aggregator/ObjectFactory.java 파일 보기

@@ -1,97 +0,0 @@
1
-
2
-package com.aggregator;
3
-
4
-import javax.xml.bind.JAXBElement;
5
-import javax.xml.bind.annotation.XmlElementDecl;
6
-import javax.xml.bind.annotation.XmlRegistry;
7
-import javax.xml.namespace.QName;
8
-
9
-
10
-/**
11
- * This object contains factory methods for each 
12
- * Java content interface and Java element interface 
13
- * generated in the com.aggregator package. 
14
- * <p>An ObjectFactory allows you to programatically 
15
- * construct new instances of the Java representation 
16
- * for XML content. The Java representation of XML 
17
- * content can consist of schema derived interfaces 
18
- * and classes representing the binding of schema 
19
- * type definitions, element declarations and model 
20
- * groups.  Factory methods for each of these are 
21
- * provided in this class.
22
- * 
23
- */
24
-@XmlRegistry
25
-public class ObjectFactory {
26
-
27
-    private final static QName _SubmitReport_QNAME = new QName("http://ws.handling.interfaces.dddsample.citerus.se/", "submitReport");
28
-    private final static QName _HandlingReportErrors_QNAME = new QName("http://ws.handling.interfaces.dddsample.citerus.se/", "HandlingReportErrors");
29
-    private final static QName _SubmitReportResponse_QNAME = new QName("http://ws.handling.interfaces.dddsample.citerus.se/", "submitReportResponse");
30
-
31
-    /**
32
-     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.aggregator
33
-     * 
34
-     */
35
-    public ObjectFactory() {
36
-    }
37
-
38
-    /**
39
-     * Create an instance of {@link HandlingReportErrors }
40
-     * 
41
-     */
42
-    public HandlingReportErrors createHandlingReportErrors() {
43
-        return new HandlingReportErrors();
44
-    }
45
-
46
-    /**
47
-     * Create an instance of {@link SubmitReportResponse }
48
-     * 
49
-     */
50
-    public SubmitReportResponse createSubmitReportResponse() {
51
-        return new SubmitReportResponse();
52
-    }
53
-
54
-    /**
55
-     * Create an instance of {@link HandlingReport }
56
-     * 
57
-     */
58
-    public HandlingReport createHandlingReport() {
59
-        return new HandlingReport();
60
-    }
61
-
62
-    /**
63
-     * Create an instance of {@link SubmitReport }
64
-     * 
65
-     */
66
-    public SubmitReport createSubmitReport() {
67
-        return new SubmitReport();
68
-    }
69
-
70
-    /**
71
-     * Create an instance of {@link JAXBElement }{@code <}{@link SubmitReport }{@code >}}
72
-     * 
73
-     */
74
-    @XmlElementDecl(namespace = "http://ws.handling.interfaces.dddsample.citerus.se/", name = "submitReport")
75
-    public JAXBElement<SubmitReport> createSubmitReport(SubmitReport value) {
76
-        return new JAXBElement<SubmitReport>(_SubmitReport_QNAME, SubmitReport.class, null, value);
77
-    }
78
-
79
-    /**
80
-     * Create an instance of {@link JAXBElement }{@code <}{@link HandlingReportErrors }{@code >}}
81
-     * 
82
-     */
83
-    @XmlElementDecl(namespace = "http://ws.handling.interfaces.dddsample.citerus.se/", name = "HandlingReportErrors")
84
-    public JAXBElement<HandlingReportErrors> createHandlingReportErrors(HandlingReportErrors value) {
85
-        return new JAXBElement<HandlingReportErrors>(_HandlingReportErrors_QNAME, HandlingReportErrors.class, null, value);
86
-    }
87
-
88
-    /**
89
-     * Create an instance of {@link JAXBElement }{@code <}{@link SubmitReportResponse }{@code >}}
90
-     * 
91
-     */
92
-    @XmlElementDecl(namespace = "http://ws.handling.interfaces.dddsample.citerus.se/", name = "submitReportResponse")
93
-    public JAXBElement<SubmitReportResponse> createSubmitReportResponse(SubmitReportResponse value) {
94
-        return new JAXBElement<SubmitReportResponse>(_SubmitReportResponse_QNAME, SubmitReportResponse.class, null, value);
95
-    }
96
-
97
-}

+ 0
- 60
dddsample/src/main/java/com/aggregator/SubmitReport.java 파일 보기

@@ -1,60 +0,0 @@
1
-
2
-package com.aggregator;
3
-
4
-import javax.xml.bind.annotation.XmlAccessType;
5
-import javax.xml.bind.annotation.XmlAccessorType;
6
-import javax.xml.bind.annotation.XmlType;
7
-
8
-
9
-/**
10
- * <p>Java class for submitReport complex type.
11
- * 
12
- * <p>The following schema fragment specifies the expected content contained within this class.
13
- * 
14
- * <pre>
15
- * &lt;complexType name="submitReport">
16
- *   &lt;complexContent>
17
- *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
18
- *       &lt;sequence>
19
- *         &lt;element name="arg0" type="{http://ws.handling.interfaces.dddsample.citerus.se/}handlingReport" minOccurs="0"/>
20
- *       &lt;/sequence>
21
- *     &lt;/restriction>
22
- *   &lt;/complexContent>
23
- * &lt;/complexType>
24
- * </pre>
25
- * 
26
- * 
27
- */
28
-@XmlAccessorType(XmlAccessType.FIELD)
29
-@XmlType(name = "submitReport", propOrder = {
30
-    "arg0"
31
-})
32
-public class SubmitReport {
33
-
34
-    protected HandlingReport arg0;
35
-
36
-    /**
37
-     * Gets the value of the arg0 property.
38
-     * 
39
-     * @return
40
-     *     possible object is
41
-     *     {@link HandlingReport }
42
-     *     
43
-     */
44
-    public HandlingReport getArg0() {
45
-        return arg0;
46
-    }
47
-
48
-    /**
49
-     * Sets the value of the arg0 property.
50
-     * 
51
-     * @param value
52
-     *     allowed object is
53
-     *     {@link HandlingReport }
54
-     *     
55
-     */
56
-    public void setArg0(HandlingReport value) {
57
-        this.arg0 = value;
58
-    }
59
-
60
-}

+ 0
- 32
dddsample/src/main/java/com/aggregator/SubmitReportResponse.java 파일 보기

@@ -1,32 +0,0 @@
1
-
2
-package com.aggregator;
3
-
4
-import javax.xml.bind.annotation.XmlAccessType;
5
-import javax.xml.bind.annotation.XmlAccessorType;
6
-import javax.xml.bind.annotation.XmlType;
7
-
8
-
9
-/**
10
- * <p>Java class for submitReportResponse complex type.
11
- * 
12
- * <p>The following schema fragment specifies the expected content contained within this class.
13
- * 
14
- * <pre>
15
- * &lt;complexType name="submitReportResponse">
16
- *   &lt;complexContent>
17
- *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
18
- *       &lt;sequence>
19
- *       &lt;/sequence>
20
- *     &lt;/restriction>
21
- *   &lt;/complexContent>
22
- * &lt;/complexType>
23
- * </pre>
24
- * 
25
- * 
26
- */
27
-@XmlAccessorType(XmlAccessType.FIELD)
28
-@XmlType(name = "submitReportResponse")
29
-public class SubmitReportResponse {
30
-
31
-
32
-}

+ 0
- 2
dddsample/src/main/java/com/aggregator/package-info.java 파일 보기

@@ -1,2 +0,0 @@
1
-@javax.xml.bind.annotation.XmlSchema(namespace = "http://ws.handling.interfaces.dddsample.citerus.se/")
2
-package com.aggregator;

+ 0
- 7
dddsample/src/main/java/com/aggregator/package.html 파일 보기

@@ -1,7 +0,0 @@
1
-<html>
2
-<body>
3
-<p>
4
-	Generated from the upstream Aggregation Service WSDL
5
-</p>
6
-</body>
7
-</html>

dddsample/license.txt → license.txt 파일 보기


dddsample/pom.xml → pom.xml 파일 보기

@@ -1,11 +1,10 @@
1
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
1
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3 2
   <modelVersion>4.0.0</modelVersion>
4 3
   <groupId>se.citerus</groupId>
5 4
   <artifactId>dddsample</artifactId>
6 5
   <packaging>war</packaging>
7 6
   <name>DDDSample</name>
8
-  <version>1.1-SNAPSHOT</version>
7
+  <version>1.1.0</version>
9 8
   <description>This application shows a few key concepts of
10 9
     Domain Driven Design implemented in Enterprise Java.
11 10
   </description>
@@ -16,7 +15,7 @@
16 15
       <url>scp://shell.sf.net/home/groups/d/dd/dddsample/htdocs/preview</url>
17 16
     </site>
18 17
   </distributionManagement>
19
-  <ciManagement/>
18
+  <ciManagement />
20 19
   <developers>
21 20
     <developer>
22 21
       <id>eric_evans</id>
@@ -62,8 +61,8 @@
62 61
     </license>
63 62
   </licenses>
64 63
   <scm>
65
-    <developerConnection>scm:svn:https://dddsample.svn.sourceforge.net/svnroot/dddsample</developerConnection>
66
-    <url>http://ddd.sventon.org</url>
64
+    <developerConnection>scm:svn:https://dddsample.svn.sourceforge.net/svnroot/dddsample/tags/dddsample-1.1.0</developerConnection>
65
+    <url>http://ddd.sventon.org/tags/dddsample-1.1.0</url>
67 66
   </scm>
68 67
   <properties>
69 68
     <spring.version>2.5.6</spring.version>

+ 0
- 34
register-app/assembly.xml 파일 보기

@@ -1,34 +0,0 @@
1
-<?xml version="1.0"?>
2
-
3
-<assembly xmlns="http://maven.apache.org/POM/4.0.0"
4
-          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
-          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/assembly-1.1.0-SNAPSHOT.xsd">
6
-
7
-    <formats>
8
-        <format>zip</format>
9
-    </formats>
10
-    <includeBaseDirectory>true</includeBaseDirectory>
11
-  
12
-    <files>
13
-        <file>
14
-            <source>src/main/resources/app.properties</source>
15
-            <destName>app.properties</destName>
16
-        </file>
17
-    </files>
18
-
19
-    <dependencySets>
20
-      <dependencySet>
21
-        <excludes>
22
-          <exclude>se.citerus:register-app</exclude>
23
-        </excludes>
24
-        <outputDirectory>lib</outputDirectory>
25
-      </dependencySet>
26
-      <dependencySet>
27
-        <includes>
28
-          <include>se.citerus:register-app</include>
29
-        </includes>
30
-        <outputFileNameMapping>IncidentLoggingApplication.${artifact.extension}</outputFileNameMapping>
31
-      </dependencySet>
32
-    </dependencySets>
33
-
34
-</assembly>

+ 0
- 92
register-app/pom.xml 파일 보기

@@ -1,92 +0,0 @@
1
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2
-
3
-  <modelVersion>4.0.0</modelVersion>
4
-  <groupId>se.citerus</groupId>
5
-  <artifactId>register-app</artifactId>
6
-  <name>register-app</name>
7
-  <version>1.1-SNAPSHOT</version>
8
-  <url>http://dddsample.sf.net</url>
9
-  <scm>
10
-    <developerConnection>scm:svn:https://dddsample.svn.sourceforge.net/svnroot/dddsample</developerConnection>
11
-  </scm>
12
-  <build>
13
-    <plugins>
14
-      <plugin>
15
-        <artifactId>maven-compiler-plugin</artifactId>
16
-        <configuration>
17
-          <source>1.6</source>
18
-          <target>1.6</target>
19
-          <encoding>UTF-8</encoding>
20
-        </configuration>
21
-      </plugin>
22
-      <plugin>
23
-        <artifactId>maven-jar-plugin</artifactId>
24
-        <configuration>
25
-          <archive>
26
-            <manifest>
27
-              <mainClass>se.citerus.App</mainClass>
28
-              <addClasspath>true</addClasspath>
29
-              <classpathPrefix>lib</classpathPrefix>
30
-            </manifest>
31
-          </archive>
32
-        </configuration>
33
-      </plugin>
34
-      <plugin>
35
-        <artifactId>maven-assembly-plugin</artifactId>
36
-        <configuration>
37
-          <descriptors>
38
-            <descriptor>assembly.xml</descriptor>
39
-          </descriptors>
40
-          <finalName>IncidentLoggingApplication-${project.version}</finalName>
41
-        </configuration>
42
-      </plugin>
43
-    </plugins>
44
-  </build>
45
-  <repositories>
46
-    <repository>
47
-      <id>maven2-repository.dev.java.net</id>
48
-      <name>Java.net Repository for Maven</name>
49
-      <url>http://download.java.net/maven/2/</url>
50
-    </repository>
51
-  </repositories>
52
-  <pluginRepositories>
53
-    <pluginRepository>
54
-      <id>maven2-repository.dev.java.net</id>
55
-      <name>Java.net Repository for Maven</name>
56
-      <url>http://download.java.net/maven/2/</url>
57
-    </pluginRepository>
58
-  </pluginRepositories>
59
-  <dependencies>
60
-    <dependency>
61
-      <groupId>junit</groupId>
62
-      <artifactId>junit</artifactId>
63
-      <version>3.8.1</version>
64
-      <scope>test</scope>
65
-    </dependency>
66
-    <dependency>
67
-      <groupId>org.springframework</groupId>
68
-      <artifactId>spring-context</artifactId>
69
-      <version>2.5.6</version>
70
-    </dependency>
71
-    <dependency>
72
-      <groupId>org.springframework</groupId>
73
-      <artifactId>spring-web</artifactId>
74
-      <version>2.5.6</version>
75
-    </dependency>
76
-    <dependency>
77
-      <groupId>org.springframework</groupId>
78
-      <artifactId>spring-aop</artifactId>
79
-      <version>2.5.6</version>
80
-    </dependency>
81
-    <dependency>
82
-      <groupId>com.jgoodies</groupId>
83
-      <artifactId>forms</artifactId>
84
-      <version>1.0.7</version>
85
-    </dependency>
86
-    <dependency>
87
-      <groupId>com.jgoodies</groupId>
88
-      <artifactId>looks</artifactId>
89
-      <version>2.1.2</version>
90
-    </dependency>
91
-  </dependencies>
92
-</project>

+ 0
- 40
register-app/src/main/java/se/citerus/App.java 파일 보기

@@ -1,40 +0,0 @@
1
-package se.citerus;
2
-
3
-import org.springframework.context.ApplicationContext;
4
-import org.springframework.context.support.ClassPathXmlApplicationContext;
5
-
6
-import se.citerus.registerapp.RegisterApp;
7
-
8
-/**
9
- * The application main class
10
- *
11
- */
12
-public class App {
13
-  private static RegisterApp app;
14
-  
15
-  public static void main(String[] args) {
16
-    app = getRegisterApp();
17
-    
18
-    //Schedule a job for the event-dispatching thread:
19
-    //creating and showing this application's GUI.
20
-    javax.swing.SwingUtilities.invokeLater(new Runnable() {
21
-        public void run() {
22
-            app.show();
23
-        }
24
-    });
25
-  }
26
-
27
-  private static RegisterApp getRegisterApp() {
28
-    return (RegisterApp)getBean("registerApp");
29
-  }
30
-
31
-  public static Object getBean(String bean){
32
-    ApplicationContext context = getContext(); 
33
-
34
-    return context.getBean(bean);
35
-}
36
-
37
-public static ClassPathXmlApplicationContext getContext() {
38
-    return new ClassPathXmlApplicationContext(new String[] {"context-app.xml"});
39
-}
40
-}

+ 0
- 249
register-app/src/main/java/se/citerus/registerapp/RegisterApp.java 파일 보기

@@ -1,249 +0,0 @@
1
-package se.citerus.registerapp;
2
-
3
-import com.aggregator.HandlingReport;
4
-import com.aggregator.HandlingReportErrors_Exception;
5
-import com.aggregator.HandlingReportService;
6
-import com.jgoodies.forms.builder.DefaultFormBuilder;
7
-import com.jgoodies.forms.debug.FormDebugPanel;
8
-import com.jgoodies.forms.factories.ButtonBarFactory;
9
-import com.jgoodies.forms.layout.FormLayout;
10
-import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl;
11
-import se.citerus.registerapp.validation.FormValidationDecorator;
12
-import se.citerus.registerapp.validation.FormValidationSwingDecorator;
13
-import se.citerus.registerapp.validation.MandatoryTextFieldValidator;
14
-
15
-import javax.swing.*;
16
-import javax.swing.border.Border;
17
-import javax.swing.border.CompoundBorder;
18
-import javax.swing.border.LineBorder;
19
-import javax.swing.plaf.basic.BasicBorders;
20
-import javax.swing.text.DefaultFormatter;
21
-import java.awt.*;
22
-import java.awt.event.ActionEvent;
23
-import java.awt.event.ActionListener;
24
-import java.text.SimpleDateFormat;
25
-import java.util.Date;
26
-import java.util.GregorianCalendar;
27
-
28
-public class RegisterApp {
29
-  private static final DefaultFormatter DEFAULT_FORMATTER = new DefaultFormatter();
30
-  private static final SimpleDateFormat ISO8601_DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd");
31
-  private static final String TITLE = "Incident Logging Application";
32
-  private JFrame frame;
33
-  private JFormattedTextField completionTimeField;
34
-  private JFormattedTextField trackingIdField;
35
-  private JFormattedTextField carrierMovementField;
36
-  private JFormattedTextField locationField;
37
-  //private JFormattedTextField eventTypeField;
38
-  private JComboBox eventTypeField;
39
-  private JButton registerButton;
40
-
41
-  private HandlingReportService handlingReportService;
42
-  private boolean debugUI;
43
-  private FormValidationDecorator validator;
44
-
45
-
46
-    /////////////////////////////////////////////////////////////////////////////
47
-  // GUI EVENT HANDLING
48
-  /////////////////////////////////////////////////////////////////////////////
49
-  protected void onRegister(){
50
-    assert handlingReportService != null : "No HandlingEventService available";
51
-
52
-        try {
53
-            final HandlingReport report = new HandlingReport();
54
-            final GregorianCalendar completionTime = new GregorianCalendar();
55
-            completionTime.setTime((Date) completionTimeField.getValue());
56
-            report.setCompletionTime(new XMLGregorianCalendarImpl(completionTime));
57
-            report.getTrackingIds().add(getStringValue(trackingIdField));
58
-            report.setType(getStringValue(eventTypeField).toUpperCase());
59
-            report.setUnLocode(getStringValue(locationField));
60
-            report.setVoyageNumber(getStringValue(carrierMovementField));
61
-
62
-            handlingReportService.submitReport(report);
63
-            clearForm();
64
-        } catch (HandlingReportErrors_Exception e) {
65
-            e.printStackTrace();
66
-        }
67
-    }
68
-
69
-  private String getStringValue(JComboBox comboBox) {
70
-      Object value = comboBox.getSelectedItem();
71
-
72
-      if (value != null) {
73
-        return value.toString();
74
-      } else {
75
-        return null;
76
-      }
77
-  }
78
-
79
-
80
-  private String getStringValue(JFormattedTextField formattedTextField) {
81
-    Object value = formattedTextField.getValue();
82
-
83
-    if (value != null) {
84
-      return value.toString();
85
-    } else {
86
-      return null;
87
-    }
88
-  }
89
-
90
-
91
-  /////////////////////////////////////////////////////////////////////////////
92
-  // PUBLIC API
93
-  /////////////////////////////////////////////////////////////////////////////
94
-  public void show() {
95
-    try {
96
-      UIManager.setLookAndFeel("com.jgoodies.looks.plastic.PlasticXPLookAndFeel");
97
-    } catch (Exception e) {
98
-      // Likely PlasticXP is not in the class path; ignore.
99
-    }
100
-
101
-    initComponents();
102
-    JComponent panel = createMainPanel();
103
-
104
-
105
-    frame = createFrame(panel);
106
-    frame.pack();
107
-    centerOnScreen(frame);
108
-
109
-    initValidation(frame);
110
-
111
-    frame.setVisible(true);
112
-
113
-    clearForm();
114
-  }
115
-
116
-
117
-  public void setHandlingReportService(HandlingReportService handlingReportService) {
118
-    this.handlingReportService = handlingReportService;
119
-  }
120
-
121
-  public void setDebugUI(boolean on){
122
-    this.debugUI = on;
123
-  }
124
-
125
-  /////////////////////////////////////////////////////////////////////////////
126
-  // GUI SETUP
127
-  /////////////////////////////////////////////////////////////////////////////
128
-  private void clearForm() {
129
-    completionTimeField.setText(ISO8601_DATE_FORMAT.format(new Date()));
130
-    trackingIdField.setText("");
131
-    carrierMovementField.setText("");
132
-    locationField.setText("");
133
-    eventTypeField.setSelectedIndex(0);
134
-  }
135
-
136
-  public static Border getMandatoryBorder() {
137
-    return new CompoundBorder(new LineBorder(Color.RED), new BasicBorders.MarginBorder());
138
-  }
139
-
140
-  private void initComponents(){
141
-    completionTimeField = new JFormattedTextField(ISO8601_DATE_FORMAT);
142
-    trackingIdField = new JFormattedTextField(DEFAULT_FORMATTER);
143
-    carrierMovementField = new JFormattedTextField(DEFAULT_FORMATTER);
144
-    locationField = new JFormattedTextField(DEFAULT_FORMATTER);
145
-    eventTypeField = new JComboBox(new String[] {"-- Select --","Receive","Load","Unload","Customs","Claim"});
146
-
147
-    registerButton = new JButton("Register");
148
-    registerButton.addActionListener(new ActionListener(){
149
-      public void actionPerformed(ActionEvent e) {
150
-        if (validator.validate()){
151
-          onRegister();
152
-        }
153
-      }
154
-    });
155
-  }
156
-
157
-  /**
158
-   * We need to do initialization of validators after the components and their parent frame has been initialized.
159
-   * @param frame
160
-   *
161
-   */
162
-  private void initValidation(JFrame frame){
163
-    validator = new FormValidationSwingDecorator(frame);
164
-
165
-    validator.add(trackingIdField, new MandatoryTextFieldValidator("Tracking id can't be empty"));
166
-    validator.add(locationField, new MandatoryTextFieldValidator("Location can't be empty"));
167
-  }
168
-
169
-
170
-  /**
171
-   * Center a component on the screen.
172
-   *
173
-   * @param component the component to be centered
174
-   */
175
-
176
-  public static void centerOnScreen(Component component) {
177
-      Dimension componentSize = component.getSize();
178
-      Dimension screenSize = component.getToolkit().getScreenSize();
179
-
180
-      component.setLocation(
181
-          (screenSize.width  - componentSize.width)  / 2,
182
-          (int) ((screenSize.height - componentSize.height) *0.45));
183
-
184
-  }
185
-
186
-  private JFrame createFrame(JComponent panel) {
187
-    JFrame f = new JFrame();
188
-    f.setTitle(TITLE);
189
-    f.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
190
-    f.getContentPane().add(panel);
191
-
192
-    return f;
193
-  }
194
-
195
-  private JComponent createMainPanel() {
196
-    JComponent fieldPanel = createFieldPanel();
197
-    JComponent buttonPanel = createButtonPanel();
198
-
199
-    DefaultFormBuilder mainBuilder = createBuilder("p");
200
-    mainBuilder.append(fieldPanel);
201
-    mainBuilder.append(buttonPanel);
202
-
203
-    return mainBuilder.getPanel();
204
-  }
205
-
206
-
207
-  private JComponent createButtonPanel() {
208
-    return ButtonBarFactory.buildRightAlignedBar(registerButton);
209
-  }
210
-
211
-
212
-  private JComponent createFieldPanel() {
213
-    DefaultFormBuilder builder = createBuilder("right:pref, 3dlu, 100dlu");
214
-
215
-    builder.appendSeparator("Completion");
216
-    builder.append("Time", completionTimeField); builder.nextLine();
217
-
218
-    builder.appendSeparator("Cargo");
219
-    builder.append("Tracking Id", trackingIdField); builder.nextLine();
220
-
221
-    builder.appendSeparator("Event");
222
-    builder.append("Voyage", carrierMovementField); builder.nextLine();
223
-    builder.append("Location UN/Locode", locationField); builder.nextLine();
224
-    builder.append("Event Type", eventTypeField); builder.nextLine();
225
-
226
-    builder.appendSeparator("");
227
-
228
-    return builder.getPanel();
229
-  }
230
-
231
-
232
-  private DefaultFormBuilder createBuilder(String colSpec) {
233
-    FormLayout layout = new FormLayout(colSpec);
234
-
235
-    DefaultFormBuilder builder = createDefaultFormBuilder(layout);
236
-    builder.setDefaultDialogBorder();
237
-    return builder;
238
-  }
239
-
240
-
241
-  private DefaultFormBuilder createDefaultFormBuilder(FormLayout layout) {
242
-    if (debugUI){
243
-      return new DefaultFormBuilder(layout, new FormDebugPanel());
244
-    } else {
245
-      return new DefaultFormBuilder(layout);
246
-    }
247
-  }
248
-
249
-}

+ 0
- 14
register-app/src/main/java/se/citerus/registerapp/service/HandlingEventService.java 파일 보기

@@ -1,14 +0,0 @@
1
-package se.citerus.registerapp.service;
2
-
3
-public interface HandlingEventService {
4
-  /**
5
-   * Register an cargo handling event.
6
-   *
7
-   * @param completionTime time when event occured, for example a the loading of cargo was completed
8
-   * @param trackingId tracking id of the cargo
9
-   * @param carrierMovementId carrier movement id, if applicable
10
-   * @param unlocode United Nations Location Code for the location where the event occured
11
-   * @param eventType type of event
12
-   */
13
-  void register(String completionTime, String trackingId, String carrierMovementId, String unlocode, String eventType);
14
-}

+ 0
- 41
register-app/src/main/java/se/citerus/registerapp/validation/AbstractFormValidationDecorator.java 파일 보기

@@ -1,41 +0,0 @@
1
-package se.citerus.registerapp.validation;
2
-
3
-import java.awt.event.KeyEvent;
4
-import java.awt.event.KeyListener;
5
-import java.util.HashMap;
6
-import java.util.Map.Entry;
7
-
8
-import javax.swing.JComponent;
9
-
10
-public abstract class AbstractFormValidationDecorator implements FormValidationDecorator{
11
-  private HashMap<JComponent, ComponentValidator> validators = new HashMap<JComponent, ComponentValidator>();
12
-
13
-  public void add(final JComponent component, ComponentValidator validator) {
14
-    this.validators.put(component, validator);
15
-
16
-    component.addKeyListener(new KeyListener(){
17
-      public void keyPressed(KeyEvent e) {
18
-        for (final Entry<JComponent, ComponentValidator> entry : validators.entrySet()) {
19
-          undecorate(entry.getKey());
20
-        }
21
-      }
22
-
23
-      public void keyReleased(KeyEvent e) {}
24
-      public void keyTyped(KeyEvent e) {}
25
-    });
26
-  }
27
-
28
-  public boolean validate() {
29
-    boolean allValidated = true;
30
-    for (final Entry<JComponent, ComponentValidator> entry : validators.entrySet()) {
31
-      if (!entry.getValue().validate(entry.getKey())){
32
-        decorate(entry.getKey(), entry.getValue());
33
-        allValidated = false;
34
-      }
35
-    }
36
-    return allValidated;
37
-  }
38
-  
39
-  public abstract void decorate(JComponent component, ComponentValidator validator);
40
-  public abstract void undecorate(JComponent component);
41
-}

+ 0
- 96
register-app/src/main/java/se/citerus/registerapp/validation/AbstractValidator.java 파일 보기

@@ -1,96 +0,0 @@
1
-package se.citerus.registerapp.validation;
2
-
3
-import java.awt.Color;
4
-import java.awt.FlowLayout;
5
-import java.awt.event.KeyEvent;
6
-import java.awt.event.KeyListener;
7
-
8
-import javax.swing.ImageIcon;
9
-import javax.swing.InputVerifier;
10
-import javax.swing.JComponent;
11
-import javax.swing.JFrame;
12
-import javax.swing.JLabel;
13
-import javax.swing.JPanel;
14
-
15
-public abstract class AbstractValidator extends InputVerifier implements KeyListener{
16
-  private static final Color ERROR_COMPONENT_COLOR = Color.PINK;
17
-  private static final Color POPUP_COLOR = new Color(243, 255, 159);
18
-  private JPanel popup;
19
-  private JLabel messageLabel = new JLabel();;
20
-  private JLabel image = new JLabel();
21
-  private JFrame parent;
22
-  private String message;;
23
-
24
-  
25
-  
26
-  public AbstractValidator(String message) {
27
-    this.message = message;
28
-  }
29
-  
30
-  public String getMessage(){
31
-    return message;
32
-  }
33
-
34
-  public AbstractValidator(JFrame parent, JComponent c, String message) {
35
-    c.addKeyListener(this);
36
-    popup = new JPanel();
37
-    this.parent = parent;
38
-    messageLabel = new JLabel(message + " ");
39
-    image = new JLabel(new ImageIcon("/icon/error_16x16.png"));
40
-    initComponents();
41
-  }
42
-
43
-  /**
44
-   * Implement the actual validation logic in this method. The method should
45
-   * return false if data is invalid and true if it is valid.
46
-   * 
47
-   * @param c The JComponent to be validated.
48
-   * @return false if data is invalid. true if it is valid.
49
-   */
50
-  protected abstract boolean validate(JComponent c);
51
-
52
-  @Override
53
-  public boolean verify(JComponent component) {
54
-    if (!validate(component)) {
55
-
56
-//      
57
-//      Dimension compSize = component.getSize();
58
-//      Point compPos = popup.getLocation();
59
-//      
60
-//      component.setBackground(ERROR_COMPONENT_COLOR);
61
-//
62
-//      popup.setLocation(
63
-//          compPos.x - (int) compSize.getWidth() / 2, 
64
-//          compPos.y + (int) compSize.getHeight() / 2);
65
-      
66
-      parent.setGlassPane(popup);
67
-      component.setBackground(ERROR_COMPONENT_COLOR);
68
-      popup.setVisible(true);
69
-      return false;
70
-    } else {
71
-      component.setBackground(Color.WHITE);
72
-      return true;
73
-    }
74
-  }
75
-
76
-  public void keyPressed(KeyEvent e) {
77
-    popup.setVisible(false);    
78
-  }
79
-
80
-  public void keyReleased(KeyEvent e) {}
81
-
82
-  public void keyTyped(KeyEvent e) {}
83
-  
84
-  
85
-  private void initComponents() {
86
-    popup.setLayout(new FlowLayout());
87
-//    popup.setUndecorated(true);
88
-    popup.setBackground(POPUP_COLOR);
89
-    popup.add(image);
90
-    popup.add(messageLabel);
91
-//    popup.setOpaque(false);
92
-//    popup.setFocusableWindowState(false);
93
-  }
94
-
95
-
96
-}

+ 0
- 8
register-app/src/main/java/se/citerus/registerapp/validation/ComponentValidator.java 파일 보기

@@ -1,8 +0,0 @@
1
-package se.citerus.registerapp.validation;
2
-
3
-import javax.swing.JComponent;
4
-
5
-public interface ComponentValidator {
6
-  boolean validate(JComponent c);
7
-  String getMessage();
8
-}

+ 0
- 13
register-app/src/main/java/se/citerus/registerapp/validation/FormValidationDecorator.java 파일 보기

@@ -1,13 +0,0 @@
1
-package se.citerus.registerapp.validation;
2
-
3
-import javax.swing.JComponent;
4
-
5
-
6
-public interface FormValidationDecorator {
7
-
8
-  void add(final JComponent component, ComponentValidator validator);
9
-
10
-  boolean validate();
11
-
12
-  
13
-}

+ 0
- 118
register-app/src/main/java/se/citerus/registerapp/validation/FormValidationSwingDecorator.java 파일 보기

@@ -1,118 +0,0 @@
1
-package se.citerus.registerapp.validation;
2
-
3
-import java.awt.Color;
4
-import java.awt.Dimension;
5
-import java.awt.FlowLayout;
6
-import java.awt.Point;
7
-import java.util.HashMap;
8
-
9
-import javax.swing.ImageIcon;
10
-import javax.swing.JComponent;
11
-import javax.swing.JFrame;
12
-import javax.swing.JLabel;
13
-import javax.swing.JPanel;
14
-
15
-public class FormValidationSwingDecorator extends AbstractFormValidationDecorator{
16
-
17
-  private static final int POPUP_Y_OFFSET = 0;
18
-  private static final int POPUP_X_OFFSET = 12;
19
-  private Color oldColor = Color.WHITE;
20
-  private JFrame form;
21
-  private String message;
22
-  private HashMap<JComponent, JPanel> popups = new HashMap<JComponent, JPanel>();
23
-  private JPanel glassPane = new JPanel();
24
-
25
-  public FormValidationSwingDecorator(JFrame form) {
26
-    assert form != null : "Can't decorate null frame";
27
-    
28
-    this.form = form;
29
-    glassPane.setOpaque(false);
30
-    glassPane.setVisible(false);
31
-    glassPane.setLayout(null);
32
-//    glassPane.setPreferredSize(form.getPreferredSize());
33
-    glassPane.setSize(form.getSize());
34
-    
35
-    form.setGlassPane(glassPane);
36
-    
37
-    
38
-  }
39
-
40
-  public FormValidationSwingDecorator(JFrame form, String message) {
41
-    this(form);
42
-    
43
-    this.message = message;
44
-  }
45
-
46
-  private JPanel createPopupRelativeTo(JComponent component) {
47
-    JPanel popupPane = null;
48
-    
49
-    if (popups.containsKey(component)){
50
-      popupPane = popups.get(component);
51
-    } else {
52
-      popupPane = new JPanel(new FlowLayout());
53
-      glassPane.add(popupPane);
54
-      glassPane.setVisible(true);
55
-      
56
-      popupPane.add(getIconLabel());
57
-      popupPane.add(getMessageLabel());
58
-      popupPane.setLocation(getPopupPositionRelativeTo(component));
59
-      popupPane.setVisible(true);
60
-      popupPane.setOpaque(false);
61
-      popupPane.validate();
62
-      popupPane.setSize(popupPane.getPreferredSize());
63
-     
64
-    }
65
-    
66
-    return popupPane;
67
-  }
68
-
69
-  private Point getPopupPositionRelativeTo(JComponent component) {
70
-    Point compPos = component.getLocation();
71
-    Dimension compDim = component.getSize();
72
-    Point popupPos = new Point(compPos.x + POPUP_X_OFFSET, compPos.y + compDim.height + POPUP_Y_OFFSET);
73
-    
74
-    System.out.println("Comp pos: " + compPos + " - Popup pos: " + popupPos);
75
-    return popupPos;
76
-  }
77
-
78
-  private JLabel getMessageLabel() {
79
-    JLabel label = new JLabel(message != null ? message : "");
80
-    label.setOpaque(false);
81
-    return label;
82
-  }
83
-
84
-  private JLabel getIconLabel() {
85
-    JLabel label = new JLabel();
86
-    
87
-    java.net.URL imageURL = this.getClass().getResource("/icon/error_16x16.png");
88
-    if (imageURL != null){
89
-      ImageIcon icon = new ImageIcon(imageURL);
90
-      label.setIcon(icon);
91
-    } else {
92
-      System.out.println("No icon found");
93
-    }
94
-    
95
-    
96
-    label.setOpaque(false);
97
-    return label;
98
-  }
99
-  
100
-  @Override
101
-  public void decorate(JComponent component, ComponentValidator validator) {
102
-    this.message = validator.getMessage();
103
-    this.oldColor = component.getBackground();
104
-    component.setBackground(Color.PINK);
105
-    JPanel panel = createPopupRelativeTo(component);
106
-    popups.put(component, panel);
107
-    panel.setVisible(true);
108
-  }
109
-
110
-  @Override
111
-  public void undecorate(JComponent component) {
112
-    component.setBackground(oldColor);
113
-    JPanel panel = popups.get(component);
114
-    if (panel != null){
115
-      panel.setVisible(false);
116
-    }
117
-  }
118
-}

+ 0
- 25
register-app/src/main/java/se/citerus/registerapp/validation/MandatoryTextFieldValidator.java 파일 보기

@@ -1,25 +0,0 @@
1
-package se.citerus.registerapp.validation;
2
-
3
-import javax.swing.JComponent;
4
-import javax.swing.JTextField;
5
-
6
-public class MandatoryTextFieldValidator implements ComponentValidator {
7
-  private String message;
8
-
9
-  public MandatoryTextFieldValidator(String message) {
10
-    this.message = message;
11
-  }
12
-
13
-  public boolean validate(JComponent c) {
14
-    JTextField field = (JTextField) c;
15
-    
16
-    boolean valid = !"".equals(field.getText());
17
-    
18
-    return valid;
19
-  }
20
-
21
-  public String getMessage() {
22
-    return message;
23
-  }
24
-
25
-}

+ 0
- 1
register-app/src/main/resources/app.properties 파일 보기

@@ -1 +0,0 @@
1
-wsdl.url=http://localhost:8080/dddsample/ws/RegisterEvent?wsdl

+ 0
- 32
register-app/src/main/resources/context-app.xml 파일 보기

@@ -1,32 +0,0 @@
1
-<?xml version="1.0"?>
2
-
3
-<beans xmlns="http://www.springframework.org/schema/beans"
4
-       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
-       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
6
-
7
-  <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
8
-    <property name="locations" value="file:app.properties"/>
9
-    <property name="order" value="1"/>
10
-    <property name="ignoreResourceNotFound" value="true"/>
11
-    <property name="ignoreUnresolvablePlaceholders" value="true"/>
12
-  </bean>
13
-
14
-  <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
15
-    <property name="locations" value="classpath:app.properties"/>
16
-    <property name="order" value="2"/>
17
-  </bean>
18
-
19
-  <bean id="registerApp" class="se.citerus.registerapp.RegisterApp">
20
-    <property name="handlingReportService" ref="handlingReportService"/>
21
-    <property name="debugUI" value="false" />
22
-  </bean>
23
-
24
-  <bean id="handlingReportService" class="org.springframework.remoting.jaxws.JaxWsPortProxyFactoryBean">
25
-    <property name="serviceInterface" value="com.aggregator.HandlingReportService" />
26
-    <property name="wsdlDocumentUrl" value="${wsdl.url}" />
27
-    <property name="namespaceUri" value="http://ws.handling.interfaces.dddsample.citerus.se/" />
28
-    <property name="serviceName" value="HandlingReportServiceImplService" />
29
-    <property name="portName" value="HandlingReportServiceImplPort" />
30
-  </bean>
31
-
32
-</beans>

BIN
register-app/src/main/resources/icon/error_16x16.png 파일 보기


+ 0
- 23
register-app/src/main/resources/log4j.properties 파일 보기

@@ -1,23 +0,0 @@
1
-# For JBoss: Avoid to setup Log4J outside $JBOSS_HOME/server/default/deploy/log4j.xml!
2
-# For all other servers: Comment out the Log4J listener in web.xml to activate Log4J.
3
-log4j.rootLogger=info, stdout, logfile
4
-
5
-log4j.appender.stdout=org.apache.log4j.ConsoleAppender
6
-log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
7
-log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %m%n
8
-
9
-log4j.appender.logfile=org.apache.log4j.RollingFileAppender
10
-log4j.appender.logfile.File=${java.io.tmpdir}/registration-app.log
11
-log4j.appender.logfile.MaxFileSize=512KB
12
-# Keep three backup files.
13
-log4j.appender.logfile.MaxBackupIndex=3
14
-# Pattern to output: date priority [category] - message
15
-log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
16
-log4j.appender.logfile.layout.ConversionPattern=%d %p [%c] - %m%n
17
-
18
-log4j.logger.se.citerus.dddsample=debug
19
-log4j.logger.net.sf.ehcache.config.ConfigurationFactory=error
20
-log4j.logger.org.hibernate.tool.hbm2ddl.SchemaExport=debug
21
-
22
-#log4j.logger.org.springframework.orm=debug
23
-#log4j.logger.org.springframework.transaction=debug

+ 0
- 38
register-app/src/test/java/se/citerus/AppTest.java 파일 보기

@@ -1,38 +0,0 @@
1
-package se.citerus;
2
-
3
-import junit.framework.Test;
4
-import junit.framework.TestCase;
5
-import junit.framework.TestSuite;
6
-
7
-/**
8
- * Unit test for simple App.
9
- */
10
-public class AppTest 
11
-    extends TestCase
12
-{
13
-    /**
14
-     * Create the test case
15
-     *
16
-     * @param testName name of the test case
17
-     */
18
-    public AppTest( String testName )
19
-    {
20
-        super( testName );
21
-    }
22
-
23
-    /**
24
-     * @return the suite of tests being tested
25
-     */
26
-    public static Test suite()
27
-    {
28
-        return new TestSuite( AppTest.class );
29
-    }
30
-
31
-    /**
32
-     * Rigourous Test :-)
33
-     */
34
-    public void testApp()
35
-    {
36
-        assertTrue( true );
37
-    }
38
-}

+ 0
- 120
register-app/src/test/java/se/citerus/registerapp/validation/ValidationTest.java 파일 보기

@@ -1,120 +0,0 @@
1
-package se.citerus.registerapp.validation;
2
-
3
-import java.awt.event.ActionEvent;
4
-import java.awt.event.ActionListener;
5
-
6
-import javax.swing.JButton;
7
-import javax.swing.JComponent;
8
-import javax.swing.JFrame;
9
-import javax.swing.JTextField;
10
-
11
-import junit.framework.TestCase;
12
-
13
-public class ValidationTest extends TestCase {
14
-  private boolean actionPerformed;
15
-
16
-  public void testValidationScenario() throws Exception {
17
-    JFrame frame = new JFrame();
18
-    
19
-    final FormValidationDecorator validationDecorator = new FormValidationSwingDecorator(frame);
20
-    
21
-    JTextField field1 = new JTextField();
22
-    JTextField field2 = new JTextField();
23
-    JButton button = new JButton();
24
-    frame.add(field1);
25
-    frame.add(field2);
26
-    frame.add(button);
27
-    
28
-    
29
-    ValidatorMock validator1 = createValidator("No Way!", true);
30
-    validationDecorator.add(field1, validator1);
31
-    
32
-    ValidatorMock validator2 = createValidator("My Way!", true);
33
-    validationDecorator.add(field2, validator2);
34
-    
35
-   button.addActionListener(new ActionListener(){
36
-    public void actionPerformed(ActionEvent e) {
37
-      if (validationDecorator.validate()){
38
-        onAction();
39
-      }
40
-    }
41
-   });
42
-   
43
-   
44
-   
45
-   field1.setText("Field1");
46
-   field2.setText("");
47
-   button.doClick();
48
-   assertTrue("Field1 not validated", validator1.isValidated());
49
-   assertTrue("Field2 not validated", validator2.isValidated());
50
-   assertTrue("Button action not performed", actionPerformed);
51
-  }
52
-  
53
-  public void testValidationFailure() throws Exception {
54
-    JFrame frame = new JFrame();
55
-    final FormValidationDecorator validator = new FormValidationSwingDecorator(frame);
56
-    
57
-    JTextField field1 = new JTextField();
58
-    JTextField field2 = new JTextField();
59
-    JButton button = new JButton();
60
-    frame.add(field1);
61
-    frame.add(field2);
62
-    frame.add(button);
63
-    
64
-    ValidatorMock validator1 = createValidator("No Way!", true);
65
-    validator.add(field1, validator1);
66
-    
67
-    ValidatorMock validator2 = createValidator("My Way!", false);
68
-    validator.add(field2, validator2);
69
-    
70
-   button.addActionListener(new ActionListener(){
71
-    public void actionPerformed(ActionEvent e) {
72
-      if (validator.validate()){
73
-        onAction();
74
-      }
75
-    }
76
-   });
77
-   
78
-   field1.setText("Field1");
79
-   field2.setText("");
80
-   button.doClick();
81
-   assertTrue("Field1 not validated", validator1.isValidated());
82
-   assertTrue("Field2 not validated", validator2.isValidated());
83
-   assertFalse("Button action should not be performed", actionPerformed);
84
-  }
85
-  
86
-
87
-  private ValidatorMock createValidator(String message, boolean result) {
88
-    return new ValidatorMock(message, result);
89
-  }
90
-
91
-  protected void onAction() {
92
-    this.actionPerformed = true;
93
-    // Do some action...
94
-  }
95
-  
96
-  private static final class ValidatorMock implements ComponentValidator{
97
-    private final boolean result;
98
-    private boolean validated;
99
-    private String message;
100
-    
101
-    public ValidatorMock(String message, boolean result) {
102
-      this.message = message;
103
-      this.result = result;
104
-    }
105
-
106
-    public boolean validate(JComponent c) {
107
-      validated = true;
108
-      return result;
109
-    }
110
-
111
-    public boolean isValidated() {
112
-      return validated;
113
-    }
114
-
115
-    public String getMessage() {
116
-      return message;
117
-    }
118
-    
119
-  }
120
-}

dddsample/src/main/config/checkstyle.xml → src/main/config/checkstyle.xml 파일 보기


dddsample/src/main/config/dddsample-format-eclipse.pref → src/main/config/dddsample-format-eclipse.pref 파일 보기


register-app/src/main/java/com/aggregator/HandlingReport.java → src/main/java/com/aggregator/HandlingReport.java 파일 보기


register-app/src/main/java/com/aggregator/HandlingReportErrors.java → src/main/java/com/aggregator/HandlingReportErrors.java 파일 보기


register-app/src/main/java/com/aggregator/HandlingReportErrors_Exception.java → src/main/java/com/aggregator/HandlingReportErrors_Exception.java 파일 보기


register-app/src/main/java/com/aggregator/HandlingReportService.java → src/main/java/com/aggregator/HandlingReportService.java 파일 보기


register-app/src/main/java/com/aggregator/HandlingReportService.wsdl → src/main/java/com/aggregator/HandlingReportService.wsdl 파일 보기


register-app/src/main/java/com/aggregator/HandlingReportServiceService.java → src/main/java/com/aggregator/HandlingReportServiceService.java 파일 보기


register-app/src/main/java/com/aggregator/ObjectFactory.java → src/main/java/com/aggregator/ObjectFactory.java 파일 보기


register-app/src/main/java/com/aggregator/SubmitReport.java → src/main/java/com/aggregator/SubmitReport.java 파일 보기


register-app/src/main/java/com/aggregator/SubmitReportResponse.java → src/main/java/com/aggregator/SubmitReportResponse.java 파일 보기


register-app/src/main/java/com/aggregator/package-info.java → src/main/java/com/aggregator/package-info.java 파일 보기


register-app/src/main/java/com/aggregator/package.html → src/main/java/com/aggregator/package.html 파일 보기


dddsample/src/main/java/com/pathfinder/api/GraphTraversalService.java → src/main/java/com/pathfinder/api/GraphTraversalService.java 파일 보기


dddsample/src/main/java/com/pathfinder/api/TransitEdge.java → src/main/java/com/pathfinder/api/TransitEdge.java 파일 보기


dddsample/src/main/java/com/pathfinder/api/TransitPath.java → src/main/java/com/pathfinder/api/TransitPath.java 파일 보기


dddsample/src/main/java/com/pathfinder/api/package.html → src/main/java/com/pathfinder/api/package.html 파일 보기


dddsample/src/main/java/com/pathfinder/internal/GraphDAO.java → src/main/java/com/pathfinder/internal/GraphDAO.java 파일 보기


dddsample/src/main/java/com/pathfinder/internal/GraphTraversalServiceImpl.java → src/main/java/com/pathfinder/internal/GraphTraversalServiceImpl.java 파일 보기


dddsample/src/main/java/com/pathfinder/internal/package.html → src/main/java/com/pathfinder/internal/package.html 파일 보기


dddsample/src/main/java/com/pathfinder/package.html → src/main/java/com/pathfinder/package.html 파일 보기


dddsample/src/main/java/se/citerus/dddsample/application/ApplicationEvents.java → src/main/java/se/citerus/dddsample/application/ApplicationEvents.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/application/BookingService.java → src/main/java/se/citerus/dddsample/application/BookingService.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/application/CargoInspectionService.java → src/main/java/se/citerus/dddsample/application/CargoInspectionService.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/application/HandlingEventService.java → src/main/java/se/citerus/dddsample/application/HandlingEventService.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/application/impl/BookingServiceImpl.java → src/main/java/se/citerus/dddsample/application/impl/BookingServiceImpl.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/application/impl/CargoInspectionServiceImpl.java → src/main/java/se/citerus/dddsample/application/impl/CargoInspectionServiceImpl.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/application/impl/HandlingEventServiceImpl.java → src/main/java/se/citerus/dddsample/application/impl/HandlingEventServiceImpl.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/application/impl/package.html → src/main/java/se/citerus/dddsample/application/impl/package.html 파일 보기


dddsample/src/main/java/se/citerus/dddsample/application/package.html → src/main/java/se/citerus/dddsample/application/package.html 파일 보기


dddsample/src/main/java/se/citerus/dddsample/application/util/DateTestUtil.java → src/main/java/se/citerus/dddsample/application/util/DateTestUtil.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/application/util/SampleDataGenerator.java → src/main/java/se/citerus/dddsample/application/util/SampleDataGenerator.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/application/util/package.html → src/main/java/se/citerus/dddsample/application/util/package.html 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/cargo/Cargo.java → src/main/java/se/citerus/dddsample/domain/model/cargo/Cargo.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/cargo/CargoRepository.java → src/main/java/se/citerus/dddsample/domain/model/cargo/CargoRepository.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/cargo/Delivery.java → src/main/java/se/citerus/dddsample/domain/model/cargo/Delivery.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/cargo/HandlingActivity.java → src/main/java/se/citerus/dddsample/domain/model/cargo/HandlingActivity.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/cargo/Itinerary.java → src/main/java/se/citerus/dddsample/domain/model/cargo/Itinerary.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/cargo/Leg.java → src/main/java/se/citerus/dddsample/domain/model/cargo/Leg.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/cargo/RouteSpecification.java → src/main/java/se/citerus/dddsample/domain/model/cargo/RouteSpecification.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/cargo/RoutingStatus.java → src/main/java/se/citerus/dddsample/domain/model/cargo/RoutingStatus.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/cargo/TrackingId.java → src/main/java/se/citerus/dddsample/domain/model/cargo/TrackingId.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/cargo/TransportStatus.java → src/main/java/se/citerus/dddsample/domain/model/cargo/TransportStatus.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/cargo/package.html → src/main/java/se/citerus/dddsample/domain/model/cargo/package.html 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/handling/CannotCreateHandlingEventException.java → src/main/java/se/citerus/dddsample/domain/model/handling/CannotCreateHandlingEventException.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/handling/HandlingEvent.java → src/main/java/se/citerus/dddsample/domain/model/handling/HandlingEvent.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/handling/HandlingEventFactory.java → src/main/java/se/citerus/dddsample/domain/model/handling/HandlingEventFactory.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/handling/HandlingEventRepository.java → src/main/java/se/citerus/dddsample/domain/model/handling/HandlingEventRepository.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/handling/HandlingHistory.java → src/main/java/se/citerus/dddsample/domain/model/handling/HandlingHistory.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/handling/UnknownCargoException.java → src/main/java/se/citerus/dddsample/domain/model/handling/UnknownCargoException.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/handling/UnknownLocationException.java → src/main/java/se/citerus/dddsample/domain/model/handling/UnknownLocationException.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/handling/UnknownVoyageException.java → src/main/java/se/citerus/dddsample/domain/model/handling/UnknownVoyageException.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/handling/package.html → src/main/java/se/citerus/dddsample/domain/model/handling/package.html 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/location/Location.java → src/main/java/se/citerus/dddsample/domain/model/location/Location.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/location/LocationRepository.java → src/main/java/se/citerus/dddsample/domain/model/location/LocationRepository.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/location/SampleLocations.java → src/main/java/se/citerus/dddsample/domain/model/location/SampleLocations.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/location/UnLocode.java → src/main/java/se/citerus/dddsample/domain/model/location/UnLocode.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/location/package.html → src/main/java/se/citerus/dddsample/domain/model/location/package.html 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/package.html → src/main/java/se/citerus/dddsample/domain/model/package.html 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/voyage/CarrierMovement.java → src/main/java/se/citerus/dddsample/domain/model/voyage/CarrierMovement.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/voyage/SampleVoyages.java → src/main/java/se/citerus/dddsample/domain/model/voyage/SampleVoyages.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/voyage/Schedule.java → src/main/java/se/citerus/dddsample/domain/model/voyage/Schedule.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/voyage/Voyage.java → src/main/java/se/citerus/dddsample/domain/model/voyage/Voyage.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/voyage/VoyageNumber.java → src/main/java/se/citerus/dddsample/domain/model/voyage/VoyageNumber.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/voyage/VoyageRepository.java → src/main/java/se/citerus/dddsample/domain/model/voyage/VoyageRepository.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/model/voyage/package.html → src/main/java/se/citerus/dddsample/domain/model/voyage/package.html 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/package.html → src/main/java/se/citerus/dddsample/domain/package.html 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/service/RoutingService.java → src/main/java/se/citerus/dddsample/domain/service/RoutingService.java 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/service/package.html → src/main/java/se/citerus/dddsample/domain/service/package.html 파일 보기


dddsample/src/main/java/se/citerus/dddsample/domain/shared/AbstractSpecification.java → src/main/java/se/citerus/dddsample/domain/shared/AbstractSpecification.java 파일 보기


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.