-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Siga-EX correção de bug no filtro por espécie
- Loading branch information
1 parent
674ce02
commit 1df8c58
Showing
6 changed files
with
168 additions
and
24 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
37 changes: 37 additions & 0 deletions
37
sigaex/src/main/java/br/gov/jfrj/siga/ex/api/v1/EspeciesGet.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,37 @@ | ||
package br.gov.jfrj.siga.ex.api.v1; | ||
|
||
import br.gov.jfrj.siga.base.AplicacaoException; | ||
import br.gov.jfrj.siga.base.Prop; | ||
import br.gov.jfrj.siga.context.AcessoPublico; | ||
import br.gov.jfrj.siga.ex.ExDocumento; | ||
import br.gov.jfrj.siga.ex.ExMobil; | ||
import br.gov.jfrj.siga.ex.ExMovimentacao; | ||
import br.gov.jfrj.siga.ex.model.enm.ExTipoDeMovimentacao; | ||
import br.gov.jfrj.siga.hibernate.ExDao; | ||
import br.gov.jfrj.siga.persistencia.ExMobilDaoFiltro; | ||
import com.crivano.swaggerservlet.SwaggerServlet; | ||
|
||
import java.math.BigDecimal; | ||
import java.util.Collections; | ||
import java.util.List; | ||
import java.util.Set; | ||
|
||
@AcessoPublico | ||
public class EspeciesGet implements IExApiV1.IEspeciesGet { | ||
|
||
@Override | ||
public void run(Request req, Response resp, ExApiV1Context ctx) throws Exception { | ||
resp.especies = getEspecies(); | ||
|
||
} | ||
|
||
public List<?> getEspecies() throws AplicacaoException { | ||
List<?> especies = ExDao.getInstance().consultarEspecies(); | ||
return especies; | ||
} | ||
|
||
@Override | ||
public String getContext() { | ||
return "verificar assinatura"; | ||
} | ||
} |
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