com.ptc.netmarkets.user
Class NmUserHelper

java.lang.Object
  extended bycom.ptc.netmarkets.user.NmUserHelper
All Implemented Interfaces:
Externalizable, Serializable

public class NmUserHelper
extends Object
implements Externalizable

All of the constants in this class used to reference attributes from an attributeHolder held by a WTUser object have been deprecated at ProjectLink Release 7.0. The list of deprecated and now removed constants include the following...

Suitable replacements can be found in the WTUser class.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
static int ADD_TO_MEETING_CLIENT
           
static int ADD_TO_TEAM_CLIENT
           
static String APPEND_TO_CLIPBOARD
           
private static String CLASSNAME
           
static int DEFAULT_NAME_TRUNCATE
           
static String DOC_OVERVIEW_CHK_ROW_ACTIONS
           
static String EPM_OVERVIEW_CHK_ROW_ACTIONS
           
static long EXTERNALIZATION_VERSION_UID
           
static String JS_MENU
           
static String LAST_PAGE
           
static String LIMIT
           
static String NAME_TRUNCATE
           
protected static long OLD_FORMAT_VERSION_UID
           
static int ORG_ADMIN_GROUP_CLIENT
           
static int ORG_CREATOR_GROUP_CLIENT
           
static int ORG_PUBLIC_GROUPS_CLIENT
           
static String PART_OVERVIEW_CHK_ROW_ACTIONS
           
static String PDM_DOC_OVERVIEW_CHK_ROW_ACTIONS
           
static String PDM_EPM_OVERVIEW_CHK_ROW_ACTIONS
           
static String PDM_PART_OVERVIEW_CHK_ROW_ACTIONS
           
static String PDM_ROW_ACTIONS
           
static String PROJECT_OBJ_OVERVIEW_CHK_ROW_ACTIONS
           
static int REPLACE_IN_TEAM_CLIENT
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
(package private) static boolean SERVER
           
static NmUserService service
          

Supported API: false
static int SITE_ADMIN_GROUP_CLIENT
           
static String TIME_ZONE_PREF_KEY
           
static String TIMEZONE_KEY
           
static String USE_MORE
           
private static boolean VERBOSE
           
 
Constructor Summary
NmUserHelper()
           
 
Method Summary
static String getLastNameFirstName(WTUser user)
          Construct the "last, first" form of a user's name based on the values of WTUser.FULL_NAME and WTUser.SURNAME

Supported API: false
static TimeZone getLocalTimeZoneForUser()
           
static TimeZone getLocalTimeZoneForUser(WTPrincipal user)
           
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
private  boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source, which is not the current version.
protected  boolean readVersion(NmUserHelper thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

service

public static final NmUserService service


Supported API: false


serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values

TIME_ZONE_PREF_KEY

public static final String TIME_ZONE_PREF_KEY
See Also:
Constant Field Values

JS_MENU

public static final String JS_MENU
See Also:
Constant Field Values

LAST_PAGE

public static final String LAST_PAGE
See Also:
Constant Field Values

USE_MORE

public static final String USE_MORE
See Also:
Constant Field Values

APPEND_TO_CLIPBOARD

public static final String APPEND_TO_CLIPBOARD
See Also:
Constant Field Values

LIMIT

public static final String LIMIT
See Also:
Constant Field Values

DOC_OVERVIEW_CHK_ROW_ACTIONS

public static final String DOC_OVERVIEW_CHK_ROW_ACTIONS
See Also:
Constant Field Values

PART_OVERVIEW_CHK_ROW_ACTIONS

public static final String PART_OVERVIEW_CHK_ROW_ACTIONS
See Also:
Constant Field Values

EPM_OVERVIEW_CHK_ROW_ACTIONS

public static final String EPM_OVERVIEW_CHK_ROW_ACTIONS
See Also:
Constant Field Values

PDM_DOC_OVERVIEW_CHK_ROW_ACTIONS

public static final String PDM_DOC_OVERVIEW_CHK_ROW_ACTIONS
See Also:
Constant Field Values

PDM_PART_OVERVIEW_CHK_ROW_ACTIONS

public static final String PDM_PART_OVERVIEW_CHK_ROW_ACTIONS
See Also:
Constant Field Values

PDM_EPM_OVERVIEW_CHK_ROW_ACTIONS

public static final String PDM_EPM_OVERVIEW_CHK_ROW_ACTIONS
See Also:
Constant Field Values

PROJECT_OBJ_OVERVIEW_CHK_ROW_ACTIONS

public static final String PROJECT_OBJ_OVERVIEW_CHK_ROW_ACTIONS
See Also:
Constant Field Values

PDM_ROW_ACTIONS

public static final String PDM_ROW_ACTIONS
See Also:
Constant Field Values

NAME_TRUNCATE

public static final String NAME_TRUNCATE
See Also:
Constant Field Values

DEFAULT_NAME_TRUNCATE

public static final int DEFAULT_NAME_TRUNCATE
See Also:
Constant Field Values

TIMEZONE_KEY

public static final String TIMEZONE_KEY
See Also:
Constant Field Values

SERVER

static final boolean SERVER

VERBOSE

private static final boolean VERBOSE
See Also:
Constant Field Values

ADD_TO_TEAM_CLIENT

public static final int ADD_TO_TEAM_CLIENT
See Also:
Constant Field Values

REPLACE_IN_TEAM_CLIENT

public static final int REPLACE_IN_TEAM_CLIENT
See Also:
Constant Field Values

ADD_TO_MEETING_CLIENT

public static final int ADD_TO_MEETING_CLIENT
See Also:
Constant Field Values

ORG_PUBLIC_GROUPS_CLIENT

public static final int ORG_PUBLIC_GROUPS_CLIENT
See Also:
Constant Field Values

ORG_CREATOR_GROUP_CLIENT

public static final int ORG_CREATOR_GROUP_CLIENT
See Also:
Constant Field Values

ORG_ADMIN_GROUP_CLIENT

public static final int ORG_ADMIN_GROUP_CLIENT
See Also:
Constant Field Values

SITE_ADMIN_GROUP_CLIENT

public static final int SITE_ADMIN_GROUP_CLIENT
See Also:
Constant Field Values
Constructor Detail

NmUserHelper

public NmUserHelper()
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(NmUserHelper thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

getLastNameFirstName

public static String getLastNameFirstName(WTUser user)
                                   throws WTException
Construct the "last, first" form of a user's name based on the values of WTUser.FULL_NAME and WTUser.SURNAME

Supported API: false

Parameters:
user -
Returns:
String
Throws:
WTException

getLocalTimeZoneForUser

public static TimeZone getLocalTimeZoneForUser()
                                        throws WTException
Throws:
WTException

getLocalTimeZoneForUser

public static TimeZone getLocalTimeZoneForUser(WTPrincipal user)
                                        throws WTException
Throws:
WTException