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 SummaryConstructors
- 
Method SummaryModifier 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- 
BlacklistDatapublic BlacklistData()
 
- 
- 
Method Details- 
getBoardId@Positive public @jakarta.validation.constraints.Positive int getBoardId()- Returns:
- The board ID.
 
- 
setBoardIdpublic void setBoardId(int boardId) - Parameters:
- boardId- The board ID.
 
- 
getBmpId@Positive public @jakarta.validation.constraints.Positive int getBmpId()- Returns:
- The BMP ID.
 
- 
setBmpIdpublic 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.
 
- 
isPresentpublic boolean isPresent()- Returns:
- Whether there is blacklist data present.
 
- 
setPresentpublic void setPresent(boolean present) - Parameters:
- present- Whether there is blacklist data present.
 
- 
isSynchedpublic boolean isSynched()- Returns:
- Whether the blacklist data is believed to be the same as the data on the board.
 
- 
setSynchedpublic void setSynched(boolean synched) - Parameters:
- synched- Whether the blacklist data is believed to be the same as the data on the board.
 
 
-