mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-02 03:25:56 +01:00
added tags to plugin informations
This commit is contained in:
@@ -83,6 +83,7 @@ public class PluginInformation implements Validateable, Cloneable, Serializable
|
|||||||
clone.setArtifactId(artifactId);
|
clone.setArtifactId(artifactId);
|
||||||
clone.setAuthor(author);
|
clone.setAuthor(author);
|
||||||
clone.setCategory(category);
|
clone.setCategory(category);
|
||||||
|
clone.setTags(tags);
|
||||||
|
|
||||||
if (condition != null)
|
if (condition != null)
|
||||||
{
|
{
|
||||||
@@ -133,6 +134,7 @@ public class PluginInformation implements Validateable, Cloneable, Serializable
|
|||||||
return Objects.equal(artifactId, other.artifactId)
|
return Objects.equal(artifactId, other.artifactId)
|
||||||
&& Objects.equal(author, other.author)
|
&& Objects.equal(author, other.author)
|
||||||
&& Objects.equal(category, other.category)
|
&& Objects.equal(category, other.category)
|
||||||
|
&& Objects.equal(tags, other.tags)
|
||||||
&& Objects.equal(condition, other.condition)
|
&& Objects.equal(condition, other.condition)
|
||||||
&& Objects.equal(description, other.description)
|
&& Objects.equal(description, other.description)
|
||||||
&& Objects.equal(groupId, other.groupId)
|
&& Objects.equal(groupId, other.groupId)
|
||||||
@@ -154,7 +156,7 @@ public class PluginInformation implements Validateable, Cloneable, Serializable
|
|||||||
@Override
|
@Override
|
||||||
public int hashCode()
|
public int hashCode()
|
||||||
{
|
{
|
||||||
return Objects.hashCode(artifactId, author, category, condition,
|
return Objects.hashCode(artifactId, author, category, tags, condition,
|
||||||
description, groupId, name, screenshots, state, url, version, wiki);
|
description, groupId, name, screenshots, state, url, version, wiki);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -172,6 +174,7 @@ public class PluginInformation implements Validateable, Cloneable, Serializable
|
|||||||
.add("artifactId", artifactId)
|
.add("artifactId", artifactId)
|
||||||
.add("author", author)
|
.add("author", author)
|
||||||
.add("category", category)
|
.add("category", category)
|
||||||
|
.add("tags", tags)
|
||||||
.add("condition", condition)
|
.add("condition", condition)
|
||||||
.add("description", description)
|
.add("description", description)
|
||||||
.add("groupId", groupId)
|
.add("groupId", groupId)
|
||||||
@@ -320,6 +323,17 @@ public class PluginInformation implements Validateable, Cloneable, Serializable
|
|||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method description
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public List<String> getTags()
|
||||||
|
{
|
||||||
|
return tags;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method description
|
* Method description
|
||||||
*
|
*
|
||||||
@@ -467,6 +481,17 @@ public class PluginInformation implements Validateable, Cloneable, Serializable
|
|||||||
this.state = state;
|
this.state = state;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method description
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @param tags
|
||||||
|
*/
|
||||||
|
public void setTags(List<String> tags)
|
||||||
|
{
|
||||||
|
this.tags = tags;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method description
|
* Method description
|
||||||
*
|
*
|
||||||
@@ -531,6 +556,11 @@ public class PluginInformation implements Validateable, Cloneable, Serializable
|
|||||||
/** Field description */
|
/** Field description */
|
||||||
private PluginState state;
|
private PluginState state;
|
||||||
|
|
||||||
|
/** Field description */
|
||||||
|
@XmlElement(name = "tag")
|
||||||
|
@XmlElementWrapper(name = "tags")
|
||||||
|
private List<String> tags;
|
||||||
|
|
||||||
/** Field description */
|
/** Field description */
|
||||||
private String url;
|
private String url;
|
||||||
|
|
||||||
|
|||||||
@@ -47,6 +47,11 @@
|
|||||||
<information>
|
<information>
|
||||||
<author>Sebastian Sdorra</author>
|
<author>Sebastian Sdorra</author>
|
||||||
<category>Git</category>
|
<category>Git</category>
|
||||||
|
<tags>
|
||||||
|
<tag>git</tag>
|
||||||
|
<tag>scm</tag>
|
||||||
|
<tag>dvcs</tag>
|
||||||
|
</tags>
|
||||||
</information>
|
</information>
|
||||||
|
|
||||||
<conditions>
|
<conditions>
|
||||||
|
|||||||
@@ -47,6 +47,12 @@
|
|||||||
<information>
|
<information>
|
||||||
<author>Sebastian Sdorra</author>
|
<author>Sebastian Sdorra</author>
|
||||||
<category>Mercurial</category>
|
<category>Mercurial</category>
|
||||||
|
<tags>
|
||||||
|
<tag>mercurial</tag>
|
||||||
|
<tag>hg</tag>
|
||||||
|
<tag>scm</tag>
|
||||||
|
<tag>dvcs</tag>
|
||||||
|
</tags>
|
||||||
</information>
|
</information>
|
||||||
|
|
||||||
<conditions>
|
<conditions>
|
||||||
|
|||||||
@@ -47,6 +47,11 @@
|
|||||||
<information>
|
<information>
|
||||||
<author>Sebastian Sdorra</author>
|
<author>Sebastian Sdorra</author>
|
||||||
<category>Subversion</category>
|
<category>Subversion</category>
|
||||||
|
<tags>
|
||||||
|
<tag>subversion</tag>
|
||||||
|
<tag>scm</tag>
|
||||||
|
<tag>svn</tag>
|
||||||
|
</tags>
|
||||||
</information>
|
</information>
|
||||||
|
|
||||||
<conditions>
|
<conditions>
|
||||||
|
|||||||
Reference in New Issue
Block a user