Skip to content

Commit

Permalink
confused
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Sikina committed Oct 9, 2023
1 parent d1080f7 commit a1a4bf1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package edu.harvard.dbmi.avillach.data.entity;

public enum DataSharingStatus {
Unknown, Pending, Error, Complete, NotShared
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import edu.harvard.dbmi.avillach.data.entity.DataSharingStatus;
import edu.harvard.dbmi.avillach.data.entity.Query;
import edu.harvard.dbmi.avillach.data.entity.Resource;
import edu.harvard.dbmi.avillach.data.repository.QueryRepository;
Expand Down Expand Up @@ -324,6 +325,8 @@ private Query copyQuery(QueryRequest dataQueryRequest, Resource resource, QueryS
metaData.put("site", dataQueryRequest.getCommonAreaUUID());
}

metaData.put("sharingStatus", DataSharingStatus.Unknown);

queryEntity.setQuery(queryJson);

if (!metaData.isEmpty()) {
Expand Down

0 comments on commit a1a4bf1

Please sign in to comment.