public class TimeEntry extends java.lang.Object implements Identifiable, FluentStyle
Modifier and Type | Field and Description |
---|---|
static Property<java.lang.Integer> |
ACTIVITY_ID |
static Property<java.lang.String> |
ACTIVITY_NAME |
static Property<java.lang.String> |
COMMENT |
static Property<java.util.Date> |
CREATED_ON |
static Property<java.util.Set<CustomField>> |
CUSTOM_FIELDS |
static Property<java.lang.Integer> |
DATABASE_ID
database numeric Id
|
static Property<java.lang.Float> |
HOURS |
static Property<java.lang.Integer> |
ISSUE_ID
database Id of the Issue
|
static Property<java.lang.Integer> |
PROJECT_ID
database Id of the project
|
static Property<java.lang.String> |
PROJECT_NAME |
static Property<java.util.Date> |
SPENT_ON |
static Property<java.util.Date> |
UPDATED_ON |
static Property<java.lang.Integer> |
USER_ID |
static Property<java.lang.String> |
USER_NAME |
Modifier and Type | Method and Description |
---|---|
void |
addCustomFields(java.util.Collection<CustomField> customFields) |
void |
clearCustomFields() |
TimeEntry |
create() |
void |
delete() |
boolean |
equals(java.lang.Object o) |
java.lang.Integer |
getActivityId() |
java.lang.String |
getActivityName() |
java.lang.String |
getComment() |
java.util.Date |
getCreatedOn() |
CustomField |
getCustomField(java.lang.String name) |
java.util.Set<CustomField> |
getCustomFields() |
java.lang.Float |
getHours() |
java.lang.Integer |
getId() |
java.lang.Integer |
getIssueId() |
java.lang.Integer |
getProjectId() |
java.lang.String |
getProjectName() |
java.util.Date |
getSpentOn() |
PropertyStorage |
getStorage() |
java.util.Date |
getUpdatedOn() |
java.lang.Integer |
getUserId() |
java.lang.String |
getUserName() |
int |
hashCode() |
boolean |
isValid() |
TimeEntry |
setActivityId(java.lang.Integer activityId) |
void |
setActivityName(java.lang.String activityName) |
TimeEntry |
setComment(java.lang.String comment) |
void |
setCreatedOn(java.util.Date createdOn) |
TimeEntry |
setHours(java.lang.Float hours) |
TimeEntry |
setId(java.lang.Integer id) |
TimeEntry |
setIssueId(java.lang.Integer issueId) |
TimeEntry |
setProjectId(java.lang.Integer projectId) |
void |
setProjectName(java.lang.String projectName) |
TimeEntry |
setSpentOn(java.util.Date spentOn) |
void |
setTransport(Transport transport) |
void |
setUpdatedOn(java.util.Date updatedOn) |
TimeEntry |
setUserId(java.lang.Integer userId) |
void |
setUserName(java.lang.String userName) |
java.lang.String |
toString() |
void |
update() |
public static final Property<java.lang.Integer> DATABASE_ID
public static final Property<java.lang.Integer> ISSUE_ID
public static final Property<java.lang.Integer> PROJECT_ID
public static final Property<java.lang.String> PROJECT_NAME
public static final Property<java.lang.String> USER_NAME
public static final Property<java.lang.Integer> USER_ID
public static final Property<java.lang.String> ACTIVITY_NAME
public static final Property<java.lang.Integer> ACTIVITY_ID
public static final Property<java.lang.Float> HOURS
public static final Property<java.lang.String> COMMENT
public static final Property<java.util.Date> SPENT_ON
public static final Property<java.util.Date> CREATED_ON
public static final Property<java.util.Date> UPDATED_ON
public static final Property<java.util.Set<CustomField>> CUSTOM_FIELDS
public TimeEntry(Transport transport)
public TimeEntry setId(java.lang.Integer id)
id
- database Idpublic java.lang.Integer getId()
getId
in interface Identifiable
public java.lang.Integer getUserId()
public TimeEntry setUserId(java.lang.Integer userId)
public java.lang.Integer getIssueId()
public TimeEntry setIssueId(java.lang.Integer issueId)
public java.lang.Integer getProjectId()
public TimeEntry setProjectId(java.lang.Integer projectId)
public java.lang.String getProjectName()
public void setProjectName(java.lang.String projectName)
public java.lang.String getActivityName()
public void setActivityName(java.lang.String activityName)
public java.lang.Integer getActivityId()
public TimeEntry setActivityId(java.lang.Integer activityId)
public java.lang.Float getHours()
public TimeEntry setHours(java.lang.Float hours)
public java.lang.String getComment()
public TimeEntry setComment(java.lang.String comment)
public java.util.Date getSpentOn()
public TimeEntry setSpentOn(java.util.Date spentOn)
public java.util.Date getCreatedOn()
public void setCreatedOn(java.util.Date createdOn)
public java.util.Date getUpdatedOn()
public void setUpdatedOn(java.util.Date updatedOn)
public java.lang.String getUserName()
public void setUserName(java.lang.String userName)
public CustomField getCustomField(java.lang.String name)
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Set<CustomField> getCustomFields()
public void clearCustomFields()
public void addCustomFields(java.util.Collection<CustomField> customFields)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean isValid()
public PropertyStorage getStorage()
public void setTransport(Transport transport)
setTransport
in interface FluentStyle
public TimeEntry create() throws RedmineException
RedmineException
public void update() throws RedmineException
RedmineException
public void delete() throws RedmineException
RedmineException