* Extension point for plugins to respond to Ticket patchset changes.
*
* @author James Moger
+ * @since 1.5.0
*
*/
public abstract class PatchsetHook implements ExtensionPoint {
* proposal or it may be a existing ticket that now has a new patchset.
*
* @param ticket
+ * @since 1.5.0
*/
public abstract void onNewPatchset(TicketModel ticket);
* Called after a patchset has been FAST-FORWARD updated.
*
* @param ticket
+ * @since 1.5.0
*/
public abstract void onUpdatePatchset(TicketModel ticket);
* in the ticket.
*
* @param ticket
+ * @since 1.5.0
*/
public abstract void onMergePatchset(TicketModel ticket);
}
* Extension point for plugins to process commits on Pre- and Post- Receive.
*
* @author James Moger
- *
+ * @since 1.5.0
*/
public abstract class ReceiveHook implements ExtensionPoint {
*
* @param receivePack
* @param commands
+ * @since 1.5.0
*/
public abstract void onPreReceive(GitblitReceivePack receivePack, Collection<ReceiveCommand> commands);
*
* @param receivePack
* @param commands
+ * @since 1.5.0
*/
public abstract void onPostReceive(GitblitReceivePack receivePack, Collection<ReceiveCommand> commands);
}
* Extension point for plugins to respond to Ticket changes.
*
* @author James Moger
- *
+ * @since 1.5.0
*/
public abstract class TicketHook implements ExtensionPoint {
* Called when a new ticket is created.
*
* @param ticket
+ * @since 1.5.0
*/
public abstract void onNewTicket(TicketModel ticket);
*
* @param ticket
* @param change
+ * @since 1.5.0
*/
public abstract void onUpdateTicket(TicketModel ticket, Change change);
}
import com.google.common.base.Strings;
import com.google.common.collect.Maps;
+/**
+ * Parses an SSH command-line and dispatches the command to the appropriate
+ * BaseCommand instance.
+ *
+ * @since 1.5.0
+ */
public abstract class DispatchCommand extends BaseCommand implements ExtensionPoint {
private Logger log = LoggerFactory.getLogger(getClass());
* registered within this method.
*
* @param user
+ * @since 1.5.0
*/
protected abstract void setup(UserModel user);
A plugin defines it's metadata in the META-INF/MANIFEST.MF file:
Plugin-Id: powertools
- Plugin-Description: Gitblit Powertools
+ Plugin-Description: Command and control Gitblit over SSH
Plugin-Class: com.gitblit.plugin.powertools.Powertools
Plugin-Version: 1.2.0
Plugin-Provider: gitblit.com