public class TableServiceImpl extends AbstractServiceImpl implements TableService
| Constructor and Description |
|---|
TableServiceImpl() |
getEnum, getEnums, getModelService, setModelServicepublic void addCell(TableBlockModel tableModel, CellEntryModel cell)
addCell in interface TableServicepublic void addColumnAt(TableBlockModel tableModel, ColumnEntryModel column, int x)
addColumnAt in interface TableServicepublic ColumnEntryModel addColumnAt(TableBlockModel table, int x)
addColumnAt in interface TableServicepublic RowEntryModel addRowAt(TableBlockModel table, int y)
addRowAt in interface TableServicepublic void addRowAt(TableBlockModel tableModel, RowEntryModel row, int y)
addRowAt in interface TableServicepublic boolean axisDataCanBeComputed(TableBlockModel table, AxisEntryModel axis)
axisDataCanBeComputed in interface TableServicepublic boolean cellValueCanBeComputed(TableBlockModel table, CellEntryModel cell)
cellValueCanBeComputed in interface TableServicepublic List<ParameterDescriptor> collectGlobalDataParams(TableBlockModel table)
collectGlobalDataParams in interface TableServicepublic List computeAxisData(TableBlockModel table, AxisEntryModel uiAxis)
computeAxisData in interface TableServicepublic Object computeCellValue(TableBlockModel table, CellEntryModel uiCell, int columnDataIndex, int rowDataIndex) throws DataResolverException
computeCellValue in interface TableServiceDataResolverExceptionprotected CellEntryModel createCell(TableBlockModel table, ColumnEntryModel column, RowEntryModel row)
protected ColumnEntryModel createColumn(TableBlockModel uiTable)
protected RowEntryModel createRow(TableBlockModel uiTable)
public void deleteColumn(ColumnEntryModel column)
deleteColumn in interface TableServicepublic void deleteRow(RowEntryModel row)
deleteRow in interface TableServiceprotected List<AttributeDescriptor> filterAttributes(List<AttributeDescriptor> ads)
public List<AttributeDescriptorModel> getAllAttributes(String type)
getAllAttributes in interface TableServicepublic List<CellStyleModel> getAllCellStyles()
getAllCellStyles in interface TableServicepublic Collection<ClassAttributeAssignmentModel> getAllClassAttributes(ProductModel product)
getAllClassAttributes in interface TableServicepublic List<HybrisEnumValue> getAllEnumValues(String typeCode)
getAllEnumValues in interface TableServicepublic List<Class> getAllSortComparators()
getAllSortComparators in interface TableServicepublic List<TableStyleModel> getAllTableStyles()
getAllTableStyles in interface TableServicepublic AxisEntryService getAxisEntryService()
public CellEntryModel getCell(ColumnEntryModel column, RowEntryModel row)
getCell in interface TableServicepublic CellEntryService getCellEntryService()
public ColumnEntryModel getColumnAt(TableBlockModel tableModel, int x)
getColumnAt in interface TableServicepublic int getColumnCount(TableBlockModel tableModel)
getColumnCount in interface TableServicepublic int getColumnIndex(TableBlockModel tableModel, ColumnEntryModel column)
getColumnIndex in interface TableServicepublic Map<String,Object> getDataParams(TableBlockModel tableModel)
getDataParams in interface TableServicepublic Object getDefaultValue(String typeCode, String attributeQualifier)
getDefaultValue in interface TableServicepublic long getModificationTime(PK pk)
getModificationTime in interface TableServicepublic String getPreviewCssUrl()
public RowEntryModel getRowAt(TableBlockModel tableModel, int y)
getRowAt in interface TableServicepublic int getRowCount(TableBlockModel tableModel)
getRowCount in interface TableServicepublic int getRowIndex(TableBlockModel tableModel, RowEntryModel row)
getRowIndex in interface TableServicepublic String getShortTablePreview(PK pk)
getShortTablePreview in interface TableServicepublic SystemService getSystemService()
public String getTablePreview(PK pk)
getTablePreview in interface TableServicepublic Class getTypeClass(String typeCode)
getTypeClass in interface TableServicepublic TypeService getTypeService()
public UIAccessRightService getUiAccessRightService()
public ModelHelper getModelHelper()
public boolean hasTemplate(TableBlockModel tableModel)
hasTemplate in interface TableServicepublic boolean isOwnAxis(TableBlockModel tableModel, AxisEntryModel axisModel)
isOwnAxis in interface TableServicepublic boolean isOwnCell(TableBlockModel tableModel, CellEntryModel cellModel)
isOwnCell in interface TableServicepublic boolean itemExists(PK pk)
itemExists in interface TableServicepublic TableBlockModel loadTable(PK pk)
loadTable in interface TableServicepublic List<TableBlockModel> loadTablesForTemplateDropdown()
loadTablesForTemplateDropdown in interface TableServicepublic void moveColumn(TableBlockModel tableModel, ColumnEntryModel from, ColumnEntryModel to)
moveColumn in interface TableServicepublic void moveRow(TableBlockModel tableModel, RowEntryModel from, RowEntryModel to)
moveRow in interface TableServiceprotected void saveCellSortConfig(CellEntryModel uiCell, ColumnEntry column, RowEntry row, CellEntry cell) throws ConsistencyCheckException, JaloGenericCreationException, JaloAbstractTypeException, JaloItemNotFoundException
public void saveData(AbstractTableDataHolder dataHolder, List<ParameterDescriptor> pds, Map<String,Object> values)
saveData in interface TableServicepublic void saveTable(TableBlockModel uiTable)
saveTable in interface TableServicepublic void saveTableWithoutTemplate(TableBlockModel tableModel)
saveTableWithoutTemplate in interface TableServicetableModel - public void saveTableAs(TableBlockModel uiTable)
saveTableAs in interface TableServicepublic void saveTableAs(TableBlockModel uiTable, String newCode)
public ListSearchResult searchAttributes(List<AttributeDescriptorModel> elements, String searchTerm, List criterions, Collection permittedTypes)
searchAttributes in interface TableServicepublic ListSearchResult searchClassAttributes(List<ClassAttributeAssignmentModel> elements, String searchTerm, List criterions, Collection permittedTypes)
searchClassAttributes in interface TableServiceprotected void setAsNew(ItemModel item)
public void setAxisEntryService(AxisEntryService axisEntryService)
axisEntryService - the axisEntryService to setpublic void setCellEntryService(CellEntryService cellEntryService)
cellEntryService - the cellEntryService to setpublic void setDataParams(TableBlockModel tableModel, Map<String,Object> params)
setDataParams in interface TableServicepublic void setSystemService(SystemService systemService)
public void setTypeService(TypeService typeService)
public void setUiAccessRightService(UIAccessRightService uiAccessRightService)
public void setModelHelper(ModelHelper modelHelper)
protected void setTableAsNew(TableBlockModel uiTable)
protected CellStyle unwrapCellStyle(CellStyleModel uiStyle)
public Map<String,Object> unwrapDataParameters(Map<String,Object> wrappedParams)
unwrapDataParameters in interface TableServiceprotected EnumerationValue unwrapEnum(HybrisEnumValue uiEnum)
protected Collection unwrapParameterCollection(Collection paramCol)
protected TableStyle unwrapTableStyle(TableStyleModel uiStyle)
protected CellEntryModel wrapCell(ColumnEntryModel uiColumn, RowEntryModel uiRow, CellEntry cell, TableBlock table)
protected void wrapCells(TableBlockModel uiTable, TableBlock table)
protected CellStyleModel wrapCellStyle(CellStyle style)
protected List<CellStyleModel> wrapCellStyles(Collection<CellStyle> cellStyles)
protected ColumnEntryModel wrapColumn(TableBlockModel uiTable, ColumnEntry column, TableBlock table)
protected List<ColumnEntryModel> wrapColumns(TableBlockModel uiTable, List<ColumnEntry> columns, TableBlock table)
public Map<String,Object> wrapDataParameters(Map<String,Object> params)
wrapDataParameters in interface TableServiceprotected List<HybrisEnumValue> wrapEnums(List<EnumerationValue> wTypes)
protected Collection wrapParameterCollection(Collection paramCol)
protected RowEntryModel wrapRow(TableBlockModel uiTable, RowEntry row, TableBlock table)
protected List<RowEntryModel> wrapRows(TableBlockModel uiTable, List<RowEntry> rows, TableBlock table)
public TableBlockModel wrapTable(TableBlock table)
protected TableStyleModel wrapTableStyle(TableStyle style)
protected List<TableStyleModel> wrapTableStyles(Collection<TableStyle> tableStyles)
protected TableBlockModel getTableOrTemplate(TableBlockModel table)
public void setCommonI18NService(CommonI18NService commonI18NService)
Copyright © 2017 SAP SE. All Rights Reserved.