com.ptc.netmarkets.folder
Class NmFolderHelper

java.lang.Object
  extended bycom.ptc.netmarkets.folder.NmFolderHelper
All Implemented Interfaces:
Externalizable, Serializable

public class NmFolderHelper
extends Object
implements Externalizable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
static int ACTION_A_COLUMN
           
static int ACTION_B_COLUMN
           
static int ACTION_C_COLUMN
           
static int ACTION_COLUMN
           
static int ACTION_D_COLUMN
           
static int ACTION_E_COLUMN
           
static int CHECKED_OUT_COLUMN
           
private static WTOrganization classicDefaultOrg
           
private static String CLASSNAME
           
private static int colNum
           
static String CONTAINER_OID
           
static String CREATED_IN_PROJECT
           
static String DELIVERABLES
           
static String DISCUSSED
           
static String DOMAIN_PREF_KEY
           
static String DOMAIN_PREF_PATH
           
static long EXTERNALIZATION_VERSION_UID
           
private static String FILES_LMT
           
private static String FILES_VIEW
           
private static String FOLDER_LIST_RESOURCE
           
static String FOLDERS_AND_CONTENTS
           
static String ICON
           
static String IN_WORK
           
private static String INTERNAL_ORG_NAMES
           
private static HashSet internalOrgSet
           
static String LAST_FILES_CONTEXT
           
static String LAST_FILES_PAGE
           
static String LAST_FILES_TIME
           
static String LAST_FILES_TYPE
           
static int LATEST_COLUMN
           
static String LINKS_ONLY
           
static String LOCATION
           
static String LOCATION_GREATERTHAN_3
           
static String LOCATION_LEVEL_1
           
static String LOCATION_LEVEL_1_DISPLAY
           
static String LOCATION_LEVEL_1_SECURED
           
static String LOCATION_LEVEL_2
           
static String LOCATION_LEVEL_2_DISPLAY
           
static String LOCATION_LEVEL_2_SECURED
           
static String LOCATION_LEVEL_3
           
static String LOCATION_LEVEL_3_DISPLAY
           
static String LOCATION_LEVEL_3_SECURED
           
static int MODIFIED_BY_COLUMN
           
static int MODIFIED_DATE_COLUMN
           
static int NAME_COLUMN
           
static String NBSP
           
static String NO_LIMIT
           
static String NOT_RELEASED
           
static int NUMBER_COLUMN
           
static int NUMBER_OF_COLUMNS
           
protected static long OLD_FORMAT_VERSION_UID
           
static String OUT_OF_DATE_SHARES
           
static String PDM_CHECKIN_APPLY
           
static int PENDING_CHANGE_COLUMN
           
static String PENDING_CHANGES
           
static String PROMOTIONS
           
static String RELEASED
           
private static String RESOURCE
           
static String ROUTED
           
static String SANDBOX
           
static int SANDBOX_COLUMN
           
static String SELECTED_VIEW
           
(package private) static long serialVersionUID
           
static NmFolderService service
          

Supported API: false
static String SHARED
           
static int SHARED_COLUMN
           
static boolean SHOW_DELIVERABLE_ICON_PJL
           
static boolean SHOW_DISCUSS_ICON_PDM
           
static boolean SHOW_DISCUSS_ICON_PJL
           
static boolean SHOW_NUMBER_PJL
           
static boolean SHOW_ROUTING_ICON_PJL
           
static boolean SHOW_VERSION_PJL
           
static boolean SHOWFOLDERSPLUSVIEW
           
static int STATE_COLUMN
           
static String TABLE_AUTHOR
           
static String TABLE_CAD_DOCS
           
static String TABLE_DOCS
           
static String TABLE_LAST_MODIFIED
           
static String TABLE_MY
           
static String TABLE_MY_SANDBOX
           
static String TABLE_PARTS
           
static String TREE_VIEW
           
static int TYPE_COLUMN
           
static int TYPE_ICON_COLUMN
           
private static boolean VERBOSE
           
static int VERSION_COLUMN
           
 
Constructor Summary
NmFolderHelper()
           
 
Method Summary
private static void addContainerInfo(Cabinet cabinet, NmNamedObject nm_folder, HashMap map)
           
static ArrayList getAuthors(NmModel model)
           
static WTOrganization getClassicDefaultOrg()
           
private static Set getInternalOrgSet()
           
static String getLocationOfObject(Persistable p)
           
static String getLocationOfObject(Persistable p, boolean isProject)
           
static void getLocationOfObject(Persistable p, HashMap map)
           
private static Folder initializeNmFolderForLocation(FolderEntry entry, HashMap map, String locationString, String securedInfoString, boolean isWindchillPDMObject)
           
static boolean isInternalOrganization(WTOrganization organization)
           
static boolean isNewNumRequired(WTOrganization organization, Class clazz)
           
static boolean matchLocales(Locale loc1, Locale loc2)
           
 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(NmFolderHelper 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 NmFolderService 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

LOCATION

public static final String LOCATION
See Also:
Constant Field Values

LOCATION_LEVEL_1

public static final String LOCATION_LEVEL_1
See Also:
Constant Field Values

LOCATION_LEVEL_2

public static final String LOCATION_LEVEL_2
See Also:
Constant Field Values

LOCATION_LEVEL_3

public static final String LOCATION_LEVEL_3
See Also:
Constant Field Values

LOCATION_LEVEL_1_SECURED

public static final String LOCATION_LEVEL_1_SECURED
See Also:
Constant Field Values

LOCATION_LEVEL_2_SECURED

public static final String LOCATION_LEVEL_2_SECURED
See Also:
Constant Field Values

LOCATION_LEVEL_3_SECURED

public static final String LOCATION_LEVEL_3_SECURED
See Also:
Constant Field Values

LOCATION_LEVEL_1_DISPLAY

public static final String LOCATION_LEVEL_1_DISPLAY
See Also:
Constant Field Values

LOCATION_LEVEL_2_DISPLAY

public static final String LOCATION_LEVEL_2_DISPLAY
See Also:
Constant Field Values

LOCATION_LEVEL_3_DISPLAY

public static final String LOCATION_LEVEL_3_DISPLAY
See Also:
Constant Field Values

LOCATION_GREATERTHAN_3

public static final String LOCATION_GREATERTHAN_3
See Also:
Constant Field Values

CONTAINER_OID

public static final String CONTAINER_OID
See Also:
Constant Field Values

ICON

public static final String ICON
See Also:
Constant Field Values

INTERNAL_ORG_NAMES

private static String INTERNAL_ORG_NAMES

internalOrgSet

private static HashSet internalOrgSet

classicDefaultOrg

private static WTOrganization classicDefaultOrg

FOLDER_LIST_RESOURCE

private static final String FOLDER_LIST_RESOURCE
See Also:
Constant Field Values

FILES_VIEW

private static final String FILES_VIEW
See Also:
Constant Field Values

FILES_LMT

private static final String FILES_LMT
See Also:
Constant Field Values

VERBOSE

private static final boolean VERBOSE
See Also:
Constant Field Values

NBSP

public static final String NBSP
See Also:
Constant Field Values

SELECTED_VIEW

public static final String SELECTED_VIEW
See Also:
Constant Field Values

FOLDERS_AND_CONTENTS

public static final String FOLDERS_AND_CONTENTS
See Also:
Constant Field Values

TREE_VIEW

public static final String TREE_VIEW
See Also:
Constant Field Values

NO_LIMIT

public static final String NO_LIMIT
See Also:
Constant Field Values

TABLE_LAST_MODIFIED

public static final String TABLE_LAST_MODIFIED
See Also:
Constant Field Values

TABLE_AUTHOR

public static final String TABLE_AUTHOR
See Also:
Constant Field Values

TABLE_DOCS

public static final String TABLE_DOCS
See Also:
Constant Field Values

TABLE_PARTS

public static final String TABLE_PARTS
See Also:
Constant Field Values

TABLE_CAD_DOCS

public static final String TABLE_CAD_DOCS
See Also:
Constant Field Values

PROMOTIONS

public static final String PROMOTIONS
See Also:
Constant Field Values

TABLE_MY

public static final String TABLE_MY
See Also:
Constant Field Values

LINKS_ONLY

public static final String LINKS_ONLY
See Also:
Constant Field Values

DISCUSSED

public static final String DISCUSSED
See Also:
Constant Field Values

NOT_RELEASED

public static final String NOT_RELEASED
See Also:
Constant Field Values

RELEASED

public static final String RELEASED
See Also:
Constant Field Values

PENDING_CHANGES

public static final String PENDING_CHANGES
See Also:
Constant Field Values

IN_WORK

public static final String IN_WORK
See Also:
Constant Field Values

ROUTED

public static final String ROUTED
See Also:
Constant Field Values

DELIVERABLES

public static final String DELIVERABLES
See Also:
Constant Field Values

SANDBOX

public static final String SANDBOX
See Also:
Constant Field Values

TABLE_MY_SANDBOX

public static final String TABLE_MY_SANDBOX
See Also:
Constant Field Values

SHARED

public static final String SHARED
See Also:
Constant Field Values

CREATED_IN_PROJECT

public static final String CREATED_IN_PROJECT
See Also:
Constant Field Values

OUT_OF_DATE_SHARES

public static final String OUT_OF_DATE_SHARES
See Also:
Constant Field Values

PDM_CHECKIN_APPLY

public static final String PDM_CHECKIN_APPLY
See Also:
Constant Field Values

SHOWFOLDERSPLUSVIEW

public static final boolean SHOWFOLDERSPLUSVIEW

SHOW_DISCUSS_ICON_PDM

public static final boolean SHOW_DISCUSS_ICON_PDM

SHOW_DISCUSS_ICON_PJL

public static final boolean SHOW_DISCUSS_ICON_PJL

SHOW_DELIVERABLE_ICON_PJL

public static final boolean SHOW_DELIVERABLE_ICON_PJL

SHOW_ROUTING_ICON_PJL

public static final boolean SHOW_ROUTING_ICON_PJL

SHOW_VERSION_PJL

public static final boolean SHOW_VERSION_PJL

SHOW_NUMBER_PJL

public static final boolean SHOW_NUMBER_PJL

LAST_FILES_PAGE

public static final String LAST_FILES_PAGE
See Also:
Constant Field Values

LAST_FILES_CONTEXT

public static final String LAST_FILES_CONTEXT
See Also:
Constant Field Values

LAST_FILES_TIME

public static final String LAST_FILES_TIME
See Also:
Constant Field Values

LAST_FILES_TYPE

public static final String LAST_FILES_TYPE
See Also:
Constant Field Values

DOMAIN_PREF_PATH

public static final String DOMAIN_PREF_PATH
See Also:
Constant Field Values

DOMAIN_PREF_KEY

public static final String DOMAIN_PREF_KEY
See Also:
Constant Field Values

colNum

private static int colNum

TYPE_ICON_COLUMN

public static final int TYPE_ICON_COLUMN

NAME_COLUMN

public static final int NAME_COLUMN

ACTION_A_COLUMN

public static final int ACTION_A_COLUMN

ACTION_B_COLUMN

public static final int ACTION_B_COLUMN

ACTION_C_COLUMN

public static final int ACTION_C_COLUMN

ACTION_D_COLUMN

public static final int ACTION_D_COLUMN

ACTION_E_COLUMN

public static final int ACTION_E_COLUMN

PENDING_CHANGE_COLUMN

public static final int PENDING_CHANGE_COLUMN

ACTION_COLUMN

public static final int ACTION_COLUMN

NUMBER_COLUMN

public static final int NUMBER_COLUMN

VERSION_COLUMN

public static final int VERSION_COLUMN

STATE_COLUMN

public static final int STATE_COLUMN

MODIFIED_BY_COLUMN

public static final int MODIFIED_BY_COLUMN

MODIFIED_DATE_COLUMN

public static final int MODIFIED_DATE_COLUMN

TYPE_COLUMN

public static final int TYPE_COLUMN

SANDBOX_COLUMN

public static final int SANDBOX_COLUMN

SHARED_COLUMN

public static final int SHARED_COLUMN

LATEST_COLUMN

public static final int LATEST_COLUMN

CHECKED_OUT_COLUMN

public static final int CHECKED_OUT_COLUMN

NUMBER_OF_COLUMNS

public static final int NUMBER_OF_COLUMNS
Constructor Detail

NmFolderHelper

public NmFolderHelper()
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(NmFolderHelper 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

matchLocales

public static boolean matchLocales(Locale loc1,
                                   Locale loc2)
                            throws WTException
Throws:
WTException

getLocationOfObject

public static void getLocationOfObject(Persistable p,
                                       HashMap map)
                                throws WTException
Throws:
WTException

initializeNmFolderForLocation

private static Folder initializeNmFolderForLocation(FolderEntry entry,
                                                    HashMap map,
                                                    String locationString,
                                                    String securedInfoString,
                                                    boolean isWindchillPDMObject)
                                             throws WTException
Throws:
WTException

addContainerInfo

private static void addContainerInfo(Cabinet cabinet,
                                     NmNamedObject nm_folder,
                                     HashMap map)

getLocationOfObject

public static String getLocationOfObject(Persistable p)
                                  throws WTException
Throws:
WTException

getLocationOfObject

public static String getLocationOfObject(Persistable p,
                                         boolean isProject)
                                  throws WTException
Throws:
WTException

getAuthors

public static ArrayList getAuthors(NmModel model)
                            throws WTException
Throws:
WTException

isInternalOrganization

public static boolean isInternalOrganization(WTOrganization organization)
                                      throws WTException
Throws:
WTException

getInternalOrgSet

private static Set getInternalOrgSet()
                              throws WTException
Throws:
WTException

getClassicDefaultOrg

public static WTOrganization getClassicDefaultOrg()
                                           throws WTException
Throws:
WTException

isNewNumRequired

public static boolean isNewNumRequired(WTOrganization organization,
                                       Class clazz)
                                throws WTException
Throws:
WTException