com.ptc.netmarkets.project
Class StandardNmProjectService

java.lang.Object
  extended bywt.services.StandardManager
      extended bycom.ptc.netmarkets.project.StandardNmProjectService
All Implemented Interfaces:
Manager, NetFactor, NmProjectService, Serializable

public class StandardNmProjectService
extends StandardManager
implements NmProjectService, Serializable

Use the newStandardNmProjectService static factory method(s), not the StandardNmProjectService 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: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private static String CMDCLASSNAME
           
private static String CUIP
           
private static String DEFAULT_SENDER_EMAIL
           
private static String EVENT_RESOURCE
           
private static String GROUP_GIF
           
private static NmHTMLActionModel listActionModel
           
private static String NOTIFY_RESOURCE
           
private static int NRETRIES
           
private static long ONE_DAY
           
private static String PRJ_ROW_ACTIONS
           
private static String PROJECT_TABLE_VIEW
           
private static String PROJMGMT_RESOURCE
           
private static String RESOURCE
           
private static int SLEEPTIME
           
private static String SUB_PROJECT_TABLE_VIEW
           
 boolean USE_DEFAULT_TABLE
           
private static String USER_GIF
           
private static boolean VERBOSE
           
 
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
StandardNmProjectService()
           
 
Method Summary
private  void addGroupNameAlphabetical(ArrayList names, String nextName, ArrayList groups, WTGroup nextGroup)
           
 NmChangeModel[] addRolesToProject(NmCommandBean cb, String[] orgRoles, String[] projectRoles)
          

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

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

Supported API: false
 void confirmUserInProject(NmOid projectOid)
          

Supported API: false
 void copy(NmCommandBean cb)
          

Supported API: false
private  boolean copyPrincipalToTeamRole(WTPrincipal principal, ContainerTeam toTeam, String toRole)
           
private  boolean copyTeamRoleToTeamRole(ContainerTeam fromTeam, String fromRole, ContainerTeam toTeam, String toRole)
           
 NmOid create(NmCommandBean cb, String projectName, String projectDescription, String templateReference)
          

Supported API: false
 void cut(NmCommandBean cb)
          

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

Supported API: false
static void deleteContents(ContentHolder holder)
           
static void deleteContentsOfRepresentable(Representable representable)
           
static void deleteContentsOfViewable(Viewable viewable)
           
 void email(NmCommandBean cb, String subject, String body)
          

Supported API: false
 String emailMembers(NmCommandBean cb)
          

Supported API: false
 String emailTeam(NmOid containerOid)
          

Supported API: false
 NmHTMLTable getAccessForObject(NmCommandBean cb, NmOid oid, boolean createFolder)
          

Supported API: false
 NmHTMLTable getAccessForObject(NmCommandBean cb, NmOid oid, boolean createFolder, boolean share)
          

Supported API: false
 Vector getAvailableProjectTemplates(NmCommandBean cb)
          

Supported API: false
private  boolean getBoolean(Hashtable params, String key)
           
private  NmProject getCommonContextProjectInfo(Project2 project)
           
 String getConceptualClassname()
          Deprecated.  
private  String getDuration(ProjectPlan plan)
           
private  String getDurationToDate(Date from)
           
private  ProjectHealthStatus getHealthStatus(Project2 p, ProjectPlan plan)
           
private  int getInt(Hashtable params, String key)
           
 ArrayList getMembers(NmOid teamOid)
          

Supported API: false
private  NmDate getNmDate(Timestamp t)
           
 Hashtable getPhaseValues()
          

Supported API: false
private static String getPlanDuration(ProjectPlan execObj, String def)
           
 ArrayList getProjectDetails(NmCommandBean cb)
          

Supported API: false
 ArrayList getProjectDetails(NmCommandBean cb, boolean fullDetails)
          

Supported API: false
 Project2 getProjectFromRegisterName(String name)
          

Supported API: false
 ArrayList getProjectInfo(NmCommandBean cb)
          

Supported API: false
 NmProject getProjectInfo(Project2 project)
          

Supported API: false
 NmProjectPlan getProjectPlan(NmProject nm_project)
          Return the NmProjectPlan associated with the specified NmProject or null if none exists.
 NmProject getProjectProperties(NmCommandBean cb)
          

Supported API: false
 NmProject getProjectProperties(NmOid oid)
          

Supported API: false
 NmProject getProjectProperties(NmOid oid, boolean fullDetails)
           
 ArrayList getProjectRowData(NmProject p, String type)
          

Supported API: false
 ArrayList getRecentPrincipalsList(NmOid projectOid)
          

Supported API: false
 String getRegisterName(NmCommandBean cb)
          

Supported API: false
 String getRegisterName(NmOid oid)
          

Supported API: false
 String getRegisterName(WTContainer project)
           
 NmHTMLTable getRelatedProjects(NmCommandBean cb)
          

Supported API: false
 NmProject getShortProjectProperties(NmOid oid)
          

Supported API: false
private  String getStatusGif(ProjectHealthStatus status)
           
private  String getStatusGif(ProjectPlan p)
           
private  String getString(Hashtable params, String key)
           
private  String getString(Hashtable params, String key, String default_value)
           
private  String getString(String value)
           
private  Timestamp getTimestamp(Hashtable params, String key)
           
 ArrayList getUnusedRoles(NmOid teamOid)
          

Supported API: false
 ArrayList getUsedRoles(NmOid teamOid)
          

Supported API: false
private  WTPrincipal getUser(Hashtable params, String key)
           
private  ArrayList getUserRoleRowData(NmObject nmObject, Role adminRole, String[] currentRole, boolean updateActions, boolean listTeamAccess)
           
 NmHTMLTreeNode getUserRoleTreeNode(NmOid nmOid)
          

Supported API: false
private  ArrayList getUserRowData(NmObject nmObject, boolean hasModifyAccess, boolean flatten)
           
 NmHTMLTable getUsersAndGroupsTable(NmCommandBean cb, boolean homeTab)
          

Supported API: false
 ArrayList getUsersInProject(NmOid containerOid)
          

Supported API: false
private  boolean greaterThanPermission(String max, String next)
           
private  boolean isRollUpFinish(Hashtable params)
           
private  boolean isRollUpPerformedWork(Hashtable params)
           
private  boolean isRollUpStatus(Hashtable params)
           
private  boolean isRollUpTotalWork(Hashtable params)
           
 NmHTMLTable list(NmCommandBean cb)
          

Supported API: false
 NmHTMLTable listTeam(NmCommandBean cb, boolean flatten)
          

Supported API: false
private  String maxPermission(Enumeration enum)
           
private  String maxPermission(Enumeration enum, boolean allowNONE)
           
static StandardNmProjectService newStandardNmProjectService()
          Default factory for the class.
 void paste(NmCommandBean cb)
          

Supported API: false
private  String permissionTranslation(AccessPermission aa)
           
 NmChangeModel[] removeContent(NmCommandBean cb)
          

Supported API: false
 NmChangeModel[] removeUsersFromProject(NmCommandBean cb, NmOid projectOid, ArrayList userOids)
          

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

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

Supported API: false
private  ProjectPlan rollUpValues(ProjectPlan plan, Hashtable params)
           
private  boolean same(Object obj1, Object obj2)
           
private  void sendEmail(String msgText, String msgBody, String msgSubject, Vector recipients)
           
 void setAccessForObject(NmCommandBean cb, NmOid oid)
          

Supported API: false
 void setAccessForObject(NmCommandBean cb, NmOid oid, boolean create)
          

Supported API: false
 void setInvitationMsg(NmCommandBean cb, String invitationMessage)
          Set the value of the InvitationMessage attribute in a Project2 object.
 void setSubscriptionForObject(NmCommandBean cb)
          

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

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

Supported API: false
private  NmChangeModel[] startProject(NmOid projectOid)
           
 NmChangeModel[] stop(NmCommandBean cb)
          

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

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

Supported API: false
 NmModel treeTeam(NmCommandBean cb)
          

Supported API: false
 NmChangeModel[] update(NmCommandBean cb, Hashtable params)
          

Supported API: false
private  ProjectPlan updateDeadline(ProjectPlan plan, Hashtable params)
          This method is almost identical to StandardNmProjMgmtService.updateDeadline(wt.projmgmt.execution.ExecutionObject, java.util.Hashtable).
private  ProjectPlan updateDuration(ProjectPlan plan, Hashtable params)
          Update the duration of the project plan.
private  ProjectPlan updateDynamicAttributes(ProjectPlan plan, Hashtable params)
           
private  ProjectPlan updatePlanAttributes(ProjectPlan plan, Hashtable params)
           
private  ProjectPlan updatePlannedStart(ProjectPlan plan, Hashtable params)
          This method is almost identical to StandardNmProjMgmtService.updateStartTime(wt.projmgmt.execution.ExecutionObject, java.util.Hashtable).
private  Project2 updateProjectAttributes(Project2 project, Hashtable params)
           
 Project2 updateProjectDetails(NmOid proj_oid, NmCommandBean cb, Hashtable params)
          

Supported API: false
private  ProjectPlan updateRisk(ProjectPlan plan, Hashtable params)
           
 
Methods inherited from class wt.services.StandardManager
emergencyShutdown, emergencyShutdownComplete, emergencyShuttingDown, getClassInfo, getManagerService, getManagerStatus, getName, getStartupType, init, initialize, initialize, isStarted, newStandardManager, newStandardManager, performEmergencyShutdownProcess, performShutdownProcess, performStartupProcess, 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

listActionModel

private static final NmHTMLActionModel listActionModel

NOTIFY_RESOURCE

private static final String NOTIFY_RESOURCE
See Also:
Constant Field Values

EVENT_RESOURCE

private static final String EVENT_RESOURCE
See Also:
Constant Field Values

PROJMGMT_RESOURCE

private static final String PROJMGMT_RESOURCE
See Also:
Constant Field Values

USE_DEFAULT_TABLE

public boolean USE_DEFAULT_TABLE

VERBOSE

private static final boolean VERBOSE

DEFAULT_SENDER_EMAIL

private static final String DEFAULT_SENDER_EMAIL

PROJECT_TABLE_VIEW

private static final String PROJECT_TABLE_VIEW
See Also:
Constant Field Values

SUB_PROJECT_TABLE_VIEW

private static final String SUB_PROJECT_TABLE_VIEW
See Also:
Constant Field Values

USER_GIF

private static final String USER_GIF
See Also:
Constant Field Values

GROUP_GIF

private static final String GROUP_GIF
See Also:
Constant Field Values

NRETRIES

private static final int NRETRIES
See Also:
Constant Field Values

SLEEPTIME

private static final int SLEEPTIME
See Also:
Constant Field Values

ONE_DAY

private static final long ONE_DAY
See Also:
Constant Field Values

PRJ_ROW_ACTIONS

private static final String PRJ_ROW_ACTIONS
See Also:
Constant Field Values

CUIP

private static final String CUIP
See Also:
Constant Field Values
Constructor Detail

StandardNmProjectService

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

newStandardNmProjectService

public static StandardNmProjectService newStandardNmProjectService()
                                                            throws WTException
Default factory for the class.

Supported API: false

Returns:
StandardNmProjectService
Throws:
WTException

list

public NmHTMLTable list(NmCommandBean cb)
                 throws WTException


Supported API: false

Specified by:
list in interface NmProjectService
Parameters:
cb -
Returns:
NmHTMLTable
Throws:
WTException

create

public NmOid create(NmCommandBean cb,
                    String projectName,
                    String projectDescription,
                    String templateReference)
             throws WTException


Supported API: false

Specified by:
create in interface NmProjectService
Parameters:
cb -
projectName -
projectDescription -
templateReference -
Returns:
NmOid
Throws:
WTException

delete

public NmChangeModel[] delete(NmCommandBean cb)
                       throws WTException


Supported API: false

Specified by:
delete in interface NmProjectService
Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

removeContent

public NmChangeModel[] removeContent(NmCommandBean cb)
                              throws WTException


Supported API: false

Specified by:
removeContent in interface NmProjectService
Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

update

public NmChangeModel[] update(NmCommandBean cb,
                              Hashtable params)
                       throws WTException


Supported API: false

Specified by:
update in interface NmProjectService
Parameters:
cb -
params -
Returns:
NmChangeModel[]
Throws:
WTException

cut

public void cut(NmCommandBean cb)
         throws WTException


Supported API: false

Specified by:
cut in interface NmProjectService
Parameters:
cb -
Throws:
WTException

copy

public void copy(NmCommandBean cb)
          throws WTException


Supported API: false

Specified by:
copy in interface NmProjectService
Parameters:
cb -
Throws:
WTException

paste

public void paste(NmCommandBean cb)
           throws WTException


Supported API: false

Specified by:
paste in interface NmProjectService
Parameters:
cb -
Throws:
WTException

start

public NmChangeModel[] start(NmCommandBean cb)
                      throws WTException


Supported API: false

Specified by:
start in interface NmProjectService
Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

stop

public NmChangeModel[] stop(NmCommandBean cb)
                     throws WTException


Supported API: false

Specified by:
stop in interface NmProjectService
Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

complete

public NmChangeModel[] complete(NmCommandBean cb)
                         throws WTException


Supported API: false

Specified by:
complete in interface NmProjectService
Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

suspend

public NmChangeModel[] suspend(NmCommandBean cb)
                        throws WTException


Supported API: false

Specified by:
suspend in interface NmProjectService
Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

cancel

public NmChangeModel[] cancel(NmCommandBean cb)
                       throws WTException


Supported API: false

Specified by:
cancel in interface NmProjectService
Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

setAccessForObject

public void setAccessForObject(NmCommandBean cb,
                               NmOid oid)
                        throws WTException


Supported API: false

Specified by:
setAccessForObject in interface NmProjectService
Parameters:
cb -
oid -
Throws:
WTException

getAccessForObject

public NmHTMLTable getAccessForObject(NmCommandBean cb,
                                      NmOid oid,
                                      boolean createFolder)
                               throws WTException


Supported API: false

Specified by:
getAccessForObject in interface NmProjectService
Parameters:
cb -
oid -
createFolder -
Returns:
NmHTMLTable
Throws:
WTException

getAccessForObject

public NmHTMLTable getAccessForObject(NmCommandBean cb,
                                      NmOid oid,
                                      boolean createFolder,
                                      boolean share)
                               throws WTException


Supported API: false

Specified by:
getAccessForObject in interface NmProjectService
Parameters:
cb -
oid -
createFolder -
share -
Returns:
NmHTMLTable
Throws:
WTException

setSubscriptionForObject

public void setSubscriptionForObject(NmCommandBean cb)
                              throws WTException


Supported API: false

Specified by:
setSubscriptionForObject in interface NmProjectService
Parameters:
cb -
Throws:
WTException

getProjectProperties

public NmProject getProjectProperties(NmCommandBean cb)
                               throws WTException


Supported API: false

Specified by:
getProjectProperties in interface NmProjectService
Parameters:
cb -
Returns:
NmProject
Throws:
WTException

treeTeam

public NmModel treeTeam(NmCommandBean cb)
                 throws WTException


Supported API: false

Specified by:
treeTeam in interface NmProjectService
Parameters:
cb -
Returns:
NmModel
Throws:
WTException

addRolesToProject

public NmChangeModel[] addRolesToProject(NmCommandBean cb,
                                         String[] orgRoles,
                                         String[] projectRoles)
                                  throws WTException


Supported API: false

Specified by:
addRolesToProject in interface NmProjectService
Parameters:
cb -
orgRoles -
projectRoles -
Returns:
NmChangeModel[]
Throws:
WTException

getUnusedRoles

public ArrayList getUnusedRoles(NmOid teamOid)
                         throws WTException


Supported API: false

Specified by:
getUnusedRoles in interface NmProjectService
Parameters:
teamOid -
Returns:
ArrayList
Throws:
WTException

getPhaseValues

public Hashtable getPhaseValues()
                         throws WTException


Supported API: false

Specified by:
getPhaseValues in interface NmProjectService
Returns:
Hashtable
Throws:
WTException

getMembers

public ArrayList getMembers(NmOid teamOid)
                     throws WTException


Supported API: false

Specified by:
getMembers in interface NmProjectService
Parameters:
teamOid -
Returns:
ArrayList
Throws:
WTException

listTeam

public NmHTMLTable listTeam(NmCommandBean cb,
                            boolean flatten)
                     throws WTException


Supported API: false

Specified by:
listTeam in interface NmProjectService
Parameters:
cb -
flatten -
Returns:
NmHTMLTable
Throws:
WTException

email

public void email(NmCommandBean cb,
                  String subject,
                  String body)
           throws WTException


Supported API: false

Specified by:
email in interface NmProjectService
Parameters:
cb -
subject -
body -
Throws:
WTException

getUsersAndGroupsTable

public NmHTMLTable getUsersAndGroupsTable(NmCommandBean cb,
                                          boolean homeTab)
                                   throws WTException


Supported API: false

Specified by:
getUsersAndGroupsTable in interface NmProjectService
Parameters:
cb -
homeTab -
Returns:
NmHTMLTable
Throws:
WTException

getAvailableProjectTemplates

public Vector getAvailableProjectTemplates(NmCommandBean cb)
                                    throws WTException


Supported API: false

Specified by:
getAvailableProjectTemplates in interface NmProjectService
Parameters:
cb -
Returns:
Vector
Throws:
WTException

confirmUserInProject

public void confirmUserInProject(NmOid projectOid)
                          throws WTException


Supported API: false

Specified by:
confirmUserInProject in interface NmProjectService
Parameters:
projectOid -
Throws:
WTException

getRecentPrincipalsList

public ArrayList getRecentPrincipalsList(NmOid projectOid)
                                  throws WTException


Supported API: false

Specified by:
getRecentPrincipalsList in interface NmProjectService
Parameters:
projectOid -
Returns:
ArrayList
Throws:
WTException

getProjectRowData

public ArrayList getProjectRowData(NmProject p,
                                   String type)
                            throws WTException


Supported API: false

Specified by:
getProjectRowData in interface NmProjectService
Parameters:
p -
type -
Returns:
ArrayList
Throws:
WTException

getProjectProperties

public NmProject getProjectProperties(NmOid oid)
                               throws WTException


Supported API: false

Specified by:
getProjectProperties in interface NmProjectService
Parameters:
oid -
Returns:
NmProject
Throws:
WTException

getUserRoleTreeNode

public NmHTMLTreeNode getUserRoleTreeNode(NmOid nmOid)
                                   throws WTException


Supported API: false

Specified by:
getUserRoleTreeNode in interface NmProjectService
Parameters:
nmOid -
Returns:
NmHTMLTreeNode
Throws:
WTException

start

public NmChangeModel[] start(NmOid oid)
                      throws WTException


Supported API: false

Specified by:
start in interface NmProjectService
Parameters:
oid -
Returns:
NmChangeModel[]
Throws:
WTException

setInvitationMsg

public void setInvitationMsg(NmCommandBean cb,
                             String invitationMessage)
                      throws WTException
Set the value of the InvitationMessage attribute in a Project2 object.

Supported API: false

Specified by:
setInvitationMsg in interface NmProjectService
Parameters:
cb -
invitationMessage -
Throws:
WTException

getProjectPlan

public NmProjectPlan getProjectPlan(NmProject nm_project)
                             throws WTException
Return the NmProjectPlan associated with the specified NmProject or null if none exists.

Supported API: false

Specified by:
getProjectPlan in interface NmProjectService
Parameters:
nm_project -
Returns:
NmProjectPlan
Throws:
WTException

getRelatedProjects

public NmHTMLTable getRelatedProjects(NmCommandBean cb)
                               throws WTException


Supported API: false

Specified by:
getRelatedProjects in interface NmProjectService
Parameters:
cb -
Returns:
NmHTMLTable
Throws:
WTException

updateProjectDetails

public Project2 updateProjectDetails(NmOid proj_oid,
                                     NmCommandBean cb,
                                     Hashtable params)
                              throws WTException


Supported API: false

Specified by:
updateProjectDetails in interface NmProjectService
Parameters:
proj_oid -
cb -
params -
Returns:
Project2
Throws:
WTException

getProjectInfo

public ArrayList getProjectInfo(NmCommandBean cb)
                         throws WTException


Supported API: false

Specified by:
getProjectInfo in interface NmProjectService
Parameters:
cb -
Returns:
ArrayList
Throws:
WTException

getProjectDetails

public ArrayList getProjectDetails(NmCommandBean cb)
                            throws WTException


Supported API: false

Specified by:
getProjectDetails in interface NmProjectService
Parameters:
cb -
Returns:
ArrayList
Throws:
WTException

getProjectDetails

public ArrayList getProjectDetails(NmCommandBean cb,
                                   boolean fullDetails)
                            throws WTException


Supported API: false

Specified by:
getProjectDetails in interface NmProjectService
Parameters:
cb -
fullDetails -
Returns:
ArrayList
Throws:
WTException

getRegisterName

public String getRegisterName(NmCommandBean cb)
                       throws WTException


Supported API: false

Specified by:
getRegisterName in interface NmProjectService
Parameters:
cb -
Returns:
String
Throws:
WTException

getRegisterName

public String getRegisterName(NmOid oid)
                       throws WTException


Supported API: false

Specified by:
getRegisterName in interface NmProjectService
Parameters:
oid -
Returns:
String
Throws:
WTException

getProjectFromRegisterName

public Project2 getProjectFromRegisterName(String name)
                                    throws WTException


Supported API: false

Specified by:
getProjectFromRegisterName in interface NmProjectService
Parameters:
name -
Returns:
Project2
Throws:
WTException

setAccessForObject

public void setAccessForObject(NmCommandBean cb,
                               NmOid oid,
                               boolean create)
                        throws WTException


Supported API: false

Specified by:
setAccessForObject in interface NmProjectService
Parameters:
cb -
oid -
create -
Throws:
WTException

getShortProjectProperties

public NmProject getShortProjectProperties(NmOid oid)
                                    throws WTException


Supported API: false

Specified by:
getShortProjectProperties in interface NmProjectService
Parameters:
oid -
Returns:
NmProject
Throws:
WTException

getUsedRoles

public ArrayList getUsedRoles(NmOid teamOid)
                       throws WTException


Supported API: false

Specified by:
getUsedRoles in interface NmProjectService
Parameters:
teamOid -
Returns:
ArrayList
Throws:
WTException

removeUsersFromProject

public NmChangeModel[] removeUsersFromProject(NmCommandBean cb,
                                              NmOid projectOid,
                                              ArrayList userOids)
                                       throws WTException


Supported API: false

Specified by:
removeUsersFromProject in interface NmProjectService
Parameters:
cb -
projectOid -
userOids -
Returns:
NmChangeModel[]
Throws:
WTException

emailMembers

public String emailMembers(NmCommandBean cb)
                    throws WTException


Supported API: false

Specified by:
emailMembers in interface NmProjectService
Parameters:
cb -
Returns:
String
Throws:
WTException

emailTeam

public String emailTeam(NmOid containerOid)
                 throws WTException


Supported API: false

Specified by:
emailTeam in interface NmProjectService
Parameters:
containerOid -
Returns:
String
Throws:
WTException

teamPaste

public NmChangeModel[] teamPaste(NmCommandBean cb)
                          throws WTException


Supported API: false

Specified by:
teamPaste in interface NmProjectService
Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

getUsersInProject

public ArrayList getUsersInProject(NmOid containerOid)
                            throws WTException


Supported API: false

Specified by:
getUsersInProject in interface NmProjectService
Parameters:
containerOid -
Returns:
ArrayList
Throws:
WTException

restore

public NmChangeModel[] restore(NmCommandBean cb)
                        throws WTException


Supported API: false

Specified by:
restore in interface NmProjectService
Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

resyncWithGroups

public NmChangeModel[] resyncWithGroups(NmCommandBean cb)
                                 throws WTException


Supported API: false

Specified by:
resyncWithGroups in interface NmProjectService
Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

getProjectInfo

public NmProject getProjectInfo(Project2 project)
                         throws WTException


Supported API: false

Specified by:
getProjectInfo in interface NmProjectService
Parameters:
project -
Returns:
NmProject
Throws:
WTException

copyTeamRoleToTeamRole

private boolean copyTeamRoleToTeamRole(ContainerTeam fromTeam,
                                       String fromRole,
                                       ContainerTeam toTeam,
                                       String toRole)
                                throws WTException
Throws:
WTException

copyPrincipalToTeamRole

private boolean copyPrincipalToTeamRole(WTPrincipal principal,
                                        ContainerTeam toTeam,
                                        String toRole)
                                 throws WTException
Throws:
WTException

permissionTranslation

private String permissionTranslation(AccessPermission aa)

maxPermission

private String maxPermission(Enumeration enum)

maxPermission

private String maxPermission(Enumeration enum,
                             boolean allowNONE)

greaterThanPermission

private boolean greaterThanPermission(String max,
                                      String next)

updateProjectAttributes

private Project2 updateProjectAttributes(Project2 project,
                                         Hashtable params)
                                  throws WTException
Throws:
WTException

updatePlanAttributes

private ProjectPlan updatePlanAttributes(ProjectPlan plan,
                                         Hashtable params)
                                  throws WTException
Throws:
WTException

updateRisk

private ProjectPlan updateRisk(ProjectPlan plan,
                               Hashtable params)
                        throws WTException
Throws:
WTException

updateDeadline

private ProjectPlan updateDeadline(ProjectPlan plan,
                                   Hashtable params)
                            throws WTException
This method is almost identical to StandardNmProjMgmtService.updateDeadline(wt.projmgmt.execution.ExecutionObject, java.util.Hashtable). These two methods should be merged and moved to NmProjMgmtHelper.

Throws:
WTException

updatePlannedStart

private ProjectPlan updatePlannedStart(ProjectPlan plan,
                                       Hashtable params)
                                throws WTException
This method is almost identical to StandardNmProjMgmtService.updateStartTime(wt.projmgmt.execution.ExecutionObject, java.util.Hashtable). These two methods should be merged and moved to NmProjMgmtHelper.

Throws:
WTException

updateDuration

private ProjectPlan updateDuration(ProjectPlan plan,
                                   Hashtable params)
                            throws WTException
Update the duration of the project plan.

Parameters:
plan - the plan to be updated
Throws:
WTException
See Also:
wt.projmgmt.monitor.ProjMonitorService.changeDuration

updateDynamicAttributes

private ProjectPlan updateDynamicAttributes(ProjectPlan plan,
                                            Hashtable params)
                                     throws WTException
Throws:
WTException

getDuration

private String getDuration(ProjectPlan plan)
                    throws WTException
Throws:
WTException

same

private boolean same(Object obj1,
                     Object obj2)

isRollUpStatus

private boolean isRollUpStatus(Hashtable params)

isRollUpTotalWork

private boolean isRollUpTotalWork(Hashtable params)

isRollUpPerformedWork

private boolean isRollUpPerformedWork(Hashtable params)

isRollUpFinish

private boolean isRollUpFinish(Hashtable params)

rollUpValues

private ProjectPlan rollUpValues(ProjectPlan plan,
                                 Hashtable params)
                          throws WTException
Throws:
WTException

getString

private String getString(Hashtable params,
                         String key)

getString

private String getString(Hashtable params,
                         String key,
                         String default_value)

getString

private String getString(String value)

getTimestamp

private Timestamp getTimestamp(Hashtable params,
                               String key)
                        throws WTException
Throws:
WTException

getInt

private int getInt(Hashtable params,
                   String key)

getStatusGif

private String getStatusGif(ProjectHealthStatus status)
                     throws WTException
Throws:
WTException

getStatusGif

private String getStatusGif(ProjectPlan p)
                     throws WTException
Throws:
WTException

getBoolean

private boolean getBoolean(Hashtable params,
                           String key)

getUserRowData

private ArrayList getUserRowData(NmObject nmObject,
                                 boolean hasModifyAccess,
                                 boolean flatten)
                          throws WTException
Throws:
WTException

startProject

private NmChangeModel[] startProject(NmOid projectOid)
                              throws WTException
Throws:
WTException

getNmDate

private NmDate getNmDate(Timestamp t)

getDurationToDate

private String getDurationToDate(Date from)

getUser

private WTPrincipal getUser(Hashtable params,
                            String key)
                     throws WTException
Throws:
WTException

sendEmail

private void sendEmail(String msgText,
                       String msgBody,
                       String msgSubject,
                       Vector recipients)
                throws WTException
Throws:
WTException

addGroupNameAlphabetical

private void addGroupNameAlphabetical(ArrayList names,
                                      String nextName,
                                      ArrayList groups,
                                      WTGroup nextGroup)
                               throws WTException
Throws:
WTException

getRegisterName

public String getRegisterName(WTContainer project)
                       throws WTException
Throws:
WTException

getProjectProperties

public NmProject getProjectProperties(NmOid oid,
                                      boolean fullDetails)
                               throws WTException
Throws:
WTException

deleteContentsOfRepresentable

public static void deleteContentsOfRepresentable(Representable representable)
                                          throws WTException,
                                                 WTPropertyVetoException,
                                                 PropertyVetoException
Throws:
WTException
WTPropertyVetoException
PropertyVetoException

deleteContentsOfViewable

public static void deleteContentsOfViewable(Viewable viewable)
                                     throws WTException,
                                            WTPropertyVetoException,
                                            PropertyVetoException
Throws:
WTException
WTPropertyVetoException
PropertyVetoException

deleteContents

public static void deleteContents(ContentHolder holder)
                           throws WTException,
                                  WTPropertyVetoException,
                                  PropertyVetoException
Throws:
WTException
WTPropertyVetoException
PropertyVetoException

getHealthStatus

private ProjectHealthStatus getHealthStatus(Project2 p,
                                            ProjectPlan plan)
                                     throws WTException
Throws:
WTException

getUserRoleRowData

private ArrayList getUserRoleRowData(NmObject nmObject,
                                     Role adminRole,
                                     String[] currentRole,
                                     boolean updateActions,
                                     boolean listTeamAccess)
                              throws WTException
Throws:
WTException

getCommonContextProjectInfo

private NmProject getCommonContextProjectInfo(Project2 project)
                                       throws WTException
Throws:
WTException

getPlanDuration

private static String getPlanDuration(ProjectPlan execObj,
                                      String def)
                               throws WTException
Throws:
WTException