CPD Results
The following document contains the results of PMD's CPD 6.13.0.
Duplications
File |
Line |
fr/paris/lutece/plugins/myluteceaccessrules/business/RuleDAO.java |
101 |
fr/paris/lutece/plugins/myluteceaccessrules/business/RuleDAO.java |
177 |
rule = new Rule();
int nIndex = 1;
rule.setId( daoUtil.getInt( nIndex++ ) );
rule.setTitle( daoUtil.getString( nIndex++ ) );
rule.setDescription( daoUtil.getString( nIndex++ ) );
rule.setEnable( daoUtil.getBoolean( nIndex++ ) );
rule.setExternal( daoUtil.getBoolean( nIndex++ ) );
rule.setMessagetodisplay( daoUtil.getString( nIndex++ ) );
rule.setRedirecturl( daoUtil.getString( nIndex++ ) );
rule.setBackUrl( daoUtil.getString( nIndex++ ) );
rule.setPriorityOrder(daoUtil.getInt(nIndex++));
rule.setEncodeBackUrl(daoUtil.getBoolean( nIndex )); |
File |
Line |
fr/paris/lutece/plugins/myluteceaccessrules/business/RuleDAO.java |
67 |
fr/paris/lutece/plugins/myluteceaccessrules/business/RuleDAO.java |
147 |
daoUtil.setString( nIndex++ , rule.getTitle( ) );
daoUtil.setString( nIndex++ , rule.getDescription( ) );
daoUtil.setBoolean( nIndex++ , rule.getEnable( ) );
daoUtil.setBoolean( nIndex++ , rule.isExternal( ) );
daoUtil.setString( nIndex++ , rule.getMessagetodisplay( ) );
daoUtil.setString( nIndex++ , rule.getRedirecturl( ) );
daoUtil.setString( nIndex++ , rule.getBackUrl() );
daoUtil.setInt( nIndex++ , rule.getPriorityOrder() );
daoUtil.setBoolean( nIndex++ , rule.isEncodeBackUrl());
daoUtil.executeUpdate( ); |
File |
Line |
fr/paris/lutece/plugins/myluteceaccessrules/web/RuleJspBean.java |
233 |
fr/paris/lutece/plugins/myluteceaccessrules/web/RuleJspBean.java |
487 |
Map<String, Object> model = getModel( );
model.put( MARK_RULE, _rule );
ReferenceList refListRoles=RoleHome.getRolesList(getUser());
refListRoles.forEach(x-> x.setChecked(_rule.getRoles()!=null && _rule.getRoles().stream().anyMatch(y->y.getName().equals(x.getCode()))));
model.put( MARK_ROLES_LIST, refListRoles);
model.put( SecurityTokenService.MARK_TOKEN, SecurityTokenService.getInstance( ).getToken( request, ACTION_CREATE_RULE ) ); |