public class HistoryRequestManager extends Object implements Serializable, SimpleTableExporterFactory
| Constructor and Description |
|---|
HistoryRequestManager()
Constructs the controller bean and handles one time setup.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearHistory()
Clear variables for handling history.
|
Long |
getCountExportableRows()
Gets the exportable record rowCount based on the set filter
|
long |
getEntityId() |
EntityType |
getEntityType() |
List<javax.faces.model.SelectItem> |
getEntityTypeValues() |
org.primefaces.model.LazyDataModel<HistoryUI> |
getLazyModel() |
String |
getLongTextOverlayContent()
Gets overlay content text.
|
String |
getLongTextOverlayHeader()
Gets overlay header text.
|
List<javax.faces.model.SelectItem> |
getOperationValues() |
int |
getRows()
Returns (current) number of rows/entries per page in pagination component.
|
SimpleTableExporter |
getSimpleTableExporter() |
void |
init()
Initializes lazy model.
|
boolean |
isColumnVisible(int columnIndex)
Returns column visibility for column with given index.
|
boolean |
isHistoryEmpty() |
void |
onPaginate()
Event triggered when paging for data table.
|
void |
onPaginatePageSize()
Event triggered when paging for data table is complete.
|
void |
onToggle(org.primefaces.event.ToggleEvent event)
Event triggered when toggling column visibility.
|
void |
prepareCableArticleHistory(Long cableArticleId)
Prepare to show history for cable article.
|
void |
prepareCableHistory(Long cableId)
Prepare to show history for cable.
|
void |
prepareCableTypeHistory(Long cableTypeId)
Prepare to show history for cable type.
|
void |
prepareConnectorHistory(Long connectorId)
Prepare to show history for connector.
|
void |
prepareInstallationPackageHistory(Long installationPackageId)
Prepare to show history for installation package.
|
void |
prepareManufacturerHistory(Long manufacturerId)
Prepare to show history for manufacturer.
|
void |
setHistoryEmpty(boolean historyEmpty) |
void |
setLongTextOverlayContent(String longTextOverlayContent)
Sets overlay content text.
|
void |
setLongTextOverlayHeader(String longTextOverlayHeader)
Sets overlay header text.
|
void |
setRows(int rows)
Sets (current) number of rows/entries per page in pagination component.
|
public HistoryRequestManager()
@PostConstruct public void init()
public void onToggle(org.primefaces.event.ToggleEvent event)
event - toggle eventpublic boolean isColumnVisible(int columnIndex)
columnIndex - column index for column in UI, counting from leftpublic void prepareCableHistory(Long cableId)
cableId - cable idpublic void prepareCableArticleHistory(Long cableArticleId)
cableArticleId - cable article idpublic void prepareCableTypeHistory(Long cableTypeId)
cableTypeId - cable type idpublic void prepareManufacturerHistory(Long manufacturerId)
manufacturerId - manufacturer idpublic void prepareConnectorHistory(Long connectorId)
connectorId - connector idpublic void prepareInstallationPackageHistory(Long installationPackageId)
installationPackageId - installation package idpublic void clearHistory()
public List<javax.faces.model.SelectItem> getOperationValues()
public List<javax.faces.model.SelectItem> getEntityTypeValues()
public SimpleTableExporter getSimpleTableExporter()
getSimpleTableExporter in interface SimpleTableExporterFactorypublic void onPaginate()
public void onPaginatePageSize()
public org.primefaces.model.LazyDataModel<HistoryUI> getLazyModel()
public long getEntityId()
public EntityType getEntityType()
public boolean isHistoryEmpty()
public void setHistoryEmpty(boolean historyEmpty)
public void setLongTextOverlayHeader(String longTextOverlayHeader)
longTextOverlayHeader - the overlay header text.public String getLongTextOverlayHeader()
public void setLongTextOverlayContent(String longTextOverlayContent)
longTextOverlayContent - the overlay content text.public String getLongTextOverlayContent()
public int getRows()
public void setRows(int rows)
rows - number of rows per pagepublic Long getCountExportableRows()
Copyright © 2025 European Spallation Source. All rights reserved.