use of com.sequenceiq.authorization.annotation.DisableCheckPermissions in project cloudbreak by hortonworks.
the class UtilV4Controller method deployment.
@Override
@DisableCheckPermissions
public DeploymentPreferencesV4Response deployment() {
DeploymentPreferencesV4Response response = new DeploymentPreferencesV4Response();
response.setFeatureSwitchV4s(preferencesService.getFeatureSwitches());
Set<SupportedExternalDatabaseServiceEntryV4Response> supportedExternalDatabases = SupportedDatabaseProvider.supportedExternalDatabases().stream().map(s -> supportedExternalDatabaseServiceEntryResponseConverter.convert(s)).collect(Collectors.toSet());
response.setSupportedExternalDatabases(supportedExternalDatabases);
response.setPlatformSelectionDisabled(preferencesService.isPlatformSelectionDisabled());
response.setPlatformEnablement(preferencesService.platformEnablement());
response.setGovPlatformEnablement(preferencesService.govPlatformEnablement());
return response;
}
use of com.sequenceiq.authorization.annotation.DisableCheckPermissions in project cloudbreak by hortonworks.
the class CredentialPlatformResourceController method getTagSpecifications.
@Override
@DisableCheckPermissions
public TagSpecificationsResponse getTagSpecifications() {
LOGGER.info("Get /platform_resources/tag_specifications");
Map<Platform, PlatformParameters> platformParameters = platformParameterService.getPlatformParameters();
TagSpecificationsResponse response = tagSpecificationsToTagSpecificationsV1ResponseConverter.convert(platformParameters);
LOGGER.info("Resp /platform_resources/tag_specifications, platformParameters: {}, response: {}", platformParameters, response);
return response;
}
use of com.sequenceiq.authorization.annotation.DisableCheckPermissions in project cloudbreak by hortonworks.
the class CredentialPlatformResourceController method getDisktypes.
@Override
@DisableCheckPermissions
public PlatformDisksResponse getDisktypes() {
LOGGER.info("Get /platform_resources/disk_types");
PlatformDisks disks = platformParameterService.getDiskTypes();
PlatformDisksResponse response = platformDisksToPlatformDisksV1ResponseConverter.convert(disks);
LOGGER.info("Resp /platform_resources/disk_types, disks: {}, response: {}", disks, response);
return response;
}
use of com.sequenceiq.authorization.annotation.DisableCheckPermissions in project cloudbreak by hortonworks.
the class ImageCatalogV4Controller method getImageByImageId.
@Override
@DisableCheckPermissions
public ImagesV4Response getImageByImageId(Long workspaceId, String imageId, @AccountId String accountId) throws Exception {
StatedImage statedImage = imageCatalogService.getImageByCatalogName(restRequestThreadLocalService.getRequestedWorkspaceId(), imageId, "");
Images images = new Images(List.of(), List.of(statedImage.getImage()), List.of(), Set.of());
return imagesToImagesV4ResponseConverter.convert(images);
}
Aggregations