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
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
...
...
@@ -6,7 +6,6 @@
<change
afterPath=
"$PROJECT_DIR$/gateway/out/production/classes/edu/prlab/tyler/iotgateway/gateway/model/PrivacyChoiceResponse$PrivacyChoiceResponseBuilder.class"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/gateway/out/production/classes/edu/prlab/tyler/iotgateway/gateway/model/PrivacyChoiceResponse.class"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/gateway/out/production/classes/edu/prlab/tyler/iotgateway/gateway/services/PrivacyService$1.class"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/gateway/src/main/java/edu/prlab/tyler/iotgateway/gateway/model/PrivacyChoiceResponse.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/gateway/out/production/classes/edu/prlab/tyler/iotgateway/gateway/GatewayApplication.class"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/gateway/out/production/classes/edu/prlab/tyler/iotgateway/gateway/GatewayApplication.class"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/gateway/out/production/classes/edu/prlab/tyler/iotgateway/gateway/controllers/GatewayController.class"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/gateway/out/production/classes/edu/prlab/tyler/iotgateway/gateway/controllers/GatewayController.class"
afterDir=
"false"
/>
...
...
@@ -15,12 +14,7 @@
<change
beforePath=
"$PROJECT_DIR$/gateway/out/production/classes/edu/prlab/tyler/iotgateway/gateway/repositories/PrivacyChoiceIndexRepository.class"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/gateway/out/production/classes/edu/prlab/tyler/iotgateway/gateway/repositories/PrivacyChoiceIndexRepository.class"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/gateway/out/production/classes/edu/prlab/tyler/iotgateway/gateway/services/PrivacyService.class"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/gateway/out/production/classes/edu/prlab/tyler/iotgateway/gateway/services/PrivacyService.class"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/gateway/out/test/classes/edu/prlab/tyler/iotgateway/gateway/GatewayHttpApiTest.class"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/gateway/out/test/classes/edu/prlab/tyler/iotgateway/gateway/GatewayHttpApiTest.class"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/gateway/src/main/java/edu/prlab/tyler/iotgateway/gateway/GatewayApplication.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/gateway/src/main/java/edu/prlab/tyler/iotgateway/gateway/GatewayApplication.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/gateway/src/main/java/edu/prlab/tyler/iotgateway/gateway/controllers/GatewayController.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/gateway/src/main/java/edu/prlab/tyler/iotgateway/gateway/controllers/GatewayController.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/gateway/src/main/java/edu/prlab/tyler/iotgateway/gateway/pojo/PrivacyChoiceIndex.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/gateway/src/main/java/edu/prlab/tyler/iotgateway/gateway/pojo/PrivacyChoiceIndex.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/gateway/src/main/java/edu/prlab/tyler/iotgateway/gateway/repositories/PrivacyChoiceIndexRepository.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/gateway/src/main/java/edu/prlab/tyler/iotgateway/gateway/repositories/PrivacyChoiceIndexRepository.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/gateway/src/main/java/edu/prlab/tyler/iotgateway/gateway/services/PrivacyService.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/gateway/src/main/java/edu/prlab/tyler/iotgateway/gateway/services/PrivacyService.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/gateway/src/test/java/edu/prlab/tyler/iotgateway/gateway/GatewayHttpApiTest.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/gateway/src/test/java/edu/prlab/tyler/iotgateway/gateway/GatewayHttpApiTest.java"
afterDir=
"false"
/>
</list>
<ignored
path=
"$PROJECT_DIR$/out/"
/>
<ignored
path=
"$PROJECT_DIR$/build/"
/>
...
...
@@ -77,6 +71,18 @@
</component>
<component
name=
"FileEditorManager"
>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/cloud/src/main/java/edu/prlab/tyler/iotgateway/cloud/controllers/DeviceController.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"18"
>
<caret
line=
"14"
column=
"13"
selection-start-line=
"14"
selection-start-column=
"13"
selection-end-line=
"14"
selection-end-column=
"13"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/cloud/src/main/java/edu/prlab/tyler/iotgateway/cloud/controllers/GatewayController.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
...
...
@@ -101,8 +107,8 @@
<file
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/gateway/src/main/java/edu/prlab/tyler/iotgateway/gateway/services/PrivacyService.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"2
78
"
>
<caret
line=
"
47"
column=
"33"
selection-start-line=
"47"
selection-start-column=
"33"
selection-end-line=
"47"
selection-end-column=
"33
"
/>
<state
relative-caret-position=
"2
34
"
>
<caret
line=
"
54"
lean-forward=
"true"
selection-start-line=
"54"
selection-end-line=
"54
"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
...
...
@@ -149,8 +155,8 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.springframework.data/spring-data-commons/2.1.6.RELEASE/d6c2a24d22131dd891c73ebc3c9ab3ee00fcbb8f/spring-data-commons-2.1.6.RELEASE-sources.jar!/org/springframework/data/repository/CrudRepository.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
224
"
>
<caret
line=
"
53"
column=
"16"
selection-start-line=
"53"
selection-start-column=
"16"
selection-end-line=
"53"
selection-end-column=
"16
"
/>
<state
relative-caret-position=
"
378
"
>
<caret
line=
"
35"
column=
"20"
selection-start-line=
"35"
selection-start-column=
"20"
selection-end-line=
"35"
selection-end-column=
"20
"
/>
</state>
</provider>
</entry>
...
...
@@ -167,18 +173,6 @@
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/gateway/src/main/java/edu/prlab/tyler/iotgateway/gateway/services/UserService.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"558"
>
<caret
line=
"33"
column=
"5"
selection-start-line=
"33"
selection-start-column=
"5"
selection-end-line=
"33"
selection-end-column=
"5"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/gateway/src/main/java/edu/prlab/tyler/iotgateway/gateway/model/PrivacyChoiceResponse.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
...
...
@@ -298,8 +292,8 @@
<option
value=
"$PROJECT_DIR$/gateway/src/main/java/edu/prlab/tyler/iotgateway/gateway/pojo/PrivacyChoiceIndex.java"
/>
<option
value=
"$PROJECT_DIR$/gateway/src/main/java/edu/prlab/tyler/iotgateway/gateway/model/PrivacyChoiceResponse.java"
/>
<option
value=
"$PROJECT_DIR$/gateway/src/main/java/edu/prlab/tyler/iotgateway/gateway/repositories/PrivacyChoiceIndexRepository.java"
/>
<option
value=
"$PROJECT_DIR$/gateway/src/main/java/edu/prlab/tyler/iotgateway/gateway/services/PrivacyService.java"
/>
<option
value=
"$PROJECT_DIR$/gateway/src/main/java/edu/prlab/tyler/iotgateway/gateway/controllers/GatewayController.java"
/>
<option
value=
"$PROJECT_DIR$/gateway/src/main/java/edu/prlab/tyler/iotgateway/gateway/services/PrivacyService.java"
/>
</list>
</option>
</component>
...
...
@@ -657,7 +651,7 @@
<workItem
from=
"1556190478077"
duration=
"66951000"
/>
<workItem
from=
"1556716964298"
duration=
"27672000"
/>
<workItem
from=
"1557364868133"
duration=
"620000"
/>
<workItem
from=
"1557365602468"
duration=
"4
8773
000"
/>
<workItem
from=
"1557365602468"
duration=
"4
9657
000"
/>
</task>
<task
id=
"LOCAL-00001"
summary=
"git init"
>
<created>
1556204675975
</created>
...
...
@@ -722,7 +716,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1557734407495
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"10"
/>
<task
id=
"LOCAL-00010"
summary=
"PrivacyChoice api"
>
<created>
1557740312576
</created>
<option
name=
"number"
value=
"00010"
/>
<option
name=
"presentableId"
value=
"LOCAL-00010"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1557740312576
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"11"
/>
<servers
/>
</component>
<component
name=
"TestHistory"
>
...
...
@@ -758,7 +759,7 @@
</history-entry>
</component>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"14
6688
000"
/>
<option
name=
"totallyTimeSpent"
value=
"14
7572
000"
/>
</component>
<component
name=
"TodoView"
>
<todo-panel
id=
"selected-file"
>
...
...
@@ -771,8 +772,9 @@
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"-8"
y=
"-8"
width=
"1936"
height=
"1056"
extended-state=
"6"
/>
<editor
active=
"true"
/>
<layout>
<window_info
active=
"true"
content_ui=
"combo"
id=
"Project"
order=
"0"
visible=
"true"
weight=
"0.18070363"
/>
<window_info
content_ui=
"combo"
id=
"Project"
order=
"0"
visible=
"true"
weight=
"0.18070363"
/>
<window_info
id=
"Structure"
order=
"1"
side_tool=
"true"
weight=
"0.25"
/>
<window_info
id=
"Designer"
order=
"2"
/>
<window_info
id=
"UI Designer"
order=
"3"
/>
...
...
@@ -782,7 +784,7 @@
<window_info
anchor=
"bottom"
id=
"Messages"
order=
"1"
sideWeight=
"0.49733475"
weight=
"0.20824054"
/>
<window_info
anchor=
"bottom"
id=
"Message"
order=
"2"
/>
<window_info
anchor=
"bottom"
id=
"Find"
order=
"3"
sideWeight=
"0.4989339"
weight=
"0.4532294"
/>
<window_info
a
nchor=
"bottom"
id=
"Run"
order=
"4"
sideWeight=
"0.49840087"
visible=
"true"
weight=
"0.4910913
"
/>
<window_info
a
ctive=
"true"
anchor=
"bottom"
id=
"Run"
order=
"4"
sideWeight=
"0.49840087"
visible=
"true"
weight=
"0.5144766
"
/>
<window_info
anchor=
"bottom"
id=
"Debug"
order=
"5"
weight=
"0.40269965"
/>
<window_info
anchor=
"bottom"
id=
"Cvs"
order=
"6"
weight=
"0.25"
/>
<window_info
anchor=
"bottom"
id=
"Inspection"
order=
"7"
weight=
"0.4"
/>
...
...
@@ -818,7 +820,8 @@
<MESSAGE
value=
"gateway api"
/>
<MESSAGE
value=
"User"
/>
<MESSAGE
value=
"readPrivacyPolicyReport Path change"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"readPrivacyPolicyReport Path change"
/>
<MESSAGE
value=
"PrivacyChoice api"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"PrivacyChoice api"
/>
</component>
<component
name=
"XDebuggerManager"
>
<breakpoint-manager>
...
...
@@ -1055,23 +1058,6 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/cloud/src/main/java/edu/prlab/tyler/iotgateway/cloud/controllers/DeviceController.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"16"
>
<caret
line=
"14"
column=
"13"
selection-start-line=
"14"
selection-start-column=
"13"
selection-end-line=
"14"
selection-end-column=
"13"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/cloud/src/main/java/edu/prlab/tyler/iotgateway/cloud/controllers/GatewayController.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"414"
>
<caret
line=
"34"
column=
"24"
selection-start-line=
"34"
selection-start-column=
"18"
selection-end-line=
"34"
selection-end-column=
"24"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/gateway/src/main/java/edu/prlab/tyler/iotgateway/gateway/services/UserService.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"558"
>
...
...
@@ -1132,17 +1118,34 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/gateway/src/main/java/edu/prlab/tyler/iotgateway/gateway/controllers/GatewayController.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"144"
>
<caret
line=
"63"
column=
"5"
lean-forward=
"true"
selection-start-line=
"63"
selection-start-column=
"5"
selection-end-line=
"63"
selection-end-column=
"5"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.springframework.data/spring-data-commons/2.1.6.RELEASE/d6c2a24d22131dd891c73ebc3c9ab3ee00fcbb8f/spring-data-commons-2.1.6.RELEASE-sources.jar!/org/springframework/data/repository/CrudRepository.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
224
"
>
<caret
line=
"
53"
column=
"16"
selection-start-line=
"53"
selection-start-column=
"16"
selection-end-line=
"53"
selection-end-column=
"16
"
/>
<state
relative-caret-position=
"
378
"
>
<caret
line=
"
35"
column=
"20"
selection-start-line=
"35"
selection-start-column=
"20"
selection-end-line=
"35"
selection-end-column=
"20
"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
gateway/src/main/java/edu/prlab/tyler/iotgateway/gateway
/controllers/GatewayController.java"
>
<entry
file=
"file://$PROJECT_DIR$/
cloud/src/main/java/edu/prlab/tyler/iotgateway/cloud
/controllers/GatewayController.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"144"
>
<caret
line=
"63"
column=
"5"
lean-forward=
"true"
selection-start-line=
"63"
selection-start-column=
"5"
selection-end-line=
"63"
selection-end-column=
"5"
/>
<state
relative-caret-position=
"414"
>
<caret
line=
"34"
column=
"24"
selection-start-line=
"34"
selection-start-column=
"18"
selection-end-line=
"34"
selection-end-column=
"24"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/cloud/src/main/java/edu/prlab/tyler/iotgateway/cloud/controllers/DeviceController.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"18"
>
<caret
line=
"14"
column=
"13"
selection-start-line=
"14"
selection-start-column=
"13"
selection-end-line=
"14"
selection-end-column=
"13"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
...
...
@@ -1151,8 +1154,8 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/gateway/src/main/java/edu/prlab/tyler/iotgateway/gateway/services/PrivacyService.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"2
78
"
>
<caret
line=
"
47"
column=
"33"
selection-start-line=
"47"
selection-start-column=
"33"
selection-end-line=
"47"
selection-end-column=
"33
"
/>
<state
relative-caret-position=
"2
34
"
>
<caret
line=
"
54"
lean-forward=
"true"
selection-start-line=
"54"
selection-end-line=
"54
"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
...
...
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