Class AdminController.BlacklistData
java.lang.Object
uk.ac.manchester.spinnaker.alloc.admin.AdminController.BlacklistData
- Enclosing interface:
- AdminController
The model of a blacklist used by the administration web interface.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@jakarta.validation.constraints.Positive intgetBmpId()@jakarta.validation.constraints.Positive intbooleanbooleanvoidsetBlacklist(String blacklist) voidsetBmpId(int bmpId) voidsetBoardId(int boardId) voidsetPresent(boolean present) voidsetSynched(boolean synched)
-
Constructor Details
-
BlacklistData
public BlacklistData()
-
-
Method Details
-
getBoardId
@Positive public @jakarta.validation.constraints.Positive int getBoardId()- Returns:
- The board ID.
-
setBoardId
public void setBoardId(int boardId) - Parameters:
boardId- The board ID.
-
getBmpId
@Positive public @jakarta.validation.constraints.Positive int 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.
-