|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
com.ptc.netmarkets.user.StandardNmUserService
Use the newStandardNmUserService
static factory method(s),
not the StandardNmUserService
constructor, to construct
instances of this class. Instances must be constructed using the static
factory(s), in order to ensure proper initialization of the instance.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CHECKOUT_FOLDER
|
private static String |
CLASSNAME
|
private static String |
CMDCLASSNAME
|
private static String |
LIMITED
|
private static boolean |
PDMSystemInstalled
|
private static String |
RESOURCE
|
private static String |
SENDER_EMAIL
|
private static String |
TABLE_SCOPE
This following constant has to match the value of CHECKOUT_FOLDER in StandardWorkInProgressService . |
private static String |
TIME_ZONE_RESOURCE
|
private static boolean |
VERBOSE
|
private static String |
WIP_RESOURCE
|
Fields inherited from class wt.services.StandardManager |
|
Fields inherited from interface wt.services.Manager |
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE |
Constructor Summary | |
StandardNmUserService()
|
Method Summary | |
private void |
_handleMismatchedEmails(String invitedEmail,
String registeredEmail,
String projectOID,
String dnToSwitch)
|
private void |
_handleMismatchedEmails(WTUser invitedUser,
WTUser newUser,
Project2 project)
|
NmChangeModel[] |
addToAdmin(NmCommandBean cb,
ArrayList users)
Supported API: false |
NmDefaultHTMLTable |
checkedOutStuff(NmCommandBean cb)
Supported API: false |
ArrayList |
findOrgGroups(NmCommandBean cb,
String query,
int maxCount,
int clientType)
Supported API: false |
ArrayList |
findOrgUsers(NmCommandBean cb,
String query,
int maxCount,
int clientType)
Searches the user repository and returns an ArrayList containing all users whose common name attribute contains the passed in query. |
ArrayList |
getAdminRowData(NmUser nmUser)
Supported API: false |
private Folder |
getCheckoutFolder()
Get the current user's Checked Out folder. |
String |
getConceptualClassname()
Deprecated. |
private WTContainer |
getContainerContextForQuery(NmCommandBean cb)
|
TimeZone |
getLocalTimeZoneForUser()
Supported API: false |
TimeZone |
getLocalTimeZoneForUser(WTPrincipal user)
Get the preferred TimeZone for the specified user . |
String |
getLocalTimeZoneStringForUser()
Supported API: false |
private ArrayList |
getMembersGroups(WTUser user)
|
NmUser |
getNmUser(WTUser user,
WTContainer container)
Supported API: false |
NmUser |
getNmUserLastFirst(WTUser user,
ContainerTeamManaged container)
Supported API: false |
NmUser |
getNmUserRegistered(WTUser user)
Supported API: false |
NmUser |
getNmUserRegisteredLastFirst(WTUser user)
Supported API: false |
private String |
getObjectIconImgTag(WTObject obj)
|
WTUser |
getProjectUserByEmail(NmOid nmprojectoid,
String email)
Returns the WTUser object of the user identified by the passed in email from the current project. |
WTUser |
getProjectUserByEmail(Project2 project,
String email)
Returns the WTUser object of the user identified by the passed in email from the current project. |
private PrivateKey |
getSitePrivateKey()
|
private PublicKey |
getSitePublicKey()
|
private TimeZone |
getTimeZoneFromID(String zoneID)
|
private TimeZone |
getTimeZoneFromOffset(String zoneID)
|
private String |
getTimeZonePref(String[] contextMask)
|
String[][] |
getTimeZoneStrings()
Supported API: false |
private NmURL |
getURLObject(WTObject obj)
|
String |
getUserName()
Supported API: false |
String |
getUserOrgName()
Supported API: false |
NmOid |
getUserOrgOid()
Supported API: false |
private String |
getUserTimeZonePref()
|
private String |
getUserTimeZonePref(WTUser user)
|
ArrayList |
getUserToProfile(NmCommandBean cb)
gets the user's directory attributes (index 0) and local time zone (index 1) for the user on the url if the user has access else the current user Supported API: false |
boolean |
hasProjectLinkAccess()
Supported API: false |
private NmDefaultHTMLTable |
initializeCheckoutTable()
|
boolean |
isExchangeAdmin()
Supported API: false |
boolean |
isOrgAdmin(NmCommandBean cb)
Supported API: false |
boolean |
isOrgAdmin(NmOid containerOid)
Supported API: false |
boolean |
isOrgAdmin(WTContainer container)
Supported API: false |
NmDefaultHTMLTable |
listAdmin(NmCommandBean cb)
Supported API: false |
NmDefaultHTMLTable |
listUserEvents(NmCommandBean cb)
Supported API: false |
static StandardNmUserService |
newStandardNmUserService()
Default factory for the class. |
private boolean |
populateCheckedOutTable(NmDefaultHTMLTable CheckoutTable,
NmCommandBean cb,
ObjectReference objectRef,
int select,
int row,
boolean isProjectChk,
boolean pendingChange)
|
private int |
populateCheckedOutTable(NmDefaultHTMLTable checkoutTable,
NmCommandBean cb,
Set objectRefs,
int select,
int row,
boolean isProjectChk)
|
private void |
populateReportErrorTableRow(int index,
NmDefaultHTMLTable CheckoutTable)
|
void |
processSwitchFormSubmittal(String signature,
String invitedEmail,
String registeredEmail,
String dnToSwitch,
String projectOID)
Supported API: false |
private ArrayList |
profileList(NmOid oid,
Boolean bool)
|
NmChangeModel[] |
removeFromAdmin(NmCommandBean cb,
NmOid userOid)
Supported API: false |
NmChangeModel[] |
removeUserFromRole(NmCommandBean cb)
Supported API: false |
NmChangeModel[] |
replaceUserInProject(NmCommandBean cb,
ArrayList users)
Replaces the selected user with the new user. |
void |
resolveAmbiguousEmail(String existingUserRefString,
String newUserRefString,
NmOid nmprojectoid)
Searches the user repository and returns an ArrayList containing all users whose common name attribute contains the passed in query. |
void |
sendSwitchForm(String invitedEmail,
String registeredEmail,
String projectOID,
String dnToSwitch)
Supported API: false |
private void |
setColumnSort(NmDefaultHTMLTable reportTable,
boolean isColumnSortAllowed)
|
void |
setLocalTimeZoneForUser(String zoneID)
Supported API: false |
void |
setLocalTimeZoneForUser(TimeZone zone)
Supported API: false |
NmUser |
setUserProperties(NmOid userOid,
WTContainer container)
Supported API: false |
String |
signMessage(String msg)
Supported API: false |
ArrayList |
userHasCheckouts(NmCommandBean cb,
NmOid projectOid,
NmOid userOid)
Returns null if the user does not have checkouts. |
boolean |
verifySignedMessage(String msg,
String signature)
Supported API: false |
NmModel |
view(NmCommandBean cb)
Supported API: false |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static final String CMDCLASSNAME
private static final boolean VERBOSE
private static final String SENDER_EMAIL
private static final String TABLE_SCOPE
StandardWorkInProgressService
. I wish that
constant was public rather than private.
private static final String LIMITED
private static final String CHECKOUT_FOLDER
private static final String WIP_RESOURCE
private static final String TIME_ZONE_RESOURCE
private static boolean PDMSystemInstalled
Constructor Detail |
public StandardNmUserService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
public static StandardNmUserService newStandardNmUserService() throws WTException
WTException
public NmChangeModel[] removeUserFromRole(NmCommandBean cb) throws WTException
removeUserFromRole
in interface NmUserService
cb
-
WTException
public NmModel view(NmCommandBean cb) throws WTException
view
in interface NmUserService
cb
-
WTException
public void sendSwitchForm(String invitedEmail, String registeredEmail, String projectOID, String dnToSwitch) throws WTException
sendSwitchForm
in interface NmUserService
invitedEmail
- registeredEmail
- projectOID
- dnToSwitch
-
WTException
public void processSwitchFormSubmittal(String signature, String invitedEmail, String registeredEmail, String dnToSwitch, String projectOID) throws WTException
processSwitchFormSubmittal
in interface NmUserService
signature
- invitedEmail
- registeredEmail
- dnToSwitch
- projectOID
-
WTException
public NmDefaultHTMLTable checkedOutStuff(NmCommandBean cb) throws WTException
checkedOutStuff
in interface NmUserService
cb
-
WTException
public NmDefaultHTMLTable listUserEvents(NmCommandBean cb) throws WTException
listUserEvents
in interface NmUserService
cb
-
WTException
public NmUser setUserProperties(NmOid userOid, WTContainer container) throws WTException
setUserProperties
in interface NmUserService
userOid
- container
-
WTException
public void setLocalTimeZoneForUser(TimeZone zone) throws WTException
setLocalTimeZoneForUser
in interface NmUserService
zone
-
WTException
public void setLocalTimeZoneForUser(String zoneID) throws WTException
setLocalTimeZoneForUser
in interface NmUserService
zoneID
-
WTException
public TimeZone getLocalTimeZoneForUser() throws WTException
getLocalTimeZoneForUser
in interface NmUserService
WTException
public TimeZone getLocalTimeZoneForUser(WTPrincipal user) throws WTException
TimeZone
for the specified user
.
getLocalTimeZoneForUser
in interface NmUserService
user
-
WTException
public String getLocalTimeZoneStringForUser() throws WTException
getLocalTimeZoneStringForUser
in interface NmUserService
WTException
public String[][] getTimeZoneStrings() throws WTException
getTimeZoneStrings
in interface NmUserService
WTException
public String getUserName() throws WTException
getUserName
in interface NmUserService
WTException
public String getUserOrgName() throws WTException
getUserOrgName
in interface NmUserService
WTException
public ArrayList findOrgUsers(NmCommandBean cb, String query, int maxCount, int clientType) throws WTException
findOrgUsers
in interface NmUserService
cb
- query
- maxCount
- clientType
-
WTException
public void resolveAmbiguousEmail(String existingUserRefString, String newUserRefString, NmOid nmprojectoid) throws WTException
resolveAmbiguousEmail
in interface NmUserService
existingUserRefString
- newUserRefString
- nmprojectoid
-
WTException
public WTUser getProjectUserByEmail(NmOid nmprojectoid, String email) throws WTException
getProjectUserByEmail
in interface NmUserService
nmprojectoid
- email
-
WTException
public WTUser getProjectUserByEmail(Project2 project, String email) throws WTException
getProjectUserByEmail
in interface NmUserService
project
- email
-
WTException
public NmChangeModel[] replaceUserInProject(NmCommandBean cb, ArrayList users) throws WTException
replaceUserInProject
in interface NmUserService
cb
- users
-
WTException
public ArrayList userHasCheckouts(NmCommandBean cb, NmOid projectOid, NmOid userOid) throws WTException
userHasCheckouts
in interface NmUserService
cb
- projectOid
- userOid
-
WTException
public NmUser getNmUser(WTUser user, WTContainer container) throws WTException
getNmUser
in interface NmUserService
user
- container
-
WTException
public NmUser getNmUserRegistered(WTUser user) throws WTException
getNmUserRegistered
in interface NmUserService
user
-
WTException
public NmUser getNmUserLastFirst(WTUser user, ContainerTeamManaged container) throws WTException
getNmUserLastFirst
in interface NmUserService
user
- container
-
WTException
public NmUser getNmUserRegisteredLastFirst(WTUser user) throws WTException
getNmUserRegisteredLastFirst
in interface NmUserService
user
-
WTException
public boolean isExchangeAdmin() throws WTException
isExchangeAdmin
in interface NmUserService
WTException
public ArrayList getUserToProfile(NmCommandBean cb) throws WTException
getUserToProfile
in interface NmUserService
cb
-
WTException
public NmOid getUserOrgOid() throws WTException
getUserOrgOid
in interface NmUserService
WTException
public ArrayList findOrgGroups(NmCommandBean cb, String query, int maxCount, int clientType) throws WTException
findOrgGroups
in interface NmUserService
cb
- query
- maxCount
- clientType
-
WTException
public String signMessage(String msg) throws WTException
signMessage
in interface NmUserService
msg
-
WTException
public boolean verifySignedMessage(String msg, String signature) throws WTException
verifySignedMessage
in interface NmUserService
msg
- signature
-
WTException
public NmDefaultHTMLTable listAdmin(NmCommandBean cb) throws WTException
listAdmin
in interface NmUserService
cb
-
WTException
public NmChangeModel[] removeFromAdmin(NmCommandBean cb, NmOid userOid) throws WTException
removeFromAdmin
in interface NmUserService
cb
- userOid
-
WTException
public NmChangeModel[] addToAdmin(NmCommandBean cb, ArrayList users) throws WTException
addToAdmin
in interface NmUserService
cb
- users
-
WTException
public ArrayList getAdminRowData(NmUser nmUser) throws WTException
getAdminRowData
in interface NmUserService
nmUser
-
WTException
public boolean hasProjectLinkAccess() throws WTException
hasProjectLinkAccess
in interface NmUserService
WTException
public boolean isOrgAdmin(WTContainer container) throws WTException
isOrgAdmin
in interface NmUserService
container
-
WTException
public boolean isOrgAdmin(NmOid containerOid) throws WTException
isOrgAdmin
in interface NmUserService
containerOid
-
WTException
public boolean isOrgAdmin(NmCommandBean cb) throws WTException
isOrgAdmin
in interface NmUserService
cb
-
WTException
private Folder getCheckoutFolder() throws WTException
Checked Out
folder.
This is an alternative implementation of
StandardWorkInProgressService.getCheckoutFolder()
that does not require a call to
StandardFolderService.getFolder(String)
.
That method requires a call to
wt.projmgmt.admin.StandardProjAdminService#findSearchConditions
and that method is a performance bottle-neck when called with a
null
container argument - as it is in this case because
the Checked Out
folder is in the global USER
domain.
WTException
StandardWorkInProgressService.getCheckoutFolder()
private TimeZone getTimeZoneFromOffset(String zoneID)
private String getUserTimeZonePref()
private String getUserTimeZonePref(WTUser user)
private String getTimeZonePref(String[] contextMask)
private TimeZone getTimeZoneFromID(String zoneID)
private void _handleMismatchedEmails(WTUser invitedUser, WTUser newUser, Project2 project) throws WTException
WTException
private void _handleMismatchedEmails(String invitedEmail, String registeredEmail, String projectOID, String dnToSwitch) throws WTException
WTException
private ArrayList getMembersGroups(WTUser user) throws WTException
WTException
private ArrayList profileList(NmOid oid, Boolean bool) throws WTException
WTException
private PrivateKey getSitePrivateKey() throws WTException
WTException
private PublicKey getSitePublicKey() throws WTException
WTException
private NmURL getURLObject(WTObject obj) throws WTException
WTException
private String getObjectIconImgTag(WTObject obj) throws WTException
WTException
private WTContainer getContainerContextForQuery(NmCommandBean cb) throws WTException
WTException
private NmDefaultHTMLTable initializeCheckoutTable() throws WTException
WTException
private int populateCheckedOutTable(NmDefaultHTMLTable checkoutTable, NmCommandBean cb, Set objectRefs, int select, int row, boolean isProjectChk) throws WTException
WTException
private boolean populateCheckedOutTable(NmDefaultHTMLTable CheckoutTable, NmCommandBean cb, ObjectReference objectRef, int select, int row, boolean isProjectChk, boolean pendingChange) throws WTException
WTException
private void populateReportErrorTableRow(int index, NmDefaultHTMLTable CheckoutTable) throws WTException
WTException
private void setColumnSort(NmDefaultHTMLTable reportTable, boolean isColumnSortAllowed) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |