protected < C extends CrudResponse , T extends AssociationEntity > C handleAssociateWithEntity ( Class < T > type , Integer entityId , AssociationField < T , ? extends BullhornEntity > associationName , Set < Integer > associationIds ) { Map < String , String > uriVariables = restUriVariablesFactory . getUriVariablesForAssociateWithEntity ( BullhornEntityInfo . getTypesRestEntityName ( type ) , entityId , associationName , associationIds ) ; String url = restUrlFactory . assembleEntityUrlForAssociateWithEntity ( ) ; CrudResponse response = null ; try { response = this . performCustomRequest ( url , null , CreateResponse . class , uriVariables , HttpMethod . PUT , null ) ; } catch ( HttpStatusCodeException error ) { response = restErrorHandler . handleHttpFourAndFiveHundredErrors ( new CreateResponse ( ) , error , entityId ) ; } return ( C ) response ; }
Makes the api call to create associations .