|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
com.ptc.netmarkets.project.StandardNmProjectService
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
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()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static final String CMDCLASSNAME
private static final NmHTMLActionModel listActionModel
private static final String NOTIFY_RESOURCE
private static final String EVENT_RESOURCE
private static final String PROJMGMT_RESOURCE
public boolean USE_DEFAULT_TABLE
private static final boolean VERBOSE
private static final String DEFAULT_SENDER_EMAIL
private static final String PROJECT_TABLE_VIEW
private static final String SUB_PROJECT_TABLE_VIEW
private static final String USER_GIF
private static final String GROUP_GIF
private static final int NRETRIES
private static final int SLEEPTIME
private static final long ONE_DAY
private static final String PRJ_ROW_ACTIONS
private static final String CUIP
Constructor Detail |
public StandardNmProjectService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
public static StandardNmProjectService newStandardNmProjectService() throws WTException
WTException
public NmHTMLTable list(NmCommandBean cb) throws WTException
list
in interface NmProjectService
cb
-
WTException
public NmOid create(NmCommandBean cb, String projectName, String projectDescription, String templateReference) throws WTException
create
in interface NmProjectService
cb
- projectName
- projectDescription
- templateReference
-
WTException
public NmChangeModel[] delete(NmCommandBean cb) throws WTException
delete
in interface NmProjectService
cb
-
WTException
public NmChangeModel[] removeContent(NmCommandBean cb) throws WTException
removeContent
in interface NmProjectService
cb
-
WTException
public NmChangeModel[] update(NmCommandBean cb, Hashtable params) throws WTException
update
in interface NmProjectService
cb
- params
-
WTException
public void cut(NmCommandBean cb) throws WTException
cut
in interface NmProjectService
cb
-
WTException
public void copy(NmCommandBean cb) throws WTException
copy
in interface NmProjectService
cb
-
WTException
public void paste(NmCommandBean cb) throws WTException
paste
in interface NmProjectService
cb
-
WTException
public NmChangeModel[] start(NmCommandBean cb) throws WTException
start
in interface NmProjectService
cb
-
WTException
public NmChangeModel[] stop(NmCommandBean cb) throws WTException
stop
in interface NmProjectService
cb
-
WTException
public NmChangeModel[] complete(NmCommandBean cb) throws WTException
complete
in interface NmProjectService
cb
-
WTException
public NmChangeModel[] suspend(NmCommandBean cb) throws WTException
suspend
in interface NmProjectService
cb
-
WTException
public NmChangeModel[] cancel(NmCommandBean cb) throws WTException
cancel
in interface NmProjectService
cb
-
WTException
public void setAccessForObject(NmCommandBean cb, NmOid oid) throws WTException
setAccessForObject
in interface NmProjectService
cb
- oid
-
WTException
public NmHTMLTable getAccessForObject(NmCommandBean cb, NmOid oid, boolean createFolder) throws WTException
getAccessForObject
in interface NmProjectService
cb
- oid
- createFolder
-
WTException
public NmHTMLTable getAccessForObject(NmCommandBean cb, NmOid oid, boolean createFolder, boolean share) throws WTException
getAccessForObject
in interface NmProjectService
cb
- oid
- createFolder
- share
-
WTException
public void setSubscriptionForObject(NmCommandBean cb) throws WTException
setSubscriptionForObject
in interface NmProjectService
cb
-
WTException
public NmProject getProjectProperties(NmCommandBean cb) throws WTException
getProjectProperties
in interface NmProjectService
cb
-
WTException
public NmModel treeTeam(NmCommandBean cb) throws WTException
treeTeam
in interface NmProjectService
cb
-
WTException
public NmChangeModel[] addRolesToProject(NmCommandBean cb, String[] orgRoles, String[] projectRoles) throws WTException
addRolesToProject
in interface NmProjectService
cb
- orgRoles
- projectRoles
-
WTException
public ArrayList getUnusedRoles(NmOid teamOid) throws WTException
getUnusedRoles
in interface NmProjectService
teamOid
-
WTException
public Hashtable getPhaseValues() throws WTException
getPhaseValues
in interface NmProjectService
WTException
public ArrayList getMembers(NmOid teamOid) throws WTException
getMembers
in interface NmProjectService
teamOid
-
WTException
public NmHTMLTable listTeam(NmCommandBean cb, boolean flatten) throws WTException
listTeam
in interface NmProjectService
cb
- flatten
-
WTException
public void email(NmCommandBean cb, String subject, String body) throws WTException
email
in interface NmProjectService
cb
- subject
- body
-
WTException
public NmHTMLTable getUsersAndGroupsTable(NmCommandBean cb, boolean homeTab) throws WTException
getUsersAndGroupsTable
in interface NmProjectService
cb
- homeTab
-
WTException
public Vector getAvailableProjectTemplates(NmCommandBean cb) throws WTException
getAvailableProjectTemplates
in interface NmProjectService
cb
-
WTException
public void confirmUserInProject(NmOid projectOid) throws WTException
confirmUserInProject
in interface NmProjectService
projectOid
-
WTException
public ArrayList getRecentPrincipalsList(NmOid projectOid) throws WTException
getRecentPrincipalsList
in interface NmProjectService
projectOid
-
WTException
public ArrayList getProjectRowData(NmProject p, String type) throws WTException
getProjectRowData
in interface NmProjectService
p
- type
-
WTException
public NmProject getProjectProperties(NmOid oid) throws WTException
getProjectProperties
in interface NmProjectService
oid
-
WTException
public NmHTMLTreeNode getUserRoleTreeNode(NmOid nmOid) throws WTException
getUserRoleTreeNode
in interface NmProjectService
nmOid
-
WTException
public NmChangeModel[] start(NmOid oid) throws WTException
start
in interface NmProjectService
oid
-
WTException
public void setInvitationMsg(NmCommandBean cb, String invitationMessage) throws WTException
setInvitationMsg
in interface NmProjectService
cb
- invitationMessage
-
WTException
public NmProjectPlan getProjectPlan(NmProject nm_project) throws WTException
NmProjectPlan
associated
with the specified NmProject
or
null
if none exists.
getProjectPlan
in interface NmProjectService
nm_project
-
WTException
public NmHTMLTable getRelatedProjects(NmCommandBean cb) throws WTException
getRelatedProjects
in interface NmProjectService
cb
-
WTException
public Project2 updateProjectDetails(NmOid proj_oid, NmCommandBean cb, Hashtable params) throws WTException
updateProjectDetails
in interface NmProjectService
proj_oid
- cb
- params
-
WTException
public ArrayList getProjectInfo(NmCommandBean cb) throws WTException
getProjectInfo
in interface NmProjectService
cb
-
WTException
public ArrayList getProjectDetails(NmCommandBean cb) throws WTException
getProjectDetails
in interface NmProjectService
cb
-
WTException
public ArrayList getProjectDetails(NmCommandBean cb, boolean fullDetails) throws WTException
getProjectDetails
in interface NmProjectService
cb
- fullDetails
-
WTException
public String getRegisterName(NmCommandBean cb) throws WTException
getRegisterName
in interface NmProjectService
cb
-
WTException
public String getRegisterName(NmOid oid) throws WTException
getRegisterName
in interface NmProjectService
oid
-
WTException
public Project2 getProjectFromRegisterName(String name) throws WTException
getProjectFromRegisterName
in interface NmProjectService
name
-
WTException
public void setAccessForObject(NmCommandBean cb, NmOid oid, boolean create) throws WTException
setAccessForObject
in interface NmProjectService
cb
- oid
- create
-
WTException
public NmProject getShortProjectProperties(NmOid oid) throws WTException
getShortProjectProperties
in interface NmProjectService
oid
-
WTException
public ArrayList getUsedRoles(NmOid teamOid) throws WTException
getUsedRoles
in interface NmProjectService
teamOid
-
WTException
public NmChangeModel[] removeUsersFromProject(NmCommandBean cb, NmOid projectOid, ArrayList userOids) throws WTException
removeUsersFromProject
in interface NmProjectService
cb
- projectOid
- userOids
-
WTException
public String emailMembers(NmCommandBean cb) throws WTException
emailMembers
in interface NmProjectService
cb
-
WTException
public String emailTeam(NmOid containerOid) throws WTException
emailTeam
in interface NmProjectService
containerOid
-
WTException
public NmChangeModel[] teamPaste(NmCommandBean cb) throws WTException
teamPaste
in interface NmProjectService
cb
-
WTException
public ArrayList getUsersInProject(NmOid containerOid) throws WTException
getUsersInProject
in interface NmProjectService
containerOid
-
WTException
public NmChangeModel[] restore(NmCommandBean cb) throws WTException
restore
in interface NmProjectService
cb
-
WTException
public NmChangeModel[] resyncWithGroups(NmCommandBean cb) throws WTException
resyncWithGroups
in interface NmProjectService
cb
-
WTException
public NmProject getProjectInfo(Project2 project) throws WTException
getProjectInfo
in interface NmProjectService
project
-
WTException
private boolean copyTeamRoleToTeamRole(ContainerTeam fromTeam, String fromRole, ContainerTeam toTeam, String toRole) throws WTException
WTException
private boolean copyPrincipalToTeamRole(WTPrincipal principal, ContainerTeam toTeam, String toRole) throws WTException
WTException
private String permissionTranslation(AccessPermission aa)
private String maxPermission(Enumeration enum)
private String maxPermission(Enumeration enum, boolean allowNONE)
private boolean greaterThanPermission(String max, String next)
private Project2 updateProjectAttributes(Project2 project, Hashtable params) throws WTException
WTException
private ProjectPlan updatePlanAttributes(ProjectPlan plan, Hashtable params) throws WTException
WTException
private ProjectPlan updateRisk(ProjectPlan plan, Hashtable params) throws WTException
WTException
private ProjectPlan updateDeadline(ProjectPlan plan, Hashtable params) throws WTException
StandardNmProjMgmtService.updateDeadline(wt.projmgmt.execution.ExecutionObject, java.util.Hashtable)
.
These two methods should be merged and moved to
NmProjMgmtHelper
.
WTException
private ProjectPlan updatePlannedStart(ProjectPlan plan, Hashtable params) throws WTException
StandardNmProjMgmtService.updateStartTime(wt.projmgmt.execution.ExecutionObject, java.util.Hashtable)
.
These two methods should be merged and moved to
NmProjMgmtHelper
.
WTException
private ProjectPlan updateDuration(ProjectPlan plan, Hashtable params) throws WTException
plan
- the plan to be updated
WTException
wt.projmgmt.monitor.ProjMonitorService.changeDuration
private ProjectPlan updateDynamicAttributes(ProjectPlan plan, Hashtable params) throws WTException
WTException
private String getDuration(ProjectPlan plan) throws WTException
WTException
private boolean same(Object obj1, Object obj2)
private boolean isRollUpStatus(Hashtable params)
private boolean isRollUpTotalWork(Hashtable params)
private boolean isRollUpPerformedWork(Hashtable params)
private boolean isRollUpFinish(Hashtable params)
private ProjectPlan rollUpValues(ProjectPlan plan, Hashtable params) throws WTException
WTException
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) throws WTException
WTException
private int getInt(Hashtable params, String key)
private String getStatusGif(ProjectHealthStatus status) throws WTException
WTException
private String getStatusGif(ProjectPlan p) throws WTException
WTException
private boolean getBoolean(Hashtable params, String key)
private ArrayList getUserRowData(NmObject nmObject, boolean hasModifyAccess, boolean flatten) throws WTException
WTException
private NmChangeModel[] startProject(NmOid projectOid) throws WTException
WTException
private NmDate getNmDate(Timestamp t)
private String getDurationToDate(Date from)
private WTPrincipal getUser(Hashtable params, String key) throws WTException
WTException
private void sendEmail(String msgText, String msgBody, String msgSubject, Vector recipients) throws WTException
WTException
private void addGroupNameAlphabetical(ArrayList names, String nextName, ArrayList groups, WTGroup nextGroup) throws WTException
WTException
public String getRegisterName(WTContainer project) throws WTException
WTException
public NmProject getProjectProperties(NmOid oid, boolean fullDetails) throws WTException
WTException
public static void deleteContentsOfRepresentable(Representable representable) throws WTException, WTPropertyVetoException, PropertyVetoException
WTException
WTPropertyVetoException
PropertyVetoException
public static void deleteContentsOfViewable(Viewable viewable) throws WTException, WTPropertyVetoException, PropertyVetoException
WTException
WTPropertyVetoException
PropertyVetoException
public static void deleteContents(ContentHolder holder) throws WTException, WTPropertyVetoException, PropertyVetoException
WTException
WTPropertyVetoException
PropertyVetoException
private ProjectHealthStatus getHealthStatus(Project2 p, ProjectPlan plan) throws WTException
WTException
private ArrayList getUserRoleRowData(NmObject nmObject, Role adminRole, String[] currentRole, boolean updateActions, boolean listTeamAccess) throws WTException
WTException
private NmProject getCommonContextProjectInfo(Project2 project) throws WTException
WTException
private static String getPlanDuration(ProjectPlan execObj, String def) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |