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/workflow/modules/userassignment/service/task/UnassignUserResourceAutomaticTask.java 81
fr/paris/lutece/plugins/workflow/modules/userassignment/service/task/UnassignUserResourceTask.java 82
            saveUserTaskInformation( nIdResourceHistory, user );
    	}
    }

    private void saveUserTaskInformation( int nIdResourceHistory, AdminUser userUnassigned )
    {
        UserTaskInformation taskInformation = new UserTaskInformation( nIdResourceHistory, getId( ) );
        taskInformation.add( UserTaskInformation.TASK_USER_ID, String.valueOf( userUnassigned.getUserId( ) ) );

        UserTaskInformationHome.create( taskInformation );
    }

    @Override
    public String getTitle( Locale locale )
    {
        return I18nService.getLocalizedString( MESSAGE_TASK_TITLE, locale );
    }

    @Override
    public void doRemoveTaskInformation( int nIdHistory )
    {
        ResourceHistory history = _resourceHistoryService.findByPrimaryKey( nIdHistory );
        UserTaskInformationHome.remove( history.getIdResource( ), getId( ) );
    }
}