@Override public void removeCampaignEvent(String campaignEventId) { persistenceService.remove(campaignEventId, CampaignEvent.class); }
public void delete(String profileId, boolean persona) { if (persona) { persistenceService.remove(profileId, Persona.class); } else { Condition mergeCondition = new Condition(definitionsService.getConditionType("profilePropertyCondition")); mergeCondition.setParameter("propertyName", "mergedWith"); mergeCondition.setParameter("comparisonOperator", "equals"); mergeCondition.setParameter("propertyValue", profileId); persistenceService.removeByQuery(mergeCondition, Profile.class); persistenceService.remove(profileId, Profile.class); } }
@Override public void removeCampaignEvent(String campaignEventId) { persistenceService.remove(campaignEventId, CampaignEvent.class); }
public void delete(String profileId, boolean persona) { if (persona) { persistenceService.remove(profileId, Persona.class); } else { Condition mergeCondition = new Condition(definitionsService.getConditionType("profilePropertyCondition")); mergeCondition.setParameter("propertyName", "mergedWith"); mergeCondition.setParameter("comparisonOperator", "equals"); mergeCondition.setParameter("propertyValue", profileId); persistenceService.removeByQuery(mergeCondition, Profile.class); persistenceService.remove(profileId, Profile.class); } }
public void removeRule(String ruleId) { persistenceService.remove(ruleId, Rule.class); }
public void removeActionType(String id) { persistenceService.remove(id, ActionType.class); actionTypeById.remove(id); }
public void removeActionType(String id) { persistenceService.remove(id, ActionType.class); actionTypeById.remove(id); }
public void removeConditionType(String id) { persistenceService.remove(id, ConditionType.class); conditionTypeById.remove(id); }
@Override public void delete(String configId) { try { routerCamelContext.killExistingRoute(configId, true); } catch (Exception e) { logger.error("Error when trying to delete running Apache Camel Route: {}", configId); } persistenceService.remove(configId, ExportConfiguration.class); }
@Override public void delete(String configId) { try { routerCamelContext.killExistingRoute(configId, true); } catch (Exception e) { logger.error("Error when trying to delete running Apache Camel Route: {}", configId); } persistenceService.remove(configId, ExportConfiguration.class); }
@Override public boolean deletePropertyType(String propertyId) { boolean result = persistenceService.remove(propertyId, PropertyType.class); propertyTypes = propertyTypes.without(propertyId); return result; }
@Override public void delete(String configId) { try { routerCamelContext.killExistingRoute(configId, true); } catch (Exception e) { logger.error("Error when trying to delete running Apache Camel Route: {}", configId); } persistenceService.remove(configId, ImportConfiguration.class); }
@Override public void delete(String configId) { try { routerCamelContext.killExistingRoute(configId, true); } catch (Exception e) { logger.error("Error when trying to delete running Apache Camel Route: {}", configId); } persistenceService.remove(configId, ImportConfiguration.class); }
@Override public boolean deletePropertyType(String propertyId) { boolean result = persistenceService.remove(propertyId, PropertyType.class); propertyTypes = propertyTypes.without(propertyId); return result; }
@Override public void removeGoal(String goalId) { persistenceService.remove(goalId, Goal.class); rulesService.removeRule(goalId + "StartEvent"); rulesService.removeRule(goalId + "TargetEvent"); }
@Override public void removeGoal(String goalId) { persistenceService.remove(goalId, Goal.class); rulesService.removeRule(goalId + "StartEvent"); rulesService.removeRule(goalId + "TargetEvent"); }
private void clearAutoGeneratedRules(List<Rule> rules, String idWithScope) { for (Rule previousRule : rules) { previousRule.getLinkedItems().remove(idWithScope); if (previousRule.getLinkedItems().isEmpty()) { // todo remove profile properties ? persistenceService.remove(previousRule.getItemId(), Rule.class); } else { persistenceService.update(previousRule.getItemId(), null, Rule.class, "linkedItems", previousRule.getLinkedItems()); } } }
private void clearAutoGeneratedRules(List<Rule> rules, String idWithScope) { for (Rule previousRule : rules) { previousRule.getLinkedItems().remove(idWithScope); if (previousRule.getLinkedItems().isEmpty()) { // todo remove profile properties ? persistenceService.remove(previousRule.getItemId(), Rule.class); } else { persistenceService.update(previousRule.getItemId(), null, Rule.class, "linkedItems", previousRule.getLinkedItems()); } } }
public void removeCampaign(String id) { for(Metadata m : getCampaignGoalMetadatas(id)) { removeGoal(m.getId()); } rulesService.removeRule(id + "EntryEvent"); persistenceService.remove(id, Campaign.class); }
public void removeCampaign(String id) { for(Metadata m : getCampaignGoalMetadatas(id)) { removeGoal(m.getId()); } rulesService.removeRule(id + "EntryEvent"); persistenceService.remove(id, Campaign.class); }