当前位置: 首页>>代码示例>>Java>>正文


Java PortalUUIDUtil.generate方法代码示例

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


在下文中一共展示了PortalUUIDUtil.generate方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: 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

示例2: 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

示例3: 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

示例4: 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

示例5: 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

示例6: 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

示例7: 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

示例8: 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

示例9: 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

示例10: 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

示例11: 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

示例12: 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

示例13: 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

示例14: 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

示例15: 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


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