Skip to content

Commit

Permalink
switch back to command pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
pameyer committed Feb 13, 2017
1 parent 8151c9b commit 43da928
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/edu/harvard/iq/dataverse/api/Dataverses.java
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,11 @@ public Response setMetadataRoot( @PathParam("identifier")String dvIdtf, String b
public Response listFacets( @PathParam("identifier") String dvIdtf ) {
try
{
User u = findUserOrDie();
DataverseRequest r = createDataverseRequest( u );
Dataverse dataverse = findDataverseOrDie(dvIdtf);
JsonArrayBuilder fs = Json.createArrayBuilder();
for( DataverseFacet f : dataverse.getDataverseFacets() )
for( DataverseFacet f : execCommand( new ListFacetsCommand( r, dataverse ) ) )
{
fs.add( f.getDatasetFieldType().getName() );
}
Expand Down

0 comments on commit 43da928

Please sign in to comment.