|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StaticAssetService
Created by bpolster.
| Method Summary | |
|---|---|
StaticAsset |
addStaticAsset(StaticAsset staticAsset,
SandBox destinationSandbox)
This method is intended to be called from within the CMS admin only. |
String |
convertAssetPath(String assetPath,
String contextPath,
boolean secureRequest)
This method will take in an assetPath (think image url) and convert it if the value contains the asseturlprefix. |
Long |
countAssets(SandBox sandbox,
org.hibernate.Criteria criteria)
|
void |
deleteStaticAsset(StaticAsset staticAsset,
SandBox destinationSandbox)
If deleting and item where page.originalPageId != null then the item is deleted from the database. |
List<StaticAsset> |
findAssets(SandBox sandbox,
org.hibernate.Criteria criteria)
|
StaticAsset |
findStaticAssetByFullUrl(String fullUrl,
SandBox targetSandBox)
|
StaticAsset |
findStaticAssetById(Long id)
|
boolean |
getAutomaticallyApproveAndPromoteStaticAssets()
If set to true, then this service will not use the SandBox concept and will instead automatically promote images to production as they are entered into the system. |
String |
getStaticAssetEnvironmentSecureUrlPrefix()
Returns the secure value of the environment url prefix (e.g. |
String |
getStaticAssetEnvironmentUrlPrefix()
Returns the value configured for the current environment for the static asset url prefix. |
String |
getStaticAssetUrlPrefix()
Returns the value configured to mark an item as a static URL. |
void |
setAutomaticallyApproveAndPromoteStaticAssets(boolean setting)
If set to true, then this service will not use the SandBox concept and will instead automatically promote images to production as they are entered into the system. |
void |
setStaticAssetEnvironmentUrlPrefix(String prefix)
Sets the environment url prefix. |
void |
setStaticAssetUrlPrefix(String prefix)
|
StaticAsset |
updateStaticAsset(StaticAsset staticAsset,
SandBox sandbox)
This method is intended to be called from within the CMS admin only. |
| Methods inherited from interface org.broadleafcommerce.openadmin.server.domain.SandBoxItemListener |
|---|
itemPromoted, itemRejected, itemReverted |
| Method Detail |
|---|
StaticAsset findStaticAssetById(Long id)
StaticAsset findStaticAssetByFullUrl(String fullUrl,
SandBox targetSandBox)
StaticAsset addStaticAsset(StaticAsset staticAsset,
SandBox destinationSandbox)
StaticAsset updateStaticAsset(StaticAsset staticAsset,
SandBox sandbox)
void deleteStaticAsset(StaticAsset staticAsset,
SandBox destinationSandbox)
staticAsset - destinationSandbox -
Long countAssets(SandBox sandbox,
org.hibernate.Criteria criteria)
List<StaticAsset> findAssets(SandBox sandbox,
org.hibernate.Criteria criteria)
String getStaticAssetUrlPrefix()
void setStaticAssetUrlPrefix(String prefix)
String getStaticAssetEnvironmentUrlPrefix()
String getStaticAssetEnvironmentSecureUrlPrefix()
void setStaticAssetEnvironmentUrlPrefix(String prefix)
prefix - boolean getAutomaticallyApproveAndPromoteStaticAssets()
void setAutomaticallyApproveAndPromoteStaticAssets(boolean setting)
String convertAssetPath(String assetPath,
String contextPath,
boolean secureRequest)
assetPath - - The path to rewrite if it is a cms managed assetcontextPath - - The context path of the web application (if applicable)secureRequest - - True if the request is being served over https
getStaticAssetUrlPrefix(),
getStaticAssetEnvironmentUrlPrefix()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||