public interface TargetPlatformService
Modifier and Type | Method and Description |
---|---|
void |
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.
|
List<TargetPlatform> |
getAvailableTargetPlatforms(TargetPlatformFilter filter)
Returns all target platforms matching given criteria.
|
List<TargetPlatformInfo> |
getAvailableTargetPlatformsInfo(TargetPlatformFilter filter)
Returns all target platforms info matching given criteria.
|
TargetPlatform |
getDefaultTargetPlatform(TargetPlatformFilter filter)
Returns the default target platform.
|
TargetPlatformInstance |
getDefaultTargetPlatformInstance(boolean restricted) |
String |
getOverrideDirectory()
Returns the override directory name.
|
TargetPackage |
getTargetPackage(String id)
Returns the target package with given id, or null if not found.
|
TargetPackageInfo |
getTargetPackageInfo(String id)
Returns the target package info for given id, or null if not found.
|
TargetPlatform |
getTargetPlatform(String id)
Returns the target platform with given id, or null if not found.
|
TargetPlatformInfo |
getTargetPlatformInfo(String id)
Returns the target platform info for given id, or null if not found.
|
TargetPlatformInstance |
getTargetPlatformInstance(String id,
List<String> packages)
Returns a target platform instance with given id and given enabled packages, or null if not found.
|
void |
restoreAllTargetPlatforms()
Removes overrides for all target platform.
|
void |
restoreTargetPlatform(String id)
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.
|
String getOverrideDirectory()
TargetPlatform getDefaultTargetPlatform(TargetPlatformFilter filter)
If several target platforms are found for given filter, the first one is returned (ordered alphabetically on id).
TargetPlatform getTargetPlatform(String id)
TargetPlatformInfo getTargetPlatformInfo(String id)
TargetPackage getTargetPackage(String id)
TargetPackageInfo getTargetPackageInfo(String id)
TargetPlatformInstance getTargetPlatformInstance(String id, List<String> packages)
Ignore target packages that would not be found.
List<TargetPlatform> getAvailableTargetPlatforms(TargetPlatformFilter filter)
filter
- the filter to apply, can be null if no filtering is needed.TargetPlatformFilter
List<TargetPlatformInfo> getAvailableTargetPlatformsInfo(TargetPlatformFilter filter)
filter
- the filter to apply, can be null if no filtering is needed.TargetPlatformFilter
void deprecateTargetPlatform(boolean deprecate, String id)
void enableTargetPlatform(boolean enable, String id)
void restrictTargetPlatform(boolean restrict, String id)
void setTrialTargetPlatform(boolean trial, String id)
void setDefaultTargetPlatform(boolean isDefault, String id)
void restoreTargetPlatform(String id)
void restoreAllTargetPlatforms()
TargetPlatformInstance getDefaultTargetPlatformInstance(boolean restricted)
Copyright © 2018 Nuxeo. All rights reserved.