public class AVM extends BaseTemplateProcessorExtension
| Constructor and Description |
|---|
AVM() |
| Modifier and Type | Method and Description |
|---|---|
String |
assetUrl(String avmPath) |
String |
assetUrl(String storeId,
String assetPath) |
List<AVMTemplateNode> |
getModifiedItems(String storeId,
String username,
String webapp)
Return the list of modified items for the specified user sandbox against staging store id
for a specific webapp.
|
List<AVMTemplateStore> |
getStores() |
static String |
getWebappsFolderPath() |
AVMTemplateNode |
lookupNode(String path)
Look a node by the absolute path.
|
AVMTemplateStore |
lookupStore(String store)
Return an AVM store object for the specified store name
|
AVMTemplateNode |
lookupStoreRoot(String store)
Return the root node for a specified AVM store
|
void |
setServiceRegistry(ServiceRegistry services)
Sets the service registry
|
static String |
stagingStore(String storeId) |
static String |
userSandboxStore(String storeId,
String username) |
String |
websiteStagingUrl(String storeId) |
String |
websiteUserSandboxUrl(String storeId,
String username) |
getTemplateImageResolver, setTemplateImageResolvergetExtensionName, register, setExtensionName, setProcessorpublic void setServiceRegistry(ServiceRegistry services)
services - the service registrypublic List<AVMTemplateStore> getStores()
public AVMTemplateStore lookupStore(String store)
store - Store name to lookuppublic AVMTemplateNode lookupStoreRoot(String store)
store - Store name to find root node forpublic AVMTemplateNode lookupNode(String path)
path - Absolute path to the node, including store reference.public List<AVMTemplateNode> getModifiedItems(String storeId, String username, String webapp)
storeId - Root Store IDusername - Username to get modified items forwebapp - Webapp name to filter bypublic static String stagingStore(String storeId)
storeId - Store ID to build staging store name forpublic static String userSandboxStore(String storeId, String username)
storeId - Store ID to build sandbox store name forusername - Username of the sandbox userpublic String websiteStagingUrl(String storeId)
storeId - Store ID to build preview URL forpublic String websiteUserSandboxUrl(String storeId, String username)
storeId - Store ID to build preview URL forusername - Username to build sandbox preview URL forpublic String assetUrl(String storeId, String assetPath)
store - Store ID of the assetassetPath - Store relative path to the assetpublic String assetUrl(String avmPath)
avmPath - Fully qualified AVM path of the assetpublic static String getWebappsFolderPath()
Copyright © 2005–2014 Alfresco Software. All rights reserved.