Updates the cp rule user segment rel in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

@param cpRuleUserSegmentRel the cp rule user segment rel
@return the cp rule user segment rel that was updated
191939
public static com.liferay.commerce.product.model.CPRuleUserSegmentRel updateCPRuleUserSegmentRel(
		com.liferay.commerce.product.model.CPRuleUserSegmentRel cpRuleUserSegmentRel) {
		return getService().updateCPRuleUserSegmentRel(cpRuleUserSegmentRel);
	}
498195
@Override
	public void cacheResult(
		CommerceDiscountUserSegmentRel commerceDiscountUserSegmentRel) {
		entityCache.putResult(CommerceDiscountUserSegmentRelModelImpl.ENTITY_CACHE_ENABLED,
			CommerceDiscountUserSegmentRelImpl.class,
			commerceDiscountUserSegmentRel.getPrimaryKey(),
			commerceDiscountUserSegmentRel);

		commerceDiscountUserSegmentRel.resetOriginalValues();
	}
97292
public com.google.api.ads.admanager.axis.v201811.UserDomainTargeting getUserDomainSegment() {
        return userDomainSegment;
    }
174622
public void setCPRuleUserSegmentRelService(
		com.liferay.commerce.product.service.CPRuleUserSegmentRelService cpRuleUserSegmentRelService) {
		this.cpRuleUserSegmentRelService = cpRuleUserSegmentRelService;
	}
427233
public SegmentDimensions withUserAttributes(java.util.Map<String, AttributeDimension> userAttributes) {
        setUserAttributes(userAttributes);
        return this;
    }
1078236
@Override
	public void clearCache(CPRuleUserSegmentRel cpRuleUserSegmentRel) {
		entityCache.removeResult(CPRuleUserSegmentRelModelImpl.ENTITY_CACHE_ENABLED,
			CPRuleUserSegmentRelImpl.class, cpRuleUserSegmentRel.getPrimaryKey());

		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
194993
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CPFriendlyURLEntry updateCPFriendlyURLEntry(
		CPFriendlyURLEntry cpFriendlyURLEntry) {
		return cpFriendlyURLEntryPersistence.update(cpFriendlyURLEntry);
	}
865184
public static com.liferay.commerce.product.model.CPRuleUserSegmentRel createCPRuleUserSegmentRel(
		long CPRuleUserSegmentRelId) {
		return getService().createCPRuleUserSegmentRel(CPRuleUserSegmentRelId);
	}
916653
@Override
	public List<CommerceUserSegmentCriterion> findByCommerceUserSegmentEntryId(
		long commerceUserSegmentEntryId) {
		return findByCommerceUserSegmentEntryId(commerceUserSegmentEntryId,
			QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
436387
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceUserSegmentCriterion addCommerceUserSegmentCriterion(
		CommerceUserSegmentCriterion commerceUserSegmentCriterion) {
		commerceUserSegmentCriterion.setNew(true);

		return commerceUserSegmentCriterionPersistence.update(commerceUserSegmentCriterion);
	}
535169
@Override
	public com.liferay.commerce.account.model.CommerceAccountUserRel addCommerceAccountUserRel(
		com.liferay.commerce.account.model.CommerceAccountUserRel commerceAccountUserRel) {
		return _commerceAccountUserRelLocalService.addCommerceAccountUserRel(commerceAccountUserRel);
	}
163401
@Override
    @Transactional
    public void updateWardenPolicyForUser(PrincipalUser user, PolicyCounter counter, double value) {
        requireNotDisposed();
        requireArgument(user != null, "User cannot be null.");
        requireArgument(counter != null, "Policy counter cannot be null.");
        _logger.info("Updating warden policy {} for {} to {} via the management service.", counter, user.getUserName(), value);
        _wardenService.updatePolicyLimitForUser(user, counter, value);
    }
604789
public AStarSegmentReplacer<ST> setSegmentReplacer(AStarSegmentReplacer<ST> replacer) {
		final AStarSegmentReplacer<ST> old = this.segmentReplacer;
		this.segmentReplacer = replacer;
		return old;
	}
1033087
protected I_CmsQueryFragment createFlagCondition(TableAlias users, int flags) {

        return new CmsSimpleQueryFragment(
            users.column(colFlags()) + " & ? = ? ",
            new Integer(flags),
            new Integer(flags));
    }
1120639
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CPRuleUserSegmentRel addCPRuleUserSegmentRel(
		CPRuleUserSegmentRel cpRuleUserSegmentRel) {
		cpRuleUserSegmentRel.setNew(true);

		return cpRuleUserSegmentRelPersistence.update(cpRuleUserSegmentRel);
	}
633997
public void setCommerceUserSegmentCriterionLocalService(
		com.liferay.commerce.user.segment.service.CommerceUserSegmentCriterionLocalService commerceUserSegmentCriterionLocalService) {
		this.commerceUserSegmentCriterionLocalService = commerceUserSegmentCriterionLocalService;
	}
527977
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CPRule updateCPRule(CPRule cpRule) {
		return cpRulePersistence.update(cpRule);
	}