public List<CmsPublishJobFinished> getPublishHistory(CmsUser user) {

        List<CmsPublishJobFinished> result = new ArrayList<CmsPublishJobFinished>();
        Iterator<CmsPublishJobFinished> it = getPublishHistory().iterator();
        while (it.hasNext()) {
            CmsPublishJobFinished publishJob = it.next();
            if (publishJob.getUserId().equals(user.getId())) {
                result.add(publishJob);
            }
        }
        return result;
    }
public List < CmsPublishJobFinished > getPublishHistory ( CmsUser user ) { List < CmsPublishJobFinished > result = new ArrayList < CmsPublishJobFinished > ( ) ; Iterator < CmsPublishJobFinished > it = getPublishHistory ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { CmsPublishJobFinished publishJob = it . next ( ) ; if ( publishJob . getUserId ( ) . equals ( user . getId ( ) ) ) { result . add ( publishJob ) ; } } return result ; }
Returns the publish history list with already publish jobs, filtered by the given user.<p>

@param user the user to filter the jobs with

@return a list of {@link CmsPublishJobFinished} objects