cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

WTUser vs WTPrincipal

TG_10272716
12-Amethyst

WTUser vs WTPrincipal

Hello, I am currently querying users by email.

 

I am doing it this way - so target is WTUser

querySpec.appendWhere(new SearchCondition(WTUser.class, WTUser.EMAIL, SearchCondition.EQUAL, email,false), new int[]{0});

 

But I also found this way:

OrganizationServicesHelper.manager.queryPrincipals(...)

 

Do both solutions go through the entire user list of Windchill since the second one is for principals and not for users?

And what is the general difference between WTUser and WTPrincipal or are they the same?

 

BR

ACCEPTED SOLUTION

Accepted Solutions

Hi @TG_10272716 

A WTUser is subClass of the WTPrincipal so yes they are "same".

PetrH

View solution in original post

1 REPLY 1

Hi @TG_10272716 

A WTUser is subClass of the WTPrincipal so yes they are "same".

PetrH

Announcements


Top Tags