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) throws ClientException
If several target platforms are found for given filter, the first one is returned (ordered alphabetically on id).
ClientExceptionTargetPlatform getTargetPlatform(String id) throws ClientException
ClientExceptionTargetPlatformInfo getTargetPlatformInfo(String id) throws ClientException
ClientExceptionTargetPackage getTargetPackage(String id)
TargetPackageInfo getTargetPackageInfo(String id)
TargetPlatformInstance getTargetPlatformInstance(String id, List<String> packages) throws ClientException
Ignore target packages that would not be found.
ClientExceptionList<TargetPlatform> getAvailableTargetPlatforms(TargetPlatformFilter filter) throws ClientException
filter - the filter to apply, can be null if no filtering is needed.ClientExceptionTargetPlatformFilterList<TargetPlatformInfo> getAvailableTargetPlatformsInfo(TargetPlatformFilter filter) throws ClientException
filter - the filter to apply, can be null if no filtering is needed.ClientExceptionTargetPlatformFiltervoid deprecateTargetPlatform(boolean deprecate,
String id)
throws ClientException
ClientExceptionvoid enableTargetPlatform(boolean enable,
String id)
throws ClientException
ClientExceptionvoid restrictTargetPlatform(boolean restrict,
String id)
throws ClientException
ClientExceptionvoid setTrialTargetPlatform(boolean trial,
String id)
throws ClientException
ClientExceptionvoid setDefaultTargetPlatform(boolean isDefault,
String id)
throws ClientException
ClientExceptionvoid restoreTargetPlatform(String id) throws ClientException
ClientExceptionvoid restoreAllTargetPlatforms()
throws ClientException
ClientExceptionTargetPlatformInstance getDefaultTargetPlatformInstance(boolean restricted) throws ClientException
ClientExceptionCopyright © 2020 Nuxeo SA. All rights reserved.