Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
iotgateway
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
0Tyler
iotgateway
Commits
4806e8d7
Commit
4806e8d7
authored
May 13, 2019
by
0Tyler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PrivacyChoice api
parent
328e0c1e
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
67 additions
and
67 deletions
+67
-67
.idea/workspace.xml
.idea/workspace.xml
+56
-53
gateway/out/production/classes/edu/prlab/tyler/iotgateway/gateway/services/PrivacyService.class
...ab/tyler/iotgateway/gateway/services/PrivacyService.class
+0
-0
gateway/src/main/java/edu/prlab/tyler/iotgateway/gateway/services/PrivacyService.java
...lab/tyler/iotgateway/gateway/services/PrivacyService.java
+11
-14
No files found.
.idea/workspace.xml
View file @
4806e8d7
This diff is collapsed.
Click to expand it.
gateway/out/production/classes/edu/prlab/tyler/iotgateway/gateway/services/PrivacyService.class
View file @
4806e8d7
No preview for this file type
gateway/src/main/java/edu/prlab/tyler/iotgateway/gateway/services/PrivacyService.java
View file @
4806e8d7
...
...
@@ -42,15 +42,15 @@ public class PrivacyService {
public
Optional
<
PrivacyChoiceResponse
>
setPrivacyPolicyChoice
(
PrivacyChoice
privacyChoice
)
{
return
Optional
.
of
(
privacyChoice
)
.
map
(
choice
->
template
.
postForObject
(
cloudAddress
+
"/choice"
,
choice
,
PrivacyChoice
.
class
))
.
map
(
choice
->
privacyChoiceIndexRepository
.
save
(
PrivacyChoiceIndex
.
builder
()
.
flatMap
(
choice
->
Optional
.
ofNullable
(
privacyChoiceIndexRepository
.
save
(
PrivacyChoiceIndex
.
builder
()
.
id
(
choice
.
getId
())
.
localDateTime
(
LocalDateTime
.
now
())
.
build
()))
.
map
(
choice
->
PrivacyChoiceResponse
.
builder
()
.
map
(
choiceIndex
->
PrivacyChoiceResponse
.
builder
()
.
id
(
choice
.
getId
())
.
localDateTime
(
LocalDateTime
.
now
())
.
privacyContent
(
privacyC
hoice
.
getPrivacyContent
())
.
build
(
));
.
privacyContent
(
c
hoice
.
getPrivacyContent
())
.
build
()
));
}
// public Optional<Iterable<PrivacyChoice>> getPrivacyPolicyChoices() {
...
...
@@ -69,8 +69,5 @@ public class PrivacyService {
.
privacyContent
(
choice
.
getPrivacyContent
())
.
build
()).
get
())
.
iterator
();
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment