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 .ha .HAConfig ;
3335import org .apache .cloudstack .network .BgpPeer ;
3436import org .apache .cloudstack .network .Ipv4GuestSubnetNetworkMap ;
3537import org .apache .cloudstack .quota .QuotaTariff ;
36- import org .apache .cloudstack .storage .sharedfs .SharedFS ;
3738import org .apache .cloudstack .storage .object .Bucket ;
3839import org .apache .cloudstack .storage .object .ObjectStore ;
40+ import org .apache .cloudstack .storage .sharedfs .SharedFS ;
3941import org .apache .cloudstack .usage .Usage ;
4042import org .apache .cloudstack .vm .schedule .VMSchedule ;
4143
@@ -819,6 +821,7 @@ public class EventTypes {
819821 // Management Server
820822 public static final String EVENT_MANAGEMENT_SERVER_REMOVE = "MANAGEMENT.SERVER.REMOVE" ;
821823
824+ // VM Lease
822825 public static final String VM_LEASE_EXPIRED = "VM.LEASE.EXPIRED" ;
823826 public static final String VM_LEASE_DISABLED = "VM.LEASE.DISABLED" ;
824827 public static final String VM_LEASE_CANCELLED = "VM.LEASE.CANCELLED" ;
@@ -829,6 +832,19 @@ public class EventTypes {
829832 public static final String EVENT_GUI_THEME_REMOVE = "GUI.THEME.REMOVE" ;
830833 public static final String EVENT_GUI_THEME_UPDATE = "GUI.THEME.UPDATE" ;
831834
835+ // Extension
836+ public static final String EVENT_EXTENSION_CREATE = "EXTENSION.CREATE" ;
837+ public static final String EVENT_EXTENSION_UPDATE = "EXTENSION.UPDATE" ;
838+ public static final String EVENT_EXTENSION_DELETE = "EXTENSION.DELETE" ;
839+ public static final String EVENT_EXTENSION_RESOURCE_REGISTER = "EXTENSION.RESOURCE.REGISTER" ;
840+ public static final String EVENT_EXTENSION_RESOURCE_UNREGISTER = "EXTENSION.RESOURCE.UNREGISTER" ;
841+ public static final String EVENT_EXTENSION_CUSTOM_ACTION_ADD = "EXTENSION.CUSTOM.ACTION.ADD" ;
842+ public static final String EVENT_EXTENSION_CUSTOM_ACTION_UPDATE = "EXTENSION.CUSTOM.ACTION.UPDATE" ;
843+ public static final String EVENT_EXTENSION_CUSTOM_ACTION_DELETE = "EXTENSION.CUSTOM.ACTION.DELETE" ;
844+
845+ // Custom Action
846+ public static final String EVENT_CUSTOM_ACTION = "CUSTOM.ACTION" ;
847+
832848 static {
833849
834850 // TODO: need a way to force author adding event types to declare the entity details as well, with out braking
@@ -1344,6 +1360,16 @@ public class EventTypes {
13441360 entityEventDetails .put (EVENT_GUI_THEME_CREATE , "GuiTheme" );
13451361 entityEventDetails .put (EVENT_GUI_THEME_REMOVE , "GuiTheme" );
13461362 entityEventDetails .put (EVENT_GUI_THEME_UPDATE , "GuiTheme" );
1363+
1364+ // Extension
1365+ entityEventDetails .put (EVENT_EXTENSION_CREATE , Extension .class );
1366+ entityEventDetails .put (EVENT_EXTENSION_UPDATE , Extension .class );
1367+ entityEventDetails .put (EVENT_EXTENSION_DELETE , Extension .class );
1368+ entityEventDetails .put (EVENT_EXTENSION_RESOURCE_REGISTER , Extension .class );
1369+ entityEventDetails .put (EVENT_EXTENSION_RESOURCE_UNREGISTER , Extension .class );
1370+ entityEventDetails .put (EVENT_EXTENSION_CUSTOM_ACTION_ADD , ExtensionCustomAction .class );
1371+ entityEventDetails .put (EVENT_EXTENSION_CUSTOM_ACTION_UPDATE , ExtensionCustomAction .class );
1372+ entityEventDetails .put (EVENT_EXTENSION_CUSTOM_ACTION_DELETE , ExtensionCustomAction .class );
13471373 }
13481374
13491375 public static boolean isNetworkEvent (String eventType ) {
0 commit comments