mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Some cleaning up of the AVMService and derived interfaces.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4624 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -311,7 +311,7 @@ public class AVMBrowseBean implements IContextListener
|
||||
ResourceBundle msg = Application.getBundle(fc);
|
||||
String storeRoot = (String)getWebsite().getProperties().get(WCMAppModel.PROP_AVMSTORE);
|
||||
String stagingStore = getStagingStore();
|
||||
AVMStoreDescriptor store = this.avmService.getAVMStore(stagingStore);
|
||||
AVMStoreDescriptor store = this.avmService.getStore(stagingStore);
|
||||
if (store != null)
|
||||
{
|
||||
// count user stores
|
||||
|
@@ -68,7 +68,7 @@ public class AVMWorkflowUtil extends WorkflowUtil
|
||||
AVMNodeDescriptor packagesDesc = avmService.lookup(-1, packagesRoot);
|
||||
if (packagesDesc == null)
|
||||
{
|
||||
avmService.createAVMStore(STORE_WORKFLOW_SYSTEM);
|
||||
avmService.createStore(STORE_WORKFLOW_SYSTEM);
|
||||
avmService.createDirectory(STORE_WORKFLOW_SYSTEM + ":/", FOLDER_PACKAGES);
|
||||
}
|
||||
return packagesRoot;
|
||||
|
@@ -79,11 +79,11 @@ public class DeleteSandboxDialog extends BaseDialogBean
|
||||
|
||||
// purge the user main sandbox store from the system
|
||||
String sandbox = AVMConstants.buildAVMUserMainStoreName(storeRoot, username);
|
||||
this.avmService.purgeAVMStore(sandbox);
|
||||
this.avmService.purgeStore(sandbox);
|
||||
|
||||
// purge the user preview sandbox store from the system
|
||||
sandbox = AVMConstants.buildAVMUserPreviewStoreName(storeRoot, username);
|
||||
this.avmService.purgeAVMStore(sandbox);
|
||||
this.avmService.purgeStore(sandbox);
|
||||
|
||||
// remove the association to this web project user meta-data
|
||||
this.nodeService.removeChild(website.getNodeRef(), ref.getChildRef());
|
||||
|
@@ -79,9 +79,9 @@ public class DeleteWebsiteDialog extends DeleteSpaceDialog
|
||||
private void deleteStore(String store)
|
||||
{
|
||||
// check it exists before we try to remove it
|
||||
if (this.avmService.getAVMStore(store) != null)
|
||||
if (this.avmService.getStore(store) != null)
|
||||
{
|
||||
this.avmService.purgeAVMStore(store);
|
||||
this.avmService.purgeStore(store);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -216,7 +216,7 @@ public class ImportWebsiteDialog
|
||||
if (storeRoot != null && webapp != null)
|
||||
{
|
||||
String store = AVMConstants.buildAVMStagingStoreName(storeRoot);
|
||||
if (this.avmService.getAVMStore(store) != null)
|
||||
if (this.avmService.getStore(store) != null)
|
||||
{
|
||||
// get the path to the root webapp import area of the store
|
||||
String rootPath = AVMConstants.buildAVMStoreWebappPath(store, webapp);
|
||||
|
@@ -75,7 +75,7 @@ public final class SandboxFactory
|
||||
|
||||
// create the 'staging' store for the website
|
||||
String stagingStore = AVMConstants.buildAVMStagingStoreName(name);
|
||||
avmService.createAVMStore(stagingStore);
|
||||
avmService.createStore(stagingStore);
|
||||
if (logger.isDebugEnabled())
|
||||
logger.debug("Created staging sandbox store: " + stagingStore);
|
||||
|
||||
@@ -106,7 +106,7 @@ public final class SandboxFactory
|
||||
|
||||
// create the 'preview' store for the website
|
||||
String previewStore = AVMConstants.buildAVMStagingPreviewStoreName(name);
|
||||
avmService.createAVMStore(previewStore);
|
||||
avmService.createStore(previewStore);
|
||||
if (logger.isDebugEnabled())
|
||||
logger.debug("Created staging sandbox store: " + previewStore);
|
||||
|
||||
@@ -175,9 +175,9 @@ public final class SandboxFactory
|
||||
|
||||
// create the user 'main' store
|
||||
String userStore = AVMConstants.buildAVMUserMainStoreName(name, username);
|
||||
if (avmService.getAVMStore(userStore) == null)
|
||||
if (avmService.getStore(userStore) == null)
|
||||
{
|
||||
avmService.createAVMStore(userStore);
|
||||
avmService.createStore(userStore);
|
||||
if (logger.isDebugEnabled())
|
||||
logger.debug("Created user sandbox store: " + userStore);
|
||||
|
||||
@@ -218,7 +218,7 @@ public final class SandboxFactory
|
||||
|
||||
// create the user 'preview' store
|
||||
String previewStore = AVMConstants.buildAVMUserPreviewStoreName(name, username);
|
||||
avmService.createAVMStore(previewStore);
|
||||
avmService.createStore(previewStore);
|
||||
if (logger.isDebugEnabled())
|
||||
logger.debug("Created user sandbox store: " + previewStore);
|
||||
|
||||
|
@@ -174,7 +174,7 @@ public class UISandboxSnapshots extends SelfRenderingComponent
|
||||
String dateFilter = getDateFilter();
|
||||
if (dateFilter == null || dateFilter.equals(FILTER_DATE_ALL))
|
||||
{
|
||||
versions = avmService.getAVMStoreVersions(sandbox);
|
||||
versions = avmService.getStoreVersions(sandbox);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -201,7 +201,7 @@ public class UISandboxSnapshots extends SelfRenderingComponent
|
||||
{
|
||||
throw new IllegalArgumentException("Unknown date filter mode: " + dateFilter);
|
||||
}
|
||||
versions = avmService.getAVMStoreVersions(sandbox, fromDate, toDate);
|
||||
versions = avmService.getStoreVersions(sandbox, fromDate, toDate);
|
||||
}
|
||||
Map requestMap = context.getExternalContext().getRequestMap();
|
||||
for (VersionDescriptor item : versions)
|
||||
|
@@ -296,7 +296,7 @@ public class UIUserSandboxes extends SelfRenderingComponent
|
||||
String mainStore = AVMConstants.buildAVMUserMainStoreName(storeRoot, username);
|
||||
|
||||
// check it exists before we render the view
|
||||
if (avmService.getAVMStore(mainStore) != null)
|
||||
if (avmService.getStore(mainStore) != null)
|
||||
{
|
||||
// check the permissions on this store for the current user
|
||||
if (logger.isDebugEnabled())
|
||||
|
Reference in New Issue
Block a user