protected FileContent handleGetFileContent ( Class < ? extends FileEntity > type , Integer entityId , Integer fileId ) { Map < String , String > uriVariables = restUriVariablesFactory . getUriVariablesForGetFile ( BullhornEntityInfo . getTypesRestEntityName ( type ) , entityId , fileId ) ; String url = restUrlFactory . assembleGetFileUrl ( ) ; String jsonString = this . performGetRequest ( url , String . class , uriVariables ) ; FileContent fileContent = restJsonConverter . jsonToEntityUnwrapRoot ( jsonString , StandardFileContent . class ) ; fileContent . setId ( fileId ) ; return fileContent ; }
Makes the api call to get the file content