mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 10:32:34 +01:00
Image Store: View Access status of the image store and view events (#8467)
This commit is contained in:
parent
9f1b34aeb2
commit
5361b415e6
@ -400,6 +400,7 @@ public class EventTypes {
|
|||||||
public static final String EVENT_IMAGE_STORE_DATA_MIGRATE = "IMAGE.STORE.MIGRATE.DATA";
|
public static final String EVENT_IMAGE_STORE_DATA_MIGRATE = "IMAGE.STORE.MIGRATE.DATA";
|
||||||
public static final String EVENT_IMAGE_STORE_RESOURCES_MIGRATE = "IMAGE.STORE.MIGRATE.RESOURCES";
|
public static final String EVENT_IMAGE_STORE_RESOURCES_MIGRATE = "IMAGE.STORE.MIGRATE.RESOURCES";
|
||||||
public static final String EVENT_IMAGE_STORE_OBJECT_DOWNLOAD = "IMAGE.STORE.OBJECT.DOWNLOAD";
|
public static final String EVENT_IMAGE_STORE_OBJECT_DOWNLOAD = "IMAGE.STORE.OBJECT.DOWNLOAD";
|
||||||
|
public static final String EVENT_UPDATE_IMAGE_STORE_ACCESS_STATE = "IMAGE.STORE.ACCESS.UPDATED";
|
||||||
|
|
||||||
// Configuration Table
|
// Configuration Table
|
||||||
public static final String EVENT_CONFIGURATION_VALUE_EDIT = "CONFIGURATION.VALUE.EDIT";
|
public static final String EVENT_CONFIGURATION_VALUE_EDIT = "CONFIGURATION.VALUE.EDIT";
|
||||||
@ -1164,6 +1165,7 @@ public class EventTypes {
|
|||||||
|
|
||||||
entityEventDetails.put(EVENT_IMAGE_STORE_DATA_MIGRATE, ImageStore.class);
|
entityEventDetails.put(EVENT_IMAGE_STORE_DATA_MIGRATE, ImageStore.class);
|
||||||
entityEventDetails.put(EVENT_IMAGE_STORE_OBJECT_DOWNLOAD, ImageStore.class);
|
entityEventDetails.put(EVENT_IMAGE_STORE_OBJECT_DOWNLOAD, ImageStore.class);
|
||||||
|
entityEventDetails.put(EVENT_UPDATE_IMAGE_STORE_ACCESS_STATE, ImageStore.class);
|
||||||
entityEventDetails.put(EVENT_LIVE_PATCH_SYSTEMVM, "SystemVMs");
|
entityEventDetails.put(EVENT_LIVE_PATCH_SYSTEMVM, "SystemVMs");
|
||||||
|
|
||||||
//Object Store
|
//Object Store
|
||||||
|
|||||||
@ -3261,6 +3261,8 @@ public class StorageManagerImpl extends ManagerBase implements StorageManager, C
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ActionEvent(eventType = EventTypes.EVENT_UPDATE_IMAGE_STORE_ACCESS_STATE,
|
||||||
|
eventDescription = "image store access updated")
|
||||||
public ImageStore updateImageStoreStatus(Long id, Boolean readonly) {
|
public ImageStore updateImageStoreStatus(Long id, Boolean readonly) {
|
||||||
// Input validation
|
// Input validation
|
||||||
ImageStoreVO imageStoreVO = _imageStoreDao.findById(id);
|
ImageStoreVO imageStoreVO = _imageStoreDao.findById(id);
|
||||||
|
|||||||
@ -340,7 +340,7 @@
|
|||||||
<template v-if="column.key === 'softwareversion'">
|
<template v-if="column.key === 'softwareversion'">
|
||||||
<span> {{ record.softwareversion ? record.softwareversion : 'N/A' }} </span>
|
<span> {{ record.softwareversion ? record.softwareversion : 'N/A' }} </span>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="column.key === 'access'">
|
<template v-if="column.key === 'readonly'">
|
||||||
<status :text="record.readonly ? 'ReadOnly' : 'ReadWrite'" displayText />
|
<status :text="record.readonly ? 'ReadOnly' : 'ReadWrite'" displayText />
|
||||||
</template>
|
</template>
|
||||||
<template v-if="column.key === 'requiresupgrade'">
|
<template v-if="column.key === 'requiresupgrade'">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user