com.ptc.netmarkets.project
Class NmProjectCommands

java.lang.Object
  extended bycom.ptc.netmarkets.project.NmProjectCommands

public class NmProjectCommands
extends Object



Supported API: false

Extendable: false


Nested Class Summary
static class NmProjectCommands.Path
           
 
Field Summary
static char[] blanks
           
private static String CLASSNAME
           
static String EXPORT_ACTIVITIES
           
static String EXPORT_ACTIVITIES_MILESTONES
           
static String EXPORT_ALL
           
static String EXPORT_BOM
           
static String EXPORT_DELIVERABLES
           
static String EXPORT_DOCUMENT_METADA
           
static String EXPORT_DOCUMENTS
           
static String EXPORT_FILE_NAME
           
static String EXPORT_FOLDER_STRUCT
           
static String EXPORT_FOLDERS_AND_DOCS
           
static String EXPORT_MILESTONES
           
static String EXPORT_PROJECT_PLAN
           
static String EXPORT_ROLES
           
static String EXPORT_TEAM
           
static String EXPORT_TYPE
           
static String EXPORT_VIEWABLE_BOM
           
private static String PROJECT_CREATED
           
private static String RESOURCE
           
 
Constructor Summary
NmProjectCommands()
           
 
Method Summary
private static void addParam(Hashtable params, javax.servlet.http.HttpServletRequest request, String parameter, NmCommandBean cb)
          A small method to protected agains null
static NmChangeModel[] addRolesToProject(NmCommandBean cb)
          

Supported API: false
static NmChangeModel[] cancel(NmCommandBean cb)
          

Supported API: false
static NmChangeModel[] complete(NmCommandBean cb)
          

Supported API: false
static void confirmUserInProject(NmOid projectOid)
          

Supported API: false
static void copy(NmCommandBean cb)
          

Supported API: false
static NmChangeModel[] create(NmCommandBean cb)
          

Supported API: false
static void cut(NmCommandBean cb)
          

Supported API: false
static NmChangeModel[] delete(NmCommandBean cb)
          

Supported API: false
static void disableQuickCreateStep(NmCommandBean cb)
           
static void email(NmCommandBean cb)
          

Supported API: false
static String emailMembers(NmCommandBean cb)
          

Supported API: false
static void emailPage(NmCommandBean cb)
          

Supported API: false
static String emailTeam(NmOid containerOid)
          

Supported API: false
static URL exportAll(NmCommandBean cb)
          Exports the latest iteration of all documents in the project.
static void exportContainerAsTemplate(NmCommandBean cb)
          

Supported API: false
static URL exportDeliverables(NmCommandBean cb)
          

Supported API: false
static URL exportDocumentFiles(NmCommandBean cb)
          Exports the content of the latest iteration of all documents in the project.
static URL exportPlanStructure(NmCommandBean cb, boolean doMilestones, boolean doActivities)
          Exports the latest iteration of all documents in the project.
static void exportProjectAsTemplate(NmCommandBean cb)
          

Supported API: false
static URL exportProjectDocuments(NmCommandBean cb, boolean doFolders, boolean doViewables)
          Exports the latest iteration of all documents in the project.
static URL exportProjectFolders(NmCommandBean cb)
          Exports the latest iteration of all documents in the project.
static URL exportProjectObjects(NmCommandBean cb)
          Exports objects (roles,team, documents, projectPlan, deliverables) from the project as selected by the user.
static URL exportProjectParts(NmCommandBean cb, boolean doFolders, boolean doViewables)
          Exports the latest iteration of all documents in the project.
static URL exportProjectPlan(NmCommandBean cb)
          

Supported API: false
static URL exportRoles(NmCommandBean cb)
          Command to export the roles for the project.
static URL exportTeam(NmCommandBean cb)
          Command to export the team for the project.
static NmHTMLTable getAccessForObject(NmCommandBean cb)
          

Supported API: false
static Vector getAvailableProjectTemplates(NmCommandBean cb)
          

Supported API: false
static ArrayList getMembers(NmOid teamOid)
          

Supported API: false
private static Hashtable getParams(NmCommandBean cb, int size)
           
static NmProject getProjectProperties(NmCommandBean cb)
          

Supported API: false
static ArrayList getRecentPrincipalsList(NmOid projectOid)
          

Supported API: false
static NmHTMLTable getRelatedProjects(NmCommandBean cb)
          

Supported API: false
static NmHTMLTable getSubscriptionForObject(NmCommandBean cb)
          

Supported API: false
static ArrayList getUnusedRoles(NmOid teamOid)
          

Supported API: false
static ArrayList getUsedRoles(NmOid projectOid)
          

Supported API: false
static NmHTMLTable getUsersAndGroupsTable(NmCommandBean cb)
          

Supported API: false
static ArrayList getUsersInProject(NmOid containerOid)
          

Supported API: false
private static void hackoramadownloader(NmCommandBean cb, String url_string)
          This horrible evil method has to be re-worked.
static NmHTMLTable list(NmCommandBean cb)
          

Supported API: false
static NmProjectCommands.Path listPath(NmContext context, javax.servlet.http.HttpServletRequest request)
           
static NmHTMLTable listTeam(NmCommandBean cb)
          

Supported API: false
static NmHTMLTable listTeamUsers(NmCommandBean cb)
          

Supported API: false
static void paste(NmCommandBean cb)
          

Supported API: false
static void registerInCAD(NmCommandBean cb)
          

Supported API: false
static NmChangeModel[] removeContent(NmCommandBean cb)
          

Supported API: false
static NmChangeModel[] removeUsersFromProject(NmCommandBean cb)
          

Supported API: false
static NmChangeModel[] restore(NmCommandBean cb)
          

Supported API: false
static NmChangeModel[] resyncWithGroups(NmCommandBean cb)
          

Supported API: false
static NmChangeModel[] saveContainerAsNewContainer(NmCommandBean cb)
          

Supported API: false
static void saveProjectAsInternalTemplate(NmCommandBean cb)
          

Supported API: false
static NmChangeModel[] saveProjectAsNewProject(NmCommandBean cb)
          Deprecated.  
static void setAccessForObject(NmCommandBean cb)
          

Supported API: false
static void setSubscriptionForObject(NmCommandBean cb)
          

Supported API: false
static NmChangeModel[] start(NmCommandBean cb)
          

Supported API: false
static NmChangeModel[] start(NmOid oid)
          

Supported API: false
private static NmChangeModel[] startAndGetChangeModel(NmOid projectOid, NmCommandBean cb)
           
static NmChangeModel[] stop(NmCommandBean cb)
          

Supported API: false
static NmChangeModel[] suspend(NmCommandBean cb)
          

Supported API: false
static NmChangeModel[] teamPaste(NmCommandBean cb)
          

Supported API: false
static NmModel treeTeam(NmCommandBean cb)
          

Supported API: false
static NmChangeModel[] update(NmCommandBean cb)
          

Supported API: false
static void updateInvitation(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

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

PROJECT_CREATED

private static final String PROJECT_CREATED
See Also:
Constant Field Values

blanks

public static final char[] blanks

EXPORT_FILE_NAME

public static final String EXPORT_FILE_NAME
See Also:
Constant Field Values

EXPORT_TYPE

public static final String EXPORT_TYPE
See Also:
Constant Field Values

EXPORT_PROJECT_PLAN

public static final String EXPORT_PROJECT_PLAN
See Also:
Constant Field Values

EXPORT_DELIVERABLES

public static final String EXPORT_DELIVERABLES
See Also:
Constant Field Values

EXPORT_DOCUMENTS

public static final String EXPORT_DOCUMENTS
See Also:
Constant Field Values

EXPORT_DOCUMENT_METADA

public static final String EXPORT_DOCUMENT_METADA
See Also:
Constant Field Values

EXPORT_FOLDER_STRUCT

public static final String EXPORT_FOLDER_STRUCT
See Also:
Constant Field Values

EXPORT_FOLDERS_AND_DOCS

public static final String EXPORT_FOLDERS_AND_DOCS
See Also:
Constant Field Values

EXPORT_BOM

public static final String EXPORT_BOM
See Also:
Constant Field Values

EXPORT_VIEWABLE_BOM

public static final String EXPORT_VIEWABLE_BOM
See Also:
Constant Field Values

EXPORT_MILESTONES

public static final String EXPORT_MILESTONES
See Also:
Constant Field Values

EXPORT_ACTIVITIES

public static final String EXPORT_ACTIVITIES
See Also:
Constant Field Values

EXPORT_ACTIVITIES_MILESTONES

public static final String EXPORT_ACTIVITIES_MILESTONES
See Also:
Constant Field Values

EXPORT_TEAM

public static final String EXPORT_TEAM
See Also:
Constant Field Values

EXPORT_ROLES

public static final String EXPORT_ROLES
See Also:
Constant Field Values

EXPORT_ALL

public static final String EXPORT_ALL
See Also:
Constant Field Values
Constructor Detail

NmProjectCommands

public NmProjectCommands()
Method Detail

list

public static NmHTMLTable list(NmCommandBean cb)
                        throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmHTMLTable
Throws:
WTException

create

public static NmChangeModel[] create(NmCommandBean cb)
                              throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

update

public static NmChangeModel[] update(NmCommandBean cb)
                              throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

delete

public static NmChangeModel[] delete(NmCommandBean cb)
                              throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

removeContent

public static NmChangeModel[] removeContent(NmCommandBean cb)
                                     throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

cut

public static void cut(NmCommandBean cb)
                throws WTException


Supported API: false

Parameters:
cb -
Throws:
WTException

copy

public static void copy(NmCommandBean cb)
                 throws WTException


Supported API: false

Parameters:
cb -
Throws:
WTException

paste

public static void paste(NmCommandBean cb)
                  throws WTException


Supported API: false

Parameters:
cb -
Throws:
WTException

start

public static NmChangeModel[] start(NmCommandBean cb)
                             throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

stop

public static NmChangeModel[] stop(NmCommandBean cb)
                            throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

complete

public static NmChangeModel[] complete(NmCommandBean cb)
                                throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

suspend

public static NmChangeModel[] suspend(NmCommandBean cb)
                               throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

cancel

public static NmChangeModel[] cancel(NmCommandBean cb)
                              throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

setAccessForObject

public static void setAccessForObject(NmCommandBean cb)
                               throws WTException


Supported API: false

Parameters:
cb -
Throws:
WTException

getAccessForObject

public static NmHTMLTable getAccessForObject(NmCommandBean cb)
                                      throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmHTMLTable
Throws:
WTException

setSubscriptionForObject

public static void setSubscriptionForObject(NmCommandBean cb)
                                     throws WTException


Supported API: false

Parameters:
cb -
Throws:
WTException

getSubscriptionForObject

public static NmHTMLTable getSubscriptionForObject(NmCommandBean cb)
                                            throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmHTMLTable
Throws:
WTException

getProjectProperties

public static NmProject getProjectProperties(NmCommandBean cb)
                                      throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmProject
Throws:
WTException

treeTeam

public static NmModel treeTeam(NmCommandBean cb)
                        throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmModel
Throws:
WTException

addRolesToProject

public static NmChangeModel[] addRolesToProject(NmCommandBean cb)
                                         throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

getUnusedRoles

public static ArrayList getUnusedRoles(NmOid teamOid)
                                throws WTException


Supported API: false

Parameters:
teamOid -
Returns:
ArrayList
Throws:
WTException

getMembers

public static ArrayList getMembers(NmOid teamOid)
                            throws WTException


Supported API: false

Parameters:
teamOid -
Returns:
ArrayList
Throws:
WTException

listTeam

public static NmHTMLTable listTeam(NmCommandBean cb)
                            throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmHTMLTable
Throws:
WTException

email

public static void email(NmCommandBean cb)
                  throws WTException


Supported API: false

Parameters:
cb -
Throws:
WTException

getAvailableProjectTemplates

public static Vector getAvailableProjectTemplates(NmCommandBean cb)
                                           throws WTException


Supported API: false

Parameters:
cb -
Returns:
Vector
Throws:
WTException

confirmUserInProject

public static void confirmUserInProject(NmOid projectOid)
                                 throws WTException


Supported API: false

Parameters:
projectOid -
Throws:
WTException

emailPage

public static void emailPage(NmCommandBean cb)
                      throws WTException


Supported API: false

Parameters:
cb -
Throws:
WTException

getRecentPrincipalsList

public static ArrayList getRecentPrincipalsList(NmOid projectOid)
                                         throws WTException


Supported API: false

Parameters:
projectOid -
Returns:
ArrayList
Throws:
WTException

start

public static NmChangeModel[] start(NmOid oid)
                             throws WTException


Supported API: false

Parameters:
oid -
Returns:
NmChangeModel[]
Throws:
WTException

getRelatedProjects

public static NmHTMLTable getRelatedProjects(NmCommandBean cb)
                                      throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmHTMLTable
Throws:
WTException

exportRoles

public static URL exportRoles(NmCommandBean cb)
                       throws WTException
Command to export the roles for the project. These roles may be imported into anaother project in the organization, or exported into a completely different project.

Supported API: false

Parameters:
cb -
Returns:
URL
Throws:
WTException

exportTeam

public static URL exportTeam(NmCommandBean cb)
                      throws WTException
Command to export the team for the project. This team may be imported into anaother project in the organization. It is very unlikely that this team will be re-usable by another organization. Since import is transactional, if a single member of the team is not present in the LDAP, then it will fail.

Supported API: false

Parameters:
cb -
Returns:
URL
Throws:
WTException

exportDocumentFiles

public static URL exportDocumentFiles(NmCommandBean cb)
                               throws WTException
Exports the content of the latest iteration of all documents in the project. No meta-data is exported.

Supported API: false

Parameters:
cb -
Returns:
URL
Throws:
WTException

exportProjectPlan

public static URL exportProjectPlan(NmCommandBean cb)
                             throws WTException


Supported API: false

Parameters:
cb -
Returns:
URL
Throws:
WTException

exportProjectAsTemplate

public static void exportProjectAsTemplate(NmCommandBean cb)
                                    throws WTException


Supported API: false

Parameters:
cb -
Throws:
WTException

exportDeliverables

public static URL exportDeliverables(NmCommandBean cb)
                              throws WTException


Supported API: false

Parameters:
cb -
Returns:
URL
Throws:
WTException

saveProjectAsNewProject

public static NmChangeModel[] saveProjectAsNewProject(NmCommandBean cb)
                                               throws WTException
Deprecated.  

deprecated, use saveContainerAsNewContainer instead.

Supported API: false

Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

saveProjectAsInternalTemplate

public static void saveProjectAsInternalTemplate(NmCommandBean cb)
                                          throws WTException


Supported API: false

Parameters:
cb -
Throws:
WTException

exportProjectObjects

public static URL exportProjectObjects(NmCommandBean cb)
                                throws WTException
Exports objects (roles,team, documents, projectPlan, deliverables) from the project as selected by the user. These objects may then be imported into another project.

Supported API: false

Parameters:
cb -
Returns:
URL
Throws:
WTException

exportProjectDocuments

public static URL exportProjectDocuments(NmCommandBean cb,
                                         boolean doFolders,
                                         boolean doViewables)
                                  throws WTException
Exports the latest iteration of all documents in the project.

Supported API: false

Parameters:
cb -
doFolders -
doViewables -
Returns:
URL
Throws:
WTException

exportProjectFolders

public static URL exportProjectFolders(NmCommandBean cb)
                                throws WTException
Exports the latest iteration of all documents in the project.

Supported API: false

Parameters:
cb -
Returns:
URL
Throws:
WTException

exportProjectParts

public static URL exportProjectParts(NmCommandBean cb,
                                     boolean doFolders,
                                     boolean doViewables)
                              throws WTException
Exports the latest iteration of all documents in the project.

Supported API: false

Parameters:
cb -
doFolders -
doViewables -
Returns:
URL
Throws:
WTException

exportPlanStructure

public static URL exportPlanStructure(NmCommandBean cb,
                                      boolean doMilestones,
                                      boolean doActivities)
                               throws WTException
Exports the latest iteration of all documents in the project.

Supported API: false

Parameters:
cb -
doMilestones -
doActivities -
Returns:
URL
Throws:
WTException

exportAll

public static URL exportAll(NmCommandBean cb)
                     throws WTException
Exports the latest iteration of all documents in the project.

Supported API: false

Parameters:
cb -
Returns:
URL
Throws:
WTException

registerInCAD

public static void registerInCAD(NmCommandBean cb)
                          throws WTException


Supported API: false

Parameters:
cb -
Throws:
WTException

getUsedRoles

public static ArrayList getUsedRoles(NmOid projectOid)
                              throws WTException


Supported API: false

Parameters:
projectOid -
Returns:
ArrayList
Throws:
WTException

removeUsersFromProject

public static NmChangeModel[] removeUsersFromProject(NmCommandBean cb)
                                              throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

listTeamUsers

public static NmHTMLTable listTeamUsers(NmCommandBean cb)
                                 throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmHTMLTable
Throws:
WTException

emailMembers

public static String emailMembers(NmCommandBean cb)
                           throws WTException


Supported API: false

Parameters:
cb -
Returns:
String
Throws:
WTException

emailTeam

public static String emailTeam(NmOid containerOid)
                        throws WTException


Supported API: false

Parameters:
containerOid -
Returns:
String
Throws:
WTException

teamPaste

public static NmChangeModel[] teamPaste(NmCommandBean cb)
                                 throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

getUsersInProject

public static ArrayList getUsersInProject(NmOid containerOid)
                                   throws WTException


Supported API: false

Parameters:
containerOid -
Returns:
ArrayList
Throws:
WTException

restore

public static NmChangeModel[] restore(NmCommandBean cb)
                               throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

resyncWithGroups

public static NmChangeModel[] resyncWithGroups(NmCommandBean cb)
                                        throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

updateInvitation

public static void updateInvitation(NmCommandBean cb)
                             throws WTException


Supported API: false

Parameters:
cb -
Throws:
WTException

getUsersAndGroupsTable

public static NmHTMLTable getUsersAndGroupsTable(NmCommandBean cb)
                                          throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmHTMLTable
Throws:
WTException

exportContainerAsTemplate

public static void exportContainerAsTemplate(NmCommandBean cb)
                                      throws WTException


Supported API: false

Parameters:
cb -
Throws:
WTException

saveContainerAsNewContainer

public static NmChangeModel[] saveContainerAsNewContainer(NmCommandBean cb)
                                                   throws WTException


Supported API: false

Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

listPath

public static NmProjectCommands.Path listPath(NmContext context,
                                              javax.servlet.http.HttpServletRequest request)
                                       throws WTException
Throws:
WTException

disableQuickCreateStep

public static void disableQuickCreateStep(NmCommandBean cb)
                                   throws WTException
Throws:
WTException

getParams

private static Hashtable getParams(NmCommandBean cb,
                                   int size)

addParam

private static void addParam(Hashtable params,
                             javax.servlet.http.HttpServletRequest request,
                             String parameter,
                             NmCommandBean cb)
A small method to protected agains null


hackoramadownloader

private static void hackoramadownloader(NmCommandBean cb,
                                        String url_string)
                                 throws WTException
This horrible evil method has to be re-worked.

Throws:
WTException

startAndGetChangeModel

private static NmChangeModel[] startAndGetChangeModel(NmOid projectOid,
                                                      NmCommandBean cb)
                                               throws WTException
Throws:
WTException