forked from Coded/SIPRP
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
720 B
43 lines
720 B
/*
|
|
* To change this template, choose Tools | Templates
|
|
* and open the template in the editor.
|
|
*/
|
|
|
|
package pagination;
|
|
|
|
import db.entidades.Area;
|
|
import db.entidades.PlanoActuacao;
|
|
import db.entidades.Risco;
|
|
import planosactuacao.SessionBean1.PAGINATION_ENUM;
|
|
|
|
/**
|
|
*
|
|
* @author dneves
|
|
*/
|
|
public class PaginationPatrimoniais extends Pagination
|
|
{
|
|
public PaginationPatrimoniais( PlanoActuacao plano )
|
|
{
|
|
super( PAGINATION_ENUM.PATRIMONIAIS, plano );
|
|
}
|
|
|
|
@Override
|
|
public void setup()
|
|
{
|
|
if ( getPlanoActuacao() != null )
|
|
{
|
|
for ( Area a : getPlanoActuacao().getAreas() )
|
|
{
|
|
for ( Risco r : a.getRiscos() )
|
|
{
|
|
if ( r.getIsPatrimonial() )
|
|
{
|
|
addRisco( r );
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|