• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java PortalUUIDUtil类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.liferay.portal.kernel.uuid.PortalUUIDUtil的典型用法代码示例。如果您正苦于以下问题:Java PortalUUIDUtil类的具体用法?Java PortalUUIDUtil怎么用?Java PortalUUIDUtil使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



PortalUUIDUtil类属于com.liferay.portal.kernel.uuid包,在下文中一共展示了PortalUUIDUtil类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: pullFormData

import com.liferay.portal.kernel.uuid.PortalUUIDUtil; //导入依赖的package包/类
private void pullFormData(long desGroupId, String fileRef, String dossierTemplateNo, long dossierId,
		String formData, DossierPart part, ServiceContext serviceContext) {
	try {
		DossierFile dossierFile = DossierFileLocalServiceUtil.getDossierFileByReferenceUid(dossierId, fileRef);

		if (Validator.isNull(dossierFile)) {
			// create dossierFile
			dossierFile = DossierFileLocalServiceUtil.addDossierFile(desGroupId, dossierId,
					PortalUUIDUtil.generate(), dossierTemplateNo, part.getPartNo(), part.getFileTemplateNo(),
					part.getPartName(), StringPool.BLANK, 0, null, StringPool.BLANK, StringPool.FALSE,
					serviceContext);
		}

		dossierFile.setFormData(formData);

		DossierFileLocalServiceUtil.updateDossierFile(dossierFile);

	} catch (Exception e) {
		_log.error(e);
	}
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:22,代码来源:DossierPullScheduler.java


示例2: createPaymentFile

import com.liferay.portal.kernel.uuid.PortalUUIDUtil; //导入依赖的package包/类
/**
 * Create PaymentFile of DossierId
 * 
 * @param form
 *            params
 * @return PaymentFile
 */
@Override
public PaymentFile createPaymentFile(long userId, long groupId, long dossierId, String referenceUid,
		String govAgencyCode, String govAgencyName, String applicantName, String applicantIdNo, String paymentFee,
		long paymentAmount, String paymentNote, String epaymentProfile, String bankInfo,
		ServiceContext serviceContext) throws PortalException {
	_log.info("boom boom");
	if (Validator.isNull(referenceUid)) {
		referenceUid = PortalUUIDUtil.generate();
	}

	try {

		PaymentFile result = PaymentFileLocalServiceUtil.createPaymentFiles(userId, groupId, dossierId,
				referenceUid, govAgencyCode, govAgencyName, applicantName, applicantIdNo, paymentFee, paymentAmount,
				paymentNote, epaymentProfile, bankInfo, serviceContext);

		return result;

	} catch (PortalException e) {
		// TODO Auto-generated catch block
		_log.info("boom boom");
		_log.info(e);
		e.printStackTrace();
		throw new PortalException();
	}

}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:35,代码来源:PaymentFileActionsImpl.java


示例3: create

import com.liferay.portal.kernel.uuid.PortalUUIDUtil; //导入依赖的package包/类
/**
 * Creates a new payment file with the primary key. Does not add the payment file to the database.
 *
 * @param paymentFileId the primary key for the new payment file
 * @return the new payment file
 */
@Override
public PaymentFile create(long paymentFileId) {
	PaymentFile paymentFile = new PaymentFileImpl();

	paymentFile.setNew(true);
	paymentFile.setPrimaryKey(paymentFileId);

	String uuid = PortalUUIDUtil.generate();

	paymentFile.setUuid(uuid);

	return paymentFile;
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:20,代码来源:PaymentFilePersistenceImpl.java


示例4: create

import com.liferay.portal.kernel.uuid.PortalUUIDUtil; //导入依赖的package包/类
/**
 * Creates a new doc file with the primary key. Does not add the doc file to the database.
 *
 * @param docFileId the primary key for the new doc file
 * @return the new doc file
 */
@Override
public DocFile create(long docFileId) {
	DocFile docFile = new DocFileImpl();

	docFile.setNew(true);
	docFile.setPrimaryKey(docFileId);

	String uuid = PortalUUIDUtil.generate();

	docFile.setUuid(uuid);

	return docFile;
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:20,代码来源:DocFilePersistenceImpl.java


示例5: create

import com.liferay.portal.kernel.uuid.PortalUUIDUtil; //导入依赖的package包/类
/**
 * Creates a new payment request with the primary key. Does not add the payment request to the database.
 *
 * @param paymentRequestId the primary key for the new payment request
 * @return the new payment request
 */
@Override
public PaymentRequest create(long paymentRequestId) {
	PaymentRequest paymentRequest = new PaymentRequestImpl();

	paymentRequest.setNew(true);
	paymentRequest.setPrimaryKey(paymentRequestId);

	String uuid = PortalUUIDUtil.generate();

	paymentRequest.setUuid(uuid);

	return paymentRequest;
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:20,代码来源:PaymentRequestPersistenceImpl.java


示例6: create

import com.liferay.portal.kernel.uuid.PortalUUIDUtil; //导入依赖的package包/类
/**
 * Creates a new dossier with the primary key. Does not add the dossier to the database.
 *
 * @param dossierId the primary key for the new dossier
 * @return the new dossier
 */
@Override
public Dossier create(long dossierId) {
	Dossier dossier = new DossierImpl();

	dossier.setNew(true);
	dossier.setPrimaryKey(dossierId);

	String uuid = PortalUUIDUtil.generate();

	dossier.setUuid(uuid);

	return dossier;
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:20,代码来源:DossierPersistenceImpl.java


示例7: create

import com.liferay.portal.kernel.uuid.PortalUUIDUtil; //导入依赖的package包/类
/**
 * Creates a new dossier folder with the primary key. Does not add the dossier folder to the database.
 *
 * @param dossierFolderId the primary key for the new dossier folder
 * @return the new dossier folder
 */
@Override
public DossierFolder create(long dossierFolderId) {
	DossierFolder dossierFolder = new DossierFolderImpl();

	dossierFolder.setNew(true);
	dossierFolder.setPrimaryKey(dossierFolderId);

	String uuid = PortalUUIDUtil.generate();

	dossierFolder.setUuid(uuid);

	return dossierFolder;
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:20,代码来源:DossierFolderPersistenceImpl.java


示例8: create

import com.liferay.portal.kernel.uuid.PortalUUIDUtil; //导入依赖的package包/类
/**
 * Creates a new doc file version with the primary key. Does not add the doc file version to the database.
 *
 * @param docFileVersionId the primary key for the new doc file version
 * @return the new doc file version
 */
@Override
public DocFileVersion create(long docFileVersionId) {
	DocFileVersion docFileVersion = new DocFileVersionImpl();

	docFileVersion.setNew(true);
	docFileVersion.setPrimaryKey(docFileVersionId);

	String uuid = PortalUUIDUtil.generate();

	docFileVersion.setUuid(uuid);

	return docFileVersion;
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:20,代码来源:DocFileVersionPersistenceImpl.java


示例9: create

import com.liferay.portal.kernel.uuid.PortalUUIDUtil; //导入依赖的package包/类
/**
 * Creates a new process order with the primary key. Does not add the process order to the database.
 *
 * @param processOrderId the primary key for the new process order
 * @return the new process order
 */
@Override
public ProcessOrder create(long processOrderId) {
	ProcessOrder processOrder = new ProcessOrderImpl();

	processOrder.setNew(true);
	processOrder.setPrimaryKey(processOrderId);

	String uuid = PortalUUIDUtil.generate();

	processOrder.setUuid(uuid);

	return processOrder;
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:20,代码来源:ProcessOrderPersistenceImpl.java


示例10: create

import com.liferay.portal.kernel.uuid.PortalUUIDUtil; //导入依赖的package包/类
/**
 * Creates a new album with the primary key. Does not add the album to the database.
 *
 * @param albumId the primary key for the new album
 * @return the new album
 */
@Override
public Album create(long albumId) {
	Album album = new AlbumImpl();

	album.setNew(true);
	album.setPrimaryKey(albumId);

	String uuid = PortalUUIDUtil.generate();

	album.setUuid(uuid);

	return album;
}
 
开发者ID:juliocamarero,项目名称:jukebox-portlet,代码行数:20,代码来源:AlbumPersistenceImpl.java


示例11: create

import com.liferay.portal.kernel.uuid.PortalUUIDUtil; //导入依赖的package包/类
/**
 * Creates a new song with the primary key. Does not add the song to the database.
 *
 * @param songId the primary key for the new song
 * @return the new song
 */
@Override
public Song create(long songId) {
	Song song = new SongImpl();

	song.setNew(true);
	song.setPrimaryKey(songId);

	String uuid = PortalUUIDUtil.generate();

	song.setUuid(uuid);

	return song;
}
 
开发者ID:juliocamarero,项目名称:jukebox-portlet,代码行数:20,代码来源:SongPersistenceImpl.java


示例12: create

import com.liferay.portal.kernel.uuid.PortalUUIDUtil; //导入依赖的package包/类
/**
 * Creates a new artist with the primary key. Does not add the artist to the database.
 *
 * @param artistId the primary key for the new artist
 * @return the new artist
 */
@Override
public Artist create(long artistId) {
	Artist artist = new ArtistImpl();

	artist.setNew(true);
	artist.setPrimaryKey(artistId);

	String uuid = PortalUUIDUtil.generate();

	artist.setUuid(uuid);

	return artist;
}
 
开发者ID:juliocamarero,项目名称:jukebox-portlet,代码行数:20,代码来源:ArtistPersistenceImpl.java


示例13: cloneDossierFile

import com.liferay.portal.kernel.uuid.PortalUUIDUtil; //导入依赖的package包/类
/**
 * POST /dossiers/{id}/files/copyfile
 * 
 * @param groupId
 * @param dossierId
 * @param dossierFileId
 * @param dossierTemplateNo
 * @param dossierPartNo
 * @param serviceContext
 * @return
 * @throws PortalException
 * @throws SystemException
 */
@Indexable(type = IndexableType.REINDEX)
public DossierFile cloneDossierFile(long groupId, long dossierId, long dossierFileId, String dossierTemplateNo,
		String dossierPartNo, ServiceContext serviceContext) throws PortalException, SystemException {

	DossierFile sourceDossierFile = dossierFilePersistence.findByPrimaryKey(dossierFileId);

	User user = userPersistence.findByPrimaryKey(serviceContext.getUserId());

	DossierPart dossierPart = dossierPartPersistence.findByTP_NO_PART(groupId, dossierTemplateNo, dossierPartNo);

	long fileEntryId = 0;

	if (sourceDossierFile.getFileEntryId() > 0) {
		try {
			FileEntry fileEntry = FileUploadUtils.cloneDossierFile(user.getPrimaryKey(), groupId,
					sourceDossierFile.getFileEntryId(), serviceContext);

			fileEntryId = fileEntry.getFileEntryId();
		} catch (Exception e) {
			throw new SystemException(e);
		}
	}

	long newDossierFileId = counterLocalService.increment(DossierFile.class.getName());

	DossierFile object = dossierFilePersistence.create(newDossierFileId);

	Date now = new Date();

	// Add audit fields
	object.setCompanyId(serviceContext.getCompanyId());
	object.setGroupId(groupId);
	object.setCreateDate(now);
	object.setModifiedDate(now);
	object.setUserId(user.getPrimaryKey());
	object.setUserName(user.getFullName());

	// Add other fields

	object.setDossierId(dossierId);
	object.setReferenceUid(PortalUUIDUtil.generate());
	object.setDossierTemplateNo(dossierTemplateNo);
	object.setFileEntryId(fileEntryId);
	object.setDossierPartNo(dossierPartNo);
	object.setFileTemplateNo(sourceDossierFile.getFileTemplateNo());
	object.setDossierPartType(dossierPart.getPartType());
	object.setDisplayName(sourceDossierFile.getDisplayName());
	object.setFormData(sourceDossierFile.getFormData());
	object.setOriginal(false);
	object.setIsNew(true);
	object.setFormScript(sourceDossierFile.getFormScript());
	object.setFormReport(sourceDossierFile.getFormReport());

	return dossierFilePersistence.update(object);
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:69,代码来源:DossierFileLocalServiceImpl.java


示例14: updateDossierFile

import com.liferay.portal.kernel.uuid.PortalUUIDUtil; //导入依赖的package包/类
/**
 * POST /dossiers/{id|referenceUid}/files/{referenceUid}
 */
@Indexable(type = IndexableType.REINDEX)
public DossierFile updateDossierFile(long groupId, long dossierId, String referenceUid, String displayName,
		String sourceFileName, InputStream inputStream, ServiceContext serviceContext)
		throws PortalException, SystemException {

	long userId = serviceContext.getUserId();

	DossierFile dossierFile = dossierFileLocalService.getDossierFileByReferenceUid(dossierId, referenceUid);

	long fileEntryId = 0;

	try {
		FileEntry fileEntry = FileUploadUtils.uploadDossierFile(userId, groupId, dossierFile.getFileEntryId(),
				inputStream, sourceFileName, null, 0, serviceContext);

		if (fileEntry != null) {
			fileEntryId = fileEntry.getFileEntryId();
		}
	} catch (Exception e) {
		throw new SystemException(e);
	}

	Date now = new Date();

	User userAction = userLocalService.getUser(userId);

	// Add audit fields
	dossierFile.setModifiedDate(now);
	dossierFile.setUserId(userAction.getUserId());
	dossierFile.setUserName(userAction.getFullName());

	// Add other fields

	dossierFile.setDossierId(dossierId);
	if (Validator.isNull(referenceUid)) {
		referenceUid = PortalUUIDUtil.generate();
	}

	dossierFile.setFileEntryId(fileEntryId);
	if (Validator.isNull(displayName)) {
		displayName = sourceFileName;
	}

	dossierFile.setDisplayName(displayName);
	dossierFile.setOriginal(true);
	dossierFile.setIsNew(true);

	return dossierFilePersistence.update(dossierFile);
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:53,代码来源:DossierFileLocalServiceImpl.java


示例15: create

import com.liferay.portal.kernel.uuid.PortalUUIDUtil; //导入依赖的package包/类
/**
 * Creates a new dict collection with the primary key. Does not add the dict collection to the database.
 *
 * @param dictCollectionId the primary key for the new dict collection
 * @return the new dict collection
 */
@Override
public DictCollection create(long dictCollectionId) {
	DictCollection dictCollection = new DictCollectionImpl();

	dictCollection.setNew(true);
	dictCollection.setPrimaryKey(dictCollectionId);

	String uuid = PortalUUIDUtil.generate();

	dictCollection.setUuid(uuid);

	dictCollection.setCompanyId(companyProvider.getCompanyId());

	return dictCollection;
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:22,代码来源:DictCollectionPersistenceImpl.java


示例16: create

import com.liferay.portal.kernel.uuid.PortalUUIDUtil; //导入依赖的package包/类
/**
 * Creates a new voting with the primary key. Does not add the voting to the database.
 *
 * @param votingId the primary key for the new voting
 * @return the new voting
 */
@Override
public Voting create(long votingId) {
	Voting voting = new VotingImpl();

	voting.setNew(true);
	voting.setPrimaryKey(votingId);

	String uuid = PortalUUIDUtil.generate();

	voting.setUuid(uuid);

	voting.setCompanyId(companyProvider.getCompanyId());

	return voting;
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:22,代码来源:VotingPersistenceImpl.java


示例17: create

import com.liferay.portal.kernel.uuid.PortalUUIDUtil; //导入依赖的package包/类
/**
 * Creates a new voting result with the primary key. Does not add the voting result to the database.
 *
 * @param votingResultId the primary key for the new voting result
 * @return the new voting result
 */
@Override
public VotingResult create(long votingResultId) {
	VotingResult votingResult = new VotingResultImpl();

	votingResult.setNew(true);
	votingResult.setPrimaryKey(votingResultId);

	String uuid = PortalUUIDUtil.generate();

	votingResult.setUuid(uuid);

	votingResult.setCompanyId(companyProvider.getCompanyId());

	return votingResult;
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:22,代码来源:VotingResultPersistenceImpl.java


示例18: create

import com.liferay.portal.kernel.uuid.PortalUUIDUtil; //导入依赖的package包/类
/**
 * Creates a new dict item with the primary key. Does not add the dict item to the database.
 *
 * @param dictItemId the primary key for the new dict item
 * @return the new dict item
 */
@Override
public DictItem create(long dictItemId) {
	DictItem dictItem = new DictItemImpl();

	dictItem.setNew(true);
	dictItem.setPrimaryKey(dictItemId);

	String uuid = PortalUUIDUtil.generate();

	dictItem.setUuid(uuid);

	dictItem.setCompanyId(companyProvider.getCompanyId());

	return dictItem;
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:22,代码来源:DictItemPersistenceImpl.java


示例19: create

import com.liferay.portal.kernel.uuid.PortalUUIDUtil; //导入依赖的package包/类
/**
 * Creates a new dict item group with the primary key. Does not add the dict item group to the database.
 *
 * @param dictItemGroupId the primary key for the new dict item group
 * @return the new dict item group
 */
@Override
public DictItemGroup create(long dictItemGroupId) {
	DictItemGroup dictItemGroup = new DictItemGroupImpl();

	dictItemGroup.setNew(true);
	dictItemGroup.setPrimaryKey(dictItemGroupId);

	String uuid = PortalUUIDUtil.generate();

	dictItemGroup.setUuid(uuid);

	dictItemGroup.setCompanyId(companyProvider.getCompanyId());

	return dictItemGroup;
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:22,代码来源:DictItemGroupPersistenceImpl.java


示例20: create

import com.liferay.portal.kernel.uuid.PortalUUIDUtil; //导入依赖的package包/类
/**
 * Creates a new dict group with the primary key. Does not add the dict group to the database.
 *
 * @param dictGroupId the primary key for the new dict group
 * @return the new dict group
 */
@Override
public DictGroup create(long dictGroupId) {
	DictGroup dictGroup = new DictGroupImpl();

	dictGroup.setNew(true);
	dictGroup.setPrimaryKey(dictGroupId);

	String uuid = PortalUUIDUtil.generate();

	dictGroup.setUuid(uuid);

	dictGroup.setCompanyId(companyProvider.getCompanyId());

	return dictGroup;
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:22,代码来源:DictGroupPersistenceImpl.java



注:本文中的com.liferay.portal.kernel.uuid.PortalUUIDUtil类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Index类代码示例发布时间:2022-05-23
下一篇:
Java DefaultLoadBalancerRetryHandler类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap