Search in sources :

Example 6 with Predicate

use of org.apache.commons.collections4.Predicate in project BroadleafCommerce by BroadleafCommerce.

the class MergePersistenceUnitManager method exceptionIfEntityMarkerNotFound.

/**
 * Detects the presence of the {@link EntityMarkerClassTransformer} and throws an exception if this is misconfigured. If there
 * are no class transformes within {@link #mergedClassTransformers} then this does nothing
 */
protected void exceptionIfEntityMarkerNotFound() {
    if (CollectionUtils.isNotEmpty(mergedClassTransformers)) {
        boolean foundEntityMarkerTransformer = IterableUtils.find(mergedClassTransformers, new Predicate<BroadleafClassTransformer>() {

            @Override
            public boolean evaluate(BroadleafClassTransformer object) {
                return EntityMarkerClassTransformer.class.isAssignableFrom(object.getClass());
            }
        }) != null;
        if (!foundEntityMarkerTransformer) {
            BeanDefinition transformersBeanDef = ((BeanDefinitionRegistry) applicationContext.getAutowireCapableBeanFactory()).getBeanDefinition("blMergedClassTransformers");
            String msg = "The EntityMarkerClassTransformer was not detected as registered in the the list of blMergedClassTransformers. This is" + " usually caused the blMergedClassTransformers being overridden in a different configuration. Without this transformer Broadleaf" + " is unable to validate whether or not class transformation happened as expected. This bean was registered as " + transformersBeanDef + " but it should have been detected as registerd in bl-common-applicationContext.xml. Change the definition in " + transformersBeanDef.getResourceDescription() + " to instead utilize the EarlyStageMergeBeanPostProcessor in XML or an @Merge(targetRef=\"blMergedClassTransformers\" early = true) in a Java configuration class";
            throw new IllegalStateException(msg);
        }
    }
}
Also used : BroadleafClassTransformer(org.broadleafcommerce.common.extensibility.jpa.convert.BroadleafClassTransformer) BeanDefinitionRegistry(org.springframework.beans.factory.support.BeanDefinitionRegistry) BeanDefinition(org.springframework.beans.factory.config.BeanDefinition) Predicate(org.apache.commons.collections4.Predicate)

Example 7 with Predicate

use of org.apache.commons.collections4.Predicate in project Alpha by alpha-asp.

the class StratifiedEvaluation method apply.

@Override
public // memories created here rather than re-initialize everything.
InternalProgram apply(AnalyzedProgram inputProgram) {
    // Calculate a stratification and initialize the working memory.
    ComponentGraph componentGraph = inputProgram.getComponentGraph();
    List<ComponentGraph.SCComponent> strata = StratificationAlgorithm.calculateStratification(componentGraph);
    predicateDefiningRules = inputProgram.getPredicateDefiningRules();
    // Set up list of atoms which are known to be true - these will be expand by the evaluation.
    Map<Predicate, Set<Instance>> knownFacts = new LinkedHashMap<>(inputProgram.getFactsByPredicate());
    for (Map.Entry<Predicate, Set<Instance>> entry : knownFacts.entrySet()) {
        workingMemory.initialize(entry.getKey());
        workingMemory.addInstances(entry.getKey(), true, entry.getValue());
    }
    // Create working memories for all predicates occurring in each rule.
    for (CompiledRule nonGroundRule : inputProgram.getRulesById().values()) {
        for (Predicate predicate : nonGroundRule.getOccurringPredicates()) {
            workingMemory.initialize(predicate);
        }
    }
    workingMemory.reset();
    // Set up literal instantiator.
    literalInstantiator = new LiteralInstantiator(new WorkingMemoryBasedInstantiationStrategy(workingMemory));
    // Evaluate the program part covered by the calculated stratification.
    for (ComponentGraph.SCComponent currComponent : strata) {
        evaluateComponent(currComponent);
    }
    // Build the program resulting from evaluating the stratified part.
    // Add original input facts to newly derived ones.
    additionalFacts.addAll(inputProgram.getFacts());
    List<CompiledRule> outputRules = new ArrayList<>();
    inputProgram.getRulesById().entrySet().stream().filter((entry) -> !solvedRuleIds.contains(entry.getKey())).forEach((entry) -> outputRules.add(entry.getValue()));
    // NOTE: if InternalProgram requires solved rules, they should be added here.
    return new InternalProgram(outputRules, additionalFacts);
}
Also used : InternalProgram(at.ac.tuwien.kr.alpha.core.programs.InternalProgram) Substitution(at.ac.tuwien.kr.alpha.api.grounder.Substitution) BasicSubstitution(at.ac.tuwien.kr.alpha.commons.substitutions.BasicSubstitution) AnalyzedProgram(at.ac.tuwien.kr.alpha.core.programs.AnalyzedProgram) LoggerFactory(org.slf4j.LoggerFactory) HashMap(java.util.HashMap) Literal(at.ac.tuwien.kr.alpha.api.programs.literals.Literal) Stack(java.util.Stack) ArrayList(java.util.ArrayList) HashSet(java.util.HashSet) LinkedHashMap(java.util.LinkedHashMap) LiteralInstantiationResult(at.ac.tuwien.kr.alpha.core.grounder.instantiation.LiteralInstantiationResult) Map(java.util.Map) WorkingMemory(at.ac.tuwien.kr.alpha.core.grounder.WorkingMemory) SetUtils(org.apache.commons.collections4.SetUtils) LiteralInstantiator(at.ac.tuwien.kr.alpha.core.grounder.instantiation.LiteralInstantiator) CompiledRule(at.ac.tuwien.kr.alpha.core.rules.CompiledRule) LinkedHashSet(java.util.LinkedHashSet) AssignmentStatus(at.ac.tuwien.kr.alpha.core.grounder.instantiation.AssignmentStatus) Logger(org.slf4j.Logger) StratificationAlgorithm(at.ac.tuwien.kr.alpha.core.depgraph.StratificationAlgorithm) Atom(at.ac.tuwien.kr.alpha.api.programs.atoms.Atom) DependencyGraph(at.ac.tuwien.kr.alpha.api.programs.analysis.DependencyGraph) Set(java.util.Set) WorkingMemoryBasedInstantiationStrategy(at.ac.tuwien.kr.alpha.core.grounder.instantiation.WorkingMemoryBasedInstantiationStrategy) Atoms(at.ac.tuwien.kr.alpha.commons.atoms.Atoms) RuleGroundingOrder(at.ac.tuwien.kr.alpha.core.grounder.RuleGroundingOrder) ImmutablePair(org.apache.commons.lang3.tuple.ImmutablePair) List(java.util.List) Instance(at.ac.tuwien.kr.alpha.commons.substitutions.Instance) IndexedInstanceStorage(at.ac.tuwien.kr.alpha.core.grounder.IndexedInstanceStorage) Collections(java.util.Collections) RuleGroundingInfo(at.ac.tuwien.kr.alpha.core.grounder.RuleGroundingInfo) Predicate(at.ac.tuwien.kr.alpha.api.programs.Predicate) ComponentGraph(at.ac.tuwien.kr.alpha.api.programs.analysis.ComponentGraph) WorkingMemoryBasedInstantiationStrategy(at.ac.tuwien.kr.alpha.core.grounder.instantiation.WorkingMemoryBasedInstantiationStrategy) HashSet(java.util.HashSet) LinkedHashSet(java.util.LinkedHashSet) Set(java.util.Set) LiteralInstantiator(at.ac.tuwien.kr.alpha.core.grounder.instantiation.LiteralInstantiator) ArrayList(java.util.ArrayList) InternalProgram(at.ac.tuwien.kr.alpha.core.programs.InternalProgram) Predicate(at.ac.tuwien.kr.alpha.api.programs.Predicate) LinkedHashMap(java.util.LinkedHashMap) ComponentGraph(at.ac.tuwien.kr.alpha.api.programs.analysis.ComponentGraph) CompiledRule(at.ac.tuwien.kr.alpha.core.rules.CompiledRule) HashMap(java.util.HashMap) LinkedHashMap(java.util.LinkedHashMap) Map(java.util.Map)

Example 8 with Predicate

use of org.apache.commons.collections4.Predicate in project alf.io by alfio-event.

the class EventApiController method exportLines.

private Stream<String[]> exportLines(String eventName, Principal principal, List<String> fields, Map<Integer, TicketCategory> categoriesMap, ZoneId eventZoneId) {
    var username = principal.getName();
    var eInvoicingEnabled = configurationManager.isItalianEInvoicingEnabled(eventManager.getEventAndOrganizationId(eventName, username));
    return eventManager.findAllConfirmedTicketsForCSV(eventName, username).stream().map(trs -> {
        Ticket t = trs.getTicket();
        var currencyCode = t.getCurrencyCode();
        TicketReservation reservation = trs.getTicketReservation();
        List<String> line = new ArrayList<>();
        if (fields.contains("ID")) {
            line.add(t.getUuid());
        }
        if (fields.contains("Category")) {
            line.add(categoriesMap.get(t.getCategoryId()).getName());
        }
        if (fields.contains("Event")) {
            line.add(eventName);
        }
        if (fields.contains("Status")) {
            line.add(t.getStatus().toString());
        }
        if (fields.contains("OriginalPrice")) {
            line.add(MonetaryUtil.centsToUnit(t.getSrcPriceCts(), currencyCode).toString());
        }
        if (fields.contains("PaidPrice")) {
            line.add(MonetaryUtil.centsToUnit(t.getFinalPriceCts(), currencyCode).toString());
        }
        if (fields.contains("Discount")) {
            line.add(MonetaryUtil.centsToUnit(t.getDiscountCts(), currencyCode).toString());
        }
        if (fields.contains("VAT")) {
            line.add(MonetaryUtil.centsToUnit(t.getVatCts(), currencyCode).toString());
        }
        if (fields.contains("ReservationID")) {
            line.add(t.getTicketsReservationId());
        }
        if (fields.contains("Full Name")) {
            line.add(t.getFullName());
        }
        if (fields.contains("First Name")) {
            line.add(t.getFirstName());
        }
        if (fields.contains("Last Name")) {
            line.add(t.getLastName());
        }
        if (fields.contains("E-Mail")) {
            line.add(t.getEmail());
        }
        if (fields.contains("Locked")) {
            line.add(String.valueOf(t.getLockedAssignment()));
        }
        if (fields.contains("Language")) {
            line.add(String.valueOf(t.getUserLanguage()));
        }
        if (fields.contains("Confirmation")) {
            line.add(reservation.getConfirmationTimestamp().withZoneSameInstant(eventZoneId).toString());
        }
        if (fields.contains("Billing Address")) {
            line.add(reservation.getBillingAddress());
        }
        if (fields.contains("Country Code")) {
            line.add(reservation.getVatCountryCode());
        }
        boolean paymentIdRequested = fields.contains("Payment ID");
        boolean paymentGatewayRequested = fields.contains(PAYMENT_METHOD);
        if ((paymentIdRequested || paymentGatewayRequested)) {
            Optional<Transaction> transaction = trs.getTransaction();
            if (paymentIdRequested) {
                line.add(defaultString(transaction.map(Transaction::getPaymentId).orElse(null), transaction.map(Transaction::getTransactionId).orElse("")));
            }
            if (paymentGatewayRequested) {
                line.add(transaction.map(tr -> tr.getPaymentProxy().name()).orElse(""));
            }
        }
        if (eInvoicingEnabled) {
            var billingDetails = trs.getBillingDetails();
            var optionalInvoicingData = Optional.ofNullable(billingDetails.getInvoicingAdditionalInfo()).map(TicketReservationInvoicingAdditionalInfo::getItalianEInvoicing);
            if (fields.contains(FISCAL_CODE)) {
                line.add(optionalInvoicingData.map(ItalianEInvoicing::getFiscalCode).orElse(""));
            }
            if (fields.contains(REFERENCE_TYPE)) {
                line.add(optionalInvoicingData.map(ItalianEInvoicing::getReferenceTypeAsString).orElse(""));
            }
            if (fields.contains("Addressee Code")) {
                line.add(optionalInvoicingData.map(ItalianEInvoicing::getAddresseeCode).orElse(""));
            }
            if (fields.contains("PEC")) {
                line.add(optionalInvoicingData.map(ItalianEInvoicing::getPec).orElse(""));
            }
        }
        // obviously not optimized
        Map<String, String> additionalValues = ticketFieldRepository.findAllValuesForTicketId(t.getId());
        Predicate<String> contains = FIXED_FIELDS::contains;
        fields.stream().filter(contains.negate()).filter(f -> f.startsWith(CUSTOM_FIELDS_PREFIX)).forEachOrdered(field -> {
            String customFieldName = field.substring(CUSTOM_FIELDS_PREFIX.length());
            line.add(additionalValues.getOrDefault(customFieldName, "").replace("\"", ""));
        });
        return line.toArray(new String[0]);
    });
}
Also used : EventDescriptionRepository(alfio.repository.EventDescriptionRepository) alfio.manager(alfio.manager) PaymentProxy(alfio.model.transaction.PaymentProxy) TemplateProcessor(alfio.controller.support.TemplateProcessor) SneakyThrows(lombok.SneakyThrows) ZonedDateTime(java.time.ZonedDateTime) AlfioMetadata(alfio.model.metadata.AlfioMetadata) StringUtils(org.apache.commons.lang3.StringUtils) BigDecimal(java.math.BigDecimal) Pair(org.apache.commons.lang3.tuple.Pair) AtomicInteger(java.util.concurrent.atomic.AtomicInteger) SponsorScanRepository(alfio.repository.SponsorScanRepository) Triple(org.apache.commons.lang3.tuple.Triple) ZipEntry(java.util.zip.ZipEntry) PageAndContent(alfio.controller.api.support.PageAndContent) Organization(alfio.model.user.Organization) Predicate(java.util.function.Predicate) Collectors(java.util.stream.Collectors) ZoneId(java.time.ZoneId) DynamicFieldTemplateRepository(alfio.repository.DynamicFieldTemplateRepository) Role(alfio.model.user.Role) Principal(java.security.Principal) Stream(java.util.stream.Stream) alfio.model(alfio.model) StringUtils.defaultString(org.apache.commons.lang3.StringUtils.defaultString) LocalDate(java.time.LocalDate) org.springframework.web.bind.annotation(org.springframework.web.bind.annotation) alfio.model.modification(alfio.model.modification) ValidationResult(alfio.model.result.ValidationResult) ZipOutputStream(java.util.zip.ZipOutputStream) Transaction(alfio.model.transaction.Transaction) DataAccessException(org.springframework.dao.DataAccessException) Errors(org.springframework.validation.Errors) java.util(java.util) TicketHelper(alfio.controller.api.support.TicketHelper) ConfigurationLevel(alfio.manager.system.ConfigurationLevel) CsvException(com.opencsv.exceptions.CsvException) Getter(lombok.Getter) EventListItem(alfio.controller.api.support.EventListItem) CSVReader(com.opencsv.CSVReader) ConfigurationManager(alfio.manager.system.ConfigurationManager) AlfioScriptingException(alfio.extension.exception.AlfioScriptingException) Function(java.util.function.Function) Supplier(java.util.function.Supplier) alfio.util(alfio.util) CollectionUtils(org.apache.commons.collections4.CollectionUtils) TicketFieldRepository(alfio.repository.TicketFieldRepository) HttpServletRequest(javax.servlet.http.HttpServletRequest) StreamUtils(org.springframework.util.StreamUtils) OutputStream(java.io.OutputStream) ItalianEInvoicing(alfio.model.TicketReservationInvoicingAdditionalInfo.ItalianEInvoicing) UTF_8(java.nio.charset.StandardCharsets.UTF_8) HttpServletResponse(javax.servlet.http.HttpServletResponse) User(alfio.model.user.User) IOException(java.io.IOException) InputStreamReader(java.io.InputStreamReader) Validator(alfio.util.Validator) HttpStatus(org.springframework.http.HttpStatus) Collectors.toList(java.util.stream.Collectors.toList) Validate(org.apache.commons.lang3.Validate) ChronoUnit(java.time.temporal.ChronoUnit) ExtensionCapability(alfio.manager.support.extension.ExtensionCapability) UserManager(alfio.manager.user.UserManager) DateTimeFormatter(java.time.format.DateTimeFormatter) Data(lombok.Data) Log4j2(lombok.extern.log4j.Log4j2) ResponseEntity(org.springframework.http.ResponseEntity) Wrappers.optionally(alfio.util.Wrappers.optionally) I18nManager(alfio.manager.i18n.I18nManager) AllArgsConstructor(lombok.AllArgsConstructor) ConfigurationKeys(alfio.model.system.ConfigurationKeys) StringUtils.defaultString(org.apache.commons.lang3.StringUtils.defaultString) Transaction(alfio.model.transaction.Transaction) ItalianEInvoicing(alfio.model.TicketReservationInvoicingAdditionalInfo.ItalianEInvoicing)

Example 9 with Predicate

use of org.apache.commons.collections4.Predicate in project archiva by apache.

the class FileTypes method getFileTypePatterns.

/**
 * Get the list of patterns for a specified filetype.
 * You will always get a list.  In this order.
 * <ul>
 * <li>The Configured List</li>
 * <li>The Default List</li>
 * <li>A single item list of <code>&quot;**&#47;*&quot;</code></li>
 * </ul>
 *
 * @param id the id to lookup.
 * @return the list of patterns.
 */
public List<String> getFileTypePatterns(String id) {
    Configuration config = archivaConfiguration.getConfiguration();
    Predicate selectedFiletype = new FiletypeSelectionPredicate(id);
    RepositoryScanningConfiguration repositoryScanningConfiguration = config.getRepositoryScanning();
    if (repositoryScanningConfiguration != null) {
        FileType filetype = IterableUtils.find(config.getRepositoryScanning().getFileTypes(), selectedFiletype);
        if ((filetype != null) && CollectionUtils.isNotEmpty(filetype.getPatterns())) {
            return filetype.getPatterns();
        }
    }
    List<String> defaultPatterns = defaultTypeMap.get(id);
    if (CollectionUtils.isEmpty(defaultPatterns)) {
        return Collections.singletonList("**/*");
    }
    return defaultPatterns;
}
Also used : CombinedConfiguration(org.apache.commons.configuration.CombinedConfiguration) Predicate(org.apache.commons.collections4.Predicate) FiletypeSelectionPredicate(org.apache.archiva.configuration.functors.FiletypeSelectionPredicate) FiletypeSelectionPredicate(org.apache.archiva.configuration.functors.FiletypeSelectionPredicate)

Example 10 with Predicate

use of org.apache.commons.collections4.Predicate in project herd by FINRAOS.

the class BusinessObjectDefinitionServiceImpl method indexValidateBusinessObjectDefinitionsList.

/**
 * A helper method that will validate a list of business object definitions
 *
 * @param businessObjectDefinitionEntityList the list of business object definitions that will be validated
 *
 * @return true all of the business object definitions are valid in the index
 */
private boolean indexValidateBusinessObjectDefinitionsList(final List<BusinessObjectDefinitionEntity> businessObjectDefinitionEntityList, String indexName) {
    final String documentType = configurationHelper.getProperty(ConfigurationValue.ELASTICSEARCH_BDEF_DOCUMENT_TYPE, String.class);
    Predicate<BusinessObjectDefinitionEntity> validInIndexPredicate = businessObjectDefinitionEntity -> {
        // Fetch Join with .size()
        businessObjectDefinitionEntity.getAttributes().size();
        businessObjectDefinitionEntity.getBusinessObjectDefinitionTags().size();
        businessObjectDefinitionEntity.getBusinessObjectFormats().size();
        businessObjectDefinitionEntity.getColumns().size();
        businessObjectDefinitionEntity.getSampleDataFiles().size();
        // Convert the business object definition entity to a JSON string
        final String jsonString = businessObjectDefinitionHelper.safeObjectMapperWriteValueAsString(businessObjectDefinitionEntity);
        return indexFunctionsDao.isValidDocumentIndex(indexName, documentType, businessObjectDefinitionEntity.getId().toString(), jsonString);
    };
    boolean isValid = true;
    for (BusinessObjectDefinitionEntity businessObjectDefinitionEntity : businessObjectDefinitionEntityList) {
        if (!validInIndexPredicate.test(businessObjectDefinitionEntity)) {
            isValid = false;
        }
    }
    return isValid;
}
Also used : BusinessObjectDefinitionSearchFilter(org.finra.herd.model.api.xml.BusinessObjectDefinitionSearchFilter) BusinessObjectDefinitionSearchResponse(org.finra.herd.model.api.xml.BusinessObjectDefinitionSearchResponse) SEARCH_INDEX_UPDATE_TYPE_CREATE(org.finra.herd.model.dto.SearchIndexUpdateDto.SEARCH_INDEX_UPDATE_TYPE_CREATE) StorageDaoHelper(org.finra.herd.service.helper.StorageDaoHelper) LoggerFactory(org.slf4j.LoggerFactory) Autowired(org.springframework.beans.factory.annotation.Autowired) StringUtils(org.apache.commons.lang3.StringUtils) SearchIndexUpdateDto(org.finra.herd.model.dto.SearchIndexUpdateDto) BusinessObjectDefinition(org.finra.herd.model.api.xml.BusinessObjectDefinition) BusinessObjectDefinitionDescriptiveInformationUpdateRequest(org.finra.herd.model.api.xml.BusinessObjectDefinitionDescriptiveInformationUpdateRequest) BusinessObjectDefinitionIndexSearchResponse(org.finra.herd.model.api.xml.BusinessObjectDefinitionIndexSearchResponse) Future(java.util.concurrent.Future) BusinessObjectDefinitionCreateRequest(org.finra.herd.model.api.xml.BusinessObjectDefinitionCreateRequest) BusinessObjectDefinitionChangeEvent(org.finra.herd.model.api.xml.BusinessObjectDefinitionChangeEvent) Attribute(org.finra.herd.model.api.xml.Attribute) Map(java.util.Map) FacetTypeEnum(org.finra.herd.model.dto.FacetTypeEnum) BusinessObjectDefinitionEntity(org.finra.herd.model.jpa.BusinessObjectDefinitionEntity) AsyncResult(org.springframework.scheduling.annotation.AsyncResult) BusinessObjectDefinitionIndexSearchResponseDto(org.finra.herd.model.dto.BusinessObjectDefinitionIndexSearchResponseDto) ConfigurationValue(org.finra.herd.model.dto.ConfigurationValue) BusinessObjectDefinitionSampleDataFileEntity(org.finra.herd.model.jpa.BusinessObjectDefinitionSampleDataFileEntity) ImmutableSet(com.google.common.collect.ImmutableSet) Facet(org.finra.herd.model.api.xml.Facet) SampleDataFile(org.finra.herd.model.api.xml.SampleDataFile) NamespaceDaoHelper(org.finra.herd.service.helper.NamespaceDaoHelper) Predicate(java.util.function.Predicate) DescriptiveBusinessObjectFormat(org.finra.herd.model.api.xml.DescriptiveBusinessObjectFormat) Collection(java.util.Collection) Set(java.util.Set) BusinessObjectFormatDaoHelper(org.finra.herd.service.helper.BusinessObjectFormatDaoHelper) List(java.util.List) ConfigurationHelper(org.finra.herd.core.helper.ConfigurationHelper) DescriptiveBusinessObjectFormatUpdateRequest(org.finra.herd.model.api.xml.DescriptiveBusinessObjectFormatUpdateRequest) HerdStringUtils(org.finra.herd.core.HerdStringUtils) BusinessObjectDefinitionSearchRequest(org.finra.herd.model.api.xml.BusinessObjectDefinitionSearchRequest) SearchFilterType(org.finra.herd.model.dto.SearchFilterType) NamespaceEntity(org.finra.herd.model.jpa.NamespaceEntity) StorageEntity(org.finra.herd.model.jpa.StorageEntity) IndexFunctionsDao(org.finra.herd.dao.IndexFunctionsDao) NamespacePermission(org.finra.herd.model.annotation.NamespacePermission) DataProviderDaoHelper(org.finra.herd.service.helper.DataProviderDaoHelper) BusinessObjectDefinitionHelper(org.finra.herd.service.helper.BusinessObjectDefinitionHelper) Async(org.springframework.scheduling.annotation.Async) BusinessObjectDefinitionIndexSearchRequest(org.finra.herd.model.api.xml.BusinessObjectDefinitionIndexSearchRequest) NamespacePermissionEnum(org.finra.herd.model.api.xml.NamespacePermissionEnum) BusinessObjectFormatEntity(org.finra.herd.model.jpa.BusinessObjectFormatEntity) TagIndexSearchResponseDto(org.finra.herd.model.dto.TagIndexSearchResponseDto) TagHelper(org.finra.herd.service.helper.TagHelper) BusinessObjectDefinitionAttributeEntity(org.finra.herd.model.jpa.BusinessObjectDefinitionAttributeEntity) FacetFieldValidationService(org.finra.herd.service.FacetFieldValidationService) HashMap(java.util.HashMap) BooleanUtils(org.apache.commons.lang3.BooleanUtils) DaoSpringModuleConfig(org.finra.herd.dao.config.DaoSpringModuleConfig) CollectionUtils(org.apache.commons.collections4.CollectionUtils) SearchIndexUpdateHelper(org.finra.herd.service.helper.SearchIndexUpdateHelper) ArrayList(java.util.ArrayList) DataProviderEntity(org.finra.herd.model.jpa.DataProviderEntity) HashSet(java.util.HashSet) ElasticsearchResponseDto(org.finra.herd.model.dto.ElasticsearchResponseDto) AlreadyExistsException(org.finra.herd.model.AlreadyExistsException) BusinessObjectDefinitionService(org.finra.herd.service.BusinessObjectDefinitionService) BusinessObjectDefinitionUpdateRequest(org.finra.herd.model.api.xml.BusinessObjectDefinitionUpdateRequest) SearchIndexDaoHelper(org.finra.herd.service.helper.SearchIndexDaoHelper) SEARCH_INDEX_UPDATE_TYPE_UPDATE(org.finra.herd.model.dto.SearchIndexUpdateDto.SEARCH_INDEX_UPDATE_TYPE_UPDATE) Propagation(org.springframework.transaction.annotation.Propagation) Service(org.springframework.stereotype.Service) BusinessObjectDefinitionKey(org.finra.herd.model.api.xml.BusinessObjectDefinitionKey) BusinessObjectDefinitionDaoHelper(org.finra.herd.service.helper.BusinessObjectDefinitionDaoHelper) BusinessObjectDefinitionChangeEventEntity(org.finra.herd.model.jpa.BusinessObjectDefinitionChangeEventEntity) Logger(org.slf4j.Logger) AlternateKeyHelper(org.finra.herd.service.helper.AlternateKeyHelper) SearchableService(org.finra.herd.service.SearchableService) HerdDateUtils(org.finra.herd.core.HerdDateUtils) BusinessObjectDefinitionSampleFileUpdateDto(org.finra.herd.model.dto.BusinessObjectDefinitionSampleFileUpdateDto) TagEntity(org.finra.herd.model.jpa.TagEntity) BusinessObjectDefinitionDao(org.finra.herd.dao.BusinessObjectDefinitionDao) BusinessObjectDefinitionSearchKey(org.finra.herd.model.api.xml.BusinessObjectDefinitionSearchKey) SEARCH_INDEX_UPDATE_TYPE_DELETE(org.finra.herd.model.dto.SearchIndexUpdateDto.SEARCH_INDEX_UPDATE_TYPE_DELETE) BusinessObjectFormatKey(org.finra.herd.model.api.xml.BusinessObjectFormatKey) TagTypeIndexSearchResponseDto(org.finra.herd.model.dto.TagTypeIndexSearchResponseDto) TagDaoHelper(org.finra.herd.service.helper.TagDaoHelper) BusinessObjectDefinitionKeys(org.finra.herd.model.api.xml.BusinessObjectDefinitionKeys) Collections(java.util.Collections) BusinessObjectDefinitionIndexSearchDao(org.finra.herd.dao.BusinessObjectDefinitionIndexSearchDao) SearchIndexTypeEntity(org.finra.herd.model.jpa.SearchIndexTypeEntity) AttributeHelper(org.finra.herd.service.helper.AttributeHelper) Transactional(org.springframework.transaction.annotation.Transactional) Assert(org.springframework.util.Assert) BusinessObjectDefinitionEntity(org.finra.herd.model.jpa.BusinessObjectDefinitionEntity)

Aggregations

ArrayList (java.util.ArrayList)8 HashMap (java.util.HashMap)7 List (java.util.List)7 Map (java.util.Map)7 CollectionUtils (org.apache.commons.collections4.CollectionUtils)6 Collections (java.util.Collections)5 Set (java.util.Set)5 Predicate (java.util.function.Predicate)5 Predicate (org.apache.commons.collections4.Predicate)5 HashSet (java.util.HashSet)4 Collectors (java.util.stream.Collectors)4 StringUtils (org.apache.commons.lang3.StringUtils)4 Logger (org.slf4j.Logger)4 LoggerFactory (org.slf4j.LoggerFactory)4 IOException (java.io.IOException)3 Collection (java.util.Collection)3 Supplier (java.util.function.Supplier)3 BigDecimal (java.math.BigDecimal)2 Date (java.util.Date)2 LinkedHashMap (java.util.LinkedHashMap)2