org.alfresco.web.bean.wcm
Class WCMCompareUtils

java.lang.Object
  extended by org.alfresco.web.bean.wcm.WCMCompareUtils

public class WCMCompareUtils
extends java.lang.Object

AVMCompare Utils


Constructor Summary
WCMCompareUtils()
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WCMCompareUtils

public WCMCompareUtils()
Method Detail

getComparedNodes

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)
Get a difference map between two corresponding node trees.

Parameters:
avmSyncService - AVMSyncService
srcVersion - 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.
Returns:
list of compared objects

isFirstVersion

public static boolean isFirstVersion(java.util.List versions,
                                     org.alfresco.wcm.sandbox.SandboxVersion item)
checks the version of the first is accessible for Store

Parameters:
versions - versions of specified store.
item - Version
Returns:
true if version is first

isLatestVersion

public static boolean isLatestVersion(java.util.List versions,
                                      org.alfresco.wcm.sandbox.SandboxVersion item)
checks the version of the last is accessible for Store

Parameters:
versions - versions of specified store.
item - Version
Returns:
true if version is latest

getPrevVersionID

public static int getPrevVersionID(org.alfresco.wcm.sandbox.SandboxService sandboxService,
                                   java.lang.String name,
                                   int version)
Get Previous Version Id

Parameters:
sandboxService - SandboxService
name - The name of the AVMStore
version - Current version Id
Returns:
Previous Version Id

receiveStoresList

public static java.util.List receiveStoresList(org.alfresco.service.cmr.avm.AVMService avmService)
Receive Stores List

Parameters:
avmService - AVMService
Returns:
List Stores name

getAllVersionID

public static java.util.List getAllVersionID(org.alfresco.wcm.sandbox.SandboxService sandboxService,
                                             java.lang.String store)
Get the versions id in an AVMStore

Parameters:
sandboxService - SandboxService
store - The name of the AVMStore
Returns:
List versions id


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.