public class WCMCompareUtils
extends java.lang.Object
| Constructor and Description |
|---|
WCMCompareUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List |
getAllVersionID(org.alfresco.wcm.sandbox.SandboxService sandboxService,
java.lang.String store)
Get the versions id in an AVMStore
|
static java.util.List |
getComparedNodes(org.alfresco.service.cmr.avmsync.AVMSyncService avmSyncService,
int srcVersion,
java.lang.String srcPath,
int dstVersion,
java.lang.String dstPath,
org.alfresco.util.NameMatcher excluder)
Get a difference map between two corresponding node trees.
|
static int |
getPrevVersionID(org.alfresco.wcm.sandbox.SandboxService sandboxService,
java.lang.String name,
int version)
Get Previous Version Id
|
static boolean |
isFirstVersion(java.util.List versions,
org.alfresco.wcm.sandbox.SandboxVersion item)
checks the version of the first is accessible for Store
|
static boolean |
isLatestVersion(java.util.List versions,
org.alfresco.wcm.sandbox.SandboxVersion item)
checks the version of the last is accessible for Store
|
static java.util.List |
receiveStoresList(org.alfresco.service.cmr.avm.AVMService avmService)
Receive Stores List
|
public static java.util.List getComparedNodes(org.alfresco.service.cmr.avmsync.AVMSyncService avmSyncService,
int srcVersion,
java.lang.String srcPath,
int dstVersion,
java.lang.String dstPath,
org.alfresco.util.NameMatcher excluder)
avmSyncService - AVMSyncServicesrcVersion - The version id for the source tree.srcPath - The avm path to the source tree.dstVersion - The version id for the destination tree.dstPath - The avm path to the destination tree.excluder - A NameMatcher used to exclude files from consideration.public static boolean isFirstVersion(java.util.List versions,
org.alfresco.wcm.sandbox.SandboxVersion item)
versions - versions of specified store.item - Versionpublic static boolean isLatestVersion(java.util.List versions,
org.alfresco.wcm.sandbox.SandboxVersion item)
versions - versions of specified store.item - Versionpublic static int getPrevVersionID(org.alfresco.wcm.sandbox.SandboxService sandboxService,
java.lang.String name,
int version)
sandboxService - SandboxServicename - The name of the AVMStoreversion - Current version Idpublic static java.util.List receiveStoresList(org.alfresco.service.cmr.avm.AVMService avmService)
avmService - AVMServicepublic static java.util.List getAllVersionID(org.alfresco.wcm.sandbox.SandboxService sandboxService,
java.lang.String store)
sandboxService - SandboxServicestore - The name of the AVMStoreCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.