com.ptc.windchill.cadx.common.util
Class ContainerDataSharingUtilities

java.lang.Object
  extended bycom.ptc.windchill.cadx.common.util.ContainerDataSharingUtilities

public class ContainerDataSharingUtilities
extends Object


Field Summary
private static boolean VERBOSE
           
 
Constructor Summary
ContainerDataSharingUtilities()
           
 
Method Summary
private static void addEnabledClause(QuerySpec qs, int enabled_status)
          Adds a clause to the query spec that restricts the maps returned to those with the same status as the one passed as argument.
static QueryResult filterShares(QueryResult result, WTContainer container)
          Remove from results objects that were shared and then checked out to the container.
static QueryResult filterSharesCheckedOutToSandbox(QueryResult result, WTContainer container)
          Remove from results objects that were shared and then checked out to the container.
static Map getSharedRefreshCandidates(WTContainer container)
           
private static ObjectVector toObjectVector(SortedEnumeration results)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERBOSE

private static boolean VERBOSE
Constructor Detail

ContainerDataSharingUtilities

public ContainerDataSharingUtilities()
Method Detail

toObjectVector

private static ObjectVector toObjectVector(SortedEnumeration results)

addEnabledClause

private static void addEnabledClause(QuerySpec qs,
                                     int enabled_status)
                              throws WTException
Adds a clause to the query spec that restricts the maps returned to those with the same status as the one passed as argument. A boolean argument CLONED from wt.inf.sharing.StandrdDataSharingService.addEnabledClause method

Throws:
WTException

getSharedRefreshCandidates

public static Map getSharedRefreshCandidates(WTContainer container)

filterShares

public static QueryResult filterShares(QueryResult result,
                                       WTContainer container)
                                throws WTException
Remove from results objects that were shared and then checked out to the container. Previous versions not in Sandbox are removed. Terminal objects are removed.

Throws:
WTException

filterSharesCheckedOutToSandbox

public static QueryResult filterSharesCheckedOutToSandbox(QueryResult result,
                                                          WTContainer container)
                                                   throws WTException
Remove from results objects that were shared and then checked out to the container.

Throws:
WTException