Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
c6f9f8b0
Commit
c6f9f8b0
authored
14 years ago
by
cramakri
Browse files
Options
Downloads
Patches
Plain Diff
LMS-1503 Implementing upload.
SVN: 16245
parent
c35506b7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
datastore_server/source/java/ch/systemsx/cisd/etlserver/api/v1/PutDataSetService.java
+21
-9
21 additions, 9 deletions
.../ch/systemsx/cisd/etlserver/api/v1/PutDataSetService.java
with
21 additions
and
9 deletions
datastore_server/source/java/ch/systemsx/cisd/etlserver/api/v1/PutDataSetService.java
+
21
−
9
View file @
c6f9f8b0
...
...
@@ -51,6 +51,8 @@ public class PutDataSetService
private
final
DataStrategyStore
dataStrategyStore
;
private
boolean
isInitialized
=
false
;
private
MailClient
mailClient
;
private
IETLServerPlugin
plugin
;
...
...
@@ -62,15 +64,6 @@ public class PutDataSetService
this
.
openBisService
=
openBisService
;
this
.
operationLog
=
operationLog
;
// PutDataSetServiceInitializer initializer = new PutDataSetServiceInitializer();
//
// incomingDir = initializer.getIncomingDir();
// incomingDir.mkdir();
//
// plugin = initializer.getPlugin();
//
// mailClient = new MailClient(initializer.getMailProperties());
this
.
registrationLock
=
new
ReentrantLock
();
this
.
dataStrategyStore
=
new
DataStrategyStore
(
this
.
openBisService
,
mailClient
);
...
...
@@ -79,6 +72,11 @@ public class PutDataSetService
public
void
putDataSet
(
String
sessionToken
,
NewDataSetDTO
newDataSet
,
InputStream
inputStream
)
throws
IOExceptionUnchecked
,
IllegalArgumentException
{
if
(
false
==
isInitialized
)
{
doInitialization
();
}
try
{
new
PutDataSetExecutor
(
this
,
plugin
,
sessionToken
,
newDataSet
,
inputStream
).
execute
();
...
...
@@ -102,6 +100,20 @@ public class PutDataSetService
}
}
private
void
doInitialization
()
{
PutDataSetServiceInitializer
initializer
=
new
PutDataSetServiceInitializer
();
incomingDir
=
initializer
.
getIncomingDir
();
incomingDir
.
mkdir
();
plugin
=
initializer
.
getPlugin
();
mailClient
=
new
MailClient
(
initializer
.
getMailProperties
());
isInitialized
=
true
;
}
IEncapsulatedOpenBISService
getOpenBisService
()
{
return
openBisService
;
...
...
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