public class Group extends java.lang.Object implements Identifiable, FluentStyle
Modifier and Type | Field and Description |
---|---|
static Property<java.lang.Integer> |
ID |
static Property<java.lang.String> |
NAME |
Modifier and Type | Method and Description |
---|---|
Group |
create()
Creates a new group.
|
void |
delete()
Delete this group.
|
boolean |
equals(java.lang.Object o) |
java.lang.Integer |
getId() |
java.lang.String |
getName() |
PropertyStorage |
getStorage() |
int |
hashCode() |
Group |
setId(java.lang.Integer id) |
Group |
setName(java.lang.String name) |
void |
setTransport(Transport transport) |
java.lang.String |
toString() |
void |
update() |
public static final Property<java.lang.Integer> ID
public static final Property<java.lang.String> NAME
public Group(Transport transport)
public Group setId(java.lang.Integer id)
id
- database ID of the grouppublic java.lang.Integer getId()
getId
in interface Identifiable
public java.lang.String getName()
public Group setName(java.lang.String name)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PropertyStorage getStorage()
public Group create() throws RedmineException
This operation requires "Redmine Administrator" permission.
RedmineException
public void update() throws RedmineException
RedmineException
public void delete() throws RedmineException
This operation requires "Redmine Administrator" permission.
RedmineException
public void setTransport(Transport transport)
setTransport
in interface FluentStyle