data-resource-management-service/drms-graph-impl/drms-api/src/main/java/org/apache/airavata/drms/api/utils/CustosUtils.java [19:45]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            ;
            EntityType entityType = EntityType.newBuilder().setId(StorageConstants.STORAGE_LABEL).build();
            EntityType type = sharingManagementClient.getEntityType(tenantId, entityType);
            if (!type.isInitialized() || type.getId().isEmpty()) {
                EntityType storEntityType = EntityType.newBuilder()
                        .setId(StorageConstants.STORAGE_LABEL)
                        .setName(StorageConstants.STORAGE_LABEL)
                        .setDescription("Storage entity type")
                        .build();
                sharingManagementClient.createEntityType(tenantId, storEntityType);
            }
            Entity entity = Entity.newBuilder().
                    setId(storageId)
                    .setName(storageId)
                    .setOwnerId(username)
                    .setType(StorageConstants.STORAGE_LABEL)
                    .setDescription("Storage information").build();

            Status status = sharingManagementClient.isEntityExists(tenantId, entity);
            if (!status.getStatus()) {
                sharingManagementClient.createEntity(tenantId, entity);
            }
        }
    }

    public static void deleteStorageEntity(CustosClientProvider custosClientProvider, String tenantId,
                                           String entityId) throws IOException {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



data-resource-management-service/drms-rdbms-impl/drms-server/src/main/java/org/apache/airavata/drms/api/utils/CustosUtils.java [21:47]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            ;
            EntityType entityType = EntityType.newBuilder().setId(StorageConstants.STORAGE_LABEL).build();
            EntityType type = sharingManagementClient.getEntityType(tenantId, entityType);
            if (!type.isInitialized() || type.getId().isEmpty()) {
                EntityType storEntityType = EntityType.newBuilder()
                        .setId(StorageConstants.STORAGE_LABEL)
                        .setName(StorageConstants.STORAGE_LABEL)
                        .setDescription("Storage entity type")
                        .build();
                sharingManagementClient.createEntityType(tenantId, storEntityType);
            }
            Entity entity = Entity.newBuilder().
                    setId(storageId)
                    .setName(storageId)
                    .setOwnerId(username)
                    .setType(StorageConstants.STORAGE_LABEL)
                    .setDescription("Storage information").build();

            Status status = sharingManagementClient.isEntityExists(tenantId, entity);
            if (!status.getStatus()) {
                sharingManagementClient.createEntity(tenantId, entity);
            }
        }
    }

    public static void deleteStorageEntity(CustosClientProvider custosClientProvider, String tenantId,
                                           String entityId) throws IOException {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



