/*
 * CS3283/4 dataModifier.js
 * This acts as a facade class for modifying and update data for storage facade
 *
 */

import dataAdd from './dataAdd';
import dataDelete from './dataDelete';

export default class dataModifier {
  static constructor() {}

  static deleteAllEntities() {
    dataDelete.deleteAllEntities();
  }
}

@@ -183,16 +183,95 @@
 Delete';
+%0Aimport dataUpdate from './dataUpdate';%0Aimport exceptions from '../exceptions';
 %0A%0Aexport
@@ -397,11 +397,488 @@
 s();%0A  %7D
+%0A%0A  static createNewFile(organizationId, filePath, folderId) %7B%0A    if (typeof Promise === 'function') %7B%0A      return new Promise((resolve, reject) =%3E %7B%0A        dataAdd.createNewFile(organizationId, filePath, folderId)%0A          .then((fileId) =%3E %7B%0A            console.log('DATAMODIFIER');%0A            console.log(fileId);%0A            resolve(fileId);%0A          %7D).catch(sqlErr =%3E sqlErr);%0A      %7D);%0A    %7D else %7B%0A      throw new exceptions.PromiseFunctionNotDefined();%0A    %7D%0A  %7D
 %0A%7D%0A

Add createNewFile implementations to dataModifier.js