Class GroupRecord
java.lang.Object
uk.ac.manchester.spinnaker.alloc.model.GroupRecord
The description and model of a group. POJO class; changes not automatically
reflected in the DB.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMake an empty record.GroupRecord
(Row row) Make a record from a database query result. -
Method Summary
Modifier and TypeMethodDescription@Null Integer
@NotBlank String
getQuota()
getType()
void
setGroupName
(String groupName) void
setMembers
(Map<String, URI> members) void
-
Constructor Details
-
GroupRecord
public GroupRecord()Make an empty record. -
GroupRecord
Make a record from a database query result.- Parameters:
row
- The query result.
-
-
Method Details
-
getGroupId
- Returns:
- The group identifier. Read-only; cannot be set by the service.
-
getGroupName
- Returns:
- The group's name.
-
setGroupName
- Parameters:
groupName
- The group's name.
-
getQuota
- Returns:
- The quota of the group in board-seconds, if one exists.
-
setQuota
- Parameters:
quota
- The quota of the group in board-seconds, if one exists.
-
getType
- Returns:
- What type of group is this.
-
getMembers
- Returns:
- The members of the group, if populated.
-
setMembers
- Parameters:
members
- The members of the group.
-