package com.backendless.servercode.extension;

import com.backendless.servercode.ExecutionResult;
import com.backendless.servercode.RunnerContext;

/**
 * Created with IntelliJ IDEA.
 * User: ivanlappo
 * Date: 5/20/13
 * Time: 12:40 PM
 * To change this template use File | Settings | File Templates.
 */
public abstract class FilesExtender
{
  public FilesExtender()
  {
  }

  public void beforeMoveToRepository( RunnerContext context, String fileUrlLocation ) throws Exception
  {
  }

  public void afterMoveToRepository( RunnerContext context, String fileUrlLocation, ExecutionResult<String> result ) throws Exception
  {
  }

  public void beforeDeleteFileOrDirectory( RunnerContext context, String fileUrlLocation ) throws Exception
  {
  }

  public void afterDeleteFileOrDirectory( RunnerContext context, String fileUrlLocation,
                                          ExecutionResult result ) throws Exception
  {
  }
}


@@ -1,8 +1,1034 @@
+/*%0A * ********************************************************************************************************************%0A *  %3Cp/%3E%0A *  BACKENDLESS.COM CONFIDENTIAL%0A *  %3Cp/%3E%0A *  ********************************************************************************************************************%0A *  %3Cp/%3E%0A *  Copyright 2012 BACKENDLESS.COM. All Rights Reserved.%0A *  %3Cp/%3E%0A *  NOTICE: All information contained herein is, and remains the property of Backendless.com and its suppliers,%0A *  if any. The intellectual and technical concepts contained herein are proprietary to Backendless.com and its%0A *  suppliers and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade secret%0A *  or copyright law. Dissemination of this information or reproduction of this material is strictly forbidden%0A *  unless prior written permission is obtained from Backendless.com.%0A *  %3Cp/%3E%0A *  ********************************************************************************************************************%0A */%0A%0A
 package 
@@ -1950,11 +1950,347 @@
   %7B%0A  %7D%0A
+  public void beforeSaveFileFromByteArray( RunnerContext context, String fileUrlLocation, Boolean overwrite ) throws Exception%0A  %7B%0A  %7D%0A%0A  public void afterSaveFileFromByteArray( RunnerContext context, String fileUrlLocation, Boolean overwrite,%0A                                          ExecutionResult result ) throws Exception%0A  %7B%0A  %7D%0A
 %7D%0A%0A

add 2 methods in FileService handle (T-6741)