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
a393301a
Commit
a393301a
authored
10 years ago
by
jakubs
Browse files
Options
Downloads
Patches
Plain Diff
SSDM-1081 add new method to archive folders
SVN: 32670
parent
c0b2d187
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/openbis/dss/generic/shared/ArchiveFolders.java
+15
-1
15 additions, 1 deletion
...temsx/cisd/openbis/dss/generic/shared/ArchiveFolders.java
with
15 additions
and
1 deletion
datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/shared/ArchiveFolders.java
+
15
−
1
View file @
a393301a
...
@@ -32,6 +32,8 @@ public abstract class ArchiveFolders
...
@@ -32,6 +32,8 @@ public abstract class ArchiveFolders
public
abstract
File
getFolder
(
DatasetDescription
dataSetDescription
);
public
abstract
File
getFolder
(
DatasetDescription
dataSetDescription
);
public
abstract
File
getFolder
(
long
fileSize
);
public
abstract
Collection
<
File
>
getAllFolders
();
public
abstract
Collection
<
File
>
getAllFolders
();
public
static
ArchiveFolders
create
(
File
[]
folders
,
boolean
createFolders
,
Long
smallDataSetsSizeLimit
)
public
static
ArchiveFolders
create
(
File
[]
folders
,
boolean
createFolders
,
Long
smallDataSetsSizeLimit
)
...
@@ -124,6 +126,12 @@ public abstract class ArchiveFolders
...
@@ -124,6 +126,12 @@ public abstract class ArchiveFolders
return
dataSetsFolder
;
return
dataSetsFolder
;
}
}
@Override
public
File
getFolder
(
long
fileSize
)
{
return
dataSetsFolder
;
}
@Override
@Override
public
Collection
<
File
>
getAllFolders
()
public
Collection
<
File
>
getAllFolders
()
{
{
...
@@ -171,7 +179,13 @@ public abstract class ArchiveFolders
...
@@ -171,7 +179,13 @@ public abstract class ArchiveFolders
dataSetDescription
.
setDataSetSize
(
size
);
dataSetDescription
.
setDataSetSize
(
size
);
}
}
if
(
dataSetDescription
.
getDataSetSize
()
>
smallDataSetsSizeLimit
)
return
getFolder
(
dataSetDescription
.
getDataSetSize
());
}
@Override
public
File
getFolder
(
long
fileSize
)
{
if
(
fileSize
>
smallDataSetsSizeLimit
)
{
{
return
bigDataSetsFolder
;
return
bigDataSetsFolder
;
}
else
}
else
...
...
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