com.ptc.windchill.enterprise.client
Class WindchillRoleDeterminator
java.lang.Object
com.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WindchillRoleDeterminator
public WindchillRoleDeterminator()
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 determinatorconfig
- the configuration feature describing role determinatorenvData
- the conceptual environment
- Returns:
- String
- Throws:
WTException