com.ptc.netmarkets.folder
Class StandardNmFolderService

java.lang.Object
  extended bywt.services.StandardManager
      extended bycom.ptc.netmarkets.folder.StandardNmFolderService
All Implemented Interfaces:
Manager, NetFactor, NmFolderService, Serializable

public class StandardNmFolderService
extends StandardManager
implements NmFolderService, Serializable

Use the newStandardNmFolderService static factory method(s), not the StandardNmFolderService 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: true

Extendable: false

See Also:
Serialized Form

Field Summary
private static boolean ALLOW_CACHING
           
private static int CACHE_COUNT
           
private  NmFolderCacheHelper cacheHelper
           
private static String CANDIDATE_PDM_CHECKIN_ACTION_MODEL
           
private static WTOrganization classicDefaultOrg
           
private static String CLASSNAME
           
private static String CMDCLASSNAME
           
private static String DETAILS_LIST_ACTION_MODEL_NAME
           
private static String DOC_ROW_ACTIONS
           
private static boolean FILES_TIMING
           
private static String GUEST_LIST_ACTION_MODEL_NAME
           
private static String GUEST_LIST_ACTION_MODEL_NAME_TABLE
           
private static String INTERNAL_ORG_NAMES
           
private static HashSet internalOrgSet
           
private static int LIMIT
           
private static String LIST_ACTION_MODEL_NAME
           
private static String LIST_ACTION_MODEL_NAME_TABLE
           
private static ArrayList list_copy_types
           
private static ArrayList list_create_folder_types
           
private static ArrayList list_cut_types
           
private static ArrayList list_delete_types
           
private static ArrayList list_paste_types
           
private static String OBJECT
           
private static String ORG_LIST_ACTION_MODEL_NAME
           
private static String ORG_LIST_ACTION_MODEL_NAME_TABLE
           
private static String PDM_DEFAULT_ACTION_MODEL
           
private static String PDM_DISCUSS
           
private static String PDM_DOC_ROW_ACTIONS
           
private static String PDM_DOCUMENTS_VIEW_ACTION_MODEL
           
private static String PDM_FOLDER_ROW_ACTIONS
           
private static String PDM_FOLDERS_AND_CONTENTS_VIEW_ACTION_MODEL
           
private static String PDM_FOLDERS_ONLY_VIEW_ACTION_MODEL
           
private static String PDM_LINKS_VIEW_ACTION_MODEL
           
private static String PDM_OBJECT
           
private static String PDM_PART_ROW_ACTIONS
           
private static String RECENT_UPDATES_STACK
           
private static String RESOURCE
           
private static Boolean STATIC_VIEW
           
private static boolean VERBOSE
           
private static boolean VERBOSE_CACHE
           
private static String VIEW
           
 
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
StandardNmFolderService()
           
 
Method Summary
 void access(NmCommandBean cb, Boolean propogate, Boolean recursive)
          

Supported API: false
protected  void addFolderContents(Folder folder, ArrayList folderContents, ArrayList iteratedfolderobjs)
          Returns the contents of the folder and subfolders.
private  void can_list_create_object(NmCommandBean cb)
           
 void changeProjecModel(NmOid oid, NmChangeModel[] nmcm)
          Update the tree model of the project from changes made in a different method server

Supported API: true
private  void checkCopyPasteAvailable(Persistable p)
          Check to see whether the specified Persistable is an assembly or a CAD drawing.
private  void copyBookmark(Bookmark orig, Folder toFolder)
           
private  NmFolderTreeModel copyTreeModel(NmHTMLTreeModel treeModel, NmOid contextOid, boolean isFolderView)
           
protected  NmChangeModel[] create_folders(NmCommandBean cb, ArrayList locations, String folderDomain, Boolean inheritDomain)
          

Supported API: false
private  Object createLink(NmCommandBean cb, NmOid oid)
           
private  void createLinkInFolder(Persistable orig, Folder folder)
           
private  Object createLinks(ArrayList clipped, NmCommandBean cb, NmOid oid)
           
 Object createLinks(NmCommandBean cb, NmOid oid)
          Register as a listener for dispatched events.
private  NmDocument createNMDocument(Persistable p, NmOid oid)
           
private  NmPart createNMPart(Persistable p, NmOid oid)
           
 void createPDMObjects(NmCommandBean cb, NmOid oid)
           
protected  Object createPDMObjects2(NmCommandBean cb, NmOid target)
           
private  Object createShares(NmCommandBean cb, NmOid oid)
           
private  void displayFH(FolderHierarchy fh)
           
private  NmHTMLActionModel fixActionList(NmHTMLActionModel origActions, boolean isProjectManager, boolean hasTemplates)
           
 NmHTMLActionModel fixActionList(NmHTMLActionModel origActions, NmCommandBean cb)
          

Supported API: false
private  NmHTMLActionModel fixActionList(NmHTMLActionModel origActions, WTContainerRef containerRef)
           
private  void fixCreateFolderWizardSize(String actionModelName, NmHTMLActionModel actionModel)
           
private  NmHTMLActionModel fixRouteActions(NmHTMLActionModel origActions)
           
 NmChangeModel[] folder_create(NmCommandBean cb, String folderLocation, String folderDomain, Boolean inheritDomain)
          

Supported API: false
 Object folder_paste(NmCommandBean cb)
          

Supported API: false
private  NmHTMLActionModel getActionModel(Persistable p, NmOid oid, Locale locale, WTContainer container, NmObject nmObj, boolean useMore)
           
private  NmHTMLActionModel getActionModelForList(WTContainer container, Object contextObject, Locale locale, boolean isForTable, boolean isSandBoxModel, boolean isReadOnly, boolean hasModifyAccess, boolean isFolderDetailsView, String selectedView)
          returns the correct action model for a list_table or list_list depending on the given container
 ArrayList getAllFolders(NmCommandBean cb, NmOid checked_oid)
          

Supported API: false
 ArrayList getAllFolders(NmCommandBean cb, NmOid checked_oid, NmOid projectOid)
          

Supported API: false
 String getConceptualClassname()
          Deprecated.  
private  NmOid getContainerOidFromCB(NmCommandBean cb)
           
protected  NmOid getContainerOidFromRef(WTContainerRef p)
           
private  ArrayList getCreatedOrModifiedByUser(Class theClass, WTUser user, Cabinet currentCabinet)
          gets the latest version of all objects of the given class that were created or modified by the given user returns an ArrayList of OIDs
 HashMap getFolderDetailsObjects(NmOid oid, boolean isPDMLinkContainer)
          

Supported API: false
 NmFolder getFolderProperties(NmCommandBean cb)
          

Supported API: false
 NmFolder getFolderProperties(NmOid oid)
          

Supported API: false
 ArrayList getFolderRowData(NmOid oid, boolean useServerLocale, WTContainer container)
          

Supported API: false
 ArrayList getFolderRowData(NmOid oid, Locale locale)
          

Supported API: false
 ArrayList getFolderRowData(NmOid oid, Locale locale, boolean useMore, WTContainer container)
          

Supported API: false
 ArrayList getFolderRowData(NmOid oid, Locale locale, boolean useMore, WTContainer container, NmObject nmObj)
          

Supported API: false
 ArrayList getFolderRowData(NmOid oid, Locale locale, boolean useMore, WTContainer container, NmObject nmObj, boolean hasTemplates, boolean isAdmin)
           
 ArrayList getFolderRowData(NmOid oid, Locale locale, boolean useMore, WTContainer container, NmObject nmObj, boolean hasTemplates, boolean isAdmin, boolean isDiscussPopulated, boolean isRoutingPopulated, boolean isDeliverablePopulated)
           
private  Vector getFolders(Folder f)
           
private  Vector getFolders(Folder f, QueryResult qr, Vector retVec)
           
 NmHTMLTreeNode getFolderTreeNode(NmOid oid, boolean recreateNode)
          

Supported API: false
protected  NmHTMLTreeNode getFolderTreeNode(NmOid oid, boolean recreateNode, boolean isMarkDirty)
           
 NmHTMLTableTree getFullTree(NmCommandBean cb)
          

Supported API: false
 NmHTMLTableTree getFullTree(NmOid oid, boolean useServerLocale)
           
 NmHTMLTableTree getFullTree(NmOid oid, boolean useServerLocale, boolean foldersOnly, boolean partsOnly, boolean docsOnly, boolean linksOnly)
           
 Date getLastModifiedDateForProject(NmOid oid)
          

Supported API: false
private  QueryResult getLatestIterationsOf(QueryResult branchIDs)
          get the latest iterations of the given branchIDs
private  HashMap getMapforFolders(Folder f, NmOid foid)
           
private  ArrayList getMyIteratedObjects(Cabinet currentCabinet)
          gets the objects that were created or modified by the current user returns an ArrayList of ObjectIdentifiers
private  String getNewFolderName(String name, ArrayList qr)
           
static ObjectIdentifier getOid(Object object)
           
private  Object getPostAction(Persistable doc, NmObject nmEpmDoc, FolderHierarchy.FolderEntryInfo fei, boolean isPDMLinkContainer, Locale locale, WTContainer container, boolean isDiscussPopulated)
           
private  Object getProcessAction(NmOid oid, FolderHierarchy.FolderEntryInfo fei, Locale locale, WTContainer container, boolean isRoutingPopulated)
           
 NmModel getProjectModel(NmOid oid)
          Get the tree model of the project folders/parts/docs to display

Supported API: true
 NmModel getProjectModel(NmOid oid, boolean foldersOnly, boolean partsOnly, boolean docsOnly, boolean linksOnly)
           
 QueryResult getSharedFolderContents(Folder folder)
           
protected  QueryResult hasPostings(Persistable p)
           
 Folder hli_folder_create(Project2 project, Folder parent, String createfoldername)
          

Supported API: false
private static void initializeArrayList(ArrayList names, int size)
           
private  void initializeCopyDomain(Folder toFolder, Persistable copy)
           
private  boolean isCreateLinkOnly(Persistable nextObj)
           
private  boolean isPDMLinkContainer(WTContainer container)
          returns true if the given container is a PDMLink container
private  boolean isPJLContainer(WTContainer container)
          returns true if the given container is a Project container
private  boolean isProjectContainer(WTContainer container)
          returns true if the given container is a Project container
private  boolean isStatic()
           
 NmChangeModel[] list_create_document(NmCommandBean cb)
          

Supported API: false
 NmChangeModel[] list_create_folder(NmCommandBean cb, String folderLocation, String folderDomain, Boolean inheritDomain)
          

Supported API: false
 NmChangeModel[] list_create_part(NmCommandBean cb)
          

Supported API: false
 NmModel list_list(NmCommandBean cb)
          

Supported API: false
 NmModel list_list(NmCommandBean cb, String prefString)
          

Supported API: false
 NmModel list_list(NmCommandBean cb, String prefString, boolean useMore)
          

Supported API: false
 NmModel list_list(NmCommandBean cb, String prefString, boolean useMore, int limit, int firstIndex, boolean tableView)
           
 Object list_paste(NmCommandBean cb)
          

Supported API: false
 NmModel list_table(NmCommandBean cb, String prefString, boolean useMore, int limit, int firstIndex)
          

Supported API: false
static StandardNmFolderService newStandardNmFolderService()
          Default factory for the class.
 Object paste_to_folder(NmCommandBean cb, NmOid folder, int depth)
          

Supported API: false
 Object paste_to_folder(NmCommandBean cb, NmOid folder, int depth, ArrayList doneList)
           
protected  Object paste_to_project(NmCommandBean cb, NmOid project)
          

Supported API: false
protected  void performStartupProcess()
          Override the method from StandardManager to provide NmFolderServices with custom startup for event subscription.
private  void processSharedResults(QueryResult result, NmCommandBean cb)
           
private  void processSharedResults(SharedContainerMap dsmap, NmCommandBean cb)
           
private  void setAccessProcessResults(Enumeration searchQR, NmCommandBean cb, WTContainerRef cref, Boolean recursive, Stack folders, boolean isShare, NmOid projectSharedOid)
           
 NmChangeModel[] update(NmCommandBean cb, String name, String folderDomain, Boolean inheritDomain)
          

Supported API: false
 
Methods inherited from class wt.services.StandardManager
emergencyShutdown, emergencyShutdownComplete, emergencyShuttingDown, getClassInfo, getManagerService, getManagerStatus, getName, getStartupType, init, initialize, initialize, isStarted, newStandardManager, newStandardManager, performEmergencyShutdownProcess, performShutdownProcess, registerEvents, setManagerService, shutdown, shutdownFailure, shutdownSuccess, shuttingDown, started, startedErrors, startingUp, startup, startupFailure, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

CMDCLASSNAME

private static final String CMDCLASSNAME

VERBOSE

private static final boolean VERBOSE

LIMIT

private static final int LIMIT

LIST_ACTION_MODEL_NAME

private static final String LIST_ACTION_MODEL_NAME
See Also:
Constant Field Values

DETAILS_LIST_ACTION_MODEL_NAME

private static final String DETAILS_LIST_ACTION_MODEL_NAME
See Also:
Constant Field Values

LIST_ACTION_MODEL_NAME_TABLE

private static final String LIST_ACTION_MODEL_NAME_TABLE
See Also:
Constant Field Values

CANDIDATE_PDM_CHECKIN_ACTION_MODEL

private static final String CANDIDATE_PDM_CHECKIN_ACTION_MODEL
See Also:
Constant Field Values

DOC_ROW_ACTIONS

private static final String DOC_ROW_ACTIONS
See Also:
Constant Field Values

GUEST_LIST_ACTION_MODEL_NAME

private static final String GUEST_LIST_ACTION_MODEL_NAME
See Also:
Constant Field Values

GUEST_LIST_ACTION_MODEL_NAME_TABLE

private static final String GUEST_LIST_ACTION_MODEL_NAME_TABLE
See Also:
Constant Field Values

PDM_FOLDERS_ONLY_VIEW_ACTION_MODEL

private static final String PDM_FOLDERS_ONLY_VIEW_ACTION_MODEL
See Also:
Constant Field Values

PDM_FOLDERS_AND_CONTENTS_VIEW_ACTION_MODEL

private static final String PDM_FOLDERS_AND_CONTENTS_VIEW_ACTION_MODEL
See Also:
Constant Field Values

PDM_DEFAULT_ACTION_MODEL

private static final String PDM_DEFAULT_ACTION_MODEL
See Also:
Constant Field Values

PDM_DOCUMENTS_VIEW_ACTION_MODEL

private static final String PDM_DOCUMENTS_VIEW_ACTION_MODEL
See Also:
Constant Field Values

PDM_LINKS_VIEW_ACTION_MODEL

private static final String PDM_LINKS_VIEW_ACTION_MODEL
See Also:
Constant Field Values

PDM_FOLDER_ROW_ACTIONS

private static final String PDM_FOLDER_ROW_ACTIONS
See Also:
Constant Field Values

PDM_PART_ROW_ACTIONS

private static final String PDM_PART_ROW_ACTIONS
See Also:
Constant Field Values

PDM_DOC_ROW_ACTIONS

private static final String PDM_DOC_ROW_ACTIONS
See Also:
Constant Field Values

ORG_LIST_ACTION_MODEL_NAME

private static final String ORG_LIST_ACTION_MODEL_NAME
See Also:
Constant Field Values

ORG_LIST_ACTION_MODEL_NAME_TABLE

private static final String ORG_LIST_ACTION_MODEL_NAME_TABLE
See Also:
Constant Field Values

OBJECT

private static final String OBJECT
See Also:
Constant Field Values

VIEW

private static final String VIEW
See Also:
Constant Field Values

PDM_OBJECT

private static final String PDM_OBJECT
See Also:
Constant Field Values

PDM_DISCUSS

private static final String PDM_DISCUSS
See Also:
Constant Field Values

list_create_folder_types

private static final ArrayList list_create_folder_types

list_delete_types

private static final ArrayList list_delete_types

list_cut_types

private static final ArrayList list_cut_types

list_copy_types

private static final ArrayList list_copy_types

list_paste_types

private static final ArrayList list_paste_types

STATIC_VIEW

private static Boolean STATIC_VIEW

RECENT_UPDATES_STACK

private static final String RECENT_UPDATES_STACK
See Also:
Constant Field Values

INTERNAL_ORG_NAMES

private static String INTERNAL_ORG_NAMES

internalOrgSet

private static HashSet internalOrgSet

classicDefaultOrg

private static WTOrganization classicDefaultOrg

ALLOW_CACHING

private static final boolean ALLOW_CACHING

VERBOSE_CACHE

private static final boolean VERBOSE_CACHE

FILES_TIMING

private static final boolean FILES_TIMING

CACHE_COUNT

private static int CACHE_COUNT

cacheHelper

private NmFolderCacheHelper cacheHelper
Constructor Detail

StandardNmFolderService

public StandardNmFolderService()
Method Detail

getConceptualClassname

public String getConceptualClassname()
Deprecated.  

Returns the conceptual (modeled) name for the class.

Supported API: false

Specified by:
getConceptualClassname in interface NetFactor
Overrides:
getConceptualClassname in class StandardManager
Returns:
String

create_folders

protected NmChangeModel[] create_folders(NmCommandBean cb,
                                         ArrayList locations,
                                         String folderDomain,
                                         Boolean inheritDomain)
                                  throws WTException


Supported API: false

Parameters:
cb -
locations - list of Strings that represents parents (e.g. "folder~wt.folder.SubFolder:16013", "folder~wt.folder.SubFolder:21055")
folderDomain - represents the administrative domain of the folder (e.g. "wt.admin.AdministrativeDomain:16018")
inheritDomain - flag for whether or not to inherit domain from parent folder
Returns:
NmChangeModel[]
Throws:
WTException

paste_to_project

protected Object paste_to_project(NmCommandBean cb,
                                  NmOid project)
                           throws WTException


Supported API: false

Parameters:
cb -
project -
Returns:
Object
Throws:
WTException

newStandardNmFolderService

public static StandardNmFolderService newStandardNmFolderService()
                                                          throws WTException
Default factory for the class.

Supported API: false

Returns:
StandardNmFolderService
Throws:
WTException

list_list

public NmModel list_list(NmCommandBean cb)
                  throws WTException


Supported API: false

Specified by:
list_list in interface NmFolderService
Parameters:
cb -
Returns:
NmModel
Throws:
WTException

list_create_folder

public NmChangeModel[] list_create_folder(NmCommandBean cb,
                                          String folderLocation,
                                          String folderDomain,
                                          Boolean inheritDomain)
                                   throws WTException


Supported API: false

Specified by:
list_create_folder in interface NmFolderService
Parameters:
cb -
folderLocation - represents the parent folder (e.g. folder~wt.folder.SubFolder:16013)
folderDomain - represents the administrative domain of the folder (e.g. "wt.admin.AdministrativeDomain:16018")
inheritDomain - flag for whether or not to inherit domain from parent folder
Returns:
NmChangeModel[]
Throws:
WTException

list_create_part

public NmChangeModel[] list_create_part(NmCommandBean cb)
                                 throws WTException


Supported API: false

Specified by:
list_create_part in interface NmFolderService
Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

list_create_document

public NmChangeModel[] list_create_document(NmCommandBean cb)
                                     throws WTException


Supported API: false

Specified by:
list_create_document in interface NmFolderService
Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

list_paste

public Object list_paste(NmCommandBean cb)
                  throws WTException


Supported API: false

Specified by:
list_paste in interface NmFolderService
Parameters:
cb -
Returns:
Object
Throws:
WTException

folder_create

public NmChangeModel[] folder_create(NmCommandBean cb,
                                     String folderLocation,
                                     String folderDomain,
                                     Boolean inheritDomain)
                              throws WTException


Supported API: false

Specified by:
folder_create in interface NmFolderService
Parameters:
cb -
folderLocation - represents the parent folder (e.g. folder~wt.folder.SubFolder:16013)
folderDomain - represents the administrative domain of the folder (e.g. "wt.admin.AdministrativeDomain:16018")
inheritDomain - flag for whether or not to inherit domain from parent folder
Returns:
NmChangeModel[]
Throws:
WTException

folder_paste

public Object folder_paste(NmCommandBean cb)
                    throws WTException


Supported API: false

Specified by:
folder_paste in interface NmFolderService
Parameters:
cb -
Returns:
Object
Throws:
WTException

access

public void access(NmCommandBean cb,
                   Boolean propogate,
                   Boolean recursive)
            throws WTException


Supported API: false

Specified by:
access in interface NmFolderService
Parameters:
cb -
propogate -
recursive -
Throws:
WTException

update

public NmChangeModel[] update(NmCommandBean cb,
                              String name,
                              String folderDomain,
                              Boolean inheritDomain)
                       throws WTException


Supported API: false

Specified by:
update in interface NmFolderService
Parameters:
cb -
name - new name for the folder
folderDomain - represents the administrative domain of the folder (e.g. "wt.admin.AdministrativeDomain:16018")
inheritDomain - flag for whether or not to inherit domain from parent folder
Returns:
NmChangeModel[]
Throws:
WTException

getFolderProperties

public NmFolder getFolderProperties(NmCommandBean cb)
                             throws WTException


Supported API: false

Specified by:
getFolderProperties in interface NmFolderService
Parameters:
cb -
Returns:
NmFolder
Throws:
WTException

getFolderProperties

public NmFolder getFolderProperties(NmOid oid)
                             throws WTException


Supported API: false

Specified by:
getFolderProperties in interface NmFolderService
Parameters:
oid -
Returns:
NmFolder
Throws:
WTException

getFullTree

public NmHTMLTableTree getFullTree(NmCommandBean cb)
                            throws WTException


Supported API: false

Specified by:
getFullTree in interface NmFolderService
Parameters:
cb -
Returns:
NmHTMLTableTree
Throws:
WTException

getFolderRowData

public ArrayList getFolderRowData(NmOid oid,
                                  boolean useServerLocale,
                                  WTContainer container)
                           throws WTException


Supported API: false

Specified by:
getFolderRowData in interface NmFolderService
Parameters:
oid -
useServerLocale -
container -
Returns:
ArrayList
Throws:
WTException

getFolderRowData

public ArrayList getFolderRowData(NmOid oid,
                                  Locale locale,
                                  boolean useMore,
                                  WTContainer container)
                           throws WTException


Supported API: false

Specified by:
getFolderRowData in interface NmFolderService
Parameters:
oid -
locale -
useMore -
container -
Returns:
ArrayList
Throws:
WTException

getFolderRowData

public ArrayList getFolderRowData(NmOid oid,
                                  Locale locale,
                                  boolean useMore,
                                  WTContainer container,
                                  NmObject nmObj)
                           throws WTException


Supported API: false

Specified by:
getFolderRowData in interface NmFolderService
Parameters:
oid -
locale -
useMore -
container -
nmObj -
Returns:
ArrayList
Throws:
WTException

getFolderTreeNode

public NmHTMLTreeNode getFolderTreeNode(NmOid oid,
                                        boolean recreateNode)
                                 throws WTException


Supported API: false

Specified by:
getFolderTreeNode in interface NmFolderService
Parameters:
oid -
recreateNode -
Returns:
NmHTMLTreeNode
Throws:
WTException

getProjectModel

public NmModel getProjectModel(NmOid oid)
                        throws WTException
Get the tree model of the project folders/parts/docs to display

Supported API: true

Specified by:
getProjectModel in interface NmFolderService
Parameters:
oid - the AdministrativeDomain, used as search criteria when looking for project objects
Returns:
NmModel
Throws:
WTException

changeProjecModel

public void changeProjecModel(NmOid oid,
                              NmChangeModel[] nmcm)
                       throws WTException
Update the tree model of the project from changes made in a different method server

Supported API: true

Specified by:
changeProjecModel in interface NmFolderService
Parameters:
oid - Oid of the project to change
nmcm - changes to make in the project model
Throws:
WTException

getAllFolders

public ArrayList getAllFolders(NmCommandBean cb,
                               NmOid checked_oid)
                        throws WTException


Supported API: false

Specified by:
getAllFolders in interface NmFolderService
Parameters:
cb -
checked_oid -
Returns:
ArrayList
Throws:
WTException

list_list

public NmModel list_list(NmCommandBean cb,
                         String prefString)
                  throws WTException


Supported API: false

Specified by:
list_list in interface NmFolderService
Parameters:
cb -
prefString -
Returns:
NmModel
Throws:
WTException

hli_folder_create

public Folder hli_folder_create(Project2 project,
                                Folder parent,
                                String createfoldername)
                         throws WTException


Supported API: false

Specified by:
hli_folder_create in interface NmFolderService
Parameters:
project -
parent -
createfoldername -
Returns:
Folder
Throws:
WTException

getFolderRowData

public ArrayList getFolderRowData(NmOid oid,
                                  Locale locale)
                           throws WTException


Supported API: false

Specified by:
getFolderRowData in interface NmFolderService
Parameters:
oid -
locale -
Returns:
ArrayList
Throws:
WTException

getLastModifiedDateForProject

public Date getLastModifiedDateForProject(NmOid oid)
                                   throws WTException


Supported API: false

Specified by:
getLastModifiedDateForProject in interface NmFolderService
Parameters:
oid -
Returns:
Date
Throws:
WTException

getAllFolders

public ArrayList getAllFolders(NmCommandBean cb,
                               NmOid checked_oid,
                               NmOid projectOid)
                        throws WTException


Supported API: false

Specified by:
getAllFolders in interface NmFolderService
Parameters:
cb -
checked_oid -
projectOid -
Returns:
ArrayList
Throws:
WTException

list_list

public NmModel list_list(NmCommandBean cb,
                         String prefString,
                         boolean useMore)
                  throws WTException


Supported API: false

Specified by:
list_list in interface NmFolderService
Parameters:
cb -
prefString -
useMore -
Returns:
NmModel
Throws:
WTException

list_table

public NmModel list_table(NmCommandBean cb,
                          String prefString,
                          boolean useMore,
                          int limit,
                          int firstIndex)
                   throws WTException


Supported API: false

Specified by:
list_table in interface NmFolderService
Parameters:
cb -
prefString -
useMore -
limit -
firstIndex -
Returns:
NmModel
Throws:
WTException

paste_to_folder

public Object paste_to_folder(NmCommandBean cb,
                              NmOid folder,
                              int depth)
                       throws WTException


Supported API: false

Specified by:
paste_to_folder in interface NmFolderService
Parameters:
cb -
folder -
depth -
Returns:
Object
Throws:
WTException

fixActionList

public NmHTMLActionModel fixActionList(NmHTMLActionModel origActions,
                                       NmCommandBean cb)
                                throws WTException


Supported API: false

Specified by:
fixActionList in interface NmFolderService
Parameters:
origActions - The action list to fix
cb - The current context command bean
Returns:
NmHTMLActionModel
Throws:
WTException

getFolderDetailsObjects

public HashMap getFolderDetailsObjects(NmOid oid,
                                       boolean isPDMLinkContainer)
                                throws WTException


Supported API: false

Specified by:
getFolderDetailsObjects in interface NmFolderService
Parameters:
oid -
isPDMLinkContainer -
Returns:
HashMap
Throws:
WTException

paste_to_folder

public Object paste_to_folder(NmCommandBean cb,
                              NmOid folder,
                              int depth,
                              ArrayList doneList)
                       throws WTException
Throws:
WTException

createNMDocument

private NmDocument createNMDocument(Persistable p,
                                    NmOid oid)
                             throws WTException
Throws:
WTException

createNMPart

private NmPart createNMPart(Persistable p,
                            NmOid oid)
                     throws WTException
Throws:
WTException

getActionModel

private NmHTMLActionModel getActionModel(Persistable p,
                                         NmOid oid,
                                         Locale locale,
                                         WTContainer container,
                                         NmObject nmObj,
                                         boolean useMore)
                                  throws WTException
Throws:
WTException

isProjectContainer

private boolean isProjectContainer(WTContainer container)
returns true if the given container is a Project container


isPJLContainer

private boolean isPJLContainer(WTContainer container)
returns true if the given container is a Project container


isPDMLinkContainer

private boolean isPDMLinkContainer(WTContainer container)
returns true if the given container is a PDMLink container


getActionModelForList

private NmHTMLActionModel getActionModelForList(WTContainer container,
                                                Object contextObject,
                                                Locale locale,
                                                boolean isForTable,
                                                boolean isSandBoxModel,
                                                boolean isReadOnly,
                                                boolean hasModifyAccess,
                                                boolean isFolderDetailsView,
                                                String selectedView)
                                         throws WTException
returns the correct action model for a list_table or list_list depending on the given container

Parameters:
container - the current container
locale - the current locale
isForTable - whether or not the action model to get is for a table or a tree for instance a table action model doesn't have expand & collapse
Throws:
WTException

getMyIteratedObjects

private ArrayList getMyIteratedObjects(Cabinet currentCabinet)
                                throws WTException
gets the objects that were created or modified by the current user returns an ArrayList of ObjectIdentifiers

Throws:
WTException

getCreatedOrModifiedByUser

private ArrayList getCreatedOrModifiedByUser(Class theClass,
                                             WTUser user,
                                             Cabinet currentCabinet)
                                      throws WTException
gets the latest version of all objects of the given class that were created or modified by the given user returns an ArrayList of OIDs

Throws:
WTException

getLatestIterationsOf

private QueryResult getLatestIterationsOf(QueryResult branchIDs)
                                   throws WTException
get the latest iterations of the given branchIDs

Parameters:
branchIDs - a QueryResult that contains BigDecimal objects that represent BranchIDs
Returns:
a QueryResult that contains BigDecimal objects that represent IDs
Throws:
WTException

can_list_create_object

private void can_list_create_object(NmCommandBean cb)
                             throws WTException
Throws:
WTException

getFullTree

public NmHTMLTableTree getFullTree(NmOid oid,
                                   boolean useServerLocale)
                            throws WTException
Throws:
WTException

getFullTree

public NmHTMLTableTree getFullTree(NmOid oid,
                                   boolean useServerLocale,
                                   boolean foldersOnly,
                                   boolean partsOnly,
                                   boolean docsOnly,
                                   boolean linksOnly)
                            throws WTException
Throws:
WTException

getNewFolderName

private String getNewFolderName(String name,
                                ArrayList qr)

checkCopyPasteAvailable

private void checkCopyPasteAvailable(Persistable p)
                              throws WTException
Check to see whether the specified Persistable is an assembly or a CAD drawing. An assembly is a WTPart that meets the following requirements:
  1. it is built by an EPMDocument, and
  2. the EPMDocument has child documents
A CAD drawing is a EPMDocument that meets the following requirements:
  1. it is of EPMDocumentType CAD Drawing.

Throws:
WTException

getFolders

private Vector getFolders(Folder f)
                   throws WTException
Throws:
WTException

getFolders

private Vector getFolders(Folder f,
                          QueryResult qr,
                          Vector retVec)
                   throws WTException
Throws:
WTException

getMapforFolders

private HashMap getMapforFolders(Folder f,
                                 NmOid foid)
                          throws WTException
Throws:
WTException

fixActionList

private NmHTMLActionModel fixActionList(NmHTMLActionModel origActions,
                                        boolean isProjectManager,
                                        boolean hasTemplates)
                                 throws WTException
Throws:
WTException

hasPostings

protected QueryResult hasPostings(Persistable p)
                           throws WTException
Throws:
WTException

fixRouteActions

private NmHTMLActionModel fixRouteActions(NmHTMLActionModel origActions)
                                   throws WTException
Throws:
WTException

isStatic

private boolean isStatic()
                  throws WTException
Throws:
WTException

performStartupProcess

protected void performStartupProcess()
                              throws ManagerException
Override the method from StandardManager to provide NmFolderServices with custom startup for event subscription. When subscribing create an anonymous inner class adapter per subscription to handle each specific event being subscribed to.

Overrides:
performStartupProcess in class StandardManager
Throws:
ManagerException

createLinks

public Object createLinks(NmCommandBean cb,
                          NmOid oid)
                   throws WTException
Register as a listener for dispatched events. This method registers for:

Throws:
ManagerException - protected void registerAsListener() throws ManagerException { try { getProjectModelCache(); } catch (WTException wte) { wte.printStackTrace(); if (VERBOSE) System.out.println("***\n\n problem registering listener" + wte.getLocalizedMessage()); } }
WTException

createLink

private Object createLink(NmCommandBean cb,
                          NmOid oid)
                   throws WTException
Throws:
WTException

createLinks

private Object createLinks(ArrayList clipped,
                           NmCommandBean cb,
                           NmOid oid)
                    throws WTException
Throws:
WTException

createLinkInFolder

private void createLinkInFolder(Persistable orig,
                                Folder folder)
                         throws WTException
Throws:
WTException

createShares

private Object createShares(NmCommandBean cb,
                            NmOid oid)
                     throws WTException
Throws:
WTException

processSharedResults

private void processSharedResults(QueryResult result,
                                  NmCommandBean cb)
                           throws WTException
Throws:
WTException

processSharedResults

private void processSharedResults(SharedContainerMap dsmap,
                                  NmCommandBean cb)
                           throws WTException
Throws:
WTException

isCreateLinkOnly

private boolean isCreateLinkOnly(Persistable nextObj)
                          throws WTException
Throws:
WTException

initializeArrayList

private static void initializeArrayList(ArrayList names,
                                        int size)

getContainerOidFromCB

private NmOid getContainerOidFromCB(NmCommandBean cb)
                             throws WTException
Throws:
WTException

getContainerOidFromRef

protected NmOid getContainerOidFromRef(WTContainerRef p)

copyTreeModel

private NmFolderTreeModel copyTreeModel(NmHTMLTreeModel treeModel,
                                        NmOid contextOid,
                                        boolean isFolderView)
                                 throws WTException,
                                        CloneNotSupportedException
Throws:
WTException
CloneNotSupportedException

createPDMObjects

public void createPDMObjects(NmCommandBean cb,
                             NmOid oid)
                      throws WTException
Throws:
WTException

createPDMObjects2

protected Object createPDMObjects2(NmCommandBean cb,
                                   NmOid target)
                            throws WTException
Throws:
WTException

copyBookmark

private void copyBookmark(Bookmark orig,
                          Folder toFolder)
                   throws WTException
Throws:
WTException

initializeCopyDomain

private void initializeCopyDomain(Folder toFolder,
                                  Persistable copy)
                           throws WTException
Throws:
WTException

displayFH

private void displayFH(FolderHierarchy fh)
                throws WTException
Throws:
WTException

getPostAction

private Object getPostAction(Persistable doc,
                             NmObject nmEpmDoc,
                             FolderHierarchy.FolderEntryInfo fei,
                             boolean isPDMLinkContainer,
                             Locale locale,
                             WTContainer container,
                             boolean isDiscussPopulated)
                      throws WTException
Throws:
WTException

getProcessAction

private Object getProcessAction(NmOid oid,
                                FolderHierarchy.FolderEntryInfo fei,
                                Locale locale,
                                WTContainer container,
                                boolean isRoutingPopulated)
                         throws WTException
Throws:
WTException

list_list

public NmModel list_list(NmCommandBean cb,
                         String prefString,
                         boolean useMore,
                         int limit,
                         int firstIndex,
                         boolean tableView)
                  throws WTException
Throws:
WTException

addFolderContents

protected void addFolderContents(Folder folder,
                                 ArrayList folderContents,
                                 ArrayList iteratedfolderobjs)
                          throws WTException
Returns the contents of the folder and subfolders.

Throws:
WTException

getFolderRowData

public ArrayList getFolderRowData(NmOid oid,
                                  Locale locale,
                                  boolean useMore,
                                  WTContainer container,
                                  NmObject nmObj,
                                  boolean hasTemplates,
                                  boolean isAdmin)
                           throws WTException
Throws:
WTException

getFolderRowData

public ArrayList getFolderRowData(NmOid oid,
                                  Locale locale,
                                  boolean useMore,
                                  WTContainer container,
                                  NmObject nmObj,
                                  boolean hasTemplates,
                                  boolean isAdmin,
                                  boolean isDiscussPopulated,
                                  boolean isRoutingPopulated,
                                  boolean isDeliverablePopulated)
                           throws WTException
Throws:
WTException

fixCreateFolderWizardSize

private void fixCreateFolderWizardSize(String actionModelName,
                                       NmHTMLActionModel actionModel)

fixActionList

private NmHTMLActionModel fixActionList(NmHTMLActionModel origActions,
                                        WTContainerRef containerRef)
                                 throws WTException
Throws:
WTException

getFolderTreeNode

protected NmHTMLTreeNode getFolderTreeNode(NmOid oid,
                                           boolean recreateNode,
                                           boolean isMarkDirty)
                                    throws WTException
Throws:
WTException

getProjectModel

public NmModel getProjectModel(NmOid oid,
                               boolean foldersOnly,
                               boolean partsOnly,
                               boolean docsOnly,
                               boolean linksOnly)
                        throws WTException
Throws:
WTException

setAccessProcessResults

private void setAccessProcessResults(Enumeration searchQR,
                                     NmCommandBean cb,
                                     WTContainerRef cref,
                                     Boolean recursive,
                                     Stack folders,
                                     boolean isShare,
                                     NmOid projectSharedOid)
                              throws WTException
Throws:
WTException

getSharedFolderContents

public QueryResult getSharedFolderContents(Folder folder)
                                    throws WTException
Throws:
WTException

getOid

public static ObjectIdentifier getOid(Object object)