Package org.cxbox.core.ui
Class BcUtils
- java.lang.Object
-
- org.cxbox.core.ui.BcUtils
-
@Service public class BcUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description BcUtils()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Set<String>getBcByDto(Class<? extends org.cxbox.api.data.dto.DataResponseDTO> dtoClass)Deprecated.useinvalidateFieldCache()instead.Set<String>getBcFieldsForCurrentScreen(BcIdentifier bc)Returns a set of required fields for the given business component on the current screen<D extends org.cxbox.api.data.dto.DataResponseDTO>
Set<DtoField<D,?>>getDtoFields(Class<D> dtoClass)Returns a set of dto fields (DtoField) for the given dto class<D extends org.cxbox.api.data.dto.DataResponseDTO>
Set<DtoField<D,?>>getDtoFields(BcIdentifier bcIdentifier)Returns a set of dto fields (DtoField) for the given business component<D extends org.cxbox.api.data.dto.DataResponseDTO>
Set<DtoField<D,?>>getDtoFieldsForCurrentScreen(BcIdentifier bc)Returns a set of required dto fields (DtoField) for the given business component on the current screen<D extends org.cxbox.api.data.dto.DataResponseDTO>
Set<DtoField<D,?>>getDtoFieldsForCurrentScreen(BcIdentifier bc, Class<? extends org.cxbox.api.data.dto.DataResponseDTO> dtoClass)Returns a set of required dto fields (DtoField) for the given business component on the current screenvoidinvalidateFieldCache()voidinvalidateFieldCacheByBc(String bc)Deprecated.useinvalidateFieldCache()instead.voidinvalidateFieldCacheByView(String viewName)Deprecated.useinvalidateFieldCache()instead.voidinvalidateFieldCacheByWidget(Long widgetId)Deprecated.useinvalidateFieldCache()instead.
-
-
-
Method Detail
-
invalidateFieldCache
public void invalidateFieldCache()
-
invalidateFieldCacheByView
@Deprecated public void invalidateFieldCacheByView(String viewName)
Deprecated.useinvalidateFieldCache()instead.
-
invalidateFieldCacheByWidget
@Deprecated public void invalidateFieldCacheByWidget(Long widgetId)
Deprecated.useinvalidateFieldCache()instead.
-
invalidateFieldCacheByBc
@Deprecated public void invalidateFieldCacheByBc(String bc)
Deprecated.useinvalidateFieldCache()instead.
-
getDtoFields
public <D extends org.cxbox.api.data.dto.DataResponseDTO> Set<DtoField<D,?>> getDtoFields(Class<D> dtoClass)
Returns a set of dto fields (DtoField) for the given dto class
-
getDtoFields
public <D extends org.cxbox.api.data.dto.DataResponseDTO> Set<DtoField<D,?>> getDtoFields(BcIdentifier bcIdentifier)
Returns a set of dto fields (DtoField) for the given business component
-
getBcFieldsForCurrentScreen
@Cacheable(cacheResolver="cxboxCacheResolver", cacheNames="requestCache", key="{#root.methodName, #bc.name}") public Set<String> getBcFieldsForCurrentScreen(BcIdentifier bc)Returns a set of required fields for the given business component on the current screen
-
getDtoFieldsForCurrentScreen
@Cacheable(cacheResolver="cxboxCacheResolver", cacheNames="requestCache", key="{#root.methodName, #bc.name}") public <D extends org.cxbox.api.data.dto.DataResponseDTO> Set<DtoField<D,?>> getDtoFieldsForCurrentScreen(BcIdentifier bc)Returns a set of required dto fields (DtoField) for the given business component on the current screen
-
getDtoFieldsForCurrentScreen
@Cacheable(cacheResolver="cxboxCacheResolver", cacheNames="requestCache", key="{#root.methodName, #bc.name, #dtoClass}") public <D extends org.cxbox.api.data.dto.DataResponseDTO> Set<DtoField<D,?>> getDtoFieldsForCurrentScreen(BcIdentifier bc, Class<? extends org.cxbox.api.data.dto.DataResponseDTO> dtoClass)Returns a set of required dto fields (DtoField) for the given business component on the current screen
-
getBcByDto
@Deprecated public Set<String> getBcByDto(Class<? extends org.cxbox.api.data.dto.DataResponseDTO> dtoClass)
Deprecated.useinvalidateFieldCache()instead.
-
-