com.ptc.core.ca.co.client.misc
Class CoMiscHelper

java.lang.Object
  extended by com.ptc.core.ca.co.client.misc.CoMiscHelper

Deprecated.

@Deprecated
public abstract class CoMiscHelper
extends Object

Helps with finding the role a current principal plays in the given context.

Supported API: true

Extendable: false


Method Summary
static boolean checkInstallStatus(CoConfigFeature config)
          Deprecated. checks installation status of an application or a module.
static String checkInstallStatusOfSet(CoConfigFeature config, String toCheck)
          Deprecated. checks installation status of the set of applications and modules.
static String getRole(CoContext context, CoEnvData envData)
          Deprecated. Returns the role a current principal plays in the given context.
static String getTrailId(CoElement element, String ufid, CoEnvData envData)
          Deprecated. Returns the id that can be recorded in a trail file.
static void initInstallStatus()
          Deprecated. Initialized installation status of installed applications and modules.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRole

public static String getRole(CoContext context,
                             CoEnvData envData)
                      throws WTException
Deprecated. 
Returns the role a current principal plays in the given context.

This method first looks for role determinator defined in the given context. When found, it instantiates it and invokes getRole method passing the context, the configuration feature describing the role determinator, and conceptual environment.

Supported API: true

Parameters:
context - the context to find role determinator in.
envData - the conceptual environment
Returns:
String
Throws:
WTException

initInstallStatus

public static void initInstallStatus()
                              throws WTException
Deprecated. 
Initialized installation status of installed applications and modules.

Supported API: true

Throws:
WTException

checkInstallStatusOfSet

public static String checkInstallStatusOfSet(CoConfigFeature config,
                                             String toCheck)
                                      throws WTException
Deprecated. 
checks installation status of the set of applications and modules. Returns "true" or "false".

Supported API: true

Parameters:
config -
toCheck -
Returns:
String
Throws:
WTException

checkInstallStatus

public static boolean checkInstallStatus(CoConfigFeature config)
                                  throws WTException
Deprecated. 
checks installation status of an application or a module.

Supported API: true

Parameters:
config -
Returns:
boolean
Throws:
WTException

getTrailId

public static String getTrailId(CoElement element,
                                String ufid,
                                CoEnvData envData)
                         throws WTException
Deprecated. 
Returns the id that can be recorded in a trail file.

Supported API: true

Parameters:
element -
ufid -
envData - the conceptual environment
Returns:
String
Throws:
WTException