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_ID
static Property<java.lang.String>
ASSIGNEE_NAME
static Property<java.lang.Integer>
DATABASE_ID
database numeric ID.static Property<java.lang.String>
NAME
static 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 IssueCategory
create()
creates a newIssueCategory
for theProject
contained.void
delete()
boolean
equals(java.lang.Object o)
java.lang.Integer
getAssigneeId()
Redmine can be configured to allow group assignments for issues: Configuration option: Settings -> Issue Tracking -> Allow issue assignment to groupsjava.lang.String
getAssigneeName()
java.lang.Integer
getId()
java.lang.String
getName()
java.lang.Integer
getProjectId()
PropertyStorage
getStorage()
int
hashCode()
IssueCategory
setAssigneeId(java.lang.Integer assigneeId)
void
setAssigneeName(java.lang.String assigneeName)
IssueCategory
setId(java.lang.Integer id)
IssueCategory
setName(java.lang.String name)
IssueCategory
setProjectId(java.lang.Integer projectId)
void
setTransport(Transport transport)
java.lang.String
toString()
-
-
-
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:
getId
in 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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getStorage
public PropertyStorage getStorage()
-
setTransport
public void setTransport(Transport transport)
- Specified by:
setTransport
in interfaceFluentStyle
-
create
public IssueCategory create() throws RedmineException
creates a newIssueCategory
for theProject
contained.
Pre-condition: the attributeProject
for theIssueCategory
must not be null!- Returns:
- the new
IssueCategory
created 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
-
-