Class BcUtils

java.lang.Object
org.cxbox.meta.metafieldsecurity.BcUtils
All Implemented Interfaces:
ExtendedDtoFieldLevelSecurityService
Direct Known Subclasses:
AnySourceBcUtils

@Service public class BcUtils extends Object implements ExtendedDtoFieldLevelSecurityService
  • Constructor Details

    • BcUtils

      public BcUtils()
  • Method Details

    • getDtoFields

      public <D extends org.cxbox.api.data.dto.DataResponseDTO> Set<DtoField<D,?>> getDtoFields(org.cxbox.api.data.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(org.cxbox.api.data.BcIdentifier bc)
      Returns a set of required fields for the given business component on the current screen
      Specified by:
      getBcFieldsForCurrentScreen in interface ExtendedDtoFieldLevelSecurityService
    • getCurrentScreenViews

      public Collection<String> getCurrentScreenViews()
    • getViews

      public List<String> getViews(String screenName)
    • getDtoFieldsAvailableOnCurrentScreen

      @Cacheable(cacheResolver="cxboxCacheResolver", cacheNames="requestCache", key="{#root.methodName, #bc.name}") public <D extends org.cxbox.api.data.dto.DataResponseDTO> Set<DtoField<D,?>> getDtoFieldsAvailableOnCurrentScreen(org.cxbox.api.data.BcIdentifier bc)
      Specified by:
      getDtoFieldsAvailableOnCurrentScreen in interface ExtendedDtoFieldLevelSecurityService