public final class BlockedPluginArrayProperty extends Property
Constructor and Description |
---|
BlockedPluginArrayProperty(PropertyManager manager,
java.lang.String key)
Creates the blocked plugins array.
|
Modifier and Type | Method and Description |
---|---|
void |
addBlockedPlugin(SoftwareUpdater updater,
java.lang.String pluginId,
Version blockStart,
Version blockEnd)
Adds a plugin to the block array.
|
void |
clear(SoftwareUpdater updater)
Clears the blocked plugin array.
|
protected void |
clearCache() |
BlockedPlugin[] |
getBlockedPluginArray() |
BlockedPlugin[] |
getNewBlockedPlugins()
Gets the plugins that were newly blocked at the last update.
|
boolean |
isBlocked(PluginAccess plugin) |
boolean |
isBlocked(java.lang.String pluginId,
Version version)
(Even if the block start version is higher than 0.0.0.0, the
0.0.0.0 version will always been acknowledged as blocked.)
|
addChangeListener, fireChangeEvent, getKey, getProperty, removeChangeListener, setProperty
public BlockedPluginArrayProperty(PropertyManager manager, java.lang.String key)
manager
- Managerkey
- Key for this Propertypublic BlockedPlugin[] getBlockedPluginArray()
public boolean isBlocked(PluginAccess plugin)
plugin
- The plugin to test.True
if the plugin is blocked.public boolean isBlocked(java.lang.String pluginId, Version version)
pluginId
- The id to test.version
- The version to test.True
if the given plugin id version combination is blocked.public void addBlockedPlugin(SoftwareUpdater updater, java.lang.String pluginId, Version blockStart, Version blockEnd)
updater
- The updater that is requesting the block.pluginId
- The plugin id that should be blocked.blockStart
- The version from which the block starts.blockEnd
- The version to which the block reaches.public void clear(SoftwareUpdater updater)
updater
- The software updater that is requesting the
clearance of the array.protected void clearCache()
clearCache
in class Property
public BlockedPlugin[] getNewBlockedPlugins()
TV-Browser 3.4.1.0, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)