18
18
import com .gitblit .models .UserModel ;
19
19
import com .gitblit .transport .ssh .commands .CommandMetaData ;
20
20
import com .gitblit .transport .ssh .commands .DispatchCommand ;
21
+ import com .gitblit .transport .ssh .commands .PluginDispatcher ;
21
22
22
23
/**
23
24
* The dispatcher and it's commands for Gitblit object listing.
@@ -33,6 +34,9 @@ protected void setup(UserModel user) {
33
34
register (user , ListRepositories .class );
34
35
register (user , ListProjects .class );
35
36
register (user , ListUsers .class );
37
+ register (user , ListTeams .class );
38
+ register (user , ListTickets .class );
39
+ register (user , ListPlugins .class );
36
40
}
37
41
38
42
/* List repositories */
@@ -49,4 +53,20 @@ public static class ListProjects extends ProjectsDispatcher.ListProjects {
49
53
@ CommandMetaData (name = "users" , description = "List users" , admin = true )
50
54
public static class ListUsers extends UsersDispatcher .ListUsers {
51
55
}
56
+
57
+ /* List teams */
58
+ @ CommandMetaData (name = "teams" , description = "List teams" , admin = true )
59
+ public static class ListTeams extends TeamsDispatcher .ListTeams {
60
+ }
61
+
62
+ /* List tickets */
63
+ @ CommandMetaData (name = "tickets" , description = "List tickets" )
64
+ public static class ListTickets extends TicketsDispatcher .ListTickets {
65
+ }
66
+
67
+ /* List plugins */
68
+ @ CommandMetaData (name = "plugins" , description = "List plugins" , admin = true )
69
+ public static class ListPlugins extends PluginDispatcher .ListPlugins {
70
+ }
71
+
52
72
}
0 commit comments