public class BatchProperties
extends java.lang.Object
implements play.data.validation.Constraints.Validatable<java.util.List<play.data.validation.ValidationError>>
Batch
.
An active member is a member who joined a group and is still member of this
group. maxActiveMemberLimited, maxActiveMembers, maxTotalMemberLimited and
maxTotalMembers are properties for groups.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTIVE |
static java.lang.String |
ALLOWED_WORKER_TYPES |
static java.lang.String |
COMMENTS |
static java.lang.String |
DEFAULT_TITLE |
static java.lang.String |
ID |
static java.lang.String |
JSON_DATA |
static java.lang.String |
MAX_ACTIVE_MEMBER_LIMITED |
static java.lang.String |
MAX_ACTIVE_MEMBERS |
static java.lang.String |
MAX_TOTAL_MEMBER_LIMITED |
static java.lang.String |
MAX_TOTAL_MEMBERS |
static java.lang.String |
MAX_TOTAL_WORKER_LIMITED |
static java.lang.String |
MAX_TOTAL_WORKERS |
static java.lang.String |
TITLE |
static java.lang.String |
WORKERS |
Constructor and Description |
---|
BatchProperties() |
Modifier and Type | Method and Description |
---|---|
void |
addAllowedWorkerType(java.lang.String workerType) |
java.util.Set<java.lang.String> |
getAllowedWorkerTypes() |
java.lang.String |
getComments() |
java.lang.Long |
getId() |
java.lang.String |
getJsonData() |
java.lang.Integer |
getMaxActiveMembers() |
java.lang.Integer |
getMaxTotalMembers() |
java.lang.Integer |
getMaxTotalWorkers() |
java.lang.String |
getTitle() |
boolean |
hasAllowedWorkerType(java.lang.String workerType) |
boolean |
isActive() |
boolean |
isMaxActiveMemberLimited() |
boolean |
isMaxTotalMemberLimited() |
boolean |
isMaxTotalWorkerLimited() |
void |
removeAllowedWorkerType(java.lang.String workerType) |
void |
setActive(boolean active) |
void |
setAllowedWorkerTypes(java.util.Set<java.lang.String> allowedWorkerTypes) |
void |
setComments(java.lang.String comments) |
void |
setId(java.lang.Long id) |
void |
setJsonData(java.lang.String jsonData) |
void |
setMaxActiveMemberLimited(boolean maxActiveMemberLimited) |
void |
setMaxActiveMembers(java.lang.Integer maxActiveMembers) |
void |
setMaxTotalMemberLimited(boolean maxTotalMemberLimited) |
void |
setMaxTotalMembers(java.lang.Integer maxTotalMembers) |
void |
setMaxTotalWorkerLimited(boolean maxTotalWorkerLimited) |
void |
setMaxTotalWorkers(java.lang.Integer maxTotalWorkers) |
void |
setTitle(java.lang.String title) |
java.lang.String |
toString() |
java.util.List<play.data.validation.ValidationError> |
validate() |
public static final java.lang.String ID
public static final java.lang.String TITLE
public static final java.lang.String DEFAULT_TITLE
public static final java.lang.String ACTIVE
public static final java.lang.String MAX_ACTIVE_MEMBERS
public static final java.lang.String MAX_ACTIVE_MEMBER_LIMITED
public static final java.lang.String MAX_TOTAL_MEMBERS
public static final java.lang.String MAX_TOTAL_MEMBER_LIMITED
public static final java.lang.String MAX_TOTAL_WORKERS
public static final java.lang.String MAX_TOTAL_WORKER_LIMITED
public static final java.lang.String ALLOWED_WORKER_TYPES
public static final java.lang.String WORKERS
public static final java.lang.String COMMENTS
public static final java.lang.String JSON_DATA
public void setId(java.lang.Long id)
public java.lang.Long getId()
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public boolean isActive()
public void setActive(boolean active)
public boolean isMaxActiveMemberLimited()
public void setMaxActiveMemberLimited(boolean maxActiveMemberLimited)
public java.lang.Integer getMaxActiveMembers()
public void setMaxActiveMembers(java.lang.Integer maxActiveMembers)
public boolean isMaxTotalMemberLimited()
public void setMaxTotalMemberLimited(boolean maxTotalMemberLimited)
public java.lang.Integer getMaxTotalMembers()
public void setMaxTotalMembers(java.lang.Integer maxTotalMembers)
public boolean isMaxTotalWorkerLimited()
public void setMaxTotalWorkerLimited(boolean maxTotalWorkerLimited)
public java.lang.Integer getMaxTotalWorkers()
public void setMaxTotalWorkers(java.lang.Integer maxTotalWorkers)
public void setAllowedWorkerTypes(java.util.Set<java.lang.String> allowedWorkerTypes)
public java.util.Set<java.lang.String> getAllowedWorkerTypes()
public void addAllowedWorkerType(java.lang.String workerType)
public void removeAllowedWorkerType(java.lang.String workerType)
public boolean hasAllowedWorkerType(java.lang.String workerType)
public java.lang.String getComments()
public void setComments(java.lang.String comments)
public java.lang.String getJsonData()
public void setJsonData(java.lang.String jsonData)
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.List<play.data.validation.ValidationError> validate()
validate
in interface play.data.validation.Constraints.Validatable<java.util.List<play.data.validation.ValidationError>>