|
SageTV Platform V7.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsage.api.PluginAPI
public class PluginAPI
API calls to be used for downloading, enabling and disabling of SageTV Plugins from the central repository. Also contains methods for configuring them and for interacting with the SageTV Plugin Event system.
| Method Summary | |
|---|---|
boolean |
AreClientPluginsSupported()
Returns true if this instance of SageTV supports installation of client plugins. |
boolean |
CanPluginBeDisabled(sage.Plugin Plugin)
Returns whether the specified plugin can be enabled/disabled. |
boolean |
DisablePlugin(sage.Plugin Plugin)
Disables the specified Plugin if it can be disabled. |
boolean |
EnablePlugin(sage.Plugin Plugin)
Enables the specified Plugin if it can be enabled/disabled. |
sage.Plugin[] |
GetAllAvailablePlugins()
Returns an array of Plugin objects which represent all the plugins available in the plugin repository. |
sage.Plugin[] |
GetAllPluginVersions(java.lang.Object Plugin)
Returns an array of Plugin objects which represent all of the versions available of the specified plugin in the repository |
sage.Plugin |
GetAvailablePluginForID(java.lang.String PluginID)
Returns the plugin in the repository for the specified plugin ID |
java.lang.String |
GetClientPluginIncompatabilityReason(sage.Plugin Plugin)
Returns the reason why the specified Plugin object is incompatible and cannot be installed. |
java.lang.String |
GetClientPluginProgress()
Returns a progress based status message regarding any current plugin installation. |
sage.Plugin[] |
GetInstalledClientPlugins()
Returns an array of Plugin objects which represent all the plugins that have been installed on the local client (enabled or disabled). |
sage.Plugin[] |
GetInstalledPlugins()
Returns an array of Plugin objects which represent all the plugins that have been installed on this SageTV system (enabled or disabled). |
java.lang.String |
GetPluginAuthor(sage.Plugin Plugin)
Gets the author of the specified Plugin object |
java.lang.String |
GetPluginConfigHelpText(sage.Plugin Plugin,
java.lang.String SettingName)
Gets the help text to describe the specified configuration setting for the specified Plugin object. |
java.lang.String |
GetPluginConfigLabel(sage.Plugin Plugin,
java.lang.String SettingName)
Gets the label to describe the specified configuration setting for the specified Plugin object. |
java.lang.String[] |
GetPluginConfigOptions(sage.Plugin Plugin,
java.lang.String SettingName)
Gets all the options available for the specified configuration setting for the specified Plugin object. |
java.lang.String[] |
GetPluginConfigSettings(sage.Plugin Plugin)
Returns a list of the setting names for the specified Plugin object. |
java.lang.String |
GetPluginConfigType(sage.Plugin Plugin,
java.lang.String SettingName)
Gets the setting type for the specified configuration setting for the specified Plugin object. |
java.lang.String |
GetPluginConfigValue(sage.Plugin Plugin,
java.lang.String SettingName)
Gets the current value for the specified configuration setting for the specified Plugin object. |
java.lang.String[] |
GetPluginConfigValues(sage.Plugin Plugin,
java.lang.String SettingName)
Gets the current values for the specified configuration setting for the specified Plugin object. |
long |
GetPluginCreationDate(sage.Plugin Plugin)
Gets the creation date of the specified Plugin object |
java.lang.String[] |
GetPluginDemoVideos(sage.Plugin Plugin)
Returns an array of URLs to demo videos for the specified plugin object |
java.lang.String[] |
GetPluginDependencies(sage.Plugin Plugin)
Returns an array of Strings which specifies the dependencies of this plugin. |
java.lang.String |
GetPluginDescription(sage.Plugin Plugin)
Gets the description of the specified Plugin object |
java.lang.String |
GetPluginIdentifier(sage.Plugin Plugin)
Gets the unique identifier of the specified Plugin object |
sage.SageTVPlugin |
GetPluginImplementation(sage.Plugin Plugin)
Returns the actual object that implements the sage.SageTVPlugin interface for the specified Plugin. |
java.lang.String |
GetPluginIncompatabilityReason(sage.Plugin Plugin)
Returns the reason why the specified Plugin object is incompatible and cannot be installed. |
long |
GetPluginInstallDate(sage.Plugin Plugin)
Gets the date the specified Plugin object was installed |
long |
GetPluginModificationDate(sage.Plugin Plugin)
Gets the last modification date of the specified Plugin object |
java.lang.String |
GetPluginName(sage.Plugin Plugin)
Gets the displayable name of the specified Plugin object |
java.lang.String |
GetPluginProgress()
Returns a progress based status message regarding any current plugin installation. |
java.lang.String |
GetPluginReleaseNotes(sage.Plugin Plugin)
Gets the release notes attached to this specific version of the specified Plugin object |
java.lang.String |
GetPluginResourcePath(sage.Plugin Plugin)
Gets the relative path to resources used by the specified Plugin object |
java.lang.String[] |
GetPluginScreenshots(sage.Plugin Plugin)
Returns an array of URLs to screenshots for the specified plugin object |
java.lang.String |
GetPluginType(sage.Plugin Plugin)
Returns the type of the specified plugin object. |
java.lang.String |
GetPluginVersion(sage.Plugin Plugin)
Gets the version of the specified Plugin object |
java.lang.String[] |
GetPluginWebsites(sage.Plugin Plugin)
Returns an array of URLs to websites for the specified plugin object |
sage.SageTVPluginRegistry |
GetSageTVPluginRegistry()
Returns an object which implements the sage.SageTVPluginRegistry interface. |
java.lang.String |
InstallClientPlugin(sage.Plugin Plugin)
Installs or upgrades the specified Plugin. |
java.lang.String |
InstallPlugin(sage.Plugin Plugin)
Installs or upgrades the specified Plugin. |
boolean |
IsClientPluginCompatible(sage.Plugin Plugin)
Returns whether or not the specified Plugin object is compatible and can be installed. |
boolean |
IsClientPluginInstalled(sage.Plugin Plugin)
Returns true if the specified plugin has already been installed into the locally running SageTVClient |
boolean |
IsClientPluginInstalledSameVersion(sage.Plugin Plugin)
Returns true if the specified plugin has already been installed into the locally running SageTVClient and is the same version as this one |
boolean |
IsPluginBeta(sage.Plugin Plugin)
Returns true if the specified plugin is tagged as a 'beta' version. |
boolean |
IsPluginCompatible(sage.Plugin Plugin)
Returns whether or not the specified Plugin object is compatible and can be installed. |
boolean |
IsPluginConfigurable(sage.Plugin Plugin)
Returns true if the specified plugin can be configured when enabled. |
boolean |
IsPluginDesktopOnly(sage.Plugin Plugin)
Returns true if the specified plugin is only supported in desktop environments (i.e. |
boolean |
IsPluginEnabled(sage.Plugin Plugin)
Returns true if the specified plugin has already been installed and is enabled. |
boolean |
IsPluginFailed(sage.Plugin Plugin)
Returns true if the specified plugin has already been installed and is enabled; but the loading of it has failed. |
boolean |
IsPluginInstalled(sage.Plugin Plugin)
Returns true if the specified plugin has already been installed |
boolean |
IsPluginInstalledSameVersion(sage.Plugin Plugin)
Returns true if the specified plugin has already been installed and is the same version as this one |
boolean |
IsPluginObject(java.lang.Object Plugin)
Returns true if the specified object is a Plugin object |
boolean |
IsPluginStartupComplete()
Returns true once all of the core plugins that are enabled have completed their startup process. |
void |
RefreshAvailablePlugins()
Refreshes the plugin repository list by contacting the server to ensure it is up to date (this is done automatically on a regular basis) |
void |
ResetPluginConfiguration(sage.Plugin Plugin)
Resets the configuration for the specified plugin. |
java.lang.String |
SetPluginConfigValue(sage.Plugin Plugin,
java.lang.String SettingName,
java.lang.String SettingValue)
Sets the value for the specified configuration setting for the specified Plugin object. |
java.lang.String |
SetPluginConfigValues(sage.Plugin Plugin,
java.lang.String SettingName,
java.lang.String[] SettingValues)
Sets the values for the specified configuration setting for the specified Plugin object. |
java.lang.String |
UninstallPlugin(sage.Plugin Plugin)
Uninstalls the specified Plugin. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public sage.SageTVPluginRegistry GetSageTVPluginRegistry()
public sage.Plugin[] GetAllAvailablePlugins()
public sage.Plugin[] GetInstalledPlugins()
public sage.Plugin[] GetInstalledClientPlugins()
public sage.Plugin[] GetAllPluginVersions(java.lang.Object Plugin)
Plugin - the Plugin object to check, this can either be a Plugin object or a String representing a Plugin ID
public sage.Plugin GetAvailablePluginForID(java.lang.String PluginID)
PluginID - the plugin identifier
public boolean IsPluginInstalled(sage.Plugin Plugin)
Plugin - the Plugin object to check
public boolean IsClientPluginInstalled(sage.Plugin Plugin)
Plugin - the Plugin object to check
public boolean IsPluginInstalledSameVersion(sage.Plugin Plugin)
Plugin - the Plugin object to check
public boolean IsClientPluginInstalledSameVersion(sage.Plugin Plugin)
Plugin - the Plugin object to check
public boolean IsPluginEnabled(sage.Plugin Plugin)
Plugin - the Plugin object to check, this should be from a call to GetInstalledPlugins or GetInstalledClientPlugins
public boolean IsPluginFailed(sage.Plugin Plugin)
Plugin - the Plugin object to check, this should be from a call to GetInstalledPlugins or GetInstalledClientPlugins
public boolean IsPluginDesktopOnly(sage.Plugin Plugin)
Plugin - the Plugin object to check
public boolean IsPluginBeta(sage.Plugin Plugin)
Plugin - the Plugin object to check
public void RefreshAvailablePlugins()
public boolean CanPluginBeDisabled(sage.Plugin Plugin)
Plugin - the specified Plugin object
public java.lang.String GetPluginName(sage.Plugin Plugin)
Plugin - the specified Plugin object
public java.lang.String GetPluginIdentifier(sage.Plugin Plugin)
Plugin - the specified Plugin object
public java.lang.String GetPluginAuthor(sage.Plugin Plugin)
Plugin - the specified Plugin object
public java.lang.String GetPluginReleaseNotes(sage.Plugin Plugin)
Plugin - the specified Plugin object
public long GetPluginModificationDate(sage.Plugin Plugin)
Plugin - the specified Plugin object
public long GetPluginCreationDate(sage.Plugin Plugin)
Plugin - the specified Plugin object
public long GetPluginInstallDate(sage.Plugin Plugin)
Plugin - the specified Plugin object (must be an 'installed' Plugin object and not a 'repository' one)
public java.lang.String GetPluginDescription(sage.Plugin Plugin)
Plugin - the specified Plugin object
public java.lang.String GetPluginVersion(sage.Plugin Plugin)
Plugin - the specified Plugin object
public java.lang.String GetPluginResourcePath(sage.Plugin Plugin)
Plugin - the specified Plugin object
public java.lang.String[] GetPluginScreenshots(sage.Plugin Plugin)
Plugin - the specified Plugin object
public java.lang.String[] GetPluginDemoVideos(sage.Plugin Plugin)
Plugin - the specified Plugin object
public java.lang.String[] GetPluginWebsites(sage.Plugin Plugin)
Plugin - the specified Plugin object
public java.lang.String GetPluginType(sage.Plugin Plugin)
Plugin - the specified Plugin object
public java.lang.String[] GetPluginDependencies(sage.Plugin Plugin)
Plugin - the specified Plugin object
public boolean IsPluginObject(java.lang.Object Plugin)
Plugin - the specified Plugin object
public boolean DisablePlugin(sage.Plugin Plugin)
Plugin - the specified Plugin object
public boolean EnablePlugin(sage.Plugin Plugin)
Plugin - the specified Plugin object
public java.lang.String GetPluginIncompatabilityReason(sage.Plugin Plugin)
Plugin - the specified Plugin object
public java.lang.String GetClientPluginIncompatabilityReason(sage.Plugin Plugin)
Plugin - the specified Plugin object
public boolean IsPluginCompatible(sage.Plugin Plugin)
Plugin - the specified Plugin object
public boolean IsClientPluginCompatible(sage.Plugin Plugin)
Plugin - the specified Plugin object
public java.lang.String InstallPlugin(sage.Plugin Plugin)
Plugin - the specified Plugin object
public java.lang.String InstallClientPlugin(sage.Plugin Plugin)
Plugin - the specified Plugin object
public java.lang.String UninstallPlugin(sage.Plugin Plugin)
Plugin - the specified Plugin object
public java.lang.String GetPluginProgress()
public java.lang.String GetClientPluginProgress()
public boolean AreClientPluginsSupported()
public java.lang.String[] GetPluginConfigSettings(sage.Plugin Plugin)
Plugin - the specified Plugin object
public java.lang.String GetPluginConfigValue(sage.Plugin Plugin,
java.lang.String SettingName)
Plugin - the specified Plugin objectSettingName - the name of the plugin configuration setting
public java.lang.String[] GetPluginConfigValues(sage.Plugin Plugin,
java.lang.String SettingName)
Plugin - the specified Plugin objectSettingName - the name of the plugin configuration setting
public java.lang.String GetPluginConfigType(sage.Plugin Plugin,
java.lang.String SettingName)
Plugin - the specified Plugin objectSettingName - the name of the plugin configuration setting
public java.lang.String SetPluginConfigValue(sage.Plugin Plugin,
java.lang.String SettingName,
java.lang.String SettingValue)
Plugin - the specified Plugin objectSettingName - the name of the plugin configuration settingSettingValue - the value to set the configuration setting to
public java.lang.String SetPluginConfigValues(sage.Plugin Plugin,
java.lang.String SettingName,
java.lang.String[] SettingValues)
Plugin - the specified Plugin objectSettingName - the name of the plugin configuration settingSettingValues - the values to set the configuration setting to
public java.lang.String[] GetPluginConfigOptions(sage.Plugin Plugin,
java.lang.String SettingName)
Plugin - the specified Plugin objectSettingName - the name of the plugin configuration setting
public java.lang.String GetPluginConfigHelpText(sage.Plugin Plugin,
java.lang.String SettingName)
Plugin - the specified Plugin objectSettingName - the name of the plugin configuration setting
public java.lang.String GetPluginConfigLabel(sage.Plugin Plugin,
java.lang.String SettingName)
Plugin - the specified Plugin objectSettingName - the name of the plugin configuration setting
public void ResetPluginConfiguration(sage.Plugin Plugin)
Plugin - the specified Plugin objectpublic boolean IsPluginConfigurable(sage.Plugin Plugin)
Plugin - the specified Plugin object
public sage.SageTVPlugin GetPluginImplementation(sage.Plugin Plugin)
Plugin - the specified Plugin object
public boolean IsPluginStartupComplete()
|
SageTV Platform V7.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||