private int addJobPart ( List < DataSource > bodyPartContents , URI jobURI , int contentId ) throws JAXBException { int jobContentId = contentId ; validateJobOperation ( ) ; for ( EntityBatchOperation entityBatchOperation : entityBatchOperations ) { DataSource bodyPartContent = null ; if ( entityBatchOperation instanceof Job . CreateBatchOperation ) { Job . CreateBatchOperation jobCreateBatchOperation = ( Job . CreateBatchOperation ) entityBatchOperation ; jobContentId = contentId ; bodyPartContent = createBatchCreateEntityPart ( jobCreateBatchOperation . getVerb ( ) , "Jobs" , jobCreateBatchOperation . getEntryType ( ) , jobURI , contentId ) ; contentId ++ ; if ( bodyPartContent != null ) { bodyPartContents . add ( bodyPartContent ) ; break ; } } } return jobContentId ; }
Adds the job part .