Class ResourceRequest
java.lang.Object
com.primavera.integration.common.value.ResourceRequest
- All Implemented Interfaces:
Serializable
The resource request used as a search template to search for a qualified resource.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a new criterionvoidaddPrimaryRoleCriterion(ObjectId roleObjectId, Proficiency proficiency) Adds a new primary role criterionvoidaddResourceCodeCriterion(ObjectId rsrcCodeObjectId) Adds a new resource code criterionvoidaddResourceCriterion(ObjectId rsrcObjectId) Adds a new resource criterionvoidaddRoleCriterion(ObjectId roleObjectId, Proficiency proficiency) Adds a new role criterionReturns the criteria as an array ofResourceRequestCriterionbooleanReturns the criteria itself as anjava.util.IteratorintReturns the criteria countReturns a copy of the finish dategetName()Returns the name of this ResourceRequestReturns the requested unitsintReturns the sequence number of this ResourceRequestReturns a copy of the start dateinthashCode()booleanReturns the status of the flag matching all criteria or any criteriabooleanReturns the status of the flag showing only labor ResourcesbooleanReturns the status of the flag showing overallocated ResourcesbooleanReturns the status of the flag sorting results by availabilitybooleanReturns the status of the flag using Activity datesvoidsetFinishDate(Date date) Sets the finish date, clones argumentvoidsetMatchAllCriteria(boolean val) Sets the flag matching all criteria or any criteriavoidSets the name of this ResourceRequestvoidsetRequestedUnits(Unit val) Sets the requested unitsvoidsetSequenceNumber(int val) Sets the sequence number of this ResourceRequestvoidsetShowOnlyLaborResources(boolean val) Sets the flag showing only labor ResourcesvoidsetShowOverallocatedResources(boolean val) Sets the flag showing overallocated ResourcesvoidsetSortResultsByAvailability(boolean val) Sets the flag sorting results by availabilityvoidsetStartDate(Date date) Sets the start date, clones argumentvoidsetUseActivityDates(boolean val) Sets the flag using Activity datestoString()
-
Constructor Details
-
ResourceRequest
public ResourceRequest()
-
-
Method Details
-
getCriteriaCount
public int getCriteriaCount()Returns the criteria count- Returns:
- int Criteria count
-
getCriteria
Returns the criteria itself as anjava.util.Iterator- Returns:
- Iterator Search criteria
-
criteriaToArray
Returns the criteria as an array ofResourceRequestCriterion- Returns:
- ResourceRequestCriterion[] Search criteria
-
getName
Returns the name of this ResourceRequest- Returns:
- String Name of this ResourceRequest
-
setName
Sets the name of this ResourceRequest- Parameters:
name- Name of this ResourceRequest
-
getSequenceNumber
public int getSequenceNumber()Returns the sequence number of this ResourceRequest- Returns:
- int sequence number of this ResourceRequest
-
setSequenceNumber
public void setSequenceNumber(int val) Sets the sequence number of this ResourceRequest- Parameters:
val- sequence number of this ResourceRequest
-
isMatchAllCriteria
public boolean isMatchAllCriteria()Returns the status of the flag matching all criteria or any criteria- Returns:
- boolean status of the flag matching all criteria or any criteria
-
setMatchAllCriteria
public void setMatchAllCriteria(boolean val) Sets the flag matching all criteria or any criteria- Parameters:
val- value for the flag matching all criteria or any criteria
-
isSortResultsByAvailability
public boolean isSortResultsByAvailability()Returns the status of the flag sorting results by availability- Returns:
- boolean status of the flag sorting results by availability
-
setSortResultsByAvailability
public void setSortResultsByAvailability(boolean val) Sets the flag sorting results by availability- Parameters:
val- value for the flag sorting results by availability
-
isUseActivityDates
public boolean isUseActivityDates()Returns the status of the flag using Activity dates- Returns:
- boolean status of the flag using Activity dates
-
setUseActivityDates
public void setUseActivityDates(boolean val) Sets the flag using Activity dates- Parameters:
val- value for the flag using Activity dates
-
isShowOverallocatedResources
public boolean isShowOverallocatedResources()Returns the status of the flag showing overallocated Resources- Returns:
- boolean status of the flag showing overallocated Resources
-
setShowOverallocatedResources
public void setShowOverallocatedResources(boolean val) Sets the flag showing overallocated Resources- Parameters:
val- value for the flag showing overallocated Resources
-
getStartDate
Returns a copy of the start date- Returns:
- Date Start date
-
setStartDate
Sets the start date, clones argument- Parameters:
date- Start date
-
getFinishDate
Returns a copy of the finish date- Returns:
- Date Finish date
-
setFinishDate
Sets the finish date, clones argument- Parameters:
date- Finish date
-
isShowOnlyLaborResources
public boolean isShowOnlyLaborResources()Returns the status of the flag showing only labor Resources- Returns:
- boolean status of the flag showing only labor Resources
-
setShowOnlyLaborResources
public void setShowOnlyLaborResources(boolean val) Sets the flag showing only labor Resources- Parameters:
val- value for the flag showing only labor Resources
-
getRequestedUnits
Returns the requested units- Returns:
- Unit the requested units
-
setRequestedUnits
Sets the requested units- Parameters:
val- the requested units
-
addPrimaryRoleCriterion
Adds a new primary role criterion- Parameters:
roleObjectId- identifying a Roleproficiency- Proficiency- See Also:
-
addRoleCriterion
Adds a new role criterion- Parameters:
roleObjectId- identifying a Roleproficiency- Proficiency- See Also:
-
addResourceCriterion
Adds a new resource criterion- Parameters:
rsrcObjectId- identifying a Resource- See Also:
-
addResourceCodeCriterion
Adds a new resource code criterion- Parameters:
rsrcCodeObjectId- identifying a ResourceCode- See Also:
-
addCriterion
Adds a new criterion- Parameters:
obj- ResourceRequestCriterion object- See Also:
-
toString
-
hashCode
public int hashCode() -
equals
-