public class IssueCategory extends java.lang.Object implements Identifiable, java.io.Serializable, FluentStyle
Modifier and Type | Field and 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 and Description |
---|
IssueCategory(Transport transport) |
IssueCategory(Transport transport,
java.lang.Integer projectId,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
IssueCategory |
create()
creates a new
IssueCategory for the Project 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 groups
|
java.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() |
public static final Property<java.lang.Integer> DATABASE_ID
public static final Property<java.lang.String> NAME
public static final Property<java.lang.Integer> PROJECT_ID
public static final Property<java.lang.Integer> ASSIGNEE_ID
public static final Property<java.lang.String> ASSIGNEE_NAME
public IssueCategory(Transport transport)
public IssueCategory(Transport transport, java.lang.Integer projectId, java.lang.String name)
public java.lang.Integer getId()
getId
in interface Identifiable
public java.lang.String getName()
public IssueCategory setName(java.lang.String name)
public IssueCategory setId(java.lang.Integer id)
id
- database Id of the issue category.public java.lang.Integer getProjectId()
public IssueCategory setProjectId(java.lang.Integer projectId)
public java.lang.Integer getAssigneeId()
An assignee can be a user or a group
public IssueCategory setAssigneeId(java.lang.Integer assigneeId)
public java.lang.String getAssigneeName()
public void setAssigneeName(java.lang.String assigneeName)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public PropertyStorage getStorage()
public void setTransport(Transport transport)
setTransport
in interface FluentStyle
public IssueCategory create() throws RedmineException
IssueCategory
for the Project
contained. Project
for the IssueCategory
must
not be null!IssueCategory
created by Redminejava.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 foundpublic void delete() throws RedmineException
RedmineException