Class AdminController.BlacklistData
java.lang.Object
uk.ac.manchester.spinnaker.alloc.admin.AdminController.BlacklistData
- Enclosing interface:
- AdminController
public static class AdminController.BlacklistData extends Object
The model of a blacklist used by the administration web interface.
-
Constructor Summary
Constructors Constructor Description BlacklistData()
-
Method Summary
Modifier and Type Method Description String
getBlacklist()
@javax.validation.constraints.Positive int
getBmpId()
@javax.validation.constraints.Positive int
getBoardId()
Blacklist
getParsedBlacklist()
boolean
isPresent()
boolean
isSynched()
void
setBlacklist(String blacklist)
void
setBmpId(int bmpId)
void
setBoardId(int boardId)
void
setPresent(boolean present)
void
setSynched(boolean synched)
-
Constructor Details
-
BlacklistData
public BlacklistData()
-
-
Method Details
-
getBoardId
- Returns:
- The board ID.
-
setBoardId
public void setBoardId(int boardId)- Parameters:
boardId
- The board ID.
-
getBmpId
- Returns:
- The BMP ID.
-
setBmpId
public void setBmpId(int bmpId)- Parameters:
bmpId
- The BMP ID.
-
getBlacklist
- Returns:
- The text of the blacklist, if present.
-
setBlacklist
- Parameters:
blacklist
- The text of the blacklist.
-
getParsedBlacklist
- Returns:
- The parsed blacklist.
- Throws:
NullPointerException
- If no blacklist data is present.IllegalArgumentException
- If the string is invalid.
-
isPresent
public boolean isPresent()- Returns:
- Whether there is blacklist data present.
-
setPresent
public void setPresent(boolean present)- Parameters:
present
- Whether there is blacklist data present.
-
isSynched
public boolean isSynched()- Returns:
- Whether the blacklist data is believed to be the same as the data on the board.
-
setSynched
public void setSynched(boolean synched)- Parameters:
synched
- Whether the blacklist data is believed to be the same as the data on the board.
-