@Component(value="blMultiTenantStaticAssetExtensionHandler")
public class MultiTenantStaticAssetExtensionHandler
extends org.broadleafcommerce.common.extension.AbstractExtensionHandler
implements org.broadleafcommerce.common.file.service.BroadleafStaticAssetExtensionHandler
| Modifier and Type | Field and Description |
|---|---|
protected org.broadleafcommerce.cms.file.StaticAssetMultiTenantExtensionManager |
extensionManager |
protected org.broadleafcommerce.cms.file.dao.StaticAssetDao |
staticAssetDao |
| Constructor and Description |
|---|
MultiTenantStaticAssetExtensionHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
generateUUIDString()
Generates a 6 character UUID string that we can appened to the media url.
|
protected String |
getMTUniqueURL(String fullUrl,
String uuid)
Returns the altered URL name of the image if same image name exist across multiple sites.
|
void |
init() |
org.broadleafcommerce.common.extension.ExtensionResultStatusType |
modifyDuplicateAssetURL(StringBuilder urlBuilder) |
org.broadleafcommerce.common.extension.ExtensionResultStatusType |
removeShareOptionsForMTStandardSite(org.springframework.ui.Model model,
org.broadleafcommerce.common.site.domain.Site currentSite) |
getPriority, isEnabled, setEnabled, setPriorityprotected org.broadleafcommerce.cms.file.StaticAssetMultiTenantExtensionManager extensionManager
protected org.broadleafcommerce.cms.file.dao.StaticAssetDao staticAssetDao
public MultiTenantStaticAssetExtensionHandler()
@PostConstruct public void init()
public org.broadleafcommerce.common.extension.ExtensionResultStatusType removeShareOptionsForMTStandardSite(org.springframework.ui.Model model,
org.broadleafcommerce.common.site.domain.Site currentSite)
removeShareOptionsForMTStandardSite in interface org.broadleafcommerce.common.file.service.BroadleafStaticAssetExtensionHandlerpublic org.broadleafcommerce.common.extension.ExtensionResultStatusType modifyDuplicateAssetURL(StringBuilder urlBuilder)
modifyDuplicateAssetURL in interface org.broadleafcommerce.common.file.service.BroadleafStaticAssetExtensionHandlerprotected String generateUUIDString()
protected String getMTUniqueURL(String fullUrl, String uuid)
fullUrl - uuid - Copyright © 2020. All rights reserved.