Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Backend
Commits
46d5698f
Commit
46d5698f
authored
Dec 30, 2014
by
Matija Obreza
Browse files
Increased download limit, removed XLSX limit
parent
b7d4b323
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/genesys2/server/service/impl/DownloadServiceImpl.java
View file @
46d5698f
...
...
@@ -60,7 +60,6 @@ import org.springframework.transaction.annotation.Transactional;
@Service
public
class
DownloadServiceImpl
implements
DownloadService
{
private
static
final
int
XLSX_ROWS_LIMIT
=
65536
;
public
static
final
Log
LOG
=
LogFactory
.
getLog
(
DownloadServiceImpl
.
class
);
...
...
@@ -150,11 +149,6 @@ public class DownloadServiceImpl implements DownloadService {
List
<
AllStuff
>
alls
=
genesysService
.
loadAllStuff
(
batch
);
for
(
AllStuff
all
:
alls
)
{
if
(
i
>
XLSX_ROWS_LIMIT
)
{
LOG
.
info
(
"Row limit exceeded"
);
return
;
}
Row
row
=
sheet
.
createRow
(
i
+
1
);
writeMCPDRow
(
sheet
,
row
,
all
.
accession
,
all
.
geo
,
all
.
collect
,
all
.
bred
,
all
.
names
,
all
.
exch
,
all
.
remarks
);
i
++;
...
...
src/main/java/org/genesys2/server/servlet/controller/ExplorerController.java
View file @
46d5698f
...
...
@@ -73,7 +73,7 @@ import com.jhlabs.image.MapColorsFilter;
@Controller
public
class
ExplorerController
extends
BaseController
{
private
static
final
int
DOWNLOAD_LIMIT
=
1
00000
;
private
static
final
int
DOWNLOAD_LIMIT
=
2
00000
;
@Autowired
private
GenesysFilterService
filterService
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment