This commit is contained in:
dheeyi
2016-03-23 18:36:50 -04:00
parent e76390f878
commit bdab9cd7a3
3 changed files with 34 additions and 4 deletions

View File

@@ -138,7 +138,8 @@ class GranularImporter
}
/**
* import
* @param $objectList
* @return array
*/
public function import($objectList)
{
@@ -158,4 +159,28 @@ class GranularImporter
);
}
}
/**
* @param $objectList
* @param bool|false $generateUid
* @return array
*/
public function validateImportData($objectList, $generateUid = false)
{
try {
if($generateUid == null){
foreach ($objectList as $rowObject) {
if($rowObject['name'] === 'PROCESSDEFINITION' && $rowObject['value'] == "replace"){
return true;
}
}
}
return false;
} catch (ExportException $e) {
return array(
'success' => false,
'message' => $e->getMessage()
);
}
}
}