Fork me on GitHub

CPD Results

The following document contains the results of PMD's CPD 6.13.0.

Duplications

File Line
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( ) );
    }
}