Uses of Class
com.broadleafcommerce.asset.domain.Asset
Packages that use Asset
Package
Description
- 
Uses of Asset in com.broadleafcommerce.asset.domain
Methods in com.broadleafcommerce.asset.domain that return types with arguments of type AssetModifier and TypeMethodDescriptionFileUploadState.getUploadedAsset()TheListof the uploadedAssetMethod parameters in com.broadleafcommerce.asset.domain with type arguments of type AssetModifier and TypeMethodDescriptionvoidFileUploadState.setUploadedAsset(List<Asset> uploadedAsset) TheListof the uploadedAsset - 
Uses of Asset in com.broadleafcommerce.asset.jackson
Methods in com.broadleafcommerce.asset.jackson with parameters of type AssetModifier and TypeMethodDescriptionContentUrlResolver.getContentUrl(Asset asset) Builds and returns a fully resolved content URL path that can be used to directly fetch the binary data of the asset.ServletContentUrlResolver.getContentUrl(Asset asset) If thestorageTypeis internal, the content URL will be the result of prepending the necessary prefixes (like the content provider URL) to theurl. - 
Uses of Asset in com.broadleafcommerce.asset.messaging
Methods in com.broadleafcommerce.asset.messaging that return types with arguments of type AssetModifier and TypeMethodDescriptionprotected AssetService<Asset>ProcessAssetsListener.getAssetService()Methods in com.broadleafcommerce.asset.messaging with parameters of type AssetModifier and TypeMethodDescriptionprotected com.broadleafcommerce.data.tracking.core.context.ContextInfoProcessAssetsListener.buildContextInfoForAsset(Asset asset) Constructor parameters in com.broadleafcommerce.asset.messaging with type arguments of type AssetModifierConstructorDescriptionProcessAssetsListener(com.broadleafcommerce.common.messaging.service.IdempotentMessageConsumptionService idempotentConsumptionService, AssetService<Asset> assetService, StorageProvider storageProvider, StorageService storageService, List<AssetDataRouteSupporting> routes)  - 
Uses of Asset in com.broadleafcommerce.asset.service
Classes in com.broadleafcommerce.asset.service with type parameters of type AssetModifier and TypeInterfaceDescriptioninterfaceAssetService<P extends Asset>Base service API forAsset.classDefaultAssetService<P extends Asset>Fields in com.broadleafcommerce.asset.service with type parameters of type AssetModifier and TypeFieldDescriptionprotected final AssetService<Asset>DefaultStorageService.assetServiceMethods in com.broadleafcommerce.asset.service that return AssetModifier and TypeMethodDescriptionprotected AssetDefaultStorageService.generateAssetForUploadRequest(Asset assetRequest, String mimeType, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Generates a newAssetobject for an upload using the mime type and optional properties provided inassetRequest.protected AssetDefaultFileUploadStateHydrationService.getHydratedOrLog(Asset unhydrated, Map<String, Asset> foundAssetsById) Returns the fully-populated instance ofunhydratedif it was found, otherwise logs a warning and returnsunhydratedas-is.DefaultStorageService.uploadResource(org.springframework.web.multipart.MultipartFile file, Asset assetRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, boolean optimizeImg) StorageService.uploadResource(org.springframework.web.multipart.MultipartFile file, Asset assetRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, boolean optimizeImg) Uploads a single file, creating anAssetfor it (optionally using details specified inassetRequestif present).Methods in com.broadleafcommerce.asset.service that return types with arguments of type AssetModifier and TypeMethodDescriptionDefaultStorageService.createAssetsForSuccessfullyUploadedFiles(DefaultStorageService.ZipExtractionResult zipExtractionResult, Map<String, String> contextDiscriminatedUrlsByNormalizedPath, Map<String, Folder> createdFoldersByNormalizedPath, BulkAddResourcesResponse addResourcesResponse, Asset assetRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) CreatesAssetsin the data store for the files that were successfully uploaded to the storage provider.DefaultFileUploadStateHydrationService.findAssetsAndCollectToMap(List<String> assetIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) DefaultStorageService.generateAssetsForFiles(Stream<Map.Entry<String, File>> filesByNormalizedPath, Map<String, String> contextDiscriminatedUrlsByNormalizedPath, Map<String, Folder> createdFoldersByNormalizedPath, Asset assetRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected AssetService<Asset>DefaultFileUploadStateHydrationService.getAssetService()org.springframework.data.domain.Page<Asset>AssetService.readAllAssetsInFolder(String folderId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageInfo, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads all of the assets in the given folder.org.springframework.data.domain.Page<Asset>DefaultAssetService.readAllAssetsInFolder(String folderId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageInfo, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Methods in com.broadleafcommerce.asset.service with parameters of type AssetModifier and TypeMethodDescriptionvoidDefaultStorageService.addAttributesToAsset(@NonNull Asset asset, @NonNull ResourceWithMetadata resource) Responsible for adding any attributes to the asset that are derived from the uploadedResource.voidDefaultStorageService.addAttributesToAsset(@NonNull Asset asset, @NonNull File file) Responsible for adding any attributes to the asset that are derived from the uploaded file.voidStorageService.addAttributesToAsset(Asset asset, ResourceWithMetadata resource) Add attributes to the asset based on the resource.voidStorageService.addAttributesToAsset(Asset asset, File file) Add attributes to the asset based on the file.default voidStorageService.addAttributesToAsset(Asset asset, org.springframework.core.io.Resource resource) Add attributes to the asset based on the resource.protected voidDefaultStorageService.addImageAttributes(@NonNull Asset asset, @NonNull Dimension imageDimension) DefaultStorageService.createAllFolders(Map<String, Folder> foldersToCreateByNormalizedPath, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, Asset assetRequest) Creates all of the givenFoldersin the data store, and returns the created items.DefaultStorageService.createAssetsForSuccessfullyUploadedFiles(DefaultStorageService.ZipExtractionResult zipExtractionResult, Map<String, String> contextDiscriminatedUrlsByNormalizedPath, Map<String, Folder> createdFoldersByNormalizedPath, BulkAddResourcesResponse addResourcesResponse, Asset assetRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) CreatesAssetsin the data store for the files that were successfully uploaded to the storage provider.protected AssetDefaultStorageService.generateAssetForUploadRequest(Asset assetRequest, String mimeType, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Generates a newAssetobject for an upload using the mime type and optional properties provided inassetRequest.DefaultStorageService.generateAssetsForFiles(Stream<Map.Entry<String, File>> filesByNormalizedPath, Map<String, String> contextDiscriminatedUrlsByNormalizedPath, Map<String, Folder> createdFoldersByNormalizedPath, Asset assetRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected AssetDefaultFileUploadStateHydrationService.getHydratedOrLog(Asset unhydrated, Map<String, Asset> foundAssetsById) Returns the fully-populated instance ofunhydratedif it was found, otherwise logs a warning and returnsunhydratedas-is.protected StringDefaultStorageService.getParentFolderId(String normalizedPath, Map<String, Folder> createdFoldersByNormalizedPath, Asset assetRequest) Gets the parent directory path fromnormalizedPath, gets theFolderfor that parent directory path increatedFoldersByNormalizedPath, and returns itsFolder.getId().protected voidDefaultStorageService.mapEligibleProperties(Asset targetAsset, Asset source) protected voidDefaultStorageService.processZipExtractionResult(DefaultStorageService.ZipExtractionResult zipExtractionResult, FileUploadState uploadState, Asset assetRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, boolean optimizeImg) Deprecated.protected voidDefaultStorageService.processZipExtractionResult(DefaultStorageService.ZipExtractionResult zipExtractionResult, FileUploadState uploadState, Asset assetRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, boolean optimizeImg, boolean ignoreFolderName) Given aDefaultStorageService.ZipExtractionResult, creates all of the necessaryFoldersin the data store, uploads the extracted files to the storage provider (after optimizing them if necessary), and createsAssetsin the data store for all successfully uploaded files.voidDefaultStorageService.unzipAndUploadResourcesAsync(File sourceZipFile, String fileUploadStateId, Asset assetRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, boolean optimizeImg) Deprecated.voidDefaultStorageService.unzipAndUploadResourcesAsync(File sourceZipFile, String fileUploadStateId, Asset assetRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, boolean optimizeImg, boolean ignoreFolderName) voidStorageService.unzipAndUploadResourcesAsync(File sourceZipFile, String fileUploadStateId, Asset assetRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, boolean optimizeImg) Deprecated.voidStorageService.unzipAndUploadResourcesAsync(File sourceZipFile, String fileUploadStateId, Asset assetRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, boolean optimizeImg, boolean ignoreFolderName) DefaultStorageService.uploadResource(org.springframework.web.multipart.MultipartFile file, Asset assetRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, boolean optimizeImg) StorageService.uploadResource(org.springframework.web.multipart.MultipartFile file, Asset assetRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, boolean optimizeImg) Uploads a single file, creating anAssetfor it (optionally using details specified inassetRequestif present).Method parameters in com.broadleafcommerce.asset.service with type arguments of type AssetModifier and TypeMethodDescriptionprotected FileUploadStateDefaultFileUploadStateHydrationService.applyHydration(FileUploadState state, Map<String, Asset> foundAssetsById) protected AssetDefaultFileUploadStateHydrationService.getHydratedOrLog(Asset unhydrated, Map<String, Asset> foundAssetsById) Returns the fully-populated instance ofunhydratedif it was found, otherwise logs a warning and returnsunhydratedas-is.Constructor parameters in com.broadleafcommerce.asset.service with type arguments of type AssetModifierConstructorDescriptionDefaultFileUploadStateHydrationService(AssetService<Asset> assetService) DefaultStorageService(AssetService<Asset> assetService, FolderService<Folder> folderService, jakarta.servlet.MultipartConfigElement multipartConfigElement, StorageProvider storageProvider, InternalAssetProperties internalAssetProperties, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ImageOperationService imageOperationService, FileUploadStateService<FileUploadState> fileUploadStateService, jakarta.activation.FileTypeMap mimeFileTypeMap, AssetUrlGenerationHelper assetUrlGenerationHelper, com.broadleafcommerce.common.extension.data.DataRouteReference reference)  - 
Uses of Asset in com.broadleafcommerce.asset.service.autoconfigure
Method parameters in com.broadleafcommerce.asset.service.autoconfigure with type arguments of type AssetModifier and TypeMethodDescriptionAssetServiceAutoConfiguration.fileUploadStateHydrationService(AssetService<Asset> assetService)  - 
Uses of Asset in com.broadleafcommerce.asset.service.support
Methods in com.broadleafcommerce.asset.service.support that return types with arguments of type AssetModifier and TypeMethodDescriptionprotected AssetService<Asset>AssetUrlGenerationHelper.getAssetService()Methods in com.broadleafcommerce.asset.service.support with parameters of type AssetModifier and TypeMethodDescriptionAssetStorageUtils.getContextAwareUrl(Asset asset, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns thegetUrl()prepended with a tenant discriminated prefix based on theContextInfo.static StringStorageUtils.getContextAwareUrl(Asset asset, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.Returns thegetUrl()prepended with a tenant discriminated prefix based on theContextInfo.Constructor parameters in com.broadleafcommerce.asset.service.support with type arguments of type Asset - 
Uses of Asset in com.broadleafcommerce.asset.service.validation
Methods in com.broadleafcommerce.asset.service.validation that return types with arguments of type AssetMethods in com.broadleafcommerce.asset.service.validation with parameters of type AssetModifier and TypeMethodDescriptionprotected voidAssetValidator.validateFolderId(Asset asset, org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected voidAssetValidator.validateLastUpdatedDate(Asset asset, org.springframework.validation.Errors errors) protected voidAssetValidator.validateStorageTypeDependentFields(Asset asset, org.springframework.validation.Errors errors) protected voidAssetValidator.validateType(Asset asset, org.springframework.validation.Errors errors) protected voidAssetValidator.validateUrlAndEmbedCode(Asset asset, org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Method parameters in com.broadleafcommerce.asset.service.validation with type arguments of type AssetModifier and TypeMethodDescriptionvoidAssetValidator.setAssetService(AssetService<Asset> assetService) Lazy injection since this validator is itself a service component. - 
Uses of Asset in com.broadleafcommerce.asset.web.endpoint
Methods in com.broadleafcommerce.asset.web.endpoint that return AssetModifier and TypeMethodDescriptionAssetEndpoint.create(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, Asset req) AssetEndpoint.read(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, String id) AssetEndpoint.update(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, String id, AssetEndpoint.AssetUpdate assetUpdate) FileUploadEndpoint.uploadFile(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, Asset asset, org.springframework.web.multipart.MultipartFile file, Boolean optimizeImg) Methods in com.broadleafcommerce.asset.web.endpoint that return types with arguments of type AssetModifier and TypeMethodDescriptionprotected AssetService<Asset>AssetEndpoint.getAssetService()protected AssetService<Asset>ContentResolverEndpoint.getService()org.springframework.data.domain.Page<Asset>FolderEndpoint.readAllAssetContentsOfFolder(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, String folderId, org.springframework.data.domain.Pageable pageInfo, cz.jirutka.rsql.parser.ast.Node filters) org.springframework.data.domain.Page<Asset>AssetEndpoint.readAllAssets(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, String searchString, org.springframework.data.domain.Pageable pageInfo, cz.jirutka.rsql.parser.ast.Node filters) Methods in com.broadleafcommerce.asset.web.endpoint with parameters of type AssetModifier and TypeMethodDescriptionprotected voidContentResolverEndpoint.applyContentDisposition(ResourceWithMetadata resourceWithMetadata, org.springframework.http.ResponseEntity.BodyBuilder responseBuilder, Asset asset) protected voidContentResolverEndpoint.applyContentDisposition(org.springframework.core.io.Resource resource, org.springframework.http.ResponseEntity.BodyBuilder responseBuilder, Asset asset) Deprecated, for removal: This API element is subject to removal in a future version.AssetEndpoint.create(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, Asset req) FileUploadEndpoint.uploadFile(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, Asset asset, org.springframework.web.multipart.MultipartFile file, Boolean optimizeImg) FileUploadEndpoint.uploadMultiFile(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, org.springframework.web.multipart.MultipartFile file, Asset asset, Boolean optimizeImg) Constructor parameters in com.broadleafcommerce.asset.web.endpoint with type arguments of type AssetModifierConstructorDescriptionAssetEndpoint(AssetService<Asset> assetService, FolderService<Folder> folderService, StorageService storageService) ContentResolverEndpoint(ContentResolverService contentResolverService, InternalAssetProperties internalAssetProperties, AssetService<Asset> service, jakarta.activation.FileTypeMap mimeFileTypeMap, com.broadleafcommerce.data.tracking.core.tenant.service.CommonApplicationService<com.broadleafcommerce.data.tracking.core.tenant.domain.Application> applicationService) FolderEndpoint(FolderService<Folder> folderService, AssetService<Asset> assetService)  
StorageService.unzipAndUploadResourcesAsync(File, String, Asset, ContextInfo, boolean, boolean)