CPD Results
The following document contains the results of PMD's CPD 6.13.0.
Duplications
File |
Line |
fr/paris/lutece/plugins/dansmarue/modules/rest/service/SignalementRestService.java |
2520 |
fr/paris/lutece/plugins/dansmarue/modules/rest/service/SignalementRestService.java |
2618 |
public String addFollower( JSONObject jsonSrc )
{
IFormatter<ErrorSignalement> formatterJsonError = new ErrorSignalementFormatterJson( );
String strIncidentId = jsonSrc.getString( SignalementRestConstants.JSON_TAG_LOG_INCIDENT_ID );
if ( StringUtils.isBlank( strIncidentId ) )
{
ErrorSignalement error = new ErrorSignalement( );
error.setErrorCode( SignalementRestConstants.ERROR_EMPTY_INCIDENT_ID_BIS );
error.setErrorMessage( StringUtils.EMPTY );
return formatterJsonError.format( error );
}
String guid = jsonSrc.getString( SignalementRestConstants.JSON_TAG_GUID );
if ( StringUtils.isBlank( guid ) )
{
ErrorSignalement error = new ErrorSignalement( );
error.setErrorCode( SignalementRestConstants.ERROR_BAD_USER_ID );
error.setErrorMessage( StringUtils.EMPTY );
return formatterJsonError.format( error );
} |
File |
Line |
fr/paris/lutece/plugins/dansmarue/modules/rest/util/constants/SignalementRestConstants.java |
718 |
fr/paris/lutece/plugins/dansmarue/modules/rest/util/constants/SiraRestConstants.java |
184 |
public static final int ERROR_BAD_ADDRESS_PARAMETER = 90;
/** The Constant ERROR_ANY_INCIDENT_FOR_USER. */
public static final int ERROR_ANY_INCIDENT_FOR_USER = 10;
/** The Constant ERROR_EMPTY_INCIDENT_ID. */
public static final int ERROR_EMPTY_INCIDENT_ID = 11;
/** The Constant ERROR_BAD_INCIDENT_ID. */
public static final int ERROR_BAD_INCIDENT_ID = 12;
/** The Constant ERROR_BAD_USER_ID. */
public static final int ERROR_BAD_USER_ID = 13;
/** The Constant ERROR_EMPTY_USER_ID. */
public static final int ERROR_EMPTY_USER_ID = 14;
/** The Constant ERROR_EMPTY_INCIDENT_ID_BIS. */
public static final int ERROR_EMPTY_INCIDENT_ID_BIS = 15;
/** The Constant ERROR_BAD_INCIDENT_ID_BIS. */
public static final int ERROR_BAD_INCIDENT_ID_BIS = 16;
/** The Constant ERROR_ALREADY_RESOLVED. */
public static final int ERROR_ALREADY_RESOLVED = 17;
/** The Constant ERROR_ALREADY_CONFIRM. */
public static final int ERROR_ALREADY_CONFIRM = 18;
/** The Constant ERROR_ALREADY_INVALID. */
public static final int ERROR_ALREADY_INVALID = 19;
/** The Constant ERROR_BAD_PICTURE. */
public static final int ERROR_BAD_PICTURE = 29;
/** The Constant ERROR_IMPOSSIBLE_READ_PICTURE. */
public static final int ERROR_IMPOSSIBLE_READ_PICTURE = 30;
/** The Constant ERROR_API_REST. */
public static final int ERROR_API_REST = 32;
/** The Constant ERROR_SIGN_RESTQUEST. */
public static final int ERROR_SIGN_RESTQUEST = 33;
/** The Constant ERROR_BAD_ORIGIN. */
public static final int ERROR_BAD_ORIGIN = 34; |