commit | author | age
|
aa89be
|
1 |
/* |
JM |
2 |
* Copyright 2014 gitblit.com. |
|
3 |
* |
|
4 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
5 |
* you may not use this file except in compliance with the License. |
|
6 |
* You may obtain a copy of the License at |
|
7 |
* |
|
8 |
* http://www.apache.org/licenses/LICENSE-2.0 |
|
9 |
* |
|
10 |
* Unless required by applicable law or agreed to in writing, software |
|
11 |
* distributed under the License is distributed on an "AS IS" BASIS, |
|
12 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
13 |
* See the License for the specific language governing permissions and |
|
14 |
* limitations under the License. |
|
15 |
*/ |
|
16 |
package com.gitblit.extensions; |
|
17 |
|
|
18 |
import ro.fortsoft.pf4j.ExtensionPoint; |
|
19 |
|
|
20 |
import com.gitblit.models.TicketModel; |
|
21 |
|
|
22 |
/** |
|
23 |
* Extension point for plugins to respond to Ticket patchset changes. |
|
24 |
* |
|
25 |
* @author James Moger |
a3ac80
|
26 |
* @since 1.5.0 |
aa89be
|
27 |
* |
JM |
28 |
*/ |
|
29 |
public abstract class PatchsetHook implements ExtensionPoint { |
|
30 |
|
|
31 |
/** |
|
32 |
* Called after a new patchset has been created. This patchset |
|
33 |
* may not be the first patchset of the ticket. The ticket may be a new |
|
34 |
* proposal or it may be a existing ticket that now has a new patchset. |
|
35 |
* |
|
36 |
* @param ticket |
a3ac80
|
37 |
* @since 1.5.0 |
aa89be
|
38 |
*/ |
JM |
39 |
public abstract void onNewPatchset(TicketModel ticket); |
|
40 |
|
|
41 |
/** |
|
42 |
* Called after a patchset has been FAST-FORWARD updated. |
|
43 |
* |
|
44 |
* @param ticket |
a3ac80
|
45 |
* @since 1.5.0 |
aa89be
|
46 |
*/ |
JM |
47 |
public abstract void onUpdatePatchset(TicketModel ticket); |
|
48 |
|
|
49 |
/** |
|
50 |
* Called after a patchset has been merged to the integration branch specified |
|
51 |
* in the ticket. |
|
52 |
* |
|
53 |
* @param ticket |
a3ac80
|
54 |
* @since 1.5.0 |
aa89be
|
55 |
*/ |
JM |
56 |
public abstract void onMergePatchset(TicketModel ticket); |
|
57 |
} |