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.
SIPRP/trunk/PlanosActuacao/src/pagination/PaginationNormais.java

45 lines
761 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 db.entidades.Utilizador;
import planosactuacao.SessionBean1.PAGINATION_ENUM;
/**
*
* @author dneves
*/
public class PaginationNormais extends Pagination
{
public PaginationNormais( PlanoActuacao plano, Utilizador user )
{
super( PAGINATION_ENUM.NORMAL, plano, user );
}
@Override
public void setup()
{
if ( getPlanoActuacao() != null )
{
for ( Area a : getPlanoActuacao().getAreas() )
{
for ( Risco r : a.getRiscos() )
{
if ( ! r.getIsPatrimonial() )
{
addRisco( r );
}
}
}
}
}
}