com.ptc.windchill.enterprise.client
Class WindchillRoleDeterminator

java.lang.Object
  extended bycom.ptc.windchill.enterprise.client.WindchillRoleDeterminator
All Implemented Interfaces:
CoRoleDeterminator

public class WindchillRoleDeterminator
extends Object
implements CoRoleDeterminator

RoleDeterminator class for DCA configurations that returns roleId="admin", for an Administrator of a container, roleId="siteadmin", for the site administrator, and roleId="user" for a non-adminstrator.

Supported API: false


Constructor Summary
WindchillRoleDeterminator()
           
 
Method Summary
 String getRole(CoContext context, CoConfigFeature config, CoEnvData envData)
          Returns the role the current principal plays in the given context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindchillRoleDeterminator

public WindchillRoleDeterminator()
Method Detail

getRole

public String getRole(CoContext context,
                      CoConfigFeature config,
                      CoEnvData envData)
               throws WTException
Description copied from interface: CoRoleDeterminator
Returns the role the current principal plays in the given context.

Supported API: true

Specified by:
getRole in interface CoRoleDeterminator
Parameters:
context - the context of the role determinator
config - the configuration feature describing role determinator
envData - the conceptual environment
Returns:
String
Throws:
WTException