com.ptc.netmarkets.user
Class NmUserServiceFwd

java.lang.Object
  extended bycom.ptc.netmarkets.user.NmUserServiceFwd
All Implemented Interfaces:
NmUserService, RemoteAccess, Serializable

public class NmUserServiceFwd
extends Object
implements RemoteAccess, NmUserService, Serializable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private static String FC_RESOURCE
           
(package private) static boolean SERVER
           
 
Fields inherited from interface wt.method.RemoteAccess
versionID
 
Constructor Summary
NmUserServiceFwd()
           
 
Method Summary
 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
 TimeZone getLocalTimeZoneForUser()
          

Supported API: false
 TimeZone getLocalTimeZoneForUser(WTPrincipal user)
          Get the preferred TimeZone for the specified user.
 String getLocalTimeZoneStringForUser()
          

Supported API: false
private static Manager getManager()
           
 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
 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.
 String[][] getTimeZoneStrings()
          

Supported API: false
 String getUserName()
          

Supported API: false
 String getUserOrgName()
          

Supported API: false
 NmOid getUserOrgOid()
          

Supported API: false
 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
 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
 void processSwitchFormSubmittal(String signature, String invitedEmail, String registeredEmail, String dnToSwitch, String projectOID)
          

Supported API: false
 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
 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, toString, wait, wait, wait
 

Field Detail

SERVER

static final boolean SERVER

FC_RESOURCE

private static final String FC_RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Constructor Detail

NmUserServiceFwd

public NmUserServiceFwd()
Method Detail

getManager

private static Manager getManager()
                           throws WTException
Returns:
Manager
Throws:
WTException

removeUserFromRole

public NmChangeModel[] removeUserFromRole(NmCommandBean cb)
                                   throws WTException


Supported API: false

Specified by:
removeUserFromRole in interface NmUserService
Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

view

public NmModel view(NmCommandBean cb)
             throws WTException


Supported API: false

Specified by:
view in interface NmUserService
Parameters:
cb -
Returns:
NmModel
Throws:
WTException

sendSwitchForm

public void sendSwitchForm(String invitedEmail,
                           String registeredEmail,
                           String projectOID,
                           String dnToSwitch)
                    throws WTException


Supported API: false

Specified by:
sendSwitchForm in interface NmUserService
Parameters:
invitedEmail -
registeredEmail -
projectOID -
dnToSwitch -
Throws:
WTException

processSwitchFormSubmittal

public void processSwitchFormSubmittal(String signature,
                                       String invitedEmail,
                                       String registeredEmail,
                                       String dnToSwitch,
                                       String projectOID)
                                throws WTException


Supported API: false

Specified by:
processSwitchFormSubmittal in interface NmUserService
Parameters:
signature -
invitedEmail -
registeredEmail -
dnToSwitch -
projectOID -
Throws:
WTException

checkedOutStuff

public NmDefaultHTMLTable checkedOutStuff(NmCommandBean cb)
                                   throws WTException


Supported API: false

Specified by:
checkedOutStuff in interface NmUserService
Parameters:
cb -
Returns:
NmDefaultHTMLTable
Throws:
WTException

listUserEvents

public NmDefaultHTMLTable listUserEvents(NmCommandBean cb)
                                  throws WTException


Supported API: false

Specified by:
listUserEvents in interface NmUserService
Parameters:
cb -
Returns:
NmDefaultHTMLTable
Throws:
WTException

setUserProperties

public NmUser setUserProperties(NmOid userOid,
                                WTContainer container)
                         throws WTException


Supported API: false

Specified by:
setUserProperties in interface NmUserService
Parameters:
userOid -
container -
Returns:
NmUser
Throws:
WTException

setLocalTimeZoneForUser

public void setLocalTimeZoneForUser(TimeZone zone)
                             throws WTException


Supported API: false

Specified by:
setLocalTimeZoneForUser in interface NmUserService
Parameters:
zone -
Throws:
WTException

setLocalTimeZoneForUser

public void setLocalTimeZoneForUser(String zoneID)
                             throws WTException


Supported API: false

Specified by:
setLocalTimeZoneForUser in interface NmUserService
Parameters:
zoneID -
Throws:
WTException

getLocalTimeZoneForUser

public TimeZone getLocalTimeZoneForUser()
                                 throws WTException


Supported API: false

Specified by:
getLocalTimeZoneForUser in interface NmUserService
Returns:
TimeZone
Throws:
WTException

getLocalTimeZoneForUser

public TimeZone getLocalTimeZoneForUser(WTPrincipal user)
                                 throws WTException
Get the preferred TimeZone for the specified user.

Supported API: false

Specified by:
getLocalTimeZoneForUser in interface NmUserService
Parameters:
user -
Returns:
TimeZone
Throws:
WTException

getLocalTimeZoneStringForUser

public String getLocalTimeZoneStringForUser()
                                     throws WTException


Supported API: false

Specified by:
getLocalTimeZoneStringForUser in interface NmUserService
Returns:
String
Throws:
WTException

getTimeZoneStrings

public String[][] getTimeZoneStrings()
                              throws WTException


Supported API: false

Specified by:
getTimeZoneStrings in interface NmUserService
Returns:
String[][]
Throws:
WTException

getUserName

public String getUserName()
                   throws WTException


Supported API: false

Specified by:
getUserName in interface NmUserService
Returns:
String
Throws:
WTException

getUserOrgName

public String getUserOrgName()
                      throws WTException


Supported API: false

Specified by:
getUserOrgName in interface NmUserService
Returns:
String
Throws:
WTException

findOrgUsers

public ArrayList findOrgUsers(NmCommandBean cb,
                              String query,
                              int maxCount,
                              int clientType)
                       throws WTException
Searches the user repository and returns an ArrayList containing all users whose common name attribute contains the passed in query. All users returned are from the current session principals organization, or if the current session principal is an exchange admin and the current project is an organization, the users returned belong to the organization that is set as the current project.

Supported API: false

Specified by:
findOrgUsers in interface NmUserService
Parameters:
cb -
query -
maxCount -
clientType -
Returns:
ArrayList
Throws:
WTException

resolveAmbiguousEmail

public void resolveAmbiguousEmail(String existingUserRefString,
                                  String newUserRefString,
                                  NmOid nmprojectoid)
                           throws WTException
Searches the user repository and returns an ArrayList containing all users whose common name attribute contains the passed in query. All users returned are from the current session principals organization only.

Supported API: false

Specified by:
resolveAmbiguousEmail in interface NmUserService
Parameters:
existingUserRefString -
newUserRefString -
nmprojectoid -
Throws:
WTException

getProjectUserByEmail

public WTUser getProjectUserByEmail(NmOid nmprojectoid,
                                    String email)
                             throws WTException
Returns the WTUser object of the user identified by the passed in email from the current project.

Supported API: false

Specified by:
getProjectUserByEmail in interface NmUserService
Parameters:
nmprojectoid -
email -
Returns:
WTUser
Throws:
WTException

getProjectUserByEmail

public WTUser getProjectUserByEmail(Project2 project,
                                    String email)
                             throws WTException
Returns the WTUser object of the user identified by the passed in email from the current project.

Supported API: false

Specified by:
getProjectUserByEmail in interface NmUserService
Parameters:
project -
email -
Returns:
WTUser
Throws:
WTException

replaceUserInProject

public NmChangeModel[] replaceUserInProject(NmCommandBean cb,
                                            ArrayList users)
                                     throws WTException
Replaces the selected user with the new user.

Supported API: false

Specified by:
replaceUserInProject in interface NmUserService
Parameters:
cb -
users -
Returns:
NmChangeModel[]
Throws:
WTException

userHasCheckouts

public ArrayList userHasCheckouts(NmCommandBean cb,
                                  NmOid projectOid,
                                  NmOid userOid)
                           throws WTException
Returns null if the user does not have checkouts.

Supported API: false

Specified by:
userHasCheckouts in interface NmUserService
Parameters:
cb -
projectOid -
userOid -
Returns:
ArrayList
Throws:
WTException

getNmUser

public NmUser getNmUser(WTUser user,
                        WTContainer container)
                 throws WTException


Supported API: false

Specified by:
getNmUser in interface NmUserService
Parameters:
user -
container -
Returns:
NmUser
Throws:
WTException

getNmUserRegistered

public NmUser getNmUserRegistered(WTUser user)
                           throws WTException


Supported API: false

Specified by:
getNmUserRegistered in interface NmUserService
Parameters:
user -
Returns:
NmUser
Throws:
WTException

getNmUserLastFirst

public NmUser getNmUserLastFirst(WTUser user,
                                 ContainerTeamManaged container)
                          throws WTException


Supported API: false

Specified by:
getNmUserLastFirst in interface NmUserService
Parameters:
user -
container -
Returns:
NmUser
Throws:
WTException

getNmUserRegisteredLastFirst

public NmUser getNmUserRegisteredLastFirst(WTUser user)
                                    throws WTException


Supported API: false

Specified by:
getNmUserRegisteredLastFirst in interface NmUserService
Parameters:
user -
Returns:
NmUser
Throws:
WTException

isExchangeAdmin

public boolean isExchangeAdmin()
                        throws WTException


Supported API: false

Specified by:
isExchangeAdmin in interface NmUserService
Returns:
boolean
Throws:
WTException

getUserToProfile

public ArrayList getUserToProfile(NmCommandBean cb)
                           throws WTException
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

Specified by:
getUserToProfile in interface NmUserService
Parameters:
cb -
Returns:
ArrayList
Throws:
WTException

getUserOrgOid

public NmOid getUserOrgOid()
                    throws WTException


Supported API: false

Specified by:
getUserOrgOid in interface NmUserService
Returns:
NmOid
Throws:
WTException

findOrgGroups

public ArrayList findOrgGroups(NmCommandBean cb,
                               String query,
                               int maxCount,
                               int clientType)
                        throws WTException


Supported API: false

Specified by:
findOrgGroups in interface NmUserService
Parameters:
cb -
query -
maxCount -
clientType -
Returns:
ArrayList
Throws:
WTException

signMessage

public String signMessage(String msg)
                   throws WTException


Supported API: false

Specified by:
signMessage in interface NmUserService
Parameters:
msg -
Returns:
String
Throws:
WTException

verifySignedMessage

public boolean verifySignedMessage(String msg,
                                   String signature)
                            throws WTException


Supported API: false

Specified by:
verifySignedMessage in interface NmUserService
Parameters:
msg -
signature -
Returns:
boolean
Throws:
WTException

listAdmin

public NmDefaultHTMLTable listAdmin(NmCommandBean cb)
                             throws WTException


Supported API: false

Specified by:
listAdmin in interface NmUserService
Parameters:
cb -
Returns:
NmDefaultHTMLTable
Throws:
WTException

removeFromAdmin

public NmChangeModel[] removeFromAdmin(NmCommandBean cb,
                                       NmOid userOid)
                                throws WTException


Supported API: false

Specified by:
removeFromAdmin in interface NmUserService
Parameters:
cb -
userOid -
Returns:
NmChangeModel[]
Throws:
WTException

addToAdmin

public NmChangeModel[] addToAdmin(NmCommandBean cb,
                                  ArrayList users)
                           throws WTException


Supported API: false

Specified by:
addToAdmin in interface NmUserService
Parameters:
cb -
users -
Returns:
NmChangeModel[]
Throws:
WTException

getAdminRowData

public ArrayList getAdminRowData(NmUser nmUser)
                          throws WTException


Supported API: false

Specified by:
getAdminRowData in interface NmUserService
Parameters:
nmUser -
Returns:
ArrayList
Throws:
WTException

hasProjectLinkAccess

public boolean hasProjectLinkAccess()
                             throws WTException


Supported API: false

Specified by:
hasProjectLinkAccess in interface NmUserService
Returns:
boolean
Throws:
WTException

isOrgAdmin

public boolean isOrgAdmin(WTContainer container)
                   throws WTException


Supported API: false

Specified by:
isOrgAdmin in interface NmUserService
Parameters:
container -
Returns:
boolean
Throws:
WTException

isOrgAdmin

public boolean isOrgAdmin(NmOid containerOid)
                   throws WTException


Supported API: false

Specified by:
isOrgAdmin in interface NmUserService
Parameters:
containerOid -
Returns:
boolean
Throws:
WTException

isOrgAdmin

public boolean isOrgAdmin(NmCommandBean cb)
                   throws WTException


Supported API: false

Specified by:
isOrgAdmin in interface NmUserService
Parameters:
cb -
Returns:
boolean
Throws:
WTException