Search in sources :

Example 16 with ImageCatalog

use of com.sequenceiq.cloudbreak.domain.ImageCatalog in project cloudbreak by hortonworks.

the class UpdateImageCatalogRequestToImageCatalogConverter method convert.

@Override
public ImageCatalog convert(UpdateImageCatalogRequest source) {
    ImageCatalog imageCatalog = new ImageCatalog();
    imageCatalog.setImageCatalogUrl(source.getUrl());
    imageCatalog.setImageCatalogName(source.getName());
    imageCatalog.setId(source.getId());
    return imageCatalog;
}
Also used : ImageCatalog(com.sequenceiq.cloudbreak.domain.ImageCatalog)

Example 17 with ImageCatalog

use of com.sequenceiq.cloudbreak.domain.ImageCatalog in project cloudbreak by hortonworks.

the class ImageCatalogRequestToImageCatalogConverter method convert.

@Override
public ImageCatalog convert(ImageCatalogRequest source) {
    ImageCatalog imageCatalog = new ImageCatalog();
    imageCatalog.setImageCatalogUrl(source.getUrl());
    imageCatalog.setImageCatalogName(source.getName());
    return imageCatalog;
}
Also used : ImageCatalog(com.sequenceiq.cloudbreak.domain.ImageCatalog)

Aggregations

ImageCatalog (com.sequenceiq.cloudbreak.domain.ImageCatalog)17 IdentityUser (com.sequenceiq.cloudbreak.common.model.user.IdentityUser)7 Test (org.junit.Test)4 BadRequestException (com.sequenceiq.cloudbreak.controller.BadRequestException)2 CloudbreakImageNotFoundException (com.sequenceiq.cloudbreak.core.CloudbreakImageNotFoundException)2 UserProfile (com.sequenceiq.cloudbreak.domain.UserProfile)2 ImmutableSet (com.google.common.collect.ImmutableSet)1 Versioned (com.sequenceiq.cloudbreak.cloud.model.Versioned)1 CloudbreakImageCatalogV2 (com.sequenceiq.cloudbreak.cloud.model.catalog.CloudbreakImageCatalogV2)1 CloudbreakVersion (com.sequenceiq.cloudbreak.cloud.model.catalog.CloudbreakVersion)1 Image (com.sequenceiq.cloudbreak.cloud.model.catalog.Image)1 Images (com.sequenceiq.cloudbreak.cloud.model.catalog.Images)1 APIResourceType (com.sequenceiq.cloudbreak.common.type.APIResourceType)1 AuthenticatedUserService (com.sequenceiq.cloudbreak.controller.AuthenticatedUserService)1 NotFoundException (com.sequenceiq.cloudbreak.controller.NotFoundException)1 CloudbreakImageCatalogException (com.sequenceiq.cloudbreak.core.CloudbreakImageCatalogException)1 ImageCatalogRepository (com.sequenceiq.cloudbreak.repository.ImageCatalogRepository)1 AuthorizationService (com.sequenceiq.cloudbreak.service.AuthorizationService)1 AccountPreferencesService (com.sequenceiq.cloudbreak.service.account.AccountPreferencesService)1 StatedImage.statedImage (com.sequenceiq.cloudbreak.service.image.StatedImage.statedImage)1