Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
INB
eTRANSAFE
pretox-rest-api
Commits
351d7bdb
Commit
351d7bdb
authored
Oct 18, 2021
by
Javi Corvi
Browse files
new version features
parent
d1b00aa4
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/es/bsc/inb/ades/rest/api/model/DocumentAnnotations.java
View file @
351d7bdb
...
...
@@ -79,6 +79,7 @@ public class DocumentAnnotations {
}
public
Status
getStatus
()
{
if
(
status
==
null
)
return
Status
.
DRAFT
;
return
status
;
}
...
...
src/main/java/es/bsc/inb/ades/rest/api/services/DocumentServiceImpl.java
View file @
351d7bdb
...
...
@@ -722,9 +722,11 @@ public class DocumentServiceImpl implements DocumentService {
@Override
public
Status
moveDocument
(
Long
id
,
Status
status
)
{
Document
document
=
this
.
findByDocumentId
(
id
);
DocumentAnnotations
documentAnnotation
=
this
.
findDocumentAnnotationsByDocumentId
(
id
);
document
.
setStatus
(
status
);
documentAnnotation
.
setStatus
(
status
);
documentRepository
.
save
(
document
);
documentAnnotationsRepository
.
save
(
documentAnnotation
);
createTracking
(
id
,
"admin"
,
Action
.
MOVE
,
status
.
toString
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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