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


Java IndexableType.REINDEX属性代码示例

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


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

示例1: updateFormData

@Indexable(type=IndexableType.REINDEX)
public Deliverable updateFormData(long groupId, long id, String formData,ServiceContext serviceContext) throws NoSuchDeliverableException {
	long userId = serviceContext.getUserId();

	Date now = new Date();

	Deliverable object = null;
	object = deliverablePersistence.findByG_DID(groupId, id);
	
	/// Add audit fields
	object.setGroupId(groupId);
	object.setModifiedDate(now);
	object.setUserId(userId);

	// Add other fields
	object.setFormData(formData);

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

示例2: updateFormData

@Indexable(type = IndexableType.REINDEX)
public RegistrationForm updateFormData(long groupId, long registrationId, String referenceUid, String formData,
		ServiceContext serviceContext) 
	throws PortalException, SystemException {

	RegistrationForm registrationForm = registrationFormPersistence.findByG_REGID_REFID(groupId, registrationId, referenceUid);

	String jrxmlTemplate = registrationForm.getFormReport();

	registrationForm.setFormData(formData);
	registrationForm.setIsNew(true);

	Message message = new Message();

	JSONObject msgData = JSONFactoryUtil.createJSONObject();
	msgData.put("className", RegistrationForm.class.getName());
	msgData.put("classPK", registrationForm.getPrimaryKey());
	msgData.put("jrxmlTemplate", jrxmlTemplate);
	msgData.put("formData", formData);
	msgData.put("userId", serviceContext.getUserId());

	message.put("msgToEngine", msgData);
	MessageBusUtil.sendMessage("jasper/engine/out/destination", message);

	return registrationFormPersistence.update(registrationForm);
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:26,代码来源:RegistrationFormLocalServiceImpl.java

示例3: assignToProcess

@Indexable(type = IndexableType.REINDEX)
public Dossier assignToProcess(long dossierId, String dossierNote, String submissionNote, String briefNote,
		String dossierNo, long folderId, long dossierActionId, String serverNo, ServiceContext context) {

	Dossier dossier = dossierPersistence.fetchByPrimaryKey(dossierId);

	dossier.setDossierNote(dossierNote);
	dossier.setSubmissionNote(submissionNote);
	dossier.setBriefNote(briefNote);
	dossier.setDossierNo(dossierNo);
	dossier.setFolderId(folderId);
	dossier.setDossierActionId(dossierActionId);
	dossier.setServerNo(serverNo);

	dossierPersistence.update(dossier);

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

示例4: updateContent

/**
 * @param dossierPartId
 * @param contentType
 * @param input
 * @param context
 * @return
 * @throws PortalException
 */
@Indexable(type = IndexableType.REINDEX)
public String updateContent(long dossierPartId, int contentType, String input, ServiceContext context)
		throws PortalException {

	Date now = new Date();

	User userAction = userLocalService.getUser(context.getUserId());

	DossierPart object = dossierPartPersistence.fetchByPrimaryKey(dossierPartId);

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

	if (contentType == 1) {
		object.setFormScript(input);
	}

	if (contentType == 2) {
		object.setFormReport(input);
	}

	if (contentType == 3) {
		object.setSampleData(input);
	}

	dossierPartPersistence.update(object);

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

示例5: updateComment

@Indexable(type = IndexableType.REINDEX)
@Override
public Comment updateComment(long commentId, String className, String classPK, String email, int upvoteCount,
		ServiceContext serviceContext)
		throws UnauthenticationException, UnauthorizationException, NotFoundException, NoSuchUserException {

	// // authen
	// BackendAuthImpl authImpl = new BackendAuthImpl();
	//
	// boolean isAuth = authImpl.isAuth(serviceContext, StringPool.BLANK,
	// StringPool.BLANK);
	//
	// if (!isAuth) {
	// throw new UnauthenticationException();
	// }
	//
	// boolean hasPermission = authImpl.hasResource(serviceContext,
	// ModelNameKeys.WORKINGUNIT_MGT_CENTER,
	// ActionKeys.EDIT_DATA);
	//
	// if (!hasPermission) {
	// throw new UnauthorizationException();
	// }

	Date now = new Date();

	Comment comment = commentPersistence.fetchByPrimaryKey(commentId);

	if (Validator.isNull(comment)) {
		throw new NotFoundException();
	}

	comment.setModifiedDate(serviceContext.getCreateDate(now));

	// Other fields
	int counter = comment.getUpvoteCount();

	String userHasUpvoted = Validator.isNotNull(comment.getUserHasUpvoted()) ? comment.getUserHasUpvoted()
			: StringPool.BLANK;

	if ((!StringUtil.contains(userHasUpvoted, email) || Validator.isNull(comment.getUserHasUpvoted()))
			&& upvoteCount >= 0) {

		userHasUpvoted += Validator.isNotNull(userHasUpvoted) ? StringPool.COMMA + email : email;

		String[] userVoteds = StringUtil.split(userHasUpvoted);

		counter = userVoteds.length;

	} else if (StringUtil.contains(userHasUpvoted, email) && upvoteCount < 0) {

		String[] emails = StringUtil.split(userHasUpvoted);
		emails = ArrayUtil.remove(emails, email);
		userHasUpvoted = StringUtil.merge(emails);

		counter = emails.length;

	}

	comment.setUserHasUpvoted(userHasUpvoted);
	// comment.setClassName(className);
	// comment.setClassPK(classPK);
	comment.setUpvoteCount(counter);
	comment.setExpandoBridgeAttributes(serviceContext);

	commentPersistence.update(comment);

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

示例6: updateServiceProcess

@Indexable(type = IndexableType.REINDEX)
public ServiceProcess updateServiceProcess(long groupId, long serviceProcessId, String processNo,
		String processName, String description, int durationCount, int durationUnit, long counter,
		boolean generateDossierNo, String dossierNoPattern, boolean generateDueDate, String dueDatePattern,
		boolean generatePassword, boolean directNotification, String serverNo, ServiceContext context)
		throws PortalException {

	Date now = new Date();

	User userAction = userLocalService.getUser(context.getUserId());

	ServiceProcess object = null;

	validateAdd(groupId, serviceProcessId, processNo, processName, generateDossierNo, dossierNoPattern,
			generateDueDate, dueDatePattern, context);

	if (serviceProcessId == 0) {

		serviceProcessId = counterLocalService.increment(ServiceProcess.class.getName());

		object = serviceProcessPersistence.create(serviceProcessId);

		// Add audit fields
		object.setCompanyId(context.getCompanyId());
		object.setGroupId(groupId);
		object.setCreateDate(now);
		object.setModifiedDate(now);
		object.setUserId(userAction.getUserId());
		object.setUserName(userAction.getFullName());

		// Add other fields
		object.setProcessNo(processNo);
		object.setProcessName(processName);
		object.setDescription(description);
		object.setDurationCount(durationCount);
		object.setDurationUnit(durationUnit);
		object.setCounter(counter);
		object.setGenerateDossierNo(generateDossierNo);
		object.setDossierNoPattern(dossierNoPattern);
		object.setGenerateDueDate(generateDueDate);
		object.setDueDatePattern(dueDatePattern);
		object.setGeneratePassword(generatePassword);
		object.setDirectNotification(directNotification);
		object.setServerNo(serverNo);

	} else {
		object = serviceProcessPersistence.fetchByPrimaryKey(serviceProcessId);

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

		// Add other fields
		object.setProcessNo(processNo);
		object.setProcessName(processName);
		object.setDescription(description);
		object.setDurationCount(durationCount);
		object.setDurationUnit(durationUnit);
		object.setCounter(counter);
		object.setGenerateDossierNo(generateDossierNo);
		object.setDossierNoPattern(dossierNoPattern);
		object.setGenerateDueDate(generateDueDate);
		object.setDueDatePattern(dueDatePattern);
		object.setGeneratePassword(generatePassword);
		object.setDirectNotification(directNotification);
		object.setServerNo(serverNo);
	}

	serviceProcessPersistence.update(object);

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

示例7: updateInvoidForm

@Indexable(type = IndexableType.REINDEX)
public PaymentConfig updateInvoidForm(long paymentConfigId, String invoiceForm, ServiceContext context)
		throws PortalException {

	PaymentConfig object = paymentConfigPersistence.fetchByPrimaryKey(paymentConfigId);

	Date now = new Date();

	User userAction = userLocalService.getUser(context.getUserId());

	// Update audit fields
	object.setModifiedDate(now);
	object.setUserId(userAction.getUserId());
	object.setUserName(userAction.getFullName());

	object.setInvoiceForm(invoiceForm);

	paymentConfigPersistence.update(object);

	return object;

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

示例8: addHoliday

@Indexable(type = IndexableType.REINDEX)
@Override
public Holiday addHoliday(long userId, long groupId, Date holidayDate, String description,
		ServiceContext serviceContext)
		throws UnauthenticationException, UnauthorizationException, NoSuchUserException {
	// authen
	BackendAuthImpl authImpl = new BackendAuthImpl();

	boolean isAuth = authImpl.isAuth(serviceContext);

	if (!isAuth) {
		throw new UnauthenticationException();
	}

	boolean hasPermission = authImpl.hasResource(serviceContext, ModelNameKeys.WORKINGUNIT_MGT_CENTER,
			ActionKeys.EDIT_DATA);

	if (!hasPermission) {
		throw new UnauthorizationException();
	}
	Date now = new Date();

	User user = userPersistence.findByPrimaryKey(userId);

	long holidayId = counterLocalService.increment(Holiday.class.getName());

	Holiday holiday = holidayPersistence.create(holidayId);

	// Group instance
	holiday.setGroupId(groupId);

	// Audit fields
	holiday.setUuid(serviceContext.getUuid());
	holiday.setCompanyId(user.getCompanyId());
	holiday.setUserId(user.getUserId());
	holiday.setUserName(user.getFullName());
	holiday.setCreateDate(serviceContext.getCreateDate(now));
	holiday.setModifiedDate(serviceContext.getCreateDate(now));

	holiday.setHolidayDate(holidayDate);
	holiday.setDescription(description);

	holiday.setExpandoBridgeAttributes(serviceContext);

	holidayPersistence.update(holiday);

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

示例9: addWorkingUnit

@Indexable(type = IndexableType.REINDEX)
@Override
public WorkingUnit addWorkingUnit(long userId, long groupId, String name, String enName, String govAgencyCode,
		long parentWorkingUnitId, String sibling, String address, String telNo, String faxNo, String email,
		String website, Date ceremonyDate, ServiceContext serviceContext) throws UnauthenticationException, UnauthorizationException,
		NoSuchUserException, NotFoundException, DuplicateCategoryException {
	// authen
	BackendAuthImpl authImpl = new BackendAuthImpl();

	boolean isAuth = authImpl.isAuth(serviceContext, StringPool.BLANK, StringPool.BLANK);

	if (!isAuth) {
		throw new UnauthenticationException();
	}

	boolean hasPermission = authImpl.hasResource(serviceContext, ModelNameKeys.WORKINGUNIT_MGT_CENTER,
			ActionKeys.EDIT_DATA);

	if (!hasPermission) {
		throw new UnauthorizationException();
	}
	System.out.println("WorkingUnitLocalServiceImpl.addWorkingUnit()"+parentWorkingUnitId + "//"+ groupId);
	sibling = getSibling(groupId, parentWorkingUnitId, sibling);
	
	WorkingUnit workingUnitCheck = workingUnitPersistence.fetchByF_govAgencyCode(groupId, govAgencyCode);

	if (Validator.isNotNull(workingUnitCheck)) {
		throw new DuplicateCategoryException();
	}

	Date now = new Date();

	User user = userPersistence.findByPrimaryKey(userId);

	long workingUnitId = counterLocalService.increment(WorkingUnit.class.getName());

	WorkingUnit workingUnit = workingUnitPersistence.create(workingUnitId);

	// Group instance
	workingUnit.setGroupId(groupId);

	// Audit fields
	workingUnit.setUuid(serviceContext.getUuid());
	workingUnit.setCompanyId(user.getCompanyId());
	workingUnit.setUserId(user.getUserId());
	workingUnit.setUserName(user.getFullName());
	workingUnit.setCreateDate(serviceContext.getCreateDate(now));
	workingUnit.setModifiedDate(serviceContext.getCreateDate(now));

	// Other fields
	workingUnit.setName(name);
	workingUnit.setEnName(enName);
	workingUnit.setGovAgencyCode(govAgencyCode);
	workingUnit.setParentWorkingUnitId(parentWorkingUnitId);
	workingUnit.setSibling(sibling);

	String treeIndex = getTreeIndex(workingUnitId, parentWorkingUnitId, sibling);

	workingUnit.setTreeIndex(treeIndex);
	workingUnit.setLevel(StringUtil.count(treeIndex, StringPool.PERIOD));
	workingUnit.setAddress(address);
	workingUnit.setTelNo(telNo);
	workingUnit.setFaxNo(faxNo);
	workingUnit.setEmail(email);
	workingUnit.setWebsite(website);
	workingUnit.setCeremonyDate(ceremonyDate);
	
	workingUnit.setExpandoBridgeAttributes(serviceContext);

	workingUnitPersistence.update(workingUnit);

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

示例10: lockoutApplicant

@Indexable(type = IndexableType.REINDEX)
public Applicant lockoutApplicant(long applicantId) throws PortalException {

	Applicant applicant = applicantLocalService.fetchApplicant(applicantId);

	User user = userPersistence.fetchByPrimaryKey(applicant.getMappingUserId());
	
	boolean lockStatus = user.getLockout();
	
	if (lockStatus) {
		lockStatus = false;
	} else {
		lockStatus = true;
	}

	userLocalService.updateLockout(user, lockStatus);

	user.setLockout(lockStatus);
	userPersistence.update(user);
	
	applicant.setLock_(lockStatus);

	applicantPersistence.update(applicant);

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

示例11: updatePaymentConfig

@Indexable(type = IndexableType.REINDEX)
public PaymentConfig updatePaymentConfig(long groupId, long paymentConfigId, String govAgencyCode,
		String govAgencyName, String govAgencyTaxNo, String invoiceTemplateNo, String invoiceIssueNo,
		String invoiceLastNo, String invoiceForm, String bankInfo, String epaymentConfig, ServiceContext context)
		throws PortalException {

	validateUpdate(groupId, paymentConfigId, govAgencyCode, govAgencyName, govAgencyTaxNo, invoiceTemplateNo,
			invoiceIssueNo, invoiceLastNo, invoiceForm, bankInfo, epaymentConfig);

	PaymentConfig object = null;

	Date now = new Date();

	User userAction = userLocalService.getUser(context.getUserId());

	if (paymentConfigId == 0) {

		paymentConfigId = counterLocalService.increment(PaymentConfig.class.getName());

		object = paymentConfigPersistence.create(paymentConfigId);

		// Add audit fields
		object.setCompanyId(context.getCompanyId());
		object.setGroupId(groupId);
		object.setCreateDate(now);
		object.setModifiedDate(now);
		object.setUserId(userAction.getUserId());
		object.setUserName(userAction.getFullName());

		object.setGovAgencyCode(govAgencyCode);
		object.setGovAgencyName(govAgencyName);
		object.setGovAgencyTaxNo(govAgencyTaxNo);
		object.setInvoiceTemplateNo(invoiceTemplateNo);
		object.setInvoiceIssueNo(invoiceIssueNo);
		object.setInvoiceLastNo(invoiceLastNo);
		object.setInvoiceForm(invoiceForm);
		object.setBankInfo(bankInfo);
		object.setEpaymentConfig(epaymentConfig);

	} else {
		object = paymentConfigPersistence.fetchByPrimaryKey(paymentConfigId);

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

		object.setGovAgencyCode(govAgencyCode);
		object.setGovAgencyName(govAgencyName);
		object.setGovAgencyTaxNo(govAgencyTaxNo);
		object.setInvoiceTemplateNo(invoiceTemplateNo);
		object.setInvoiceIssueNo(invoiceIssueNo);
		object.setInvoiceLastNo(invoiceLastNo);
		//object.setInvoiceForm(invoiceForm);
		object.setBankInfo(bankInfo);
		//object.setEpaymentConfig(epaymentConfig);

	}

	paymentConfigPersistence.update(object);

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

示例12: updateDossierFile

/**
 * 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,代码行数:52,代码来源:DossierFileLocalServiceImpl.java

示例13: updateRegistration

@Indexable(type = IndexableType.REINDEX)
public Registration updateRegistration(long groupId, long registrationId, String applicantName,
		String applicantIdType, String applicantIdNo, String applicantIdDate, String address, String cityCode,
		String cityName, String districtCode, String districtName, String wardCode, String wardName,
		String contactName, String contactTelNo, String contactEmail, String govAgencyCode, String govAgencyName,
		int registrationState, String registrationClass, ServiceContext serviceContext)
		throws PortalException, SystemException {

	Date now = new Date();

	Registration model = registrationPersistence.fetchByPrimaryKey(registrationId);

	model.setModifiedDate(now);
	model.setSubmitting(true);
	
	if (Validator.isNotNull(applicantIdDate)) {
		try {
			Date idDate = UserMgtUtils.convertDate(applicantIdDate);
			
			model.setApplicantIdDate(idDate);
		} catch (Exception e) {
			_log.error(e);
		}
	}

	if (Validator.isNotNull(applicantName)) {
		model.setApplicantName(applicantName);
	}
	if (Validator.isNotNull(applicantIdType)) {
		model.setApplicantIdType(applicantIdType);
	}
	if (Validator.isNotNull(applicantIdNo)) {
		model.setApplicantIdNo(applicantIdNo);
	}
	if (Validator.isNotNull(address)) {
		model.setAddress(address);
	}
	if (Validator.isNotNull(cityCode)) {
		model.setCityCode(cityCode);
	}
	if (Validator.isNotNull(cityName)) {
		model.setCityName(cityName);
	}
	if (Validator.isNotNull(districtCode)) {
		model.setDistrictCode(districtCode);
	}
	if (Validator.isNotNull(districtName)) {
		model.setDistrictName(districtName);
	}
	if (Validator.isNotNull(wardCode)) {
		model.setWardCode(wardCode);
	}
	if (Validator.isNotNull(wardName)) {
		model.setWardName(wardName);
	}
	if (Validator.isNotNull(contactName)) {
		model.setContactName(contactName);
	}
	if (Validator.isNotNull(contactTelNo)) {
		model.setContactTelNo(contactTelNo);
	}
	if (Validator.isNotNull(contactEmail)) {
		model.setContactEmail(contactEmail);
	}
	if (Validator.isNotNull(govAgencyCode)) {
		model.setGovAgencyCode(govAgencyCode);
	}
	if (Validator.isNotNull(govAgencyName)) {
		model.setGovAgencyName(govAgencyName);
	}
	if (Validator.isNotNull(registrationClass)) {
		model.setRegistrationClass(registrationClass);
	}
	if (Validator.isNotNull(registrationState)) {
		model.setRegistrationState(registrationState);
	}

	return registrationPersistence.update(model);
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:79,代码来源:RegistrationLocalServiceImpl.java

示例14: updateProcessAction

@Deprecated
@Indexable(type = IndexableType.REINDEX)
public ProcessAction updateProcessAction(long groupId, long processActionId, long serviceProcessId,
		String preStepCode, String postStepCode, String autoEvent, String preCondition, String actionCode,
		String actionName, boolean allowAssignUser, long assignUserId, boolean requestPayment, String paymentFee,
		String createDossierFiles, String returnDossierFiles, String makeBriefNote, String syncActionCode,
		boolean rollbackable, ServiceContext context) throws PortalException {

	Date now = new Date();

	User userAction = userLocalService.getUser(context.getUserId());

	ProcessAction object = null;

	validateAdd(groupId, serviceProcessId, preStepCode, postStepCode, autoEvent, preCondition, actionCode,
			actionName, allowAssignUser, assignUserId, requestPayment, paymentFee, createDossierFiles,
			returnDossierFiles, makeBriefNote, syncActionCode, rollbackable);

	if (processActionId == 0) {

		processActionId = counterLocalService.increment(ProcessAction.class.getName());

		object = processActionPersistence.create(processActionId);

		// Add audit fields
		object.setCompanyId(context.getCompanyId());
		object.setGroupId(groupId);
		object.setCreateDate(now);
		object.setModifiedDate(now);
		object.setUserId(userAction.getUserId());
		object.setUserName(userAction.getFullName());

		object.setServiceProcessId(serviceProcessId);
		object.setPreStepCode(preStepCode);
		object.setPostStepCode(postStepCode);
		object.setAutoEvent(autoEvent);
		object.setPreCondition(preCondition);
		object.setActionCode(actionCode);
		object.setActionName(actionName);
		object.setAllowAssignUser(allowAssignUser);
		object.setAssignUserId(assignUserId);
		object.setRequestPayment(requestPayment);
		object.setPaymentFee(paymentFee);
		object.setCreateDossierFiles(createDossierFiles);
		object.setReturnDossierFiles(returnDossierFiles);
		object.setMakeBriefNote(makeBriefNote);
		object.setSyncActionCode(syncActionCode);
		object.setRollbackable(rollbackable);

	} else {
		object = processActionPersistence.fetchByPrimaryKey(processActionId);

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

		// object.setServiceProcessId(serviceProcessId);
		object.setPreStepCode(preStepCode);
		object.setPostStepCode(postStepCode);
		object.setAutoEvent(autoEvent);
		object.setPreCondition(preCondition);
		object.setActionCode(actionCode);
		object.setActionName(actionName);
		object.setAllowAssignUser(allowAssignUser);
		object.setAssignUserId(assignUserId);
		object.setRequestPayment(requestPayment);
		object.setPaymentFee(paymentFee);
		object.setCreateDossierFiles(createDossierFiles);
		object.setReturnDossierFiles(returnDossierFiles);
		object.setMakeBriefNote(makeBriefNote);
		object.setSyncActionCode(syncActionCode);
		object.setRollbackable(rollbackable);

	}

	processActionPersistence.update(object);

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

示例15: submitting

@Indexable(type = IndexableType.REINDEX)
public Dossier submitting(long groupId, long id, String refId, ServiceContext context) throws PortalException {

	validateSubmitting(groupId, id, refId);

	Date now = new Date();

	Dossier dossier = null;

	if (id != 0) {
		dossier = dossierPersistence.fetchByPrimaryKey(id);
	} else {
		dossier = dossierPersistence.fetchByG_REF(groupId, refId);
	}

	dossier.setModifiedDate(now);

	dossier.setSubmitting(true);
	dossier.setSubmitDate(now);

	dossierPersistence.update(dossier);

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


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