Class TimesheetAudit
java.lang.Object
com.primavera.integration.client.BOBase
com.primavera.integration.client.bo.BusinessObject
com.primavera.integration.client.bo.object.TimesheetAudit
The timesheet audit class facilitates reading the timesheet audit records, added to the PM database as triggered by user activity, one record at a time. Fields that can be loaded on the TimesheetAudit object include information about the approval and rejection history (e.g., reviewers and review dates), information about the timesheets (e.g., number of overhead, overtime, and project hours), and information about the audit (e.g, the date the timesheet audit was created). Timesheet audits are readonly.
See Also: Quick reference of TimesheetAudit fields
-
Constructor Summary
ConstructorsConstructorDescriptionTimesheetAudit(Session session) Class constructor specifying the Session.TimesheetAudit(Session session, ObjectId objId) Class constructor specifying the Session and ObjectId of the object.TimesheetAudit(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 TypeMethodDescriptionstatic String[]Gets all fields for this business object.Gets the user name of the approver.Gets the unique user ID of the approver.Gets the date this timesheet audit was created.static String[]Deprecated.static String[]Gets all fields that can be filtered.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.static String[]Gets all fields that are always exported at a minimum by the new flat XML exporterGets the unique ID generated by the system.doubleGets the total overhead hours for the timesheet.doubleGets the total overhead overtime hours for the timesheet.doubleGets the total pending overhead hours for the timesheet.doubleGets the total pending overhead overtime hours for the timesheet.doubleGets the total pending project hours for the timesheet.doubleGets the total pending project overtime hours for the timesheet.doubleGets the total project hours for the timesheet.Gets the short code that uniquely identifies the project.Gets the unique ID of the associated project.doubleGets the total project overtime hours for the timesheet.Gets the short code that uniquely identifies the resource.Gets the name of the resource.Gets the unique ID of the associated resource.Gets the status of the timesheet activity, the value of which will depend on who approved or rejected it.Gets the role of the timesheet approver.Gets the timesheet period end date.Gets the unique ID of the timesheet period.Gets the timesheet period start date.Gets the status of the timesheet.static String[]Gets all writable fields for this business object.static TimesheetAuditLoads a single TimesheetAudit object from the database.static BOIterator<TimesheetAudit>Loads multiple TimesheetAudit objects from the database.toString()Returns a string representation of the object.Methods inherited from class com.primavera.integration.client.bo.BusinessObject
equals, getMaxFieldLength, getValue, getValue, hashCode, isNull, setEarlyDate, setNull, setObjectIdMethods inherited from class com.primavera.integration.client.BOBase
combineFields
-
Constructor Details
-
TimesheetAudit
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
-
TimesheetAudit
Class constructor specifying the Session and ObjectId of the object.- Parameters:
session- the SessionobjId- the ObjectId- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
TimesheetAudit
public TimesheetAudit(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
-
getObjectId
Gets the unique ID generated by the system. 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
-
getAuditDate
Gets the date this timesheet audit was created.- Returns:
- the value in the field AuditDate
- 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
-
getResourceId
Gets the short code that uniquely identifies the resource.- Returns:
- the value in the field ResourceId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getResourceName
Gets the name of the resource.- Returns:
- the value in the field ResourceName
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getTimesheetStatus
Gets the status of the timesheet. Valid values are 'Submitted', 'Approved', 'Resource Manager Approved', 'Project Manager Approved', and 'Rejected'.- Returns:
- the value in the field TimesheetStatus
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getProjectHours
Gets the total project hours for the timesheet.- Returns:
- the value in the field ProjectHours
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getProjectOvertimeHours
Gets the total project overtime hours for the timesheet.- Returns:
- the value in the field ProjectOvertimeHours
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getPendingProjectHours
Gets the total pending project hours for the timesheet.- Returns:
- the value in the field PendingProjectHours
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getPendingProjectOvertimeHours
Gets the total pending project overtime hours for the timesheet.- Returns:
- the value in the field PendingProjectOvertimeHours
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getOverheadHours
Gets the total overhead hours for the timesheet.- Returns:
- the value in the field OverheadHours
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getOverheadOvertimeHours
Gets the total overhead overtime hours for the timesheet.- Returns:
- the value in the field OverheadOvertimeHours
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getPendingOverheadHours
Gets the total pending overhead hours for the timesheet.- Returns:
- the value in the field PendingOverheadHours
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getPendingOverheadOvertimeHours
Gets the total pending overhead overtime hours for the timesheet.- Returns:
- the value in the field PendingOverheadOvertimeHours
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getTimesheetPeriodObjectId
Gets the unique ID of the timesheet period. This field is automatically loaded by default whenever this type of business object is loaded from the database.- Returns:
- the value in the field TimesheetPeriodObjectId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getTimesheetPeriodStartDate
Gets the timesheet period start date.- Returns:
- the value in the field TimesheetPeriodStartDate
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getTimesheetPeriodEndDate
Gets the timesheet period end date.- Returns:
- the value in the field TimesheetPeriodEndDate
- 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 code that uniquely identifies the project.- Returns:
- the value in the field ProjectId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getTimesheetActivityStatus
Gets the status of the timesheet activity, the value of which will depend on who approved or rejected it. Valid values are 'Submitted', 'Approved', 'Resource Manager Approved', 'Project Manager Approved', and 'Rejected'.- Returns:
- the value in the field TimesheetActivityStatus
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getApproverUserObjectId
Gets the unique user ID of the approver. This field is automatically loaded by default whenever this type of business object is loaded from the database.- Returns:
- the value in the field ApproverUserObjectId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getApproverUserName
Gets the user name of the approver.- Returns:
- the value in the field ApproverUserName
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getTimesheetApprovingAs
Gets the role of the timesheet approver. Valid values are 'Project Manager', 'Resource Manager', 'Project Manager Delegate', and 'Resource Manager Delegate'.- Returns:
- the value in the field TimesheetApprovingAs
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
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. -
load
public static TimesheetAudit load(Session session, String[] fields, ObjectId objId) throws ServerException, NetworkException, BusinessObjectException Loads a single TimesheetAudit object from the database.- Parameters:
session- the Session objectfields- fields to loadobjId- unique ID of the TimesheetAudit object- Returns:
- TimesheetAudit the TimesheetAudit 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<TimesheetAudit> load(Session session, String[] fields, ObjectId[] objIds) throws ServerException, NetworkException, BusinessObjectException Loads multiple TimesheetAudit objects from the database.- Parameters:
session- the Session objectfields- fields to loadobjIds- object ids of the TimesheetAudit 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
-