Class RiskResponseAction
java.lang.Object
com.primavera.integration.client.BOBase
com.primavera.integration.client.bo.BusinessObject
com.primavera.integration.client.bo.object.RiskResponseAction
The risk response action object contains the detailed steps that need to occur to complete the
risk response plan. Multiple actions can be associated with one response plan and each action can
be linked to an activity in the project.
-
Constructor Summary
ConstructorsConstructorDescriptionRiskResponseAction(Session session) Class constructor specifying the Session.RiskResponseAction(Session session, ObjectId objId) Class constructor specifying the Session and ObjectId of the object.RiskResponseAction(Session session, com.primavera.infr.db.PrmRowSet rowSet, int iIndex) Class constructor called internally after objects are retrieved from the server. -
Method Summary
Modifier and TypeMethodDescriptioncreate()Creates this RiskResponseAction object in the database.static ObjectId[]create(Session session, RiskResponseAction[] riskresponseactions) Creates multiple RiskResponseAction objects in the database.voiddelete()Deletes this RiskResponseAction object from the database.static voiddelete(Session session, RiskResponseAction[] riskresponseactions) Deletes multiple RiskResponseAction objects from the database.Gets the id of an activity impacted by the Risk.Gets the name of an activity impacted by the Risk.Gets the unique ID of the associated activity.Gets the actual cost.static String[]Gets all fields for this business object.Gets the date this risk response action was created.Gets the name of the user that created the risk response action.static String[]Deprecated.static String[]Gets all fields that can be filtered.Gets the finish date of the risk response action.getId()Gets the unique Id of the risk response action.static String[]An internal method that should not be called directly by client code.An internal method that should not be called directly by client code.static String[]An internal method that should not be called directly by client code.booleanGets the boolean value indicating if this business object is related to a Project or Baseline.booleanGets the boolean value indicating if this business object is related to a template Project.Gets the date this risk response action was last updated.Gets the name of the user that last updated the risk response action.static String[]Gets all fields that are always exported at a minimum by the new flat XML exportergetName()Gets the name of the risk response action.Gets the unique ID of the associated risk.Gets the planned cost.Gets the planned finish date.Gets the planned start date.Gets the short name of the associated project.Gets the name of the associated project.Gets the unique ID of the associated project.Gets the remaining cost associated with the risk response action.static String[]Gets all fields that must be set before calling create() on this business object.Gets the ID of the resource who owns the risk response action.Gets the name of the resource who owns the risk response action.Gets the unique ID of the associated resource.Gets the ID of the Risk.Gets the unique ID of the associated risk.Gets the ID of the risk response plan.Gets the name of the risk response plan.Gets the unique ID of the associated risk response plan.intgetScore()Gets the risk score from the numeric PID after the response action has been completed.intGets the color of the tolerance threshold for the score value.Gets the risk score from the alphanumeric PID after the response action has been completed.Gets the start date of the risk response action.Gets the status of the risk response action.static String[]Gets all writable fields for this business object.static RiskResponseActionLoads a single RiskResponseAction object from the database.static BOIterator<RiskResponseAction>Loads multiple RiskResponseAction objects from the database.loadActivity(String[] fields) Loads an associated Activity object from the database.loadProject(String[] fields) Loads an associated Project object from the database.loadResource(String[] fields) Loads an associated Resource object from the database.loadRiskResponseActionImpacts(String[] fields, String sWhereClause, String sOrderBy) Loads multiple associated RiskResponseActionImpact objects from the database.loadRiskResponsePlan(String[] fields) Loads an associated RiskResponsePlan object from the database.voidSets the unique ID of the associated activity.voidSets the actual cost.voidSets the finish date of the risk response action.voidSets the unique Id of the risk response action.voidSets the name of the risk response action.voidSets the unique ID of the associated risk.voidSets the planned cost.voidSets the planned finish date.voidSets the planned start date.voidSets the remaining cost associated with the risk response action.voidSets the unique ID of the associated resource.voidSets the unique ID of the associated risk response plan.voidSets the start date of the risk response action.voidSets the status of the risk response action.toString()Returns a string representation of the object.voidupdate()Updates this RiskResponseAction object in the database.static voidupdate(Session session, RiskResponseAction[] riskresponseactions) Updates multiple RiskResponseAction objects in the database.Methods inherited from class com.primavera.integration.client.bo.BusinessObject
equals, getMaxFieldLength, getValue, getValue, hashCode, isNull, setEarlyDate, setNullMethods inherited from class com.primavera.integration.client.BOBase
combineFields
-
Constructor Details
-
RiskResponseAction
Class constructor specifying the Session. This constructor is most commonly used when create() is intended to be called on this object.- Parameters:
session- the Session
-
RiskResponseAction
Class constructor specifying the Session and ObjectId of the object. This constructor is most commonly used when update() will be called on this object.- Parameters:
session- the SessionobjId- the ObjectId- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
RiskResponseAction
public RiskResponseAction(Session session, com.primavera.infr.db.PrmRowSet rowSet, int iIndex) throws BusinessObjectException Class constructor called internally after objects are retrieved from the server. Client code should use one of the other constructors for this class.- Parameters:
session- the SessionrowSet- the PrmRowSet retrieved from the serveriIndex- the row index in the PrmRowSet associated with this business object- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
-
Method Details
-
loadRiskResponsePlan
public RiskResponsePlan loadRiskResponsePlan(String[] fields) throws ServerException, NetworkException, BusinessObjectException Loads an associated RiskResponsePlan object from the database.- Parameters:
fields- fields to load- Returns:
- RiskResponsePlan the RiskResponsePlan object
- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
loadProject
public Project loadProject(String[] fields) throws ServerException, NetworkException, BusinessObjectException Loads an associated Project object from the database.- Parameters:
fields- fields to load- Returns:
- Project the Project object
- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
loadActivity
public Activity loadActivity(String[] fields) throws ServerException, NetworkException, BusinessObjectException Loads an associated Activity object from the database.- Parameters:
fields- fields to load- Returns:
- Activity the Activity object
- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
loadRiskResponseActionImpacts
public BOIterator<RiskResponseActionImpact> loadRiskResponseActionImpacts(String[] fields, String sWhereClause, String sOrderBy) throws ServerException, NetworkException, BusinessObjectException Loads multiple associated RiskResponseActionImpact objects from the database.- Parameters:
fields- fields to loadsWhereClause- where clausesOrderBy- order-by clause- Returns:
- BOIterator a business object iterator used to get the results of the load request
- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
loadResource
public Resource loadResource(String[] fields) throws ServerException, NetworkException, BusinessObjectException Loads an associated Resource object from the database.- Parameters:
fields- fields to load- Returns:
- Resource the Resource object
- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
getRiskObjectId
Gets the unique ID of the associated risk.- Returns:
- the value in the field RiskObjectId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getRiskId
Gets the ID of the Risk. Must be unique within a project.- Returns:
- the value in the field RiskId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getObjectId
Gets the unique ID of the associated risk. This field is automatically loaded by default whenever this type of business object is loaded from the database.- Overrides:
getObjectIdin classBusinessObject- Returns:
- the value in the field ObjectId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setObjectId
Sets the unique ID of the associated risk. This field is automatically loaded by default whenever this type of business object is loaded from the database.- Overrides:
setObjectIdin classBusinessObject- Parameters:
o- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getRiskResponsePlanObjectId
Gets the unique ID of the associated risk response plan. This field is automatically loaded by default whenever this type of business object is loaded from the database. This field must contain a valid value in order to create this type of business object in the database.- Returns:
- the value in the field RiskResponsePlanObjectId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setRiskResponsePlanObjectId
Sets the unique ID of the associated risk response plan. This field is automatically loaded by default whenever this type of business object is loaded from the database. This field must contain a valid value in order to create this type of business object in the database.- Parameters:
o- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getResourceObjectId
Gets the unique ID of the associated resource. This field is automatically loaded by default whenever this type of business object is loaded from the database.- Returns:
- the value in the field ResourceObjectId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setResourceObjectId
Sets the unique ID of the associated resource. This field is automatically loaded by default whenever this type of business object is loaded from the database.- Parameters:
o- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getResourceName
Gets the name of the resource who owns the risk response action. The owner of the risk response action is responsible for resolving the risk response action.- Returns:
- the value in the field ResourceName
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getResourceId
Gets the ID of the resource who owns the risk response action. The owner of the risk response action is responsible for resolving the risk response action.- Returns:
- the value in the field ResourceId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getRiskResponsePlanId
Gets the ID of the risk response plan. This must be unique within the project.- Returns:
- the value in the field RiskResponsePlanId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getRiskResponsePlanName
Gets the name of the risk response plan. This does not need to be unique within the project.- Returns:
- the value in the field RiskResponsePlanName
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getProjectObjectId
Gets the unique ID of the associated project. This field is automatically loaded by default whenever this type of business object is loaded from the database.- Returns:
- the value in the field ProjectObjectId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getProjectId
Gets the short name of the associated project.- Returns:
- the value in the field ProjectId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getProjectName
Gets the name of the associated project.- Returns:
- the value in the field ProjectName
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getActivityObjectId
Gets the unique ID of the associated activity. This field is automatically loaded by default whenever this type of business object is loaded from the database.- Returns:
- the value in the field ActivityObjectId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setActivityObjectId
Sets the unique ID of the associated activity. This field is automatically loaded by default whenever this type of business object is loaded from the database.- Parameters:
o- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getActivityId
Gets the id of an activity impacted by the Risk.- Returns:
- the value in the field ActivityId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getActivityName
Gets the name of an activity impacted by the Risk. The activity name does not have to be unique.- Returns:
- the value in the field ActivityName
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getId
Gets the unique Id of the risk response action. This field must contain a valid value in order to create this type of business object in the database.- Returns:
- the value in the field Id
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setId
Sets the unique Id of the risk response action. This field must contain a valid value in order to create this type of business object in the database.- Parameters:
s- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getName
Gets the name of the risk response action.- Returns:
- the value in the field Name
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setName
Sets the name of the risk response action.- Parameters:
s- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getStartDate
Gets the start date of the risk response action. If an activity is assigned, the risk response action uses the activity start date. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field StartDate
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setStartDate
Sets the start date of the risk response action. If an activity is assigned, the risk response action uses the activity start date. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
d- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getFinishDate
Gets the finish date of the risk response action. If an activity is assigned, the risk response action uses the activity finish date. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field FinishDate
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setFinishDate
Sets the finish date of the risk response action. If an activity is assigned, the risk response action uses the activity finish date. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
d- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getPlannedStartDate
Gets the planned start date. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field PlannedStartDate
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setPlannedStartDate
Sets the planned start date. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
d- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getPlannedFinishDate
Gets the planned finish date. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field PlannedFinishDate
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setPlannedFinishDate
Sets the planned finish date. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
d- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getRemainingCost
Gets the remaining cost associated with the risk response action. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field RemainingCost
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setRemainingCost
Sets the remaining cost associated with the risk response action. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
c- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getActualCost
Gets the actual cost. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field ActualCost
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setActualCost
Sets the actual cost. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
c- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getPlannedCost
Gets the planned cost. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field PlannedCost
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setPlannedCost
Sets the planned cost. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
c- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getStatus
Gets the status of the risk response action. Valid values are 'Proposed', 'Sanctioned', 'Rejected', 'InProgress', and 'Complete'.- Returns:
- the value in the field Status
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setStatus
Sets the status of the risk response action. Valid values are 'Proposed', 'Sanctioned', 'Rejected', 'InProgress', and 'Complete'.- Parameters:
enm- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getCreateDate
Gets the date this risk response action was created.- Returns:
- the value in the field CreateDate
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getLastUpdateDate
Gets the date this risk response action was last updated.- Returns:
- the value in the field LastUpdateDate
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getCreateUser
Gets the name of the user that created the risk response action.- Returns:
- the value in the field CreateUser
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getLastUpdateUser
Gets the name of the user that last updated the risk response action.- Returns:
- the value in the field LastUpdateUser
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getIsBaseline
Gets the boolean value indicating if this business object is related to a Project or Baseline.- Returns:
- the value in the field IsBaseline
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getIsTemplate
Gets the boolean value indicating if this business object is related to a template Project.- Returns:
- the value in the field IsTemplate
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getScore
Gets the risk score from the numeric PID after the response action has been completed. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field Score
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getScoreText
Gets the risk score from the alphanumeric PID after the response action has been completed. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field ScoreText
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getScoreColor
Gets the color of the tolerance threshold for the score value. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field ScoreColor
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getRequiredCreateFields
Gets all fields that must be set before calling create() on this business object. Generally the array will contain one field in each position, but if this business object requires either one field or another field to be set, both of those fields will appear in an element of the returned array separated by '|'. For example, if this business object requires field A to always be set, and field B or field C to be set, one element in the returned array will contain A, and one element will contain B|C.- Returns:
- String[] an array of required create fields
-
getFilterableFields
Gets all fields that can be filtered.- Returns:
- String[] an array of filterable fields
-
getInternalDefaultLoadFields
An internal method that should not be called directly by client code.- Returns:
- String[] an internal array
-
getAllFields
Gets all fields for this business object.- Returns:
- String[] an array of all fields
-
getInternalAllFields
An internal method that should not be called directly by client code.- Returns:
- String[] an internal array
-
getInternalAllFieldsSet
An internal method that should not be called directly by client code.- Returns:
- String[] an internal array
-
getWritableFields
Gets all writable fields for this business object.- Returns:
- String[] an array of writable fields
-
getDefaultXMLExportFields
Deprecated.Gets the fields that are exported by the hierarchical XML exporter when no fields are specified. This method is no longer relevant since the hierarchical XML exporter has been replaced by the flat XML exporter.- Returns:
- String[] an array of field names
-
getMinimumXMLExportFields
Gets all fields that are always exported at a minimum by the new flat XML exporter- Returns:
- String[] an array of exported fields
-
toString
Returns a string representation of the object. The output is in XML. -
create
Creates this RiskResponseAction object in the database.- Returns:
- ObjectId the unique ID of the newly created RiskResponseAction object
- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
create
public static ObjectId[] create(Session session, RiskResponseAction[] riskresponseactions) throws ServerException, NetworkException, BusinessObjectException Creates multiple RiskResponseAction objects in the database.- Parameters:
session- the Session objectriskresponseactions- array of RiskResponseAction objects to create- Returns:
- ObjectId[] the array of unique IDs of newly created RiskResponseAction objects
- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
load
public static RiskResponseAction load(Session session, String[] fields, ObjectId objId) throws ServerException, NetworkException, BusinessObjectException Loads a single RiskResponseAction object from the database.- Parameters:
session- the Session objectfields- fields to loadobjId- unique ID of the RiskResponseAction object- Returns:
- RiskResponseAction the RiskResponseAction object
- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
load
public static BOIterator<RiskResponseAction> load(Session session, String[] fields, ObjectId[] objIds) throws ServerException, NetworkException, BusinessObjectException Loads multiple RiskResponseAction objects from the database.- Parameters:
session- the Session objectfields- fields to loadobjIds- object ids of the RiskResponseAction objects- Returns:
- BOIterator a business object iterator used to get the results of the load request
- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
update
Updates this RiskResponseAction object in the database.- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
update
public static void update(Session session, RiskResponseAction[] riskresponseactions) throws ServerException, NetworkException, BusinessObjectException Updates multiple RiskResponseAction objects in the database.- Parameters:
session- the Session objectriskresponseactions- array of RiskResponseAction objects to update- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
delete
Deletes this RiskResponseAction object from the database.- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
delete
public static void delete(Session session, RiskResponseAction[] riskresponseactions) throws ServerException, NetworkException, BusinessObjectException Deletes multiple RiskResponseAction objects from the database.- Parameters:
session- the Session objectriskresponseactions- array of RiskResponseAction objects to delete- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-