Creates a new cp friendly url entry with the primary key. Does not add the cp friendly url entry to the database.

@param CPFriendlyURLEntryId the primary key for the new cp friendly url entry
@return the new cp friendly url entry
425254
@Override
	public CPFriendlyURLEntry create(long CPFriendlyURLEntryId) {
		CPFriendlyURLEntry cpFriendlyURLEntry = new CPFriendlyURLEntryImpl();

		cpFriendlyURLEntry.setNew(true);
		cpFriendlyURLEntry.setPrimaryKey(CPFriendlyURLEntryId);

		String uuid = PortalUUIDUtil.generate();

		cpFriendlyURLEntry.setUuid(uuid);

		cpFriendlyURLEntry.setCompanyId(companyProvider.getCompanyId());

		return cpFriendlyURLEntry;
	}
194993
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CPFriendlyURLEntry updateCPFriendlyURLEntry(
		CPFriendlyURLEntry cpFriendlyURLEntry) {
		return cpFriendlyURLEntryPersistence.update(cpFriendlyURLEntry);
	}
743894
public static com.liferay.commerce.product.model.CPFriendlyURLEntry updateCPFriendlyURLEntry(
		com.liferay.commerce.product.model.CPFriendlyURLEntry cpFriendlyURLEntry) {
		return getService().updateCPFriendlyURLEntry(cpFriendlyURLEntry);
	}
1177817
@Override
	public com.liferay.commerce.model.CPDAvailabilityEstimate addCPDAvailabilityEstimate(
		com.liferay.commerce.model.CPDAvailabilityEstimate cpdAvailabilityEstimate) {
		return _cpdAvailabilityEstimateLocalService.addCPDAvailabilityEstimate(cpdAvailabilityEstimate);
	}
494217
@Override
	public CPDefinition create(long CPDefinitionId) {
		CPDefinition cpDefinition = new CPDefinitionImpl();

		cpDefinition.setNew(true);
		cpDefinition.setPrimaryKey(CPDefinitionId);

		String uuid = PortalUUIDUtil.generate();

		cpDefinition.setUuid(uuid);

		cpDefinition.setCompanyId(companyProvider.getCompanyId());

		return cpDefinition;
	}
1069390
@Override
	public com.liferay.commerce.product.model.CPDefinitionLink addCPDefinitionLink(
		com.liferay.commerce.product.model.CPDefinitionLink cpDefinitionLink) {
		return _cpDefinitionLinkLocalService.addCPDefinitionLink(cpDefinitionLink);
	}
888921
@Override
	public CPAttachmentFileEntry create(long CPAttachmentFileEntryId) {
		CPAttachmentFileEntry cpAttachmentFileEntry = new CPAttachmentFileEntryImpl();

		cpAttachmentFileEntry.setNew(true);
		cpAttachmentFileEntry.setPrimaryKey(CPAttachmentFileEntryId);

		String uuid = PortalUUIDUtil.generate();

		cpAttachmentFileEntry.setUuid(uuid);

		cpAttachmentFileEntry.setCompanyId(companyProvider.getCompanyId());

		return cpAttachmentFileEntry;
	}
353206
public static BookmarkablePageLink<String> newBookmarkablePageLink(final String linkId,
		final Class<? extends Page> pageClass, final String labelId,
		final ResourceBundleKey resourceModelKey, final Component component)
	{
		final BookmarkablePageLink<String> bookmarkablePageLink = new BookmarkablePageLink<>(linkId,
			pageClass);
		bookmarkablePageLink.add(
			new Label(labelId, ResourceModelFactory.newResourceModel(resourceModelKey, component)));
		return bookmarkablePageLink;
	}
1074560
@Override
	public List<CPDefinitionLink> getCPDefinitionLinksByUuidAndCompanyId(
		String uuid, long companyId) {
		return cpDefinitionLinkPersistence.findByUuid_C(uuid, companyId);
	}
293128
public static URL createUrl(String url) {
        try {
            return new URL(url);
        } catch (MalformedURLException e) {
            throw new SdkClientException("Could not create URL: " + url, e);
        }
    }
1086801
public void setCPFriendlyURLEntryLocalService(
		com.liferay.commerce.product.service.CPFriendlyURLEntryLocalService cpFriendlyURLEntryLocalService) {
		this.cpFriendlyURLEntryLocalService = cpFriendlyURLEntryLocalService;
	}
789494
private static URL uriToURL(final URI uri) {
        if (uri.getScheme().equals("jrt")) {
            // Currently URL cannot handle the "jrt:" scheme, used by system modules.
            throw new IllegalArgumentException("Could not create URL from URI with \"jrt:\" scheme: " + uri);
        }
        try {
            return uri.toURL();
        } catch (final MalformedURLException e) {
            throw new IllegalArgumentException("Could not create URL from URI: " + uri + " -- " + e);
        }
    }
632779
@Override
	@Transactional(enabled = false)
	public CPInstance createCPInstance(long CPInstanceId) {
		return cpInstancePersistence.create(CPInstanceId);
	}
686694
@Override
	@Transactional(enabled = false)
	public CPSpecificationOption createCPSpecificationOption(
		long CPSpecificationOptionId) {
		return cpSpecificationOptionPersistence.create(CPSpecificationOptionId);
	}
1174516
@Override
	public com.liferay.commerce.model.CPDAvailabilityEstimate createCPDAvailabilityEstimate(
		long CPDAvailabilityEstimateId) {
		return _cpdAvailabilityEstimateLocalService.createCPDAvailabilityEstimate(CPDAvailabilityEstimateId);
	}
830212
public static GlobalDiscoveryEntry newGlobalDiscoveryEntry(Version providerVesion,
                                                               String domain,
                                                               String interfaceName,
                                                               String participantId,
                                                               ProviderQos qos,
                                                               Long lastSeenDateMs,
                                                               Long expiryDateMs,
                                                               String publicKeyId,
                                                               Address address) {
        // CHECKSTYLE ON
        return new GlobalDiscoveryEntry(providerVesion,
                                        domain,
                                        interfaceName,
                                        participantId,
                                        qos,
                                        lastSeenDateMs,
                                        expiryDateMs,
                                        publicKeyId,
                                        serializeAddress(address));
    }
69347
@Override
	public CPInstance create(long CPInstanceId) {
		CPInstance cpInstance = new CPInstanceImpl();

		cpInstance.setNew(true);
		cpInstance.setPrimaryKey(CPInstanceId);

		String uuid = PortalUUIDUtil.generate();

		cpInstance.setUuid(uuid);

		cpInstance.setCompanyId(companyProvider.getCompanyId());

		return cpInstance;
	}