|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.netmarkets.model.NmObjectHelper
Supported API: false
Extendable: false
Nested Class Summary | |
static class |
NmObjectHelper.RequestAttConstants
|
Constructor Summary | |
NmObjectHelper()
|
Method Summary | |
static void |
addDiscussTable(NmCommandBean cb,
HashMap map)
|
static HashMap |
addSandboxInfo(HashMap info,
RevisionControlled object)
Returns the Map passed in, altered to contain the following keys... |
static HashMap |
addShareInfo(HashMap info,
Persistable object,
SharedContainerMap scm)
|
static boolean |
canSeeAllDetails(NmCommandBean cb)
|
static boolean |
canSeeAllDetails(NmCommandBean cb,
NmOid oid)
|
static EnumeratedType[] |
filterEnumeratedType(EnumeratedType[] values)
Return a set of EnumeratedType's with the values whose selectable flag is true. |
static Integer |
getIntFromString(String view,
int defaultInt)
|
static String |
getName(Object obj,
Locale locale)
|
static boolean |
getProjectLinkPref(String key,
boolean defaultValue)
|
static boolean |
getProjectLinkPref(String key,
WTContainerRef containerRef,
boolean defaultValue)
|
static Integer |
getSelectedForumView(NmOid contextOid,
NmSessionBean sessionBean,
Object req)
|
static Timestamp |
getTimestamp(String date_str)
Parse the specified date string and return a Timestamp
representing the date specified by the string. |
static String |
getVersionDisplay(Iterated iteration)
Returns the string representing the version identifier to be displayed in the UI. |
static boolean |
hasModifyOnOid(NmOid oid)
|
static boolean |
hasSoftAttributes(String type)
|
static boolean |
isPasteCopy(NmCommandBean cb)
|
static boolean |
isPasteLink(NmCommandBean cb)
|
static boolean |
isPasteShare(NmCommandBean cb)
|
static boolean |
isReadOnlyUser(WTContainer container)
Determines whether the user who is trying to access a given container is a "read only" user, such as a member of the Guest group or a person for whom a Read rule has been written at the Org Default domain. |
private static String |
prettyUpLocation(String location)
|
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(NmObjectHelper 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 |
private static final String RESOURCE
private static final String CLASSNAME
public static final NmObjectService service
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
public static final String MISC_RESOURCE
public static final String PROJMGMT_RESOURCE
public static final String PJLJ_IGNORE_CACHE
public static final String TYPE_ALL
public static final String TYPE_PROJECT
public static final String TYPE_DOCUMENT
public static final String TYPE_PART
public static final String TYPE_MILESTONE
public static final String TYPE_DELIVERABLE
public static final String TYPE_MEETING
public static final String TYPE_PROJ_ACTIVITY
public static final String SCOPE_PROJECT
public static final String SCOPE_GLOBAL
public static final String MODEL_DEFAULT
public static final int SELECT_TYPE_NONE
public static final int SELECT_TYPE_SINGLE
public static final int SELECT_TYPE_MULTI
public static final String QUERY_0
public static final String QUERY_1
public static final String QUERY_2
public static final String QUERY_3
public static final String CB_COPY
public static final String CB_LINK
public static final String CB_SHARE
public static final String CHOICE
public static final String PRODUCT_STRUCTURE
public static final String IS_SANDBOX_OBJECT
public static final String IS_SANDBOX_CHECKEDOUT
public static final String SOURCE_LOCATION
public static final String SOURCE_PROPS_URL
public static final String SOURCE_CONTAINER
public static final String SOURCE_SHARE_CONTAINER
public static final String SOURCE_SHARE_LOCATION
public static final String TARGET_SHARE_LOCATION
public static final String SHARED_BY
public static final String SHARED_ON
public static final String CHECKEDOUT_BY
public static final String CHECKEDIN_BY
public static final String CHECKOUT_DATE
public static final String OBJECT_NAME
public static final String LOCATION
public static final String IS_VIEW_FROM_SHARE
public static final String CGI_DATA
public static final String HTTPSTATE_OBJECT
public static final String SKIP_IF_NOT
Constructor Detail |
public NmObjectHelper()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(NmObjectHelper thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public static boolean isReadOnlyUser(WTContainer container)
container
-
public static boolean hasSoftAttributes(String type) throws WTException
WTException
public static boolean isPasteCopy(NmCommandBean cb)
public static boolean isPasteShare(NmCommandBean cb)
public static boolean isPasteLink(NmCommandBean cb)
public static Integer getIntFromString(String view, int defaultInt)
public static String getVersionDisplay(Iterated iteration) throws WTException
iteration
-
WTException
public static HashMap addSandboxInfo(HashMap info, RevisionControlled object) throws WTException
info
- the Map to be altered to contain sandbox informationobject
- the object that is to supply the sandbox information
WTException
public static HashMap addShareInfo(HashMap info, Persistable object, SharedContainerMap scm) throws WTException
WTException
public static String getName(Object obj, Locale locale)
public static boolean canSeeAllDetails(NmCommandBean cb) throws WTException
WTException
public static boolean canSeeAllDetails(NmCommandBean cb, NmOid oid) throws WTException
WTException
public static boolean hasModifyOnOid(NmOid oid) throws WTException
WTException
public static Integer getSelectedForumView(NmOid contextOid, NmSessionBean sessionBean, Object req) throws Exception
Exception
public static void addDiscussTable(NmCommandBean cb, HashMap map) throws WTException
WTException
private static String prettyUpLocation(String location) throws WTException
WTException
public static EnumeratedType[] filterEnumeratedType(EnumeratedType[] values) throws WTException
values
- - the array of EnumeratedType objects to be filtered.
WTException
public static Timestamp getTimestamp(String date_str) throws WTException
Timestamp
representing the date specified by the string. The string is
expected to be in the format specified by projmgmtResource.PARSE_DATE
.
That format only specifies month, day and year. The returned timestamp
is midnight on the day specified in the time zone of the current user.
Therefore if the date string specifies May 15, 2002
and
the current user's time zone is Central Daylight Time
then
the timestamp that is returned will represent May 15, 2002 12:00 AM CDT
.
date_str
- the string to parse
WTException
public static boolean getProjectLinkPref(String key, boolean defaultValue) throws WTException
WTException
public static boolean getProjectLinkPref(String key, WTContainerRef containerRef, boolean defaultValue) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |