Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vlkb-soda
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
ViaLactea
vlkb-soda
Commits
9e1512c1
Commit
9e1512c1
authored
3 months ago
by
Robert Butora
Browse files
Options
Downloads
Patches
Plain Diff
mcutout: makes listname const-string
parent
f7c1538d
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
data-access/servlet/src/main/java/mcutout/webapi/UWSMCutout.java
+4
-2
4 additions, 2 deletions
...cess/servlet/src/main/java/mcutout/webapi/UWSMCutout.java
with
4 additions
and
2 deletions
data-access/servlet/src/main/java/mcutout/webapi/UWSMCutout.java
+
4
−
2
View file @
9e1512c1
...
@@ -24,12 +24,14 @@ public class UWSMCutout extends UWSServlet {
...
@@ -24,12 +24,14 @@ public class UWSMCutout extends UWSServlet {
protected
static
final
Subsurvey
[]
subsurveys
=
Subsurvey
.
loadSubsurveys
(
protected
static
final
Subsurvey
[]
subsurveys
=
Subsurvey
.
loadSubsurveys
(
settings
.
fitsPaths
.
surveysMetadataAbsPathname
());
settings
.
fitsPaths
.
surveysMetadataAbsPathname
());
final
String
MCUTOUT_LIST_NAME
=
"uws"
;
// FIXME listname to Settings ?
/* REQUIRED
/* REQUIRED
* Initialize your UWS. At least, you should create one jobs list. */
* Initialize your UWS. At least, you should create one jobs list. */
@Override
@Override
public
void
initUWS
()
throws
UWSException
public
void
initUWS
()
throws
UWSException
{
{
addJobList
(
new
JobList
(
"uws"
));
addJobList
(
new
JobList
(
MCUTOUT_LIST_NAME
));
UWSMCutoutUserIdentifier
uwsUserIdentifier
=
new
UWSMCutoutUserIdentifier
();
UWSMCutoutUserIdentifier
uwsUserIdentifier
=
new
UWSMCutoutUserIdentifier
();
setUserIdentifier
(
uwsUserIdentifier
);
setUserIdentifier
(
uwsUserIdentifier
);
}
}
...
@@ -42,7 +44,7 @@ public class UWSMCutout extends UWSServlet {
...
@@ -42,7 +44,7 @@ public class UWSMCutout extends UWSServlet {
*/
*/
@Override
@Override
public
JobThread
createJobThread
(
UWSJob
job
)
throws
UWSException
{
public
JobThread
createJobThread
(
UWSJob
job
)
throws
UWSException
{
if
(
job
.
getJobList
().
getName
().
equals
(
"uws"
))
// FIXME listanme to Config-file ?
if
(
job
.
getJobList
().
getName
().
equals
(
MCUTOUT_LIST_NAME
))
return
new
UWSMCutoutWork
(
job
);
return
new
UWSMCutoutWork
(
job
);
else
else
throw
new
UWSException
(
"Impossible to create a job inside the jobs list \""
+
job
.
getJobList
().
getName
()
+
"\" !"
);
throw
new
UWSException
(
"Impossible to create a job inside the jobs list \""
+
job
.
getJobList
().
getName
()
+
"\" !"
);
...
...
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