Interface TargetPlatformService
- All Known Implementing Classes:
TargetPlatformServiceImpl
public interface TargetPlatformService
Service for target platforms and packages management.
- Since:
- 5.7.1
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deprecateTargetPlatform
(boolean deprecate, String id) Deprecates the target platform if given boolean is true (or un-deprecates it if boolean is false), overriding the default value from extension points and adding an entry in the override directory.void
enableTargetPlatform
(boolean enable, String id) Enables the target platform if given boolean is true (or disables it boolean is false), overriding the default value from extension points and adding an entry in the override directory.Returns all target platforms matching given criteria.Returns all target platforms info matching given criteria.Returns the default target platform.getDefaultTargetPlatformInstance
(boolean restricted) Returns the override directory name.Returns the target package with given id, or null if not found.Returns the target package info for given id, or null if not found.Returns the target platform with given id, or null if not found.Returns the target platform info for given id, or null if not found.getTargetPlatformInstance
(String id, List<String> packages) Returns a target platform instance with given id and given enabled packages, or null if not found.void
Removes overrides for all target platform.void
Removes overrides for this target platform.void
restrictTargetPlatform
(boolean restrict, String id) Restricts the target platform if given boolean is true (or un-restricts it if boolean is false), overriding the default value from extension points and adding an entry in the override directory.void
setDefaultTargetPlatform
(boolean isDefault, String id) Set the target platform as default if given boolean is true (or unset it as default if boolean is false), overriding the default value from extension points and adding an entry in the override directory.void
setTrialTargetPlatform
(boolean trial, String id) Set the target platform as trial if given boolean is true (or unset it as trial if boolean is false), overriding the default value from extension points and adding an entry in the override directory.
-
Method Details
-
getOverrideDirectory
String getOverrideDirectory()Returns the override directory name. -
getDefaultTargetPlatform
Returns the default target platform.If several target platforms are found for given filter, the first one is returned (ordered alphabetically on id).
-
getTargetPlatform
Returns the target platform with given id, or null if not found. -
getTargetPlatformInfo
Returns the target platform info for given id, or null if not found. -
getTargetPackage
Returns the target package with given id, or null if not found. -
getTargetPackageInfo
Returns the target package info for given id, or null if not found. -
getTargetPlatformInstance
Returns a target platform instance with given id and given enabled packages, or null if not found.Ignore target packages that would not be found.
-
getAvailableTargetPlatforms
Returns all target platforms matching given criteria.- Parameters:
filter
- the filter to apply, can be null if no filtering is needed.- See Also:
-
getAvailableTargetPlatformsInfo
Returns all target platforms info matching given criteria.- Parameters:
filter
- the filter to apply, can be null if no filtering is needed.- See Also:
-
deprecateTargetPlatform
Deprecates the target platform if given boolean is true (or un-deprecates it if boolean is false), overriding the default value from extension points and adding an entry in the override directory. -
enableTargetPlatform
Enables the target platform if given boolean is true (or disables it boolean is false), overriding the default value from extension points and adding an entry in the override directory. -
restrictTargetPlatform
Restricts the target platform if given boolean is true (or un-restricts it if boolean is false), overriding the default value from extension points and adding an entry in the override directory. -
setTrialTargetPlatform
Set the target platform as trial if given boolean is true (or unset it as trial if boolean is false), overriding the default value from extension points and adding an entry in the override directory. -
setDefaultTargetPlatform
Set the target platform as default if given boolean is true (or unset it as default if boolean is false), overriding the default value from extension points and adding an entry in the override directory. -
restoreTargetPlatform
Removes overrides for this target platform. -
restoreAllTargetPlatforms
void restoreAllTargetPlatforms()Removes overrides for all target platform. -
getDefaultTargetPlatformInstance
- Returns:
- the default target platform instance and enabled if not found.
- Since:
- 5.9.3-NXP-15602
-