Package org.eclipse.equinox.p2.ui
Class LicenseManager
java.lang.Object
org.eclipse.equinox.p2.ui.LicenseManager
LicenseManager defines a service which records the licenses that have been
 accepted in the course of installing or updating software. It can be used to determine
 whether a particular license should be presented to a user for acceptance, and
 to record the user's decision.
- Since:
- 2.0
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract booleanRecord the acceptance of the specified license.abstract booleanReturn a boolean indicating whether any licenses have been accepted.abstract booleanisAccepted(ILicense license) Return a boolean indicating whether a particular license has previously been accepted.abstract booleanRecord the rejection of the specified license.
- 
Constructor Details- 
LicenseManagerpublic LicenseManager()
 
- 
- 
Method Details- 
acceptRecord the acceptance of the specified license.- Parameters:
- license- the license to be accepted
- Returns:
- trueif the license was recorded as accepted,- falseif it was not.
 
- 
rejectRecord the rejection of the specified license.- Parameters:
- license- the license to be rejected
- Returns:
- trueif the license was recorded as rejected,- falseif it was not.
 
- 
isAcceptedReturn a boolean indicating whether a particular license has previously been accepted.- Parameters:
- license- the license in question
- Returns:
- trueif the license has previously been accepted,- falseif it has not been accepted before.
 
- 
hasAcceptedLicensespublic abstract boolean hasAcceptedLicenses()Return a boolean indicating whether any licenses have been accepted.- Returns:
- trueif accepted licenses have been recorded,- falseif there have been no licenses accepted.
 
 
-