Interface Crudma

    • Method Detail

      • invokeAction

        ActionResultDTO invokeAction​(BusinessComponent bc,
                                     String actionName,
                                     Map<String,​Object> data)
        Invokes action with given name, add preactions, loads or updates entity if necessary
        Parameters:
        bc - businessComponent
        actionName - name of action
        data - information about entity
        Returns:
        ActionResultDTO class with DataResponseDTO and postactions
      • getMetaNew

        MetaDTO getMetaNew​(BusinessComponent bc,
                           CreateResult data)
        Returns new meta for entity based on a business component
        Parameters:
        data - class with DataResponseDTO and postactions
        bc - businessComponent
        Returns:
        MetaDTO class with meta DTO and postactions
      • getMeta

        MetaDTO getMeta​(BusinessComponent bc)
        Returns meta for entity based on a business component
        Parameters:
        bc - businessComponent
        Returns:
        MetaDTO class with meta DTO and postactions
      • getMetaEmpty

        MetaDTO getMetaEmpty​(BusinessComponent bc)
        Returns empty meta for entity based on a business component
        Parameters:
        bc - businessComponent
        Returns:
        MetaDTO class with meta DTO and postactions
      • getOnFieldUpdateMeta

        MetaDTO getOnFieldUpdateMeta​(BusinessComponent bc,
                                     DataResponseDTO dto)
        Returns on-field-update meta for entity based on a business component
        Parameters:
        bc - businessComponent
        dto - information about entity, it's changed fields, errors
        Returns:
        MetaDTO class with meta DTO and postactions
      • count

        long count​(BusinessComponent bc)
        Returns the number of matching entities
        Parameters:
        bc - businessComponent
        Returns:
        count