The following document contains the results of PMD's CPD 6.13.0.
| File | Line |
|---|---|
| fr/paris/lutece/plugins/appointment/modules/desk/web/AppointmentDeskJspBean.java | 255 |
| fr/paris/lutece/plugins/appointment/modules/desk/web/AppointmentDeskJspBean.java | 309 |
AppLogService.debug( "appointmentDesk - Received strJson : " + strJson );
List<Slot> listSlots;
try
{
listSlots = mapper.readValue( strJson, new TypeReference<List<Slot>>( )
{
} );
}
catch( JsonProcessingException e )
{
AppLogService.error( PROPERTY_MESSAGE_ERROR_PARSING_JSON + e.getMessage( ), e );
json.element( JSON_KEY_ERROR, I18nService.getLocalizedString( PROPERTY_MESSAGE_ERROR_PARSING_JSON, getLocale( ) ) );
return json.toString( );
}
if ( !RBACService.isAuthorized( AppointmentFormDTO.RESOURCE_TYPE, Integer.toString( listSlots.get( 0 ).getIdForm( ) ),
AppointmentResourceIdService.PERMISSION_MODIFY_ADVANCED_SETTING_FORM, (User) getUser( ) ) )
{
AppLogService.error( AppointmentResourceIdService.PERMISSION_MODIFY_ADVANCED_SETTING_FORM,
new AccessDeniedException( AppointmentResourceIdService.PERMISSION_MODIFY_ADVANCED_SETTING_FORM ) );
json.element( JSON_KEY_ERROR, I18nService.getLocalizedString( PROPERTY_MESSAGE_ERROR_ACCESS_DENIED, getLocale( ) ) );
return json.toString( );
}
AppointmentDeskService.closeAppointmentDesk( listSlots ); | |