Package com.taskadapter.redmineapi.bean
Class IssueCategory
- java.lang.Object
-
- com.taskadapter.redmineapi.bean.IssueCategory
-
- All Implemented Interfaces:
FluentStyle,Identifiable,java.io.Serializable
public class IssueCategory extends java.lang.Object implements Identifiable, java.io.Serializable, FluentStyle
Redmine issue category.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Property<java.lang.Integer>ASSIGNEE_IDstatic Property<java.lang.String>ASSIGNEE_NAMEstatic Property<java.lang.Integer>DATABASE_IDdatabase numeric ID.static Property<java.lang.String>NAMEstatic Property<java.lang.Integer>PROJECT_ID
-
Constructor Summary
Constructors Constructor Description IssueCategory(Transport transport)IssueCategory(Transport transport, java.lang.Integer projectId, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IssueCategorycreate()creates a newIssueCategoryfor theProjectcontained.voiddelete()booleanequals(java.lang.Object o)java.lang.IntegergetAssigneeId()Redmine can be configured to allow group assignments for issues: Configuration option: Settings -> Issue Tracking -> Allow issue assignment to groupsjava.lang.StringgetAssigneeName()java.lang.IntegergetId()java.lang.StringgetName()java.lang.IntegergetProjectId()PropertyStoragegetStorage()inthashCode()IssueCategorysetAssigneeId(java.lang.Integer assigneeId)voidsetAssigneeName(java.lang.String assigneeName)IssueCategorysetId(java.lang.Integer id)IssueCategorysetName(java.lang.String name)IssueCategorysetProjectId(java.lang.Integer projectId)voidsetTransport(Transport transport)java.lang.StringtoString()
-
-
-
Field Detail
-
DATABASE_ID
public static final Property<java.lang.Integer> DATABASE_ID
database numeric ID.
-
NAME
public static final Property<java.lang.String> NAME
-
PROJECT_ID
public static final Property<java.lang.Integer> PROJECT_ID
-
ASSIGNEE_ID
public static final Property<java.lang.Integer> ASSIGNEE_ID
-
ASSIGNEE_NAME
public static final Property<java.lang.String> ASSIGNEE_NAME
-
-
Method Detail
-
getId
public java.lang.Integer getId()
- Specified by:
getIdin interfaceIdentifiable
-
getName
public java.lang.String getName()
-
setName
public IssueCategory setName(java.lang.String name)
-
setId
public IssueCategory setId(java.lang.Integer id)
- Parameters:
id- database Id of the issue category.
-
getProjectId
public java.lang.Integer getProjectId()
-
setProjectId
public IssueCategory setProjectId(java.lang.Integer projectId)
-
getAssigneeId
public java.lang.Integer getAssigneeId()
Redmine can be configured to allow group assignments for issues: Configuration option: Settings -> Issue Tracking -> Allow issue assignment to groupsAn assignee can be a user or a group
-
setAssigneeId
public IssueCategory setAssigneeId(java.lang.Integer assigneeId)
-
getAssigneeName
public java.lang.String getAssigneeName()
-
setAssigneeName
public void setAssigneeName(java.lang.String assigneeName)
-
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 IssueCategory create() throws RedmineException
creates a newIssueCategoryfor theProjectcontained.
Pre-condition: the attributeProjectfor theIssueCategorymust not be null!- Returns:
- the new
IssueCategorycreated by Redmine - Throws:
java.lang.IllegalArgumentException- thrown in case the category does not contain a project.RedmineAuthenticationException- thrown in case something went wrong while trying to loginRedmineException- thrown in case something went wrong in RedmineNotFoundException- thrown in case an object can not be found
-
delete
public void delete() throws RedmineException- Throws:
RedmineException
-
-