public class Version extends java.lang.Object implements Identifiable, FluentStyle
REMARK: currently this is only used with Issues, so only id and name are filled
Modifier and Type | Field and Description |
---|---|
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.String> |
DESCRIPTION |
static Property<java.util.Date> |
DUE_DATE |
static Property<java.lang.String> |
NAME |
static Property<java.lang.Integer> |
PROJECT_ID |
static Property<java.lang.String> |
PROJECT_NAME |
static Property<java.lang.String> |
SHARING |
static java.lang.String |
SHARING_DESCENDANTS |
static java.lang.String |
SHARING_HIERARCHY |
static java.lang.String |
SHARING_NONE |
static java.lang.String |
SHARING_SYSTEM |
static java.lang.String |
SHARING_TREE |
static Property<java.lang.String> |
STATUS |
static java.lang.String |
STATUS_CLOSED |
static java.lang.String |
STATUS_LOCKED |
static java.lang.String |
STATUS_OPEN |
static Property<java.util.Date> |
UPDATED_ON |
Constructor and Description |
---|
Version() |
Version(Transport transport,
int projectId,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
Version |
addCustomFields(java.util.Collection<CustomField> customFields) |
Version |
create()
|
void |
delete()
|
boolean |
equals(java.lang.Object o)
Version objects are considered to be equal if their IDs are not null and equal.
|
java.util.Date |
getCreatedOn() |
CustomField |
getCustomFieldById(int customFieldId) |
java.util.Collection<CustomField> |
getCustomFields() |
java.lang.String |
getDescription() |
java.util.Date |
getDueDate() |
java.lang.Integer |
getId() |
java.lang.String |
getName() |
java.lang.Integer |
getProjectId() |
java.lang.String |
getProjectName() |
java.lang.String |
getSharing() |
java.lang.String |
getStatus() |
PropertyStorage |
getStorage() |
java.util.Date |
getUpdatedOn() |
int |
hashCode() |
Version |
setCreatedOn(java.util.Date createdOn) |
Version |
setDescription(java.lang.String description) |
Version |
setDueDate(java.util.Date dueDate) |
Version |
setId(java.lang.Integer id) |
Version |
setName(java.lang.String name) |
Version |
setProjectId(java.lang.Integer projectId) |
Version |
setProjectName(java.lang.String name) |
Version |
setSharing(java.lang.String sharing) |
Version |
setStatus(java.lang.String status) |
void |
setTransport(Transport transport) |
void |
setUpdatedOn(java.util.Date updatedOn) |
java.lang.String |
toString() |
void |
update()
update this object on the server
|
public static final java.lang.String STATUS_OPEN
public static final java.lang.String STATUS_LOCKED
public static final java.lang.String STATUS_CLOSED
public static final java.lang.String SHARING_NONE
public static final java.lang.String SHARING_DESCENDANTS
public static final java.lang.String SHARING_HIERARCHY
public static final java.lang.String SHARING_TREE
public static final java.lang.String SHARING_SYSTEM
public static final Property<java.lang.Integer> DATABASE_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> NAME
public static final Property<java.lang.String> DESCRIPTION
public static final Property<java.lang.String> STATUS
public static final Property<java.lang.String> SHARING
public static final Property<java.util.Date> DUE_DATE
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 Version()
public Version(Transport transport, int projectId, java.lang.String name)
public Version setId(java.lang.Integer id)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.util.Date getCreatedOn()
public java.lang.String getDescription()
public java.util.Date getDueDate()
public java.lang.Integer getId()
getId
in interface Identifiable
public java.lang.Integer getProjectId()
public Version setProjectId(java.lang.Integer projectId)
public java.lang.String getProjectName()
public Version setProjectName(java.lang.String name)
public java.lang.String getName()
public java.lang.String getSharing()
public java.lang.String getStatus()
public java.util.Date getUpdatedOn()
public Version setCreatedOn(java.util.Date createdOn)
public Version setDescription(java.lang.String description)
public Version setDueDate(java.util.Date dueDate)
public Version setName(java.lang.String name)
public Version setSharing(java.lang.String sharing)
public Version setStatus(java.lang.String status)
public void setUpdatedOn(java.util.Date updatedOn)
public java.util.Collection<CustomField> getCustomFields()
public Version addCustomFields(java.util.Collection<CustomField> customFields)
public CustomField getCustomFieldById(int customFieldId)
public java.lang.String toString()
toString
in class java.lang.Object
public PropertyStorage getStorage()
public Version create() throws RedmineException
Version
created by Redminejava.lang.IllegalArgumentException
- thrown in case the version 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 update() throws RedmineException
RedmineException
public void delete() throws RedmineException
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 setTransport(Transport transport)
setTransport
in interface FluentStyle