File tree Expand file tree Collapse file tree 1 file changed +29
-1
lines changed
src/com/backendless/servercode/extension Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,40 @@ public FilesExtender()
3131 {
3232 }
3333
34+ /**
35+ * Use beforeUpload method
36+ *
37+ * @param context
38+ * @param fileUrlLocation
39+ * @throws Exception
40+ */
41+ @ Deprecated
42+ public void beforeMoveToRepository ( RunnerContext context , String fileUrlLocation ) throws Exception
43+ {
44+ }
45+
46+ /**
47+ * Use afterUpload method
48+ *
49+ * @param context
50+ * @param fileUrlLocation
51+ * @param result
52+ * @throws Exception
53+ */
54+ @ Deprecated
55+ public void afterMoveToRepository ( RunnerContext context , String fileUrlLocation , ExecutionResult <String > result ) throws Exception
56+ {
57+ }
58+
3459 public void beforeUpload ( RunnerContext context , String fileUrlLocation ) throws Exception
3560 {
61+ beforeMoveToRepository ( context , fileUrlLocation );
3662 }
3763
38- public void afterUpload ( RunnerContext context , String fileUrlLocation , ExecutionResult <String > result ) throws Exception
64+ public void afterUpload ( RunnerContext context , String fileUrlLocation ,
65+ ExecutionResult <String > result ) throws Exception
3966 {
67+ afterMoveToRepository ( context , fileUrlLocation , result );
4068 }
4169
4270 public void beforeDeleteFileOrDirectory ( RunnerContext context , String fileUrlLocation ) throws Exception
You can’t perform that action at this time.
0 commit comments