Skip to content

Commit c55d4e5

Browse files
author
oleg
committed
Incorrect signature for event handlers.
BKNDLSS-15115, BKNDLSS-15120, BKNDLSS-15130
1 parent 6657077 commit c55d4e5

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

src/com/backendless/servercode/extension/FilesExtender.java

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)