-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
791 additions
and
417 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/main/java/de/cronn/jira/sync/domain/JiraComponent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package de.cronn.jira.sync.domain; | ||
|
||
public class JiraComponent extends JiraNamedResource { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
public JiraComponent() { | ||
} | ||
|
||
public JiraComponent(String id, String name) { | ||
super(id, name); | ||
} | ||
|
||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/de/cronn/jira/sync/domain/JiraComponentsList.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package de.cronn.jira.sync.domain; | ||
|
||
import java.util.ArrayList; | ||
|
||
public class JiraComponentsList extends ArrayList<JiraComponent> { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 2 additions & 44 deletions
46
src/main/java/de/cronn/jira/sync/domain/JiraIssueStatus.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,14 @@ | ||
package de.cronn.jira.sync.domain; | ||
|
||
import java.util.Objects; | ||
|
||
import org.apache.commons.lang3.builder.ToStringBuilder; | ||
import org.apache.commons.lang3.builder.ToStringStyle; | ||
|
||
public class JiraIssueStatus extends JiraIdResource implements JiraNamedBean { | ||
public class JiraIssueStatus extends JiraNamedResource { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
private String name; | ||
|
||
public JiraIssueStatus() { | ||
} | ||
|
||
public JiraIssueStatus(String id, String name) { | ||
super(id); | ||
this.name = name; | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE) | ||
.append("id", getId()) | ||
.append("name", getName()) | ||
.toString(); | ||
super(id, name); | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
JiraIssueStatus that = (JiraIssueStatus) o; | ||
return Objects.equals(getId(), that.getId()) | ||
&& Objects.equals(getName(), that.getName()); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(getId(), getName()); | ||
} | ||
} |
26 changes: 2 additions & 24 deletions
26
src/main/java/de/cronn/jira/sync/domain/JiraIssueType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,14 @@ | ||
package de.cronn.jira.sync.domain; | ||
|
||
import org.apache.commons.lang3.builder.ToStringBuilder; | ||
import org.apache.commons.lang3.builder.ToStringStyle; | ||
|
||
public class JiraIssueType extends JiraIdResource implements JiraNamedBean { | ||
public class JiraIssueType extends JiraNamedResource { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
private String name; | ||
|
||
public JiraIssueType() { | ||
} | ||
|
||
public JiraIssueType(String id, String name) { | ||
super(id); | ||
this.name = name; | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return name; | ||
super(id, name); | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE) | ||
.append("id", getId()) | ||
.append("name", name) | ||
.toString(); | ||
} | ||
} |
61 changes: 61 additions & 0 deletions
61
src/main/java/de/cronn/jira/sync/domain/JiraNamedResource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
package de.cronn.jira.sync.domain; | ||
|
||
import java.util.Objects; | ||
|
||
import org.apache.commons.lang3.builder.EqualsBuilder; | ||
import org.apache.commons.lang3.builder.ToStringBuilder; | ||
import org.apache.commons.lang3.builder.ToStringStyle; | ||
|
||
public abstract class JiraNamedResource extends JiraIdResource implements JiraNamedBean { | ||
|
||
private String name; | ||
|
||
public JiraNamedResource() { | ||
} | ||
|
||
public JiraNamedResource(String id, String name) { | ||
super(id); | ||
this.name = name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return name; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE) | ||
.append("id", getId()) | ||
.append("name", name) | ||
.toString(); | ||
} | ||
|
||
@Override | ||
public final boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
|
||
if (!(o instanceof JiraNamedResource)) { | ||
return false; | ||
} | ||
|
||
JiraNamedResource that = (JiraNamedResource) o; | ||
|
||
return new EqualsBuilder() | ||
.append(getId(), that.getId()) | ||
.append(getName(), that.getName()) | ||
.isEquals(); | ||
} | ||
|
||
@Override | ||
public final int hashCode() { | ||
return Objects.hash(getId(), getName()); | ||
} | ||
|
||
} |
Oops, something went wrong.