Package org.eclipse.equinox.p2.planner
Interface IProfileChangeRequest
public interface IProfileChangeRequest
A profile change request is a description of a set of changes that a client
  would like to perform on a profile. The request is provided as input to an
  
IPlanner, which validates which of the requested changes can be
  performed, and what other changes are required in order to make the profile
  state consistent.
  It is important to note that a change request can only be submitted once to the planner.
  Clients should create and manipulate profile change requests via the API IPlanner.createChangeRequest(IProfile).- Since:
- 2.0
- Restriction:
- This interface is not intended to be implemented by clients.
- Restriction:
- This interface is not intended to be extended by clients.
- 
Method SummaryModifier and TypeMethodDescriptionvoidadd(IInstallableUnit toInstall) Causes the installation of the mentioned IU.voidaddAll(Collection<IInstallableUnit> toInstall) Causes the installation of all the IUs mentionedvoidaddExtraRequirements(Collection<IRequirement> requirements) Add extra requirements that must be satisfied by the planner.Provide the set of installable units that have been requested for additionGet the extra requirements that have been specified through methodaddExtraRequirements(Collection)Provide the set of installable units that have been requested for removalvoidremove(IInstallableUnit toUninstall) Requests the removal of the specified installable unitvoidremoveAll(Collection<IInstallableUnit> toUninstall) Requests the removal of all installable units in the provided collectionvoidRemoves all inclusion rules associated with the given installable unitvoidRemove a property with a given installable unit.voidRemove a global property on the profilevoidsetInstallableUnitInclusionRules(IInstallableUnit iu, String inclusionRule) Associate an inclusion rule with the installable unit.voidsetInstallableUnitProfileProperty(IInstallableUnit iu, String key, String value) Associate a property with a given installable unit.voidsetProfileProperty(String key, String value) Set a global property on the profile
- 
Method Details- 
addCauses the installation of the mentioned IU.- Parameters:
- toInstall- the entity to add to the profile
 
- 
addAllCauses the installation of all the IUs mentioned- Parameters:
- toInstall- the installable units to be added to the profile
 
- 
removeRequests the removal of the specified installable unit- Parameters:
- toUninstall- the installable units to be remove from the profile
 
- 
removeAllRequests the removal of all installable units in the provided collection- Parameters:
- toUninstall- the installable units to be remove from the profile
 
- 
addExtraRequirementsAdd extra requirements that must be satisfied by the planner.- Parameters:
- requirements- the additional requirements
 
- 
setInstallableUnitInclusionRulesAssociate an inclusion rule with the installable unit. An inclusion rule will dictate how the installable unit is treated when its dependencies are not satisfied.The provided inclusion rule must be one of the values specified in ProfileInclusionRules.- Parameters:
- iu- the installable unit to set an inclusion rule for
- inclusionRule- The inclusion rule.
 
- 
removeInstallableUnitInclusionRulesRemoves all inclusion rules associated with the given installable unit- Parameters:
- iu- the installable unit to remove inclusion rules for
 
- 
setProfilePropertySet a global property on the profile- Parameters:
- key- key of the property
- value- value of the property
 
- 
removeProfilePropertyRemove a global property on the profile- Parameters:
- key- key of the property
 
- 
setInstallableUnitProfilePropertyAssociate a property with a given installable unit.- Parameters:
- key- key of the property
- value- value of the property
 
- 
removeInstallableUnitProfilePropertyRemove a property with a given installable unit.- Parameters:
- iu- The installable until to remove a property for
- key- key of the property
 
- 
getAdditionsCollection<IInstallableUnit> getAdditions()Provide the set of installable units that have been requested for addition- Returns:
- a collection of the installable units to add
 
- 
getRemovalsCollection<IInstallableUnit> getRemovals()Provide the set of installable units that have been requested for removal- Returns:
- a collection of the installable units to remove
 
- 
getExtraRequirementsCollection<IRequirement> getExtraRequirements()Get the extra requirements that have been specified through methodaddExtraRequirements(Collection)- Since:
- 2.2
 
 
-