Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
osiv2-postfach
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OZG-Cloud
app
osiv2-postfach
Commits
b5ff0896
Commit
b5ff0896
authored
5 months ago
by
Jörg Bolay
Browse files
Options
Downloads
Patches
Plain Diff
OZG-4095 verwendung der V1ReplyMessage eigenen fluent Api methoden
parent
725ebc83
No related branches found
No related tags found
1 merge request
!6
OZG-4095 Testcase deleteMessage implementiert
Pipeline
#1468
passed
5 months ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/java/de/ozgcloud/nachrichten/postfach/osiv2/factory/V1ReplyMessageFactory.java
+14
-77
14 additions, 77 deletions
...richten/postfach/osiv2/factory/V1ReplyMessageFactory.java
with
14 additions
and
77 deletions
src/test/java/de/ozgcloud/nachrichten/postfach/osiv2/factory/V1ReplyMessageFactory.java
+
14
−
77
View file @
b5ff0896
package
de.ozgcloud.nachrichten.postfach.osiv2.factory
;
package
de.ozgcloud.nachrichten.postfach.osiv2.factory
;
import
java.time.OffsetDateTime
;
import
java.time.OffsetDateTime
;
import
java.util.List
;
import
java.util.UUID
;
import
java.util.UUID
;
import
de.ozgcloud.nachrichten.postfach.osiv2.gen.model.V1EidasLevel
;
import
de.ozgcloud.nachrichten.postfach.osiv2.gen.model.V1EidasLevel
;
import
de.ozgcloud.nachrichten.postfach.osiv2.gen.model.V1ReplyBehavior
;
import
de.ozgcloud.nachrichten.postfach.osiv2.gen.model.V1ReplyBehavior
;
import
de.ozgcloud.nachrichten.postfach.osiv2.gen.model.V1ReplyFiles
;
import
de.ozgcloud.nachrichten.postfach.osiv2.gen.model.V1ReplyMessage
;
import
de.ozgcloud.nachrichten.postfach.osiv2.gen.model.V1ReplyMessage
;
public
class
V1ReplyMessageFactory
{
public
class
V1ReplyMessageFactory
{
private
static
String
SEQUENCE_NUMMER
=
"OZG-Cloud-VorgangId"
;
private
static
String
SEQUENCE_NUMMER
=
"OZG-Cloud-VorgangId"
;
...
@@ -28,78 +24,19 @@ public class V1ReplyMessageFactory {
...
@@ -28,78 +24,19 @@ public class V1ReplyMessageFactory {
private
static
String
MESSAGE_BOX
=
"Mailbox-Id-Antwortender"
;
private
static
String
MESSAGE_BOX
=
"Mailbox-Id-Antwortender"
;
private
static
OffsetDateTime
RESPONSE_TIME
=
OffsetDateTime
.
now
();
private
static
OffsetDateTime
RESPONSE_TIME
=
OffsetDateTime
.
now
();
public
static
V1ReplyMessage
create
()
{
public
static
V1ReplyMessage
create
()
{
return
createBuilder
().
build
();
return
new
V1ReplyMessage
()
}
public
static
V1ReplyMessageFactory
.
Builder
createBuilder
(){
return
new
Builder
()
.
sequencenumber
(
SEQUENCE_NUMMER
)
.
sequencenumber
(
SEQUENCE_NUMMER
)
.
subject
(
SUBJECT
)
.
subject
(
SUBJECT
)
.
body
(
BODY
)
.
body
(
BODY
)
.
displayName
(
DISPLAY_NAME
)
.
displayName
(
DISPLAY_NAME
)
.
originSender
(
ORIGIN_SENDER
)
.
originSender
(
ORIGIN_SENDER
)
.
replyAction
(
REPLAY_ACTION
)
.
replyAction
(
V1ReplyBehavior
.
fromValue
(
REPLAY_ACTION
)
)
.
eidasLevel
(
EIDAS_LEVEL
)
.
eidasLevel
(
V1EidasLevel
.
fromValue
(
EIDAS_LEVEL
)
)
.
isObligatory
(
IS_OLIGATORY
)
.
isObligatory
(
IS_OLIGATORY
)
.
isHtml
(
IS_HTML
)
.
isHtml
(
IS_HTML
)
.
guid
(
UUID
.
nameUUIDFromBytes
(
GUID
.
getBytes
()))
.
guid
(
UUID
.
nameUUIDFromBytes
(
GUID
.
getBytes
()))
.
messageBox
(
UUID
.
nameUUIDFromBytes
(
MESSAGE_BOX
.
getBytes
()))
.
messageBox
(
UUID
.
nameUUIDFromBytes
(
MESSAGE_BOX
.
getBytes
()))
.
responseTime
(
RESPONSE_TIME
);
.
responseTime
(
RESPONSE_TIME
);
}
}
static
class
Builder
{
private
String
sequencenumber
;
private
String
subject
;
private
String
body
;
private
String
displayName
;
private
String
originSender
;
private
String
replyAction
;
private
String
eidasLevel
;
private
Boolean
isObligatory
;
private
Boolean
isHtml
;
private
List
<
V1ReplyFiles
>
files
;
private
UUID
guid
;
private
UUID
messageBox
;
private
String
senderDisplayName
;
private
String
recipientDisplayName
;
private
OffsetDateTime
responseTime
;
public
Builder
sequencenumber
(
String
sequencenumber
){
this
.
sequencenumber
=
sequencenumber
;
return
this
;}
public
Builder
subject
(
String
subject
){
this
.
subject
=
subject
;
return
this
;}
public
Builder
body
(
String
body
){
this
.
body
=
body
;
return
this
;}
public
Builder
displayName
(
String
displayName
){
this
.
displayName
=
displayName
;
return
this
;}
public
Builder
originSender
(
String
originSender
){
this
.
originSender
=
originSender
;
return
this
;}
public
Builder
replyAction
(
String
replyAction
){
this
.
replyAction
=
replyAction
;
return
this
;}
public
Builder
eidasLevel
(
String
eidasLevel
){
this
.
eidasLevel
=
eidasLevel
;
return
this
;}
public
Builder
isObligatory
(
Boolean
isOligatory
){
this
.
isObligatory
=
isObligatory
;
return
this
;}
public
Builder
isHtml
(
Boolean
isHtml
){
this
.
isHtml
=
isHtml
;
return
this
;}
public
Builder
files
(
List
<
V1ReplyFiles
>
files
){
this
.
files
=
files
;
return
this
;}
public
Builder
guid
(
UUID
guid
){
this
.
guid
=
guid
;
return
this
;}
public
Builder
messageBox
(
UUID
messageBox
){
this
.
messageBox
=
messageBox
;
return
this
;}
public
Builder
senderDisplayName
(
String
senderDisplayName
){
this
.
senderDisplayName
=
senderDisplayName
;
return
this
;}
public
Builder
recipientDisplayName
(
String
recipientDisplayName
){
this
.
recipientDisplayName
=
recipientDisplayName
;
return
this
;}
public
Builder
responseTime
(
OffsetDateTime
responseTime
){
this
.
responseTime
=
responseTime
;
return
this
;}
public
V1ReplyMessage
build
(){
var
message
=
new
V1ReplyMessage
();
message
.
setSequencenumber
(
sequencenumber
);
message
.
setSubject
(
subject
);
message
.
setBody
(
body
);
message
.
setDisplayName
(
displayName
);
message
.
setOriginSender
(
originSender
);
message
.
setReplyAction
(
V1ReplyBehavior
.
fromValue
(
replyAction
));
message
.
eidasLevel
(
V1EidasLevel
.
fromValue
(
eidasLevel
));
message
.
isHtml
(
isHtml
);
message
.
isObligatory
(
isObligatory
);
message
.
files
(
files
);
message
.
guid
(
guid
);
message
.
messageBox
(
messageBox
);
message
.
senderDisplayName
(
senderDisplayName
);
message
.
recipientDisplayName
(
recipientDisplayName
);
message
.
responseTime
(
responseTime
);
return
message
;
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment