Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions api/src/org/labkey/api/workflow/Job.java
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,9 @@ public void setAttachments(List<AttachmentFile> attachments)
@JsonIgnore
public abstract @NotNull List<? extends ExpMaterial> getSamples();

@JsonIgnore
public abstract @NotNull List<String> getSampleNames();

public void setEntities(List<WorkEntity> entities)
{
_entities = entities;
Expand Down
12 changes: 6 additions & 6 deletions api/src/org/labkey/api/workflow/WorkEntity.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.collections4.MapUtils;
import org.apache.commons.lang3.StringUtils;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.json.JSONObject;
import org.labkey.api.exp.api.ExpMaterial;
import org.labkey.api.security.User;
import org.labkey.api.security.UserManager;
import org.labkey.api.util.GUID;
Expand Down Expand Up @@ -76,15 +76,15 @@ public WorkEntity(Map<String, Object> map)
this.setContainerId(new GUID((String) map.get("Container")));
}

public WorkEntity(ExpMaterial sample)
public WorkEntity(@NotNull Long rowId, @NotNull WorkEntity.EntityType entityType)
{
_entityType = EntityType.Sample;
_entityValue = sample.getRowId();
_entityType = entityType;
_entityValue = rowId;
}

public WorkEntity(ExpMaterial sample, WorkType workType, Long workRowId, @Nullable Long actionId)
public WorkEntity(@NotNull Long rowId, @NotNull WorkEntity.EntityType entityType, WorkType workType, Long workRowId, @Nullable Long actionId)
{
this(sample);
this(rowId, entityType);
_workType = workType;
_workRowId = workRowId;
_actionId = actionId;
Expand Down