Package com.taskadapter.redmineapi.bean
Class IssueRelation
- java.lang.Object
-
- com.taskadapter.redmineapi.bean.IssueRelation
-
- All Implemented Interfaces:
FluentStyle,Identifiable
public class IssueRelation extends java.lang.Object implements Identifiable, FluentStyle
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIssueRelation.TYPE
-
Field Summary
Fields Modifier and Type Field Description static Property<java.lang.Integer>DATABASE_IDdatabase numeric Idstatic Property<java.lang.Integer>DELAYstatic Property<java.lang.Integer>ISSUE_IDstatic Property<java.lang.Integer>ISSUE_TO_IDstatic Property<java.lang.String>RELATION_TYPE
-
Constructor Summary
Constructors Constructor Description IssueRelation(Transport transport)IssueRelation(Transport transport, java.lang.Integer issueId, java.lang.Integer issueToId, java.lang.String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IssueRelationcreate()Each relation must have issueId, issueToId and type set.voiddelete()booleanequals(java.lang.Object o)java.lang.IntegergetDelay()java.lang.IntegergetId()java.lang.IntegergetIssueId()java.lang.IntegergetIssueToId()PropertyStoragegetStorage()java.lang.StringgetType()inthashCode()IssueRelationsetDelay(java.lang.Integer delay)IssueRelationsetId(java.lang.Integer id)IssueRelationsetIssueId(java.lang.Integer issueId)IssueRelationsetIssueToId(java.lang.Integer issueToId)voidsetTransport(Transport transport)IssueRelationsetType(java.lang.String type)java.lang.StringtoString()
-
-
-
Field Detail
-
DATABASE_ID
public static final Property<java.lang.Integer> DATABASE_ID
database numeric Id
-
ISSUE_ID
public static final Property<java.lang.Integer> ISSUE_ID
-
ISSUE_TO_ID
public static final Property<java.lang.Integer> ISSUE_TO_ID
-
RELATION_TYPE
public static final Property<java.lang.String> RELATION_TYPE
-
DELAY
public static final Property<java.lang.Integer> DELAY
-
-
Method Detail
-
setId
public IssueRelation setId(java.lang.Integer id)
-
getId
public java.lang.Integer getId()
- Specified by:
getIdin interfaceIdentifiable
-
getIssueId
public java.lang.Integer getIssueId()
-
setIssueId
public IssueRelation setIssueId(java.lang.Integer issueId)
-
getIssueToId
public java.lang.Integer getIssueToId()
-
setIssueToId
public IssueRelation setIssueToId(java.lang.Integer issueToId)
-
getDelay
public java.lang.Integer getDelay()
-
setDelay
public IssueRelation setDelay(java.lang.Integer delay)
-
getType
public java.lang.String getType()
-
setType
public IssueRelation setType(java.lang.String type)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getStorage
public PropertyStorage getStorage()
-
setTransport
public void setTransport(Transport transport)
- Specified by:
setTransportin interfaceFluentStyle
-
create
public IssueRelation create() throws RedmineException
Each relation must have issueId, issueToId and type set.- Throws:
RedmineException
-
delete
public void delete() throws RedmineException- Throws:
RedmineException
-
-