-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #217 from broadinstitute/develop
Patch Release 10/18
- Loading branch information
Showing
102 changed files
with
1,026 additions
and
623 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
consent-ws/src/main/java/org/broadinstitute/consent/http/db/AssociationDAO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.broadinstitute.consent.http.db; | ||
|
||
|
||
import org.skife.jdbi.v2.sqlobject.Bind; | ||
import org.skife.jdbi.v2.sqlobject.SqlQuery; | ||
|
||
|
||
public interface AssociationDAO { | ||
|
||
@SqlQuery("select associationId from consentassociations where associationType = :associationType and objectId = :objectId") | ||
Integer findAssociationIdByTypeAndObjectId(@Bind("associationType") String associationType, | ||
@Bind("objectId") String objectId); | ||
} |
20 changes: 0 additions & 20 deletions
20
consent-ws/src/main/java/org/broadinstitute/consent/http/db/AutocompleteDACUserMapper.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
consent-ws/src/main/java/org/broadinstitute/consent/http/db/DACUserMapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
consent-ws/src/main/java/org/broadinstitute/consent/http/db/DataSetPropertyMapper.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
consent-ws/src/main/java/org/broadinstitute/consent/http/db/ResearcherPropertyDAO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
consent-ws/src/main/java/org/broadinstitute/consent/http/db/WorkspaceAuditDAO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package org.broadinstitute.consent.http.db; | ||
|
||
import org.broadinstitute.consent.http.models.WorkspaceAudit; | ||
import org.skife.jdbi.v2.sqlobject.BindBean; | ||
import org.skife.jdbi.v2.sqlobject.SqlBatch; | ||
import org.skife.jdbi.v2.sqlobject.SqlUpdate; | ||
import org.skife.jdbi.v2.sqlobject.stringtemplate.UseStringTemplate3StatementLocator; | ||
import java.util.List; | ||
|
||
@UseStringTemplate3StatementLocator | ||
public interface WorkspaceAuditDAO { | ||
|
||
@SqlUpdate("insert into workspace_audit (modifiedObjectId, modifiedTable, changeAction, modifiedByUserId, modificationDate) " + | ||
" values (:modifiedObjectId, :modifiedTable, :changeAction, :modifiedByUserId, :modificationDate)") | ||
void insertWorkspaceAudit(@BindBean WorkspaceAudit workspaceAudit); | ||
|
||
@SqlBatch("insert into workspace_audit (modifiedObjectId, modifiedTable, changeAction, modifiedByUserId, modificationDate) " + | ||
" values (:modifiedObjectId, :modifiedTable, :changeAction, :modifiedByUserId, :modificationDate)") | ||
void batchInsertWorkspaceAudit(@BindBean List<WorkspaceAudit> workspaceAudits); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
consent-ws/src/main/java/org/broadinstitute/consent/http/enumeration/AssociationType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.broadinstitute.consent.http.enumeration; | ||
|
||
public enum AssociationType { | ||
|
||
SAMPLE("sample"), SAMPLESET("sampleSet"), WORKSPACE("workspace"); | ||
|
||
private String value; | ||
|
||
AssociationType(String value) { | ||
this.value = value; | ||
} | ||
|
||
public String getValue() { | ||
return value; | ||
} | ||
|
||
} |
Oops, something went wrong.