Package org.apache.maven.plugin.registry
Class Plugin
- java.lang.Object
-
- org.apache.maven.plugin.registry.TrackableBase
-
- org.apache.maven.plugin.registry.Plugin
-
- All Implemented Interfaces:
Serializable
public class Plugin extends TrackableBase implements Serializable
Policy for updating a single plugin.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringLAST_CHECKED_DATE_FORMAT-
Fields inherited from class org.apache.maven.plugin.registry.TrackableBase
GLOBAL_LEVEL, USER_LEVEL
-
-
Constructor Summary
Constructors Constructor Description Plugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRejectedVersion(String string)Method addRejectedVersion.StringgetArtifactId()Get the artifactId field.StringgetGroupId()Get the groupId field.StringgetKey()StringgetLastChecked()Get [format: yyyy-MM-dd.HH:mm:ss Z] Specifies the date/time at which this plugin was last checked.List<String>getRejectedVersions()Method getRejectedVersions.StringgetUseVersion()Get the current version of this plugin, to be used until the appropriate update actions happen.voidremoveRejectedVersion(String string)Method removeRejectedVersion.voidsetArtifactId(String artifactId)Set the artifactId field.voidsetGroupId(String groupId)Set the groupId field.voidsetLastChecked(String lastChecked)Set [format: yyyy-MM-dd.HH:mm:ss Z] Specifies the date/time at which this plugin was last checked.voidsetRejectedVersions(List<String> rejectedVersions)Set the list of versions for this plugin that the user declined to "install".voidsetUseVersion(String useVersion)Set the current version of this plugin, to be used until the appropriate update actions happen.-
Methods inherited from class org.apache.maven.plugin.registry.TrackableBase
getSourceLevel, setSourceLevel
-
-
-
-
Field Detail
-
LAST_CHECKED_DATE_FORMAT
public static final String LAST_CHECKED_DATE_FORMAT
- See Also:
- Constant Field Values
-
-
Method Detail
-
addRejectedVersion
public void addRejectedVersion(String string)
Method addRejectedVersion.- Parameters:
string-
-
getArtifactId
public String getArtifactId()
Get the artifactId field.- Returns:
- String
-
getGroupId
public String getGroupId()
Get the groupId field.- Returns:
- String
-
getLastChecked
public String getLastChecked()
Get [format: yyyy-MM-dd.HH:mm:ss Z] Specifies the date/time at which this plugin was last checked.- Returns:
- String
-
getRejectedVersions
public List<String> getRejectedVersions()
Method getRejectedVersions.- Returns:
- List
-
getUseVersion
public String getUseVersion()
Get the current version of this plugin, to be used until the appropriate update actions happen.- Returns:
- String
-
removeRejectedVersion
public void removeRejectedVersion(String string)
Method removeRejectedVersion.- Parameters:
string-
-
setArtifactId
public void setArtifactId(String artifactId)
Set the artifactId field.- Parameters:
artifactId-
-
setGroupId
public void setGroupId(String groupId)
Set the groupId field.- Parameters:
groupId-
-
setLastChecked
public void setLastChecked(String lastChecked)
Set [format: yyyy-MM-dd.HH:mm:ss Z] Specifies the date/time at which this plugin was last checked.- Parameters:
lastChecked-
-
setRejectedVersions
public void setRejectedVersions(List<String> rejectedVersions)
Set the list of versions for this plugin that the user declined to "install".- Parameters:
rejectedVersions-
-
setUseVersion
public void setUseVersion(String useVersion)
Set the current version of this plugin, to be used until the appropriate update actions happen.- Parameters:
useVersion-
-
getKey
public String getKey()
-
-