/*
NOTE FOR DEVELOPERS:

Never modify this class directly. Add custom service methods to {@link com.liferay.commerce.account.service.impl.CommerceAccountUserRelServiceImpl} and rerun ServiceBuilder to regenerate this class.
341813
public static void addCommerceAccountUserRels(long commerceAccountId,
		long[] userIds, String[] emailAddresses, long[] roleIds,
		com.liferay.portal.kernel.service.ServiceContext serviceContext)
		throws com.liferay.portal.kernel.exception.PortalException {
		getService()
			.addCommerceAccountUserRels(commerceAccountId, userIds,
			emailAddresses, roleIds, serviceContext);
	}
706360
@Indexable(type = IndexableType.DELETE)
	@Override
	public CommerceDiscountUserSegmentRel deleteCommerceDiscountUserSegmentRel(
		CommerceDiscountUserSegmentRel commerceDiscountUserSegmentRel) {
		return commerceDiscountUserSegmentRelPersistence.remove(commerceDiscountUserSegmentRel);
	}
298553
public void setCommerceNotificationTemplateUserSegmentRelService(
		com.liferay.commerce.notification.service.CommerceNotificationTemplateUserSegmentRelService commerceNotificationTemplateUserSegmentRelService) {
		this.commerceNotificationTemplateUserSegmentRelService = commerceNotificationTemplateUserSegmentRelService;
	}
623796
@Override
	@Transactional(enabled = false)
	public CommerceAccountUserRel createCommerceAccountUserRel(
		CommerceAccountUserRelPK commerceAccountUserRelPK) {
		return commerceAccountUserRelPersistence.create(commerceAccountUserRelPK);
	}
347496
@Override
    protected ServiceRegistration<D> addService(S service, ServiceProperties props) {
        D decorator = createDecorator(service, props);
        if (decorator == null) {
            return null;
        }
        Dictionary<String, ?> decoratorServiceProps = decoratorServiceProps(props);
        getLogger().info("Registering decorator service {} with properties {}", decoratorType.getSimpleName(), decoratorServiceProps);
        return getBundleContext().registerService(decoratorType, decorator, decoratorServiceProps);
    }
84894
public void setCommerceDiscountService(
		com.liferay.commerce.discount.service.CommerceDiscountService commerceDiscountService) {
		this.commerceDiscountService = commerceDiscountService;
	}
412161
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceAccount addCommerceAccount(CommerceAccount commerceAccount) {
		commerceAccount.setNew(true);

		return commerceAccountPersistence.update(commerceAccount);
	}
853963
@Override
	public com.liferay.commerce.model.CommerceOrderPayment createCommerceOrderPayment(
		long commerceOrderPaymentId) {
		return _commerceOrderPaymentLocalService.createCommerceOrderPayment(commerceOrderPaymentId);
	}
1235996
public void setCommerceDiscountUsageEntryLocalService(
		com.liferay.commerce.discount.service.CommerceDiscountUsageEntryLocalService commerceDiscountUsageEntryLocalService) {
		this.commerceDiscountUsageEntryLocalService = commerceDiscountUsageEntryLocalService;
	}
694631
@Override
	public void setPrimaryKey(
		com.liferay.commerce.account.service.persistence.CommerceAccountUserRelPK primaryKey) {
		_commerceAccountUserRel.setPrimaryKey(primaryKey);
	}
781784
public static com.liferay.commerce.user.segment.model.CommerceUserSegmentCriterion addCommerceUserSegmentCriterion(
		com.liferay.commerce.user.segment.model.CommerceUserSegmentCriterion commerceUserSegmentCriterion) {
		return getService()
				   .addCommerceUserSegmentCriterion(commerceUserSegmentCriterion);
	}
96063
@Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE, target = "(config.displayId=*)")
    protected Map<String, Object> setUserRegistry(ServiceReference<UserRegistryService> ref) {
        adjustUserRegistryServiceRef(ref);

        // determine a new user registry service
        userRegistryService.set(null);
        return getServiceProperties();
    }
4264
public static com.liferay.commerce.user.segment.model.CommerceUserSegmentEntry addCommerceUserSegmentEntry(
		com.liferay.commerce.user.segment.model.CommerceUserSegmentEntry commerceUserSegmentEntry) {
		return getService().addCommerceUserSegmentEntry(commerceUserSegmentEntry);
	}
736783
@Override
	public void cacheResult(List<CommerceAccount> commerceAccounts) {
		for (CommerceAccount commerceAccount : commerceAccounts) {
			if (entityCache.getResult(
						CommerceAccountModelImpl.ENTITY_CACHE_ENABLED,
						CommerceAccountImpl.class,
						commerceAccount.getPrimaryKey()) == null) {
				cacheResult(commerceAccount);
			}
			else {
				commerceAccount.resetOriginalValues();
			}
		}
	}
222862
@Override
	public void clearCache() {
		entityCache.clearCache(CommerceAccountUserRelImpl.class);

		finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
535447
public static CommerceNotificationTemplateUserSegmentRel toModel(
		CommerceNotificationTemplateUserSegmentRelSoap soapModel) {
		if (soapModel == null) {
			return null;
		}

		CommerceNotificationTemplateUserSegmentRel model = new CommerceNotificationTemplateUserSegmentRelImpl();

		model.setCommerceNotificationTemplateUserSegmentRelId(soapModel.getCommerceNotificationTemplateUserSegmentRelId());
		model.setGroupId(soapModel.getGroupId());
		model.setCompanyId(soapModel.getCompanyId());
		model.setUserId(soapModel.getUserId());
		model.setUserName(soapModel.getUserName());
		model.setCreateDate(soapModel.getCreateDate());
		model.setModifiedDate(soapModel.getModifiedDate());
		model.setCommerceNotificationTemplateId(soapModel.getCommerceNotificationTemplateId());
		model.setCommerceUserSegmentEntryId(soapModel.getCommerceUserSegmentEntryId());

		return model;
	}
879015
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceUserSegmentEntry addCommerceUserSegmentEntry(
		CommerceUserSegmentEntry commerceUserSegmentEntry) {
		commerceUserSegmentEntry.setNew(true);

		return commerceUserSegmentEntryPersistence.update(commerceUserSegmentEntry);
	}