public GroupParams toGroupParams() { return new GroupParams(this.users, GroupParams.Action.valueOf(this.action.name())); }
public boolean hasTransformedFile(FileIndex index) { return index.getTransformedFile() != null && index.getTransformedFile().getId() > 0; }
@Override public Cohort setStudyUid(long studyUid) { super.setStudyUid(studyUid); return this; }
public FileIndex(String userId, String creationDate, IndexStatus status, long jobId, TransformedFile transformedFile, LocalFileIndex localFileIndex, Map<String, Object> attributes) { this.userId = userId; this.creationDate = creationDate; this.status = status != null ? status : new IndexStatus(IndexStatus.NONE); this.jobId = jobId; this.transformedFile = transformedFile; this.localFileIndex = localFileIndex; this.attributes = attributes; }
@Override public File setUid(long uid) { super.setUid(uid); return this; }
@Override public ClinicalAnalysis setStudyUid(long studyUid) { super.setStudyUid(studyUid); return this; }
@Override public Study setUid(long uid) { super.setUid(uid); return this; }
@Override public ClinicalAnalysis setUid(long uid) { super.setUid(uid); return this; }
private boolean isPermissionRuleEntity(Entity entity) { if (Study.Entity.CLINICAL_ANALYSES.getEntity() == entity || Study.Entity.COHORTS.getEntity() == entity || Study.Entity.FAMILIES.getEntity() == entity || Study.Entity.FILES.getEntity() == entity || Study.Entity.INDIVIDUALS.getEntity() == entity || Study.Entity.JOBS.getEntity() == entity || Study.Entity.SAMPLES.getEntity() == entity) { return true; } return false; }
@Override public Sample setStudyUid(long studyUid) { super.setStudyUid(studyUid); return this; }
@Override public Cohort setUid(long uid) { super.setUid(uid); return this; }
@Override public Job setStudyUid(long studyUid) { super.setStudyUid(studyUid); return this; }
@Override public Project setUid(long uid) { super.setUid(uid); return this; }
@Override public Job setUid(long uid) { super.setUid(uid); return this; }
@Override public File setStudyUid(long studyUid) { super.setStudyUid(studyUid); return this; }
@Override public Individual setUid(long uid) { super.setUid(uid); return this; }
@Override public Family setStudyUid(long studyUid) { super.setStudyUid(studyUid); return this; }
@Override public Family setUid(long uid) { super.setUid(uid); return this; }
@Override public Individual setStudyUid(long studyUid) { super.setStudyUid(studyUid); return this; }