Fork me on GitHub

Résultats CPD

Le document suivant contient les résultats de l'inspection CPD CPD 6.13.0.

Duplicatas

Fichier Ligne
fr/paris/lutece/plugins/consultation/business/Consultation.java 214
fr/paris/lutece/plugins/consultation/business/ConsultationDTO.java 280
    }


    /**
     * Returns the Address
     * 
     * @return The Address
     */
    public String getAddress( )
    {
        return _strAddress;
    }

    /**
     * Sets the Address
     * 
     * @param strAddress
     *            The Address
     */
    public void setAddress( String strAddress )
    {
        _strAddress = strAddress;
    }

    /**
	 * @return the _longitude
	 */
	public Float getLongitude() {
		return _longitude;
	}

	/**
	 * @param _longitude the _longitude to set
	 */
	public void setLongitude(Float longitude) {
		this._longitude = longitude;
	}

	/**
	 * @return the _latitude
	 */
	public Float getLatitude() {
		return _latitude;
	}

	/**
	 * @param _latitude the _latitude to set
	 */
	public void setLatitude(Float latitude) {
		this._latitude = latitude;
	}

	/**
     * Returns the Summary
     * 
     * @return The Summary
     */
    public String getSummary( )
    {
        return _strSummary;
    }

    /**
     * Sets the Summary
     * 
     * @param strSummary
     *            The Summary
     */
    public void setSummary( String strSummary )
    {
        _strSummary = strSummary;
    }

    /**
     * Returns the DetailsContent
     * 
     * @return The DetailsContent
     */
    public String getDetailsContent( )
    {
        return _strDetailsContent;
    }

    /**
     * Sets the DetailsContent
     * 
     * @param strDetailsContent
     *            The DetailsContent
     */
    public void setDetailsContent( String strDetailsContent )
    {
        _strDetailsContent = strDetailsContent;
    }
    
    /**
     * Returns the Result
     * 
     * @return The Result
     */
    public String getResult( )
    {
        return _strResult;
    }

    /**
     * Sets the Result
     * 
     * @param strResult
     *            The Result
     */
    public void setResult( String strResult )
    {
        _strResult = strResult;
    }

    /**
     * Returns the Status
     * 
     * @return The Status
     */
    public Status getStatus( )
    {
        return _status;
    }

    /**
     * Sets the Status
     * 
     * @param strStatus
     *            The Status
     */
    public void setStatus( Status status )
    {
        _status = status;
    }

    /**
     * Returns the CreationDate
     * 
     * @return The CreationDate
     */
    public Timestamp getCreationDate( )
    {
        return _dateCreationDate;
    }

    /**
     * Sets the CreationDate
     * 
     * @param dateCreationDate
     *            The CreationDate
     */
    public void setCreationDate( Timestamp dateCreationDate )
    {
        _dateCreationDate = dateCreationDate;
    }

    /**
     * Returns the UpdateDate
     * 
     * @return The UpdateDate
     */
    public Timestamp getUpdateDate( )
    {
        return _dateUpdateDate;
    }

    /**
     * Sets the UpdateDate
     * 
     * @param dateUpdateDate
     *            The UpdateDate
     */
    public void setUpdateDate( Timestamp dateUpdateDate )
    {
        _dateUpdateDate = dateUpdateDate;
    }

    /**
     * Returns the UserEditor
     * 
     * @return The UserEditor
     */
    public String getUserEditor( )
    {
        return _strUserEditor;
    }

    /**
     * Sets the UserEditor
     * 
     * @param strUserEditor
     *            The UserEditor
     */
    public void setUserEditor( String strUserEditor )
    {
        _strUserEditor = strUserEditor;
    }

    /**
     * Returns the UserCreator
     * 
     * @return The UserCreator
     */
    public String getUserCreator( )
    {
        return _strUserCreator;
    }

    /**
     * Sets the UserCreator
     * 
     * @param strUserCreator
     *            The UserCreator
     */
    public void setUserCreator( String strUserCreator )
    {
        _strUserCreator = strUserCreator;
    }

    /**
     * Returns the IdForms
     * 
     * @return The IdForms
     */
    public int getIdForms( )
    {
        return _nIdForms;
    }

    /**
     * Sets the IdForms
     * 
     * @param nIdForms
     *            The IdForms
     */
    public void setIdForms( int nIdForms )
    {
        _nIdForms = nIdForms;
    }
    
    /**
     * Returns the IdUnit
     * 
     * @return The Unit ID
     */
    public int getIdUnit( )
    {
        return _nIdUnit;
    }

    /**
     * Sets the IdUnit
     * 
     * @param _nIdUnit
     *            The Unit ID
     */
    public void setIdUnit( int _nIdUnit )
    {
        this._nIdUnit = _nIdUnit;
    }

    /**
     * Returns the IdEntryImage
     * 
     * @return The IdEntryImage
     */
    public String getImageResource() {
		return _strImageResource;
	}

    /**
     * Sets the IdEntryImage
     * 
     * @param nIdEntryImage
     *            The IdEntryImage
     */
	public void setImageResource(String strImageResource) {
		this._strImageResource = strImageResource;
	}
	
    /**
     * Returns the imageUrl
     * 
     * @return The imageUrl
     */
    public String getImageUrl()
    {
        return this._strImageUrl;
    }
    
       /**
     * Sets the imageUrl
     * 
     * @param imageUrl
     *            The imageUrl
     */
    public void  setImageUrl(String imageUrl)
    {
       this._strImageUrl = imageUrl;
    }
	
    /**
     * Get the state of the appointment
     * 
     * @return the state of the appointment
     */
    public State getState( )
    {
        return _state;
    }

    /**
     * Set the state of the appointment
     * 
     * @param state
     *            the state to set
     */
    public void setState( State state )
    {
        this._state = state;
Fichier Ligne
fr/paris/lutece/plugins/consultation/business/ConsultationDAO.java 338
fr/paris/lutece/plugins/consultation/business/ConsultationDAO.java 446
            try ( DAOUtil daoUtil = new DAOUtil( stmt, plugin ) )
            {
                int index = 1;
                for ( Integer n : listIds )
                {
                    daoUtil.setInt( index++, n );
                }

                daoUtil.executeQuery( );
                while ( daoUtil.next( ) )
                {
                    Consultation consultation = new Consultation( );
                    int nIndex = 1;

                    consultation.setId( daoUtil.getInt( nIndex++ ) );
                    consultation.setTitle( daoUtil.getString( nIndex++ ) );
                    consultation.setCollectionOpinionsStartdate( daoUtil.getTimestamp( nIndex++ ) );
                    consultation.setCollectionOpinionsEnddate( daoUtil.getTimestamp( nIndex++ ) );
                    consultation.setTheme( daoUtil.getString( nIndex++ ) );
                    consultation.setPlace( daoUtil.getString( nIndex++ ) );
                    consultation.setAddress( daoUtil.getString( nIndex++ ) );
                    consultation.setLongitude( daoUtil.getFloat( nIndex++ ) );
                    consultation.setLatitude( daoUtil.getFloat( nIndex++ ) );
                    consultation.setSummary( daoUtil.getString( nIndex++ ) );
                    consultation.setDetailsContent( daoUtil.getString( nIndex++ ) );
                    consultation.setResult( daoUtil.getString( nIndex++ ) );
                    consultation.setStatus( Status.getStatus( daoUtil.getString( nIndex++ ) ) );
                    consultation.setCreationDate( daoUtil.getTimestamp( nIndex++ ) );
                    consultation.setUpdateDate( daoUtil.getTimestamp( nIndex++ ) );
                    consultation.setUserEditor( daoUtil.getString( nIndex++ ) );
                    consultation.setUserCreator( daoUtil.getString( nIndex++ ) );
                    consultation.setIdForms( daoUtil.getInt( nIndex++ ) );
                    consultation.setImageResource( daoUtil.getString( nIndex ) );

                    consultationList.add( consultation );
                }

            }
        }
        return consultationList;

    }
Fichier Ligne
fr/paris/lutece/plugins/consultation/business/ConsultationDAO.java 201
fr/paris/lutece/plugins/consultation/business/ConsultationDAO.java 243
        try ( DAOUtil daoUtil = new DAOUtil( SQL_QUERY_SELECTALL, plugin ) )
        {
            daoUtil.executeQuery( );

            while ( daoUtil.next( ) )
            {
                Consultation consultation = new Consultation( );
                int nIndex = 1;
                consultation.setId( daoUtil.getInt( nIndex++ ) );
                consultation.setTitle( daoUtil.getString( nIndex++ ) );
                consultation.setCollectionOpinionsStartdate( daoUtil.getTimestamp( nIndex++ ) );
                consultation.setCollectionOpinionsEnddate( daoUtil.getTimestamp( nIndex++ ) );
                consultation.setTheme( daoUtil.getString( nIndex++ ) );
                consultation.setPlace( daoUtil.getString( nIndex++ ) );
                consultation.setAddress( daoUtil.getString( nIndex++ ) );
                consultation.setLongitude( daoUtil.getFloat( nIndex++ ) );
                consultation.setLatitude( daoUtil.getFloat( nIndex++ ) );
                consultation.setSummary( daoUtil.getString( nIndex++ ) );
                consultation.setDetailsContent( daoUtil.getString( nIndex++ ) );
                consultation.setResult( daoUtil.getString( nIndex++ ) );
                consultation.setStatus( Status.getStatus( daoUtil.getString( nIndex++ ) ) );
                consultation.setCreationDate( daoUtil.getTimestamp( nIndex++ ) );
                consultation.setUpdateDate( daoUtil.getTimestamp( nIndex++ ) );
                consultation.setUserEditor( daoUtil.getString( nIndex++ ) );
                consultation.setUserCreator( daoUtil.getString( nIndex++ ) );
                consultation.setIdForms( daoUtil.getInt( nIndex++ ) );
                consultation.setImageResource( daoUtil.getString( nIndex++ ) );
                consultation.setIdUnit( daoUtil.getInt( nIndex ) );
                consultationList.add( consultation );
            }

            return consultationList;
        }
    }

    /**
     * {@inheritDoc }
     */
    @Override
    public List<Consultation> selectPublishedConsultationsList( Plugin plugin )
Fichier Ligne
fr/paris/lutece/plugins/consultation/business/ConsultationDAO.java 203
fr/paris/lutece/plugins/consultation/business/ConsultationDAO.java 245
fr/paris/lutece/plugins/consultation/business/ConsultationDAO.java 346
fr/paris/lutece/plugins/consultation/business/ConsultationDAO.java 454
            daoUtil.executeQuery( );

            while ( daoUtil.next( ) )
            {
                Consultation consultation = new Consultation( );
                int nIndex = 1;
                consultation.setId( daoUtil.getInt( nIndex++ ) );
                consultation.setTitle( daoUtil.getString( nIndex++ ) );
                consultation.setCollectionOpinionsStartdate( daoUtil.getTimestamp( nIndex++ ) );
                consultation.setCollectionOpinionsEnddate( daoUtil.getTimestamp( nIndex++ ) );
                consultation.setTheme( daoUtil.getString( nIndex++ ) );
                consultation.setPlace( daoUtil.getString( nIndex++ ) );
                consultation.setAddress( daoUtil.getString( nIndex++ ) );
                consultation.setLongitude( daoUtil.getFloat( nIndex++ ) );
                consultation.setLatitude( daoUtil.getFloat( nIndex++ ) );
                consultation.setSummary( daoUtil.getString( nIndex++ ) );
                consultation.setDetailsContent( daoUtil.getString( nIndex++ ) );
                consultation.setResult( daoUtil.getString( nIndex++ ) );
                consultation.setStatus( Status.getStatus( daoUtil.getString( nIndex++ ) ) );
                consultation.setCreationDate( daoUtil.getTimestamp( nIndex++ ) );
                consultation.setUpdateDate( daoUtil.getTimestamp( nIndex++ ) );
                consultation.setUserEditor( daoUtil.getString( nIndex++ ) );
                consultation.setUserCreator( daoUtil.getString( nIndex++ ) );
                consultation.setIdForms( daoUtil.getInt( nIndex++ ) );
                consultation.setImageResource( daoUtil.getString( nIndex++ ) );
Fichier Ligne
fr/paris/lutece/plugins/consultation/business/ConsultationDAO.java 117
fr/paris/lutece/plugins/consultation/business/ConsultationDAO.java 207
fr/paris/lutece/plugins/consultation/business/ConsultationDAO.java 249
                consultation = new Consultation( );
                int nIndex = 1;

                consultation.setId( daoUtil.getInt( nIndex++ ) );
                consultation.setTitle( daoUtil.getString( nIndex++ ) );
                consultation.setCollectionOpinionsStartdate( daoUtil.getTimestamp( nIndex++ ) );
                consultation.setCollectionOpinionsEnddate( daoUtil.getTimestamp( nIndex++ ) );
                consultation.setTheme( daoUtil.getString( nIndex++ ) );
                consultation.setPlace( daoUtil.getString( nIndex++ ) );
                consultation.setAddress( daoUtil.getString( nIndex++ ) );
                consultation.setLongitude( daoUtil.getFloat( nIndex++ ) );
                consultation.setLatitude( daoUtil.getFloat( nIndex++ ) );
                consultation.setSummary( daoUtil.getString( nIndex++ ) );
                consultation.setDetailsContent( daoUtil.getString( nIndex++ ) );
                consultation.setResult( daoUtil.getString( nIndex++ ) );
                consultation.setStatus( Status.getStatus( daoUtil.getString( nIndex++ ) ) );
                consultation.setCreationDate( daoUtil.getTimestamp( nIndex++ ) );
                consultation.setUpdateDate( daoUtil.getTimestamp( nIndex++ ) );
                consultation.setUserEditor( daoUtil.getString( nIndex++ ) );
                consultation.setUserCreator( daoUtil.getString( nIndex++ ) );
                consultation.setIdForms( daoUtil.getInt( nIndex++ ) );
                consultation.setImageResource( daoUtil.getString( nIndex++ ) );
                consultation.setIdUnit( daoUtil.getInt( nIndex ) );
Fichier Ligne
fr/paris/lutece/plugins/consultation/business/ConsultationDAO.java 117
fr/paris/lutece/plugins/consultation/business/ConsultationDAO.java 349
fr/paris/lutece/plugins/consultation/business/ConsultationDAO.java 457
                consultation = new Consultation( );
                int nIndex = 1;

                consultation.setId( daoUtil.getInt( nIndex++ ) );
                consultation.setTitle( daoUtil.getString( nIndex++ ) );
                consultation.setCollectionOpinionsStartdate( daoUtil.getTimestamp( nIndex++ ) );
                consultation.setCollectionOpinionsEnddate( daoUtil.getTimestamp( nIndex++ ) );
                consultation.setTheme( daoUtil.getString( nIndex++ ) );
                consultation.setPlace( daoUtil.getString( nIndex++ ) );
                consultation.setAddress( daoUtil.getString( nIndex++ ) );
                consultation.setLongitude( daoUtil.getFloat( nIndex++ ) );
                consultation.setLatitude( daoUtil.getFloat( nIndex++ ) );
                consultation.setSummary( daoUtil.getString( nIndex++ ) );
                consultation.setDetailsContent( daoUtil.getString( nIndex++ ) );
                consultation.setResult( daoUtil.getString( nIndex++ ) );
                consultation.setStatus( Status.getStatus( daoUtil.getString( nIndex++ ) ) );
                consultation.setCreationDate( daoUtil.getTimestamp( nIndex++ ) );
                consultation.setUpdateDate( daoUtil.getTimestamp( nIndex++ ) );
                consultation.setUserEditor( daoUtil.getString( nIndex++ ) );
                consultation.setUserCreator( daoUtil.getString( nIndex++ ) );
                consultation.setIdForms( daoUtil.getInt( nIndex++ ) );
                consultation.setImageResource( daoUtil.getString( nIndex++ ) );
Fichier Ligne
fr/paris/lutece/plugins/consultation/business/ConsultationDAO.java 74
fr/paris/lutece/plugins/consultation/business/ConsultationDAO.java 170
            daoUtil.setString( nIndex++, consultation.getTitle( ) );
            daoUtil.setTimestamp( nIndex++, consultation.getCollectionOpinionsStartdate( ) );
            daoUtil.setTimestamp( nIndex++, consultation.getCollectionOpinionsEnddate( ) );
            daoUtil.setString( nIndex++, consultation.getTheme( ) );
            daoUtil.setString( nIndex++, consultation.getPlace( ) );
            daoUtil.setString( nIndex++, consultation.getAddress( ) );
            daoUtil.setFloat( nIndex++, consultation.getLongitude( ) );
            daoUtil.setFloat( nIndex++, consultation.getLatitude( ) );
            daoUtil.setString( nIndex++, consultation.getSummary( ) );
            daoUtil.setString( nIndex++, consultation.getDetailsContent( ) );
            daoUtil.setString( nIndex++, consultation.getResult( ) );
            daoUtil.setString( nIndex++, consultation.getStatus( ).getCode( ) );
            daoUtil.setTimestamp( nIndex++, consultation.getCreationDate( ) );
Fichier Ligne
fr/paris/lutece/plugins/consultation/business/Consultation.java 94
fr/paris/lutece/plugins/consultation/business/ConsultationDTO.java 117
    public int getId( )
    {
        return _nId;
    }

    /**
     * Sets the Id
     * 
     * @param nId
     *            The Id
     */
    public void setId( int nId )
    {
        _nId = nId;

    }

    /**
     * Returns the Title
     * 
     * @return The Title
     */
    public String getTitle( )
    {
        return _strTitle;
    }

    /**
     * Sets the Title
     * 
     * @param strTitle
     *            The Title
     */
    public void setTitle( String strTitle )
    {
        _strTitle = strTitle;
    }

    /**
     * Returns the CollectionOpinionsStartdate
     * 
     * @return The CollectionOpinionsStartdate
     */
    public Timestamp getCollectionOpinionsStartdate( )
    {
        return _dateCollectionOpinionsStartdate;
    }

    /**
     * Sets the CollectionOpinionsStartdate
     * 
     * @param dateCollectionOpinionsStartdate
     *            The CollectionOpinionsStartdate
     */
    public void setCollectionOpinionsStartdate( Timestamp dateCollectionOpinionsStartdate )
    {
        _dateCollectionOpinionsStartdate = dateCollectionOpinionsStartdate;
    }

    /**
     * Returns the CollectionOpinionsEnddate
     * 
     * @return The CollectionOpinionsEnddate
     */
    public Timestamp getCollectionOpinionsEnddate( )
    {
        return _dateCollectionOpinionsEnddate;
    }

    /**
     * Sets the CollectionOpinionsEnddate
     * 
     * @param dateCollectionOpinionsEnddate
     *            The CollectionOpinionsEnddate
     */
    public void setCollectionOpinionsEnddate( Timestamp dateCollectionOpinionsEnddate )
    {
        _dateCollectionOpinionsEnddate = dateCollectionOpinionsEnddate;
    }

    /**
     * Returns the Place
     * 
     * @return The Place
     */
    public String getPlace( )
    {
        return _strPlace;
    }

    /**
     * Sets the Place
     * 
     * @param strPlace
     *            The Place
     */
    public void setPlace( String strPlace )
    {
        _strPlace = strPlace;
    }
    
    /**
     * Returns the Theme
     * 
     * @return The Theme
     */
    public String getTheme( )