Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-server
Commits
d51fa7d5
Verified
Commit
d51fa7d5
authored
3 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
STY: autoformatting
parent
8d63bc2b
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!58
REL: prepare release 0.7.2
,
!45
F grpc f acm
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/caosdb/server/grpc/GeneralInfoServiceImpl.java
+6
-7
6 additions, 7 deletions
...n/java/org/caosdb/server/grpc/GeneralInfoServiceImpl.java
with
6 additions
and
7 deletions
src/main/java/org/caosdb/server/grpc/GeneralInfoServiceImpl.java
+
6
−
7
View file @
d51fa7d5
...
@@ -20,9 +20,9 @@
...
@@ -20,9 +20,9 @@
package
org.caosdb.server.grpc
;
package
org.caosdb.server.grpc
;
import
io.grpc.stub.StreamObserver
;
import
io.grpc.stub.StreamObserver
;
import
org.caosdb.api.info.v1alpha1.GeneralInfoServiceGrpc.GeneralInfoServiceImplBase
;
import
org.apache.shiro.SecurityUtils
;
import
org.apache.shiro.SecurityUtils
;
import
org.apache.shiro.subject.Subject
;
import
org.apache.shiro.subject.Subject
;
import
org.caosdb.api.info.v1alpha1.GeneralInfoServiceGrpc.GeneralInfoServiceImplBase
;
import
org.caosdb.api.info.v1alpha1.GetSessionInfoRequest
;
import
org.caosdb.api.info.v1alpha1.GetSessionInfoRequest
;
import
org.caosdb.api.info.v1alpha1.GetSessionInfoResponse
;
import
org.caosdb.api.info.v1alpha1.GetSessionInfoResponse
;
import
org.caosdb.api.info.v1alpha1.GetVersionInfoRequest
;
import
org.caosdb.api.info.v1alpha1.GetVersionInfoRequest
;
...
@@ -70,13 +70,12 @@ public class GeneralInfoServiceImpl extends GeneralInfoServiceImplBase {
...
@@ -70,13 +70,12 @@ public class GeneralInfoServiceImpl extends GeneralInfoServiceImplBase {
responseObserver
.
onNext
(
response
);
responseObserver
.
onNext
(
response
);
responseObserver
.
onCompleted
();
responseObserver
.
onCompleted
();
}
}
@Override
@Override
public
void
getSessionInfo
(
GetSessionInfoRequest
request
,
public
void
getSessionInfo
(
StreamObserver
<
GetSessionInfoResponse
>
responseObserver
)
{
GetSessionInfoRequest
request
,
StreamObserver
<
GetSessionInfoResponse
>
responseObserver
)
{
final
GetSessionInfoResponse
.
Builder
response
=
final
GetSessionInfoResponse
.
Builder
response
=
GetSessionInfoResponse
.
newBuilder
();
GetSessionInfoResponse
.
newBuilder
();
Subject
user
=
SecurityUtils
.
getSubject
();
Subject
user
=
SecurityUtils
.
getSubject
();
Principal
principal
=
(
Principal
)
user
.
getPrincipal
();
Principal
principal
=
(
Principal
)
user
.
getPrincipal
();
...
...
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