Résultats CPD
Le document suivant contient les résultats de l'inspection CPD CPD 5.5.1.
Duplicatas
Fichier |
Ligne |
fr/paris/lutece/plugins/fdw/modules/wizard/web/WizardJspBean.java |
400 |
fr/paris/lutece/plugins/fdw/modules/wizard/web/WizardJspBean.java |
701 |
public String getDuplicateDirectorySimple( HttpServletRequest request ) throws AccessDeniedException
{
String strIdDirectory = request.getParameter( PARAMETER_ID_DIRECTORY );
int nIdDirectory = DirectoryUtils.convertStringToInt( strIdDirectory );
Directory directory = null;
String strFromChoice = request.getParameter( PARAMETER_FROM_CHOICE );
if ( nIdDirectory != WorkflowUtils.CONSTANT_ID_NULL )
{
directory = DirectoryHome.findByPrimaryKey( nIdDirectory, getPlugin( ) );
}
if ( directory == null )
{
throw new AccessDeniedException( "Directory not found for ID " + nIdDirectory );
}
Map<String, Object> model = new HashMap<String, Object>( );
model.put( MARK_DIRECTORY, directory );
if ( StringUtils.isNotBlank( strFromChoice ) )
{
model.put( MARK_FROM_CHOICE, strFromChoice );
}
HtmlTemplate templateList = AppTemplateService.getTemplate( TEMPLATE_DUPLICATE_DIRECTORY_SIMPLE, getLocale( ), |
Fichier |
Ligne |
fr/paris/lutece/plugins/fdw/modules/wizard/web/WizardJspBean.java |
738 |
fr/paris/lutece/plugins/fdw/modules/wizard/web/WizardJspBean.java |
1071 |
fr/paris/lutece/plugins/fdw/modules/wizard/web/WizardJspBean.java |
1108 |
public String getDuplicateFormSimple( HttpServletRequest request ) throws AccessDeniedException
{
String strIdForm = request.getParameter( PARAMETER_ID_FORM );
int nIdForm = GenericAttributesUtils.convertStringToInt( strIdForm );
Form form = null;
String strFromChoice = request.getParameter( PARAMETER_FROM_CHOICE );
if ( nIdForm != WorkflowUtils.CONSTANT_ID_NULL )
{
form = FormHome.findByPrimaryKey( nIdForm, getPlugin( ) );
}
if ( form == null )
{
throw new AccessDeniedException( "Form not found for ID " + nIdForm );
}
Map<String, Object> model = new HashMap<String, Object>( );
model.put( MARK_FORM, form );
if ( StringUtils.isNotBlank( strFromChoice ) )
{
model.put( MARK_FROM_CHOICE, strFromChoice );
}
HtmlTemplate templateList = AppTemplateService
.getTemplate( TEMPLATE_DUPLICATE_FORM_SIMPLE, getLocale( ), model ); |