2929import org .apache .cloudstack .api .response .ZoneResponse ;
3030import org .apache .cloudstack .config .Configuration ;
3131import org .apache .cloudstack .datacenter .DataCenterIpv4GuestSubnet ;
32+ import org .apache .cloudstack .extension .Extension ;
33+ import org .apache .cloudstack .extension .ExtensionCustomAction ;
3234import org .apache .cloudstack .gpu .GpuCard ;
3335import org .apache .cloudstack .gpu .GpuDevice ;
3436import org .apache .cloudstack .gpu .VgpuProfile ;
3537import org .apache .cloudstack .ha .HAConfig ;
3638import org .apache .cloudstack .network .BgpPeer ;
3739import org .apache .cloudstack .network .Ipv4GuestSubnetNetworkMap ;
3840import org .apache .cloudstack .quota .QuotaTariff ;
39- import org .apache .cloudstack .storage .sharedfs .SharedFS ;
4041import org .apache .cloudstack .storage .object .Bucket ;
4142import org .apache .cloudstack .storage .object .ObjectStore ;
43+ import org .apache .cloudstack .storage .sharedfs .SharedFS ;
4244import org .apache .cloudstack .usage .Usage ;
4345import org .apache .cloudstack .vm .schedule .VMSchedule ;
4446
@@ -824,6 +826,7 @@ public class EventTypes {
824826 // Management Server
825827 public static final String EVENT_MANAGEMENT_SERVER_REMOVE = "MANAGEMENT.SERVER.REMOVE" ;
826828
829+ // VM Lease
827830 public static final String VM_LEASE_EXPIRED = "VM.LEASE.EXPIRED" ;
828831 public static final String VM_LEASE_DISABLED = "VM.LEASE.DISABLED" ;
829832 public static final String VM_LEASE_CANCELLED = "VM.LEASE.CANCELLED" ;
@@ -834,6 +837,19 @@ public class EventTypes {
834837 public static final String EVENT_GUI_THEME_REMOVE = "GUI.THEME.REMOVE" ;
835838 public static final String EVENT_GUI_THEME_UPDATE = "GUI.THEME.UPDATE" ;
836839
840+ // Extension
841+ public static final String EVENT_EXTENSION_CREATE = "EXTENSION.CREATE" ;
842+ public static final String EVENT_EXTENSION_UPDATE = "EXTENSION.UPDATE" ;
843+ public static final String EVENT_EXTENSION_DELETE = "EXTENSION.DELETE" ;
844+ public static final String EVENT_EXTENSION_RESOURCE_REGISTER = "EXTENSION.RESOURCE.REGISTER" ;
845+ public static final String EVENT_EXTENSION_RESOURCE_UNREGISTER = "EXTENSION.RESOURCE.UNREGISTER" ;
846+ public static final String EVENT_EXTENSION_CUSTOM_ACTION_ADD = "EXTENSION.CUSTOM.ACTION.ADD" ;
847+ public static final String EVENT_EXTENSION_CUSTOM_ACTION_UPDATE = "EXTENSION.CUSTOM.ACTION.UPDATE" ;
848+ public static final String EVENT_EXTENSION_CUSTOM_ACTION_DELETE = "EXTENSION.CUSTOM.ACTION.DELETE" ;
849+
850+ // Custom Action
851+ public static final String EVENT_CUSTOM_ACTION = "CUSTOM.ACTION" ;
852+
837853 static {
838854
839855 // TODO: need a way to force author adding event types to declare the entity details as well, with out braking
@@ -1357,6 +1373,16 @@ public class EventTypes {
13571373 entityEventDetails .put (EVENT_GUI_THEME_CREATE , "GuiTheme" );
13581374 entityEventDetails .put (EVENT_GUI_THEME_REMOVE , "GuiTheme" );
13591375 entityEventDetails .put (EVENT_GUI_THEME_UPDATE , "GuiTheme" );
1376+
1377+ // Extension
1378+ entityEventDetails .put (EVENT_EXTENSION_CREATE , Extension .class );
1379+ entityEventDetails .put (EVENT_EXTENSION_UPDATE , Extension .class );
1380+ entityEventDetails .put (EVENT_EXTENSION_DELETE , Extension .class );
1381+ entityEventDetails .put (EVENT_EXTENSION_RESOURCE_REGISTER , Extension .class );
1382+ entityEventDetails .put (EVENT_EXTENSION_RESOURCE_UNREGISTER , Extension .class );
1383+ entityEventDetails .put (EVENT_EXTENSION_CUSTOM_ACTION_ADD , ExtensionCustomAction .class );
1384+ entityEventDetails .put (EVENT_EXTENSION_CUSTOM_ACTION_UPDATE , ExtensionCustomAction .class );
1385+ entityEventDetails .put (EVENT_EXTENSION_CUSTOM_ACTION_DELETE , ExtensionCustomAction .class );
13601386 }
13611387
13621388 public static boolean isNetworkEvent (String eventType ) {
0 commit comments