instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
public class GetRenderedStartFormCmd implements Command<Object>, Serializable { private static final long serialVersionUID = 1L; protected String processDefinitionId; protected String formEngineName; public GetRenderedStartFormCmd(String processDefinitionId, String formEngineName) { this.proce...
StartFormHandler startFormHandler = formHandlerHelper.getStartFormHandler(commandContext, processDefinition); if (startFormHandler == null) { return null; } FormEngine formEngine = CommandContextUtil.getProcessEngineConfiguration(commandContext).getFormEngines().get(formEngineName);...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\cmd\GetRenderedStartFormCmd.java
1
请完成以下Java代码
public ModelQuery orderByModelId() { return orderBy(ModelQueryProperty.MODEL_ID); } @Override public ModelQuery orderByModelKey() { return orderBy(ModelQueryProperty.MODEL_KEY); } @Override public ModelQuery orderByModelVersion() { return orderBy(ModelQueryProperty.MODE...
public String getCategoryLike() { return categoryLike; } public String getCategoryNotEquals() { return categoryNotEquals; } public static long getSerialversionuid() { return serialVersionUID; } public String getKey() { return key; } public boolean isLa...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\ModelQueryImpl.java
1
请完成以下Java代码
public class X_Carrier_Product extends org.compiere.model.PO implements I_Carrier_Product, org.compiere.model.I_Persistent { private static final long serialVersionUID = 720899627L; /** Standard Constructor */ public X_Carrier_Product (final Properties ctx, final int Carrier_Product_ID, @Nullable final Stri...
public void setExternalId (final java.lang.String ExternalId) { set_Value (COLUMNNAME_ExternalId, ExternalId); } @Override public java.lang.String getExternalId() { return get_ValueAsString(COLUMNNAME_ExternalId); } @Override public void setM_Shipper_ID (final int M_Shipper_ID) { if (M_Shipper_ID < 1)...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_Carrier_Product.java
1
请完成以下Java代码
public boolean isWrapperFor(Class<?> iface) throws SQLException { return iface.isInstance(this); } public Map<Object, DataSource> getDataSources() { return dataSources; } public void setDataSources(Map<Object, DataSource> dataSources) { this.dataSources = dataSources; } ...
public PrintWriter getLogWriter() throws SQLException { throw new UnsupportedOperationException(); } @Override public void setLogWriter(PrintWriter out) throws SQLException { throw new UnsupportedOperationException(); } @Override public void setLoginTimeout(int seconds) throws ...
repos\flowable-engine-main\modules\flowable-engine-common\src\main\java\org\flowable\common\engine\impl\cfg\multitenant\TenantAwareDataSource.java
1
请完成以下Java代码
public BPartnerId getVendorId() { return getVendorProductInfo().getVendorId(); } public String getVendorProductNo() { return getVendorProductInfo().getVendorProductNo(); } public ProductId getProductId() { return getVendorProductInfo().getProductId(); } public AttributeSetInstanceId getAttributeSetIns...
} return getVendorProductInfo().isAggregatePOs(); } public PurchaseCandidatesGroup allowingPOAggregation(final boolean allowPOAggregation) { if (this.isAllowPOAggregation() == allowPOAggregation) { return this; } return toBuilder().allowPOAggregation(allowPOAggregation).build(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.purchasecandidate.base\src\main\java\de\metas\purchasecandidate\PurchaseCandidatesGroup.java
1
请完成以下Java代码
public Date getEnableTime() { return enableTime; } public void setEnableTime(Date enableTime) { this.enableTime = enableTime; } public String getCode() { return code; } public void setCode(String code) { this.code = code; } public Integer getMemberLeve...
sb.append(", minPoint=").append(minPoint); sb.append(", startTime=").append(startTime); sb.append(", endTime=").append(endTime); sb.append(", useType=").append(useType); sb.append(", note=").append(note); sb.append(", publishCount=").append(publishCount); sb.append(", use...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\SmsCoupon.java
1
请完成以下Java代码
public static <T> ExplainedOptional<T> of(@NonNull final T value) { return new ExplainedOptional<>(value, null); } private final T value; private final ITranslatableString explanation; private ExplainedOptional(@Nullable final T value, @Nullable final ITranslatableString explanation) { this.value = value; ...
} public ExplainedOptional<T> ifPresent(@NonNull final Consumer<T> consumer) { if (isPresent()) { consumer.accept(value); } return this; } @SuppressWarnings("UnusedReturnValue") public ExplainedOptional<T> ifAbsent(@NonNull final Consumer<ITranslatableString> consumer) { if (!isPresent()) { co...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\i18n\ExplainedOptional.java
1
请完成以下Java代码
public void setFailureHandler(AuthenticationFailureHandler failureHandler) { Assert.notNull(failureHandler, "failureHandler cannot be null"); this.failureHandler = failureHandler; } /** * @param switchUserAuthorityChanger to use to fine-tune the authorities granted to * subclasses (may be null if SwitchUserF...
/** * Sets the {@link SecurityContextHolderStrategy} to use. The default action is to use * the {@link SecurityContextHolderStrategy} stored in {@link SecurityContextHolder}. * * @since 5.8 */ public void setSecurityContextHolderStrategy(SecurityContextHolderStrategy securityContextHolderStrategy) { Assert...
repos\spring-security-main\web\src\main\java\org\springframework\security\web\authentication\switchuser\SwitchUserFilter.java
1
请完成以下Java代码
public String getHelp () { return (String)get_Value(COLUMNNAME_Help); } /** Set Image URL. @param ImageURL URL of image */ public void setImageURL (String ImageURL) { set_Value (COLUMNNAME_ImageURL, ImageURL); } /** Get Image URL. @return URL of image */ public String getImageURL () { ...
@return Alphanumeric identifier of the entity */ public String getName () { return (String)get_Value(COLUMNNAME_Name); } /** Get Record ID/ColumnName @return ID/ColumnName pair */ public KeyNamePair getKeyNamePair() { return new KeyNamePair(get_ID(), getName()); } /** ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_S_Training.java
1
请在Spring Boot框架中完成以下Java代码
public class SmsCouponController { @Autowired private SmsCouponService couponService; @ApiOperation("添加优惠券") @RequestMapping(value = "/create", method = RequestMethod.POST) @ResponseBody public CommonResult add(@RequestBody SmsCouponParam couponParam) { int count = couponService.create(c...
public CommonResult update(@PathVariable Long id,@RequestBody SmsCouponParam couponParam) { int count = couponService.update(id,couponParam); if(count>0){ return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("根据优惠券名称和类型分页获取优惠券列表") @...
repos\mall-master\mall-admin\src\main\java\com\macro\mall\controller\SmsCouponController.java
2
请在Spring Boot框架中完成以下Java代码
public void setProductService(ProductService productService) { this.productService = productService; } @RequestMapping({"/product/list", "/product"}) public String listProducts(Model model){ model.addAttribute("products", productService.listAll()); return "/product/list"; } ...
public String saveOrUpdateProduct(@Valid ProductForm productForm, BindingResult bindingResult){ if(bindingResult.hasErrors()){ return "product/productform"; } Product savedProduct = productService.saveOrUpdateProductForm(productForm); return "redirect:/product/show/" + sav...
repos\SpringBootVulExploit-master\repository\springboot-mysql-jdbc-rce\src\main\java\code\landgrey\controllers\ProductController.java
2
请在Spring Boot框架中完成以下Java代码
public void setMaxPageSize(int maxPageSize) { this.maxPageSize = maxPageSize; } public PageSerializationMode getSerializationMode() { return this.serializationMode; } public void setSerializationMode(PageSerializationMode serializationMode) { this.serializationMode = serializationMode; } } /** ...
/** * Sort parameter name. */ private String sortParameter = "sort"; public String getSortParameter() { return this.sortParameter; } public void setSortParameter(String sortParameter) { this.sortParameter = sortParameter; } } }
repos\spring-boot-4.0.1\module\spring-boot-data-commons\src\main\java\org\springframework\boot\data\autoconfigure\web\DataWebProperties.java
2
请完成以下Java代码
protected void scheduleEventAsync(EventSubscriptionEntity eventSubscriptionEntity, Object payload) { JobEntity message = getJobEntityManager().create(); message.setJobType(JobEntity.JOB_TYPE_MESSAGE); message.setJobHandlerType(ProcessEventJobHandler.TYPE); message.setJobHandlerConfigurat...
MessageEventSubscriptionEntity >(result.size()); for (EventSubscriptionEntity eventSubscriptionEntity : result) { messageEventSubscriptionEntities.add((MessageEventSubscriptionEntity) eventSubscriptionEntity); } return messageEventSubscriptionEntities; } public Event...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\persistence\entity\EventSubscriptionEntityManagerImpl.java
1
请完成以下Java代码
public CardSequenceNumberRange1 getSeqNbRg() { return seqNbRg; } /** * Sets the value of the seqNbRg property. * * @param value * allowed object is * {@link CardSequenceNumberRange1 } * */ public void setSeqNbRg(CardSequenceNumberRange1 value) { ...
* */ public DateOrDateTimePeriodChoice getTxDtRg() { return txDtRg; } /** * Sets the value of the txDtRg property. * * @param value * allowed object is * {@link DateOrDateTimePeriodChoice } * */ public void setTxDtRg(DateOrDateTimePerio...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.camt53\src\main\java-xjc\de\metas\banking\camt53\jaxb\camt053_001_04\CardAggregated1.java
1
请完成以下Java代码
public void parseUserTask(Element userTaskElement, ScopeImpl scope, ActivityImpl activity) { addListeners(activity); } public void parseEndEvent(Element endEventElement, ScopeImpl scope, ActivityImpl activity) { addListeners(activity); } public void parseSubProcess(Element subProcessElement, ScopeImpl...
addListeners(activity); } public void parseTransaction(Element transactionElement, ScopeImpl scope, ActivityImpl activity) { addListeners(activity); } public void parseIntermediateThrowEvent(Element intermediateEventElement, ScopeImpl scope, ActivityImpl activity) { addListeners(activity); } publ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\metrics\parser\MetricsBpmnParseListener.java
1
请在Spring Boot框架中完成以下Java代码
public Payer ikNumber(String ikNumber) { this.ikNumber = ikNumber; return this; } /** * Get ikNumber * @return ikNumber **/ @Schema(example = "108534160", description = "") public String getIkNumber() { return ikNumber; } public void setIkNumber(String ikNumber) { this.ikNumber = ...
@Override public int hashCode() { return Objects.hash(_id, name, type, ikNumber, timestamp); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Payer {\n"); sb.append(" _id: ").append(toIndentedString(_id)).append("\n"); sb.append(" n...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\alberta\alberta-patient-api\src\main\java\io\swagger\client\model\Payer.java
2
请完成以下Java代码
public void setC_UOM_ID (final int C_UOM_ID) { if (C_UOM_ID < 1) set_Value (COLUMNNAME_C_UOM_ID, null); else set_Value (COLUMNNAME_C_UOM_ID, C_UOM_ID); } @Override public int getC_UOM_ID() { return get_ValueAsInt(COLUMNNAME_C_UOM_ID); } @Override public org.compiere.model.I_M_AttributeSetInstan...
@Override public int getM_AttributeSetInstance_ID() { return get_ValueAsInt(COLUMNNAME_M_AttributeSetInstance_ID); } @Override public void setQty_Reported (final @Nullable BigDecimal Qty_Reported) { set_Value (COLUMNNAME_Qty_Reported, Qty_Reported); } @Override public BigDecimal getQty_Reported() { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java-gen\de\metas\contracts\model\X_C_Flatrate_DataEntry_Detail.java
1
请在Spring Boot框架中完成以下Java代码
ManagementErrorPageCustomizer managementErrorPageCustomizer(WebProperties webProperties) { return new ManagementErrorPageCustomizer(webProperties); } @Bean(name = DispatcherServletAutoConfiguration.DEFAULT_DISPATCHER_SERVLET_BEAN_NAME) DispatcherServlet dispatcherServlet() { DispatcherServlet dispatcherServlet ...
@Bean @ConditionalOnMissingBean({ RequestContextListener.class, RequestContextFilter.class }) RequestContextFilter requestContextFilter() { return new OrderedRequestContextFilter(); } /** * {@link WebServerFactoryCustomizer} to add an {@link ErrorPage} so that the * {@link ManagementErrorEndpoint} can be use...
repos\spring-boot-4.0.1\module\spring-boot-webmvc\src\main\java\org\springframework\boot\webmvc\autoconfigure\actuate\web\WebMvcEndpointChildContextConfiguration.java
2
请在Spring Boot框架中完成以下Java代码
public class TaskVariableUtils { public static boolean isCaseRelated(ValueFields valueField) { return isCaseRelated(valueField.getScopeId(), valueField.getScopeType()); } public static boolean isCaseRelated(TaskInfo task) { return isCaseRelated(task.getScopeId(), task.getScopeType()); ...
public static boolean doesVariableBelongToTask(ValueFields valueFields, TaskInfo taskInfo) { if (taskInfo.getProcessInstanceId() != null) { return taskInfo.getProcessInstanceId() .equals(valueFields.getProcessInstanceId()); } if (taskInfo.getScopeType() != null &...
repos\flowable-engine-main\modules\flowable-task-service\src\main\java\org\flowable\task\service\impl\util\TaskVariableUtils.java
2
请完成以下Java代码
public class ReadOnePage { public static void main(String[] args) { // Create a new document object Document document = new Document(); // Load document content from the specified file document.loadFromFile("/Users/liuhaihua/tmp/WordDocument.docx"); // Create a fixed layout...
endIndex = section.getBody().getChildObjects().indexOf(paragraphEnd); } // Create a new document object Document newdoc = new Document(); // Add a new section Section newSection = newdoc.addSection(); // Clone the properties of the original section to the new section ...
repos\springboot-demo-master\spire-doc\src\main\java\com\et\spire\doc\ReadOnePage.java
1
请完成以下Java代码
public void addAttribute(ExtensionAttribute attribute) { if (attribute != null && isNotEmpty(attribute.getName())) { attributes.computeIfAbsent(attribute.getName(), key -> new ArrayList<>()); attributes.get(attribute.getName()).add(attribute); } } @Override public vo...
if (otherElement.getAttributes() != null && !otherElement.getAttributes().isEmpty()) { Map<String, List<ExtensionAttribute>> validAttributes = otherElement .getAttributes() .entrySet() .stream() .filter(e -> hasElements(e.getValue())) ...
repos\Activiti-develop\activiti-core\activiti-bpmn-model\src\main\java\org\activiti\bpmn\model\BaseElement.java
1
请完成以下Java代码
public String toGlobalQRCodeString() { return HUQRCodeJsonConverter.toGlobalQRCodeJsonString(this); } public ScannedCode toScannedCode() {return ScannedCode.ofString(toGlobalQRCodeString());} public String toDisplayableQRCode() { return id.getDisplayableSuffix(); } public PrintableQRCode toPrintableQRCode...
.map(HUQRCodeAttribute::getValueAsBigDecimal) .filter(weight -> weight.signum() > 0); } @Override public Optional<LocalDate> getBestBeforeDate() { return getAttribute(AttributeConstants.ATTR_BestBeforeDate).map(HUQRCodeAttribute::getValueAsLocalDate); } @Override public Optional<LocalDate> getProductionD...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\qrcodes\model\HUQRCode.java
1
请在Spring Boot框架中完成以下Java代码
public static class CalculateSOCreditStatusRequest { BPartnerStats stat; BigDecimal additionalAmt; Timestamp date; boolean forceCheckCreditStatus; @Builder private CalculateSOCreditStatusRequest( @NonNull BPartnerStats stat, @NonNull Timestamp date, BigDecimal additionalAmt, Boolean forceC...
* @param date * @return */ String calculateProjectedSOCreditStatus(CalculateSOCreditStatusRequest request); /** * Logic to tell whether or not the given grandTotal makes the credit stop for the given BPartner stats. * To be used in document preparing: invoices, payments, etc * * @param stat * @param gr...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\bpartner\service\IBPartnerStatsBL.java
2
请在Spring Boot框架中完成以下Java代码
public void setCallbackId(String callbackId) { this.callbackId = callbackId; } @ApiModelProperty(example = "cmmn-1.1-to-cmmn-1.1-child-case") public String getCallbackType() { return callbackType; } public void setCallbackType(String callbackType) { this.callbackType = call...
return referenceId; } public void setReferenceId(String referenceId) { this.referenceId = referenceId; } @ApiModelProperty(example = "event-to-cmmn-1.1-case") public String getReferenceType() { return referenceType; } public void setReferenceType(String referenceType) { ...
repos\flowable-engine-main\modules\flowable-cmmn-rest\src\main\java\org\flowable\cmmn\rest\service\api\history\caze\HistoricCaseInstanceResponse.java
2
请完成以下Java代码
public InputStream getInputStream() throws IOException { return new FilterInputStream(super.getInputStream()) { @Override public void close() throws IOException { closeThenDeleteFile(this.in); } }; } private void closeThenDeleteFile(Closeable closeable) throws IOException { try { cl...
catch (IOException ex) { TemporaryFileSystemResource.this.logger .warn("Failed to delete temporary heap dump file '" + getFile() + "'", ex); } } @Override public boolean isFile() { // Prevent zero-copy so we can delete the file on close return false; } } }
repos\spring-boot-4.0.1\module\spring-boot-actuator\src\main\java\org\springframework\boot\actuate\management\HeapDumpWebEndpoint.java
1
请完成以下Java代码
protected JsScriptExecutionTask doInvokeFunction(UUID scriptId, Object[] args) { return new JsScriptExecutionTask(doInvokeFunction(scriptId, scriptInfoMap.get(scriptId), args)); } @Override protected ListenableFuture<UUID> doEvalScript(TenantId tenantId, ScriptType scriptType, String scriptBody, UU...
throw new RuntimeException("No script factory implemented for scriptType: " + scriptType); } protected String constructFunctionName(UUID scriptId, String scriptHash) { return "invokeInternal_" + scriptId.toString().replace('-', '_'); } protected String hash(TenantId tenantId, String scriptBody...
repos\thingsboard-master\common\script\script-api\src\main\java\org\thingsboard\script\api\js\AbstractJsInvokeService.java
1
请完成以下Java代码
public void setPA_ReportLine_ID (int PA_ReportLine_ID) { if (PA_ReportLine_ID < 1) set_ValueNoCheck (COLUMNNAME_PA_ReportLine_ID, null); else set_ValueNoCheck (COLUMNNAME_PA_ReportLine_ID, Integer.valueOf(PA_ReportLine_ID)); } /** Get Report Line. @return Report Line */ public int getPA_ReportLine_...
public int getUserElement1_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_UserElement1_ID); if (ii == null) return 0; return ii.intValue(); } /** Set User Element 2. @param UserElement2_ID User defined accounting Element */ public void setUserElement2_ID (int UserElement2_ID) { if (UserEl...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_PA_ReportSource.java
1
请完成以下Java代码
public @NonNull Iterator<Packageable> iterator() {return list.iterator();} public ImmutableSet<ShipmentScheduleId> getShipmentScheduleIds() { return list.stream().map(Packageable::getShipmentScheduleId).sorted().collect(ImmutableSet.toImmutableSet()); } public Optional<BPartnerId> getSingleCustomerId() {return ...
} else if (values.size() == 1) { return Optional.of(values.get(0)); } else { //throw new AdempiereException("More than one value were extracted (" + values + ") from " + list); return Optional.empty(); } } public Stream<PackageableList> groupBy(Function<Packageable, ?> classifier) { return li...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\picking\api\PackageableList.java
1
请完成以下Java代码
public static HuPackingInstructionsItemId ofRepoIdOrNull(final int repoId) { return repoId > 0 ? ofRepoId(repoId) : null; } public static int toRepoId(final HuPackingInstructionsItemId id) { return id != null ? id.getRepoId() : -1; } public static final HuPackingInstructionsItemId TEMPLATE_MATERIAL_ITEM = n...
public static boolean isTemplateRepoId(final int repoId) { return repoId == TEMPLATE_MATERIAL_ITEM.repoId || repoId == TEMPLATE_PACKING_ITEM.repoId; } public boolean isVirtual() { return isVirtualRepoId(repoId); } public static boolean isVirtualRepoId(final int repoId) { return repoId == VIRTUAL.rep...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\HuPackingInstructionsItemId.java
1
请完成以下Java代码
public long getCreatedTime() { return super.getCreatedTime(); } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ComponentDescriptor that = (ComponentDescriptor) o; if (type != that.t...
return Objects.equals(clazz, that.clazz); } @Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (type != null ? type.hashCode() : 0); result = 31 * result + (scope != null ? scope.hashCode() : 0); result = 31 * result + (name != null ? nam...
repos\thingsboard-master\common\data\src\main\java\org\thingsboard\server\common\data\plugin\ComponentDescriptor.java
1
请完成以下Java代码
protected org.compiere.model.POInfo initPO (Properties ctx) { org.compiere.model.POInfo poi = org.compiere.model.POInfo.getPOInfo (ctx, Table_Name, get_TrxName()); return poi; } /** Set Beschreibung. @param Description Beschreibung */ @Override public void setDescription (java.lang.String De...
Integer ii = (Integer)get_Value(COLUMNNAME_M_Indication_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Name. @param Name Alphanumeric identifier of the entity */ @Override public void setName (java.lang.String Name) { set_Value (COLUMNNAME_Name, Name); } /** Get Name. @retur...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma\src\main\java-gen\de\metas\vertical\pharma\model\X_M_Indication.java
1
请完成以下Java代码
public boolean isProcessed () { Object oo = get_Value(COLUMNNAME_Processed); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Role name. @param RoleName Role name */ @Override public void setRoleName (j...
{ return (java.lang.String)get_Value(COLUMNNAME_RoleName); } /** Set UserValue. @param UserValue UserValue */ @Override public void setUserValue (java.lang.String UserValue) { set_Value (COLUMNNAME_UserValue, UserValue); } /** Get UserValue. @return UserValue */ @Override public java.lang.String ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_I_User.java
1
请完成以下Java代码
public class PermissionCheck { /** the permission to check for */ protected Permission permission; protected int perms; /** the type of the resource to check permissions for */ protected Resource resource; protected int resourceType; /** the id of the resource to check permission for */ protected Str...
} } public int getResourceType() { return resourceType; } public String getResourceId() { return resourceId; } public void setResourceId(String resourceId) { this.resourceId = resourceId; } public String getResourceIdQueryParam() { return resourceIdQueryParam; } public void setR...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\db\PermissionCheck.java
1
请完成以下Java代码
public boolean hasMultiplyRate( @NonNull final CurrencyId fromCurrencyId, @NonNull final CurrencyId toCurrencyId) { return getMultiplyRateOrNull(fromCurrencyId, toCurrencyId) != null; } @Nullable private BigDecimal getMultiplyRateOrNull( @NonNull final CurrencyId fromCurrencyId, @NonNull final Curren...
return rate != null ? rate.getMultiplyRate() : null; } @Value @Builder private static class FixedConversionRateKey { @NonNull CurrencyId fromCurrencyId; @NonNull CurrencyId toCurrencyId; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\currency\FixedConversionRateMap.java
1
请完成以下Java代码
public BPartnerContact newContact(@NonNull final IdentifierString contactIdentifier) { final BPartnerContact contact; final BPartnerContactBuilder contactBuilder = BPartnerContact.builder(); switch (contactIdentifier.getType()) { case METASFRESH_ID: if (bpartnerId != null) { final BPartnerCont...
} public void resetDefaultContactFlags() { for (final BPartnerContact bpartnerContact : getUnusedContacts()) { bpartnerContact.getContactType().setDefaultContact(false); } } public void resetShipToDefaultFlags() { for (final BPartnerContact bpartnerContact : getUnusedContacts()) { bpartnerContact...
repos\metasfresh-new_dawn_uat\backend\de.metas.business.rest-api-impl\src\main\java\de\metas\rest_api\v1\bpartner\bpartnercomposite\jsonpersister\ShortTermContactIndex.java
1
请完成以下Java代码
public void setCRM_Occupation_Parent_ID (final int CRM_Occupation_Parent_ID) { if (CRM_Occupation_Parent_ID < 1) set_Value (COLUMNNAME_CRM_Occupation_Parent_ID, null); else set_Value (COLUMNNAME_CRM_Occupation_Parent_ID, CRM_Occupation_Parent_ID); } @Override public int getCRM_Occupation_Parent_ID() ...
@Override public java.lang.String getName() { return get_ValueAsString(COLUMNNAME_Name); } @Override public void setValue (final java.lang.String Value) { set_Value (COLUMNNAME_Value, Value); } @Override public java.lang.String getValue() { return get_ValueAsString(COLUMNNAME_Value); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_CRM_Occupation.java
1
请完成以下Java代码
public void destroy() {} @Override public void deleteTopic(String topic) {} }); templateBuilder.requestTemplate(producerTemplate); templateBuilder.responseTemplate(consumerTemplate); templateBuilder.maxPendingRequests(transportApiSettings.getMaxPendingRequests()...
@Override public TbQueueProducer<TbProtoQueueMsg<ToCoreNotificationMsg>> createTbCoreNotificationsMsgProducer() { return new InMemoryTbQueueProducer<>(storage, topicService.buildTopicName(coreSettings.getTopic())); } @Override public TbQueueConsumer<TbProtoQueueMsg<ToTransportMsg>> createTransp...
repos\thingsboard-master\common\queue\src\main\java\org\thingsboard\server\queue\provider\InMemoryTbTransportQueueFactory.java
1
请在Spring Boot框架中完成以下Java代码
public class PPOrderCandidateDeletedEventHandler extends PPOrderCandidateEventHandler implements MaterialEventHandler<PPOrderCandidateDeletedEvent> { public PPOrderCandidateDeletedEventHandler( @NonNull final CandidateChangeService candidateChangeService, @NonNull final CandidateRepositoryRetrieval candidateRepo...
{ deleteLineCandidates(event, existingCandidateOrNull); candidateChangeService.onCandidateDelete(existingCandidateOrNull); } } @NonNull private CandidatesQuery createPreExistingHeaderCandidateQuery(@NonNull final PPOrderCandidateDeletedEvent ppOrderCandidateDeletedEvent) { final PPOrderCandidate ppOrderC...
repos\metasfresh-new_dawn_uat\backend\de.metas.material\dispo-service\src\main\java\de\metas\material\dispo\service\event\handler\ppordercandidate\PPOrderCandidateDeletedEventHandler.java
2
请完成以下Java代码
public static TbMathArgumentValue constant(TbMathArgument arg) { return fromString(arg.getKey()); } private static TbMathArgumentValue defaultOrThrow(Double defaultValue, String error) { if (defaultValue != null) { return new TbMathArgumentValue(defaultValue); } thro...
return defaultOrThrow(defaultValue, "Message value is empty for '" + argKey + "'!"); } } else { throw new RuntimeException("Can't convert value '" + valueNode.toString() + "' to double!"); } return new TbMathArgumentValue(value); } public static TbMathArgumentVal...
repos\thingsboard-master\rule-engine\rule-engine-components\src\main\java\org\thingsboard\rule\engine\math\TbMathArgumentValue.java
1
请完成以下Java代码
public class Customer extends Person { private final String loyaltyCardId; public Customer(String firstName, String lastName, int age, String loyaltyCardId) { this(firstName, null, lastName, age, loyaltyCardId); } public Customer(String firstName, String middleName, String lastName, int age, S...
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; Customer customer = (Customer) o; return Objects.equals(loyaltyCardId, customer.loyaltyCardId); } @O...
repos\tutorials-master\core-java-modules\core-java-lang-4\src\main\java\com\baeldung\constructorchaining\Customer.java
1
请在Spring Boot框架中完成以下Java代码
private void changeProjectLine(final ChangeProjectLineRequest request, final ProjectLine projectLine) { if (request.getCommittedQtyToAdd() != null) { projectLine.addCommittedQty(request.getCommittedQtyToAdd()); } } public void linkToOrderLine( @NonNull final ProjectAndLineId projectLineId, @NonNull f...
projectLineRepository.markLinesAsProcessed(projectId); projectRecord.setProcessed(true); InterfaceWrapperHelper.saveRecord(projectRecord); projectStatusListeners.onAfterClose(projectRecord); } public void uncloseProject(@NonNull final ProjectId projectId) { final I_C_Project projectRecord = getById(projec...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\project\service\ProjectService.java
2
请完成以下Java代码
private OrderResponsePackage createOrderResponsePackage(final JpaOrderPackage jpaOrderPackage) { return OrderResponsePackage.builder() .id(Id.of(jpaOrderPackage.getDocumentNo())) .orderType(jpaOrderPackage.getOrderType()) .orderIdentification(jpaOrderPackage.getOrderIdentification()) .supportId(Suppo...
{ final JpaOrder jpaOrder = jpaOrdersRepo.findByDocumentNoAndMfBpartnerId(orderId.getValueAsString(), bpartnerId.getBpartnerId()); if (jpaOrder == null) { throw new RuntimeException("No order found for id='" + orderId + "' and bpartnerId='" + bpartnerId + "'"); } return jpaOrder; } private OrderStatusRe...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma.msv3.server\src\main\java\de\metas\vertical\pharma\msv3\server\order\OrderService.java
1
请完成以下Java代码
private boolean openSOWindow(final int bPartnerId, final int locationShipId, final int locationBillId, final int contactId, final int billContactId) { final AdWindowId SALES_ORDER_WINDOW_ID = AdWindowId.ofRepoId(143); final AWindow soFrame = new AWindow(); final MQuery query = new MQuery(Table_Name); ...
tab.setValue(I_C_Order.COLUMNNAME_C_BPartner_Location_ID, locationShipId); tab.setValue(I_C_Order.COLUMNNAME_Bill_Location_ID, locationBillId); if (contactId > 0) { tab.setValue(I_C_Order.COLUMNNAME_AD_User_ID, contactId); } if (billContactId > 0) { tab.setValue(I_C_Order.COLUMNNAME_Bill_User_ID,...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\adempiere\callout\BPartnerCockpit.java
1
请在Spring Boot框架中完成以下Java代码
public class UsersService { @Autowired private UsersRepository usersRepository; @Autowired private JmsSender jmsSender; public UserRecord getUserById(String id) { return usersRepository.findById(id) .orElseThrow(() -> new UnknownUserException(id)); } @Transactional ...
@Transactional public UserRecord updateUser(String id, Optional<String> newName) { var user = usersRepository.findById(id) .orElseThrow(() -> new UnknownUserException(id)); newName.ifPresent(user::setName); return user; } public UserRecord createUser(String name) { ...
repos\tutorials-master\lightrun\lightrun-users-service\src\main\java\com\baeldung\usersservice\service\UsersService.java
2
请完成以下Java代码
public static Book unmarshalDates(InputStream inputFile) throws JAXBException { JAXBContext jaxbContext = JAXBContext.newInstance(Book.class); Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller(); return (Book) jaxbUnmarshaller.unmarshal(inputFile); } public static BookDateA...
} public static InputStream getInputStream(String file) { ClassLoader classLoader = JaxbDateUnmarshalling.class.getClassLoader(); return classLoader.getResourceAsStream(file); } public static void main(String[] args) throws JAXBException { Book book = unmarshalDates(getInputStream(...
repos\tutorials-master\xml-modules\jaxb\src\main\java\com\baeldung\jaxb\dateunmarshalling\JaxbDateUnmarshalling.java
1
请在Spring Boot框架中完成以下Java代码
public void configure() throws Exception { errorHandler(defaultErrorHandler()); onException(Exception.class) .to(direct(MF_ERROR_ROUTE_ID)); from(direct(PRINTING_CLIENT_ROUTE_ID)) .routeId(PRINTING_CLIENT_ROUTE_ID) .streamCache("true") .process(this::prepareContext) .process(this::getPrintin...
private void setPrintingResult(@NonNull final Exchange exchange) { final Object printingDataCandidate = exchange.getIn().getBody(); if (!(printingDataCandidate instanceof JsonPrintingDataResponse)) { throw new RuntimeCamelException("API Request " + MF_PRINT_V2_BASE + "getPrintingData/" + "{" + HEADER_PRINTING...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\de-metas-camel-printingclient\src\main\java\de\metas\camel\externalsystems\PrintingClientCamelRoute.java
2
请在Spring Boot框架中完成以下Java代码
public class CommissionFact { /** This fact's timestamp; note that we need chronology, but don't care for a particular timezone. */ Instant timestamp; CommissionState state; CommissionPoints points; @JsonCreator @Builder private CommissionFact( @JsonProperty("timestamp") @NonNull final Instant timestamp, ...
@NonNull public static Optional<CommissionFact> createFact( @NonNull final Instant timestamp, @NonNull final CommissionState state, @NonNull final CommissionPoints currentCommissionPoints, @NonNull final CommissionPoints previousCommissionPoints) { final CommissionPoints points = currentCommissionPoints...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\commission\commissioninstance\businesslogic\sales\CommissionFact.java
2
请完成以下Java代码
public class ProcessCreatedListenerDelegate implements ActivitiEventListener { private List<ProcessRuntimeEventListener<ProcessCreatedEvent>> listeners; private ToAPIProcessCreatedEventConverter entityCreatedEventConverter; public ProcessCreatedListenerDelegate( List<ProcessRuntimeEventListener<P...
if (event instanceof ActivitiEntityEvent) { entityCreatedEventConverter .from((ActivitiEntityEvent) event) .ifPresent(convertedEvent -> { for (ProcessRuntimeEventListener<ProcessCreatedEvent> listener : listeners) { listener.onEvent...
repos\Activiti-develop\activiti-core\activiti-api-impl\activiti-api-process-runtime-impl\src\main\java\org\activiti\runtime\api\event\internal\ProcessCreatedListenerDelegate.java
1
请完成以下Java代码
private final void fireDocValidate(final Object document, final int timing) { final Object model; if (document instanceof IDocument) { model = ((IDocument)document).getDocumentModel(); } else { model = document; } ModelValidationEngine.get().fireDocValidate(model, timing); } @Ove...
fireDocValidate(document, ModelValidator.TIMING_BEFORE_POST); } @Override public void onAfterPost(final Object document) { fireDocValidate(document, ModelValidator.TIMING_AFTER_POST); } // @Override // public void onAfterUnpost(final Object document) // { // fireDocValidate(document, ModelValida...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\acct\api\impl\FactAcctListenersService.java
1
请完成以下Java代码
public void setDescription (java.lang.String Description) { set_Value (COLUMNNAME_Description, Description); } /** Get Beschreibung. @return Beschreibung */ @Override public java.lang.String getDescription () { return (java.lang.String)get_Value(COLUMNNAME_Description); } /** Set Rabatt %. @param D...
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Discount); if (bd == null) return BigDecimal.ZERO; return bd; } /** Set Aufschlag auf Standardpreis. @param Std_AddAmt Amount added to a price as a surcharge */ @Override public void setStd_AddAmt (java.math.BigDecimal Std_AddAmt) { set_Value (COL...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_PriceLimit_Restriction.java
1
请完成以下Java代码
public class TransactionDeletedEvent extends AbstractTransactionEvent { public static final String TYPE = "TransactionDeletedEvent"; @JsonCreator @Builder public TransactionDeletedEvent( @JsonProperty("eventDescriptor") final EventDescriptor eventDescriptor, @JsonProperty("materialDescriptor") final Material...
inventoryLineId, transactionId, directMovementWarehouse, huOnHandQtyChangeDescriptors); } /** * @return zero. */ @Override public BigDecimal getQuantity() { return BigDecimal.ZERO; } /** * @return our material descriptor's <b>negated</b> quantity, i.e. the negated {@code MovementQty} of the...
repos\metasfresh-new_dawn_uat\backend\de.metas.material\event\src\main\java\de\metas\material\event\transactions\TransactionDeletedEvent.java
1
请完成以下Java代码
public ProcessPreconditionsResolution checkPreconditionsApplicable(@NonNull final IProcessPreconditionsContext context) { final SelectionSize selectionSize = context.getSelectionSize(); if (selectionSize.isNoSelection()) { return ProcessPreconditionsResolution.rejectBecauseNoSelection(); } if (selectionS...
protected IQueryFilter<I_C_Doc_Outbound_Log> getFilter() { final ProcessInfo pi = getProcessInfo(); return pi.getQueryFilterOrElse(ConstantQueryFilter.of(false)); } @Override @RunOutOfTrx protected final String doIt() throws Exception { final PInstanceId pinstanceId = getPinstanceId(); final int counter ...
repos\metasfresh-new_dawn_uat\backend\de.metas.document.archive\de.metas.document.archive.base\src\main\java\de\metas\document\archive\mailrecipient\process\C_Doc_Outbound_Log_SendPDFMails.java
1
请完成以下Java代码
public class MybatisDeadLetterJobDataManager extends AbstractDataManager<DeadLetterJobEntity> implements DeadLetterJobDataManager { protected CachedEntityMatcher<DeadLetterJobEntity> deadLetterByExecutionIdMatcher = new DeadLetterJobsByExecutionIdMatcher(); public MybatisDeadLetterJobDataManag...
public List<Job> findJobsByQueryCriteria(DeadLetterJobQueryImpl jobQuery, Page page) { String query = "selectDeadLetterJobByQueryCriteria"; return getDbSqlSession().selectList(query, jobQuery, page); } @Override public long findJobCountByQueryCriteria(DeadLetterJobQueryImpl jobQuery) { ...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\persistence\entity\data\impl\MybatisDeadLetterJobDataManager.java
1
请在Spring Boot框架中完成以下Java代码
private IPricingResult calculateCommissionPointPriceFor( @NonNull final FlatrateTermId flatrateTermId, @NonNull final LocalDate requestedDate) { final IFlatrateDAO flatrateDAO = Services.get(IFlatrateDAO.class); final IBPartnerDAO bPartnerDAO = Services.get(IBPartnerDAO.class); final IPricingBL pricingBL =...
final ProductId commissionProductId = ProductId.ofRepoId(flatrateTerm.getM_Product_ID()); final IEditablePricingContext pricingContext = pricingBL .createInitialContext( OrgId.ofRepoId(flatrateTerm.getAD_Org_ID()), commissionProductId, bPartnerId, Quantitys.of(ONE, commissionProductId), ...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\commission\commissioninstance\services\CommissionPointsService.java
2
请完成以下Java代码
public ActiveOrHistoricCurrencyAndAmount getRmtdAmt() { return rmtdAmt; } /** * Sets the value of the rmtdAmt property. * * @param value * allowed object is * {@link ActiveOrHistoricCurrencyAndAmount } * */ public void setRmtdAmt(ActiveOrHistoricCurr...
* {@link Boolean } * */ public Boolean isMplyeeTermntnInd() { return mplyeeTermntnInd; } /** * Sets the value of the mplyeeTermntnInd property. * * @param value * allowed object is * {@link Boolean } * */ public void setMplyeeT...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.esr\src\main\java-xjc_camt054_001_06\de\metas\payment\camt054_001_06\Garnishment1.java
1
请完成以下Java代码
public void train(String corpus) throws IOException { final List<List<String[]>> sequenceList = new LinkedList<List<String[]>>(); IOUtility.loadInstance(corpus, new InstanceHandler() { @Override public boolean process(Sentence sentence) { s...
{ sample[0][i] = vocabulary.idOf(os[0]); assert sample[0][i] != -1; sample[1][i] = tagSet.add(os[1]); assert sample[1][i] != -1; ++i; } sampleList.add(sample); } model.train(sampleList); voca...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\model\hmm\HMMTrainer.java
1
请完成以下Java代码
public void setOutboundHttpMethod (final String OutboundHttpMethod) { set_Value (COLUMNNAME_OutboundHttpMethod, OutboundHttpMethod); } @Override public String getOutboundHttpMethod() { return get_ValueAsString(COLUMNNAME_OutboundHttpMethod); } @Override public void setPassword (final @Nullable String Pas...
public void setType (final String Type) { set_Value (COLUMNNAME_Type, Type); } @Override public String getType() { return get_ValueAsString(COLUMNNAME_Type); } @Override public void setValue (final String Value) { set_Value (COLUMNNAME_Value, Value); } @Override public String getValue() { retu...
repos\metasfresh-new_dawn_uat\backend\de.metas.externalsystem\src\main\java-gen\de\metas\externalsystem\model\X_ExternalSystem_Outbound_Endpoint.java
1
请完成以下Java代码
public class DataFetchingEnvironmentMethodArgumentResolver implements HandlerMethodArgumentResolver { @Override public boolean supportsParameter(MethodParameter parameter) { Class<?> type = parameter.getParameterType(); return (type.equals(DataFetchingEnvironment.class) || type.equals(GraphQLContext.class) || ...
else if (type.equals(Locale.class)) { return environment.getLocale(); } else if (isOptionalLocale(parameter)) { return Optional.ofNullable(environment.getLocale()); } else if (type.equals(DataFetchingEnvironment.class)) { return environment; } else if (type.equals(GraphqlErrorBuilder.class)) { r...
repos\spring-graphql-main\spring-graphql\src\main\java\org\springframework\graphql\data\method\annotation\support\DataFetchingEnvironmentMethodArgumentResolver.java
1
请完成以下Java代码
public ITrxListenerManager getTrxListenerManager() { return getTrxListenerManager(true); // create=true } @Override public final ITrxManager getTrxManager() { return trxManager; } private Map<String, Object> getPropertiesMap() { if (_properties == null) { synchronized (this) { if (_propertie...
@Override public <T> T getProperty(final String name, final Supplier<T> valueInitializer) { @SuppressWarnings("unchecked") final T value = (T)getPropertiesMap().computeIfAbsent(name, key -> valueInitializer.get()); return value; } @Override public <T> T getProperty(final String name, final Function<ITrx, T> v...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\trx\api\impl\AbstractTrx.java
1
请完成以下Java代码
int size() { return _size; } /** * 清空缓存 */ void clear() { resize(0); _buf = null; _size = 0; _capacity = 0; } /** * 在末尾加一个值 * @param value 值 */ void add(byte value) { if (_size == _capacity) { ...
/** * 设置缓冲区大小 * @param size 大小 */ private void resizeBuf(int size) { int capacity; if (size >= _capacity * 2) { capacity = size; } else { capacity = 1; while (capacity < size) { capacit...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\collection\dartsclone\details\AutoBytePool.java
1
请在Spring Boot框架中完成以下Java代码
public class DeleteTimerJobCmd implements Command<Object>, Serializable { private static final Logger LOGGER = LoggerFactory.getLogger(DeleteTimerJobCmd.class); private static final long serialVersionUID = 1L; protected String timerJobId; protected JobServiceConfiguration jobServiceConfiguration; ...
} if (LOGGER.isDebugEnabled()) { LOGGER.debug("Deleting job {}", timerJobId); } TimerJobEntity job = jobServiceConfiguration.getTimerJobEntityManager().findById(timerJobId); if (job == null) { throw new FlowableObjectNotFoundException("No timer job found with id ...
repos\flowable-engine-main\modules\flowable-job-service\src\main\java\org\flowable\job\service\impl\cmd\DeleteTimerJobCmd.java
2
请在Spring Boot框架中完成以下Java代码
public OAuth2AccessTokenResponseClient<OAuth2AuthorizationCodeGrantRequest> accessTokenResponseClient() { DefaultAuthorizationCodeTokenResponseClient accessTokenResponseClient = new DefaultAuthorizationCodeTokenResponseClient(); accessTokenResponseClient.setRequestEntityConverter(new CustomRequestEntity...
if (clientId == null) { return null; } String clientSecret = env.getProperty(CLIENT_PROPERTY_KEY + client + ".client-secret"); if (client.equals("google")) { return CommonOAuth2Provider.GOOGLE.getBuilder(client) .clientId(clientId) .client...
repos\tutorials-master\spring-security-modules\spring-security-oauth2\src\main\java\com\baeldung\oauth2\CustomRequestSecurityConfig.java
2
请完成以下Java代码
public void recreateGroup(@NonNull final Group group) {build().recreateGroup(group);} } public Group createGroup( @Nullable final Collection<OrderLineId> lineIdsToGroup, @Nullable final OrderId orderId, @Nullable final ConditionsId contractConditionsId) { final Group group = groupsRepo.retrieveOrCreateGr...
return group; } public void recreateGroup(@NonNull final Group group) { group.removeAllGeneratedLines(); groupTemplate.getCompensationLines() .stream() .filter(compensationLineTemplate -> compensationLineTemplate.isMatching(group)) .map(templateLine -> compensationLineCreateRequestFactory.createGro...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\order\compensationGroup\GroupCreator.java
1
请完成以下Java代码
public Incoterms getByValue(@NotNull final String value, @NotNull final OrgId orgId) { return getIncotermsMap().getByValue(value, orgId); } @NonNull private IncotermsMap getIncotermsMap() { return cache.getOrLoadNonNull(0, this::retrieveIncotermsMap); } @NotNull private IncotermsMap retrieveIncotermsMap()...
throw new AdempiereException("Incoterms not found by ID: " + id); } return incoterms; } @Nullable public Incoterms getDefaultByOrgId(@NonNull final OrgId orgId) { return CoalesceUtil.coalesce(defaultByOrgId.get(orgId), defaultByOrgId.get(OrgId.ANY)); } @NonNull Incoterms getByValue(@NonNull final...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\incoterms\IncotermsRepository.java
1
请在Spring Boot框架中完成以下Java代码
public List<String> getResourceSuffixes() { return resourceSuffixes; } public void setResourceSuffixes(List<String> resourceSuffixes) { this.resourceSuffixes = resourceSuffixes; } public boolean isDeployResources() { return deployResources; } public void setDeployResou...
} public void setChangeDetectionDelay(Duration changeDetectionDelay) { this.changeDetectionDelay = changeDetectionDelay; } public boolean isEnabled() { return enabled; } public void setEnabled(boolean enabled) { this.enabled = enabled; } public FlowableServlet get...
repos\flowable-engine-main\modules\flowable-spring-boot\flowable-spring-boot-starters\flowable-spring-boot-autoconfigure\src\main\java\org\flowable\spring\boot\eventregistry\FlowableEventRegistryProperties.java
2
请完成以下Java代码
public class ClusterListener extends AbstractBehavior<ClusterEvent.ClusterDomainEvent> { public ClusterListener(ActorContext<ClusterEvent.ClusterDomainEvent> context) { super(context); Cluster cluster = Cluster.get(context.getSystem()); cluster.subscriptions().tell(Subscribe.create(getCont...
}) .build(); } private Behavior<ClusterEvent.ClusterDomainEvent> onMemberUp(ClusterEvent.MemberUp memberUp) { System.out.println("Member is Up: " + memberUp.member()); return this; } private Behavior<ClusterEvent.ClusterDomainEvent> onMemberRemoved(ClusterEvent.MemberRe...
repos\springboot-demo-master\akka\src\main\java\com\et\akka\cluster\ClusterListener.java
1
请完成以下Java代码
public static ImmutableTranslatableString ofMap( @Nullable final Map<String, String> trls, @Nullable final String defaultValue) { return new ImmutableTranslatableString(trls, defaultValue); } public static ImmutableTranslatableString ofDefaultValue(@Nullable final String defaultValue) { return ofMap(null...
return defaultValue; } @Override public String translate(final String adLanguage) { return trlMap.getOrDefault(adLanguage, defaultValue); } @Override public String getDefaultValue() { return defaultValue; } @Override public Set<String> getAD_Languages() { return trlMap.keySet(); } @JsonIgnore //...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\i18n\ImmutableTranslatableString.java
1
请完成以下Java代码
public String getOneResult(String methodName) { return String.format("%s invoker success", methodName); } @Override public List<String> getMultiResult(String methodName) { List<String> list = new ArrayList<>(3); for (int i = 0; i < 3; i++) { list.add(String.format("%s i...
public List<User> findAllUser() { List<User> list = new ArrayList<>(); for (int i = 0; i < 3; i++) { int no = i + 1; list.add(new User((long) no, "USER_" + no, "PWD_" + no, 18 + no)); } return list; } @Override public User findUserById(Long id) { ...
repos\springboot-demo-master\webflux\src\main\java\com\et\webflux\DemoServiceImpl.java
1
请完成以下Java代码
public class CaseExecutionVariablesResource extends AbstractVariablesResource { public CaseExecutionVariablesResource(ProcessEngine engine, String resourceId, ObjectMapper objectMapper) { super(engine, resourceId, objectMapper); } protected VariableMap getVariableEntities(boolean deserializeValues) { Ca...
.withCaseExecution(resourceId) .removeVariable(variableKey) .execute(); } protected String getResourceTypeName() { return "case execution"; } protected TypedValue getVariableEntity(String variableKey, boolean deserializeValue) { CaseService caseService = engine.getCaseService(); return...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\sub\runtime\impl\CaseExecutionVariablesResource.java
1
请完成以下Java代码
public Set<UserId> retrieveSystemUserIds() { return queryBL.createQueryBuilderOutOfTrx(I_AD_User.class) .addOnlyActiveRecordsFilter() .addEqualsFilter(org.compiere.model.I_AD_User.COLUMNNAME_IsSystemUser, true) .orderByDescending(org.compiere.model.I_AD_User.COLUMNNAME_AD_User_ID) .create() .idsA...
InterfaceWrapperHelper.save(user); } @Override public Optional<I_AD_User> getCounterpartUser( @NonNull final UserId sourceUserId, @NonNull final OrgId targetOrgId) { final OrgMappingId orgMappingId = getOrgMappingId(sourceUserId).orElse(null); if (orgMappingId == null) { return Optional.empty(); }...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\user\api\impl\UserDAO.java
1
请在Spring Boot框架中完成以下Java代码
public List<String> getRemoveWaitingForRepetitionPlanItemDefinitionIds() { return removeWaitingForRepetitionPlanItemDefinitionIds; } @ApiModelProperty(value = "remove waiting for repetition to provided plan item definition ids") public void setRemoveWaitingForRepetitionPlanItemDefinitionIds(List<String> removeWai...
@ApiModelProperty(value = "map an existing plan item id to new plan item id with the plan item definition id, this should not be necessary in general, but could be needed when plan item ids change between case definition versions.") public void setChangePlanItemIdsWithDefinitionId(Map<String, String> changePlanItem...
repos\flowable-engine-main\modules\flowable-cmmn-rest\src\main\java\org\flowable\cmmn\rest\service\api\runtime\caze\ChangePlanItemStateRequest.java
2
请在Spring Boot框架中完成以下Java代码
private AggregatedPricingRule createPricingRules() { final IPricingDAO pricingRulesRepo = Services.get(IPricingDAO.class); final ImmutableList<IPricingRule> rules = pricingRulesRepo.getPricingRules() .stream() .map(this::createPricingRuleNoFail) .filter(Objects::nonNull) .collect(ImmutableList.toI...
} @Override public void registerPriceLimitRule(@NonNull final IPriceLimitRule rule) { priceLimitRules.addEnforcer(rule); } @Override public PriceLimitRuleResult computePriceLimit(@NonNull final PriceLimitRuleContext context) { return priceLimitRules.compute(context); } @Override public Set<CountryId> g...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\pricing\service\impl\PricingBL.java
2
请在Spring Boot框架中完成以下Java代码
protected ProcessEngine getProcessEngineService(ServiceName processEngineServiceName) { try { ServiceController<ProcessEngine> serviceController = getProcessEngineServiceController(processEngineServiceName); return serviceController.getValue(); } catch (ServiceNotFoundException e) { return nul...
} /** * <p>invoked by the {@link MscManagedProcessEngine} and {@link MscManagedProcessEngineController} * when a process engine is stopped</p> */ public void processEngineStopped(ProcessEngine processEngine) { processEngines.remove(processEngine); } @SuppressWarnings("unchecked") protected MscM...
repos\camunda-bpm-platform-master\distro\wildfly\subsystem\src\main\java\org\camunda\bpm\container\impl\jboss\service\MscRuntimeContainerDelegate.java
2
请完成以下Java代码
public static WFActivityStatus computeActivityState(final PickingJob pickingJob) { return pickingJob.getDocStatus().isCompleted() ? WFActivityStatus.COMPLETED : WFActivityStatus.NOT_STARTED; } @Override public WFProcess userConfirmed(final UserConfirmationRequest request) { request.getWfActivity().getWfActivi...
final PickingJob pickingJob = wfProcess.getDocumentAs(PickingJob.class); if (pickingJob.getProgress().isDone()) { return msgBL.getMsg(language, ARE_YOU_SURE); } final PickingJobOptions options = pickingJobRestService.getPickingJobOptions(pickingJob.getCustomerId()); if (!options.isAllowCompletingPartialPi...
repos\metasfresh-new_dawn_uat\backend\de.metas.picking.rest-api\src\main\java\de\metas\picking\workflow\handlers\activity_handlers\CompletePickingWFActivityHandler.java
1
请完成以下Java代码
public static ProcessEngine getProcessEngine(String processEngineName) { return getProcessEngine(processEngineName, true); } /** obtain a process engine by name. * @param processEngineName is the name of the process engine or null for the default process engine. */ public static ProcessEngine getProcessE...
} /** closes all process engines. This method should be called when the server shuts down. */ public synchronized static void destroy() { if (isInitialized) { Map<String, ProcessEngine> engines = new HashMap<String, ProcessEngine>(processEngines); processEngines = new HashMap<String, ProcessEngine...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\ProcessEngines.java
1
请完成以下Java代码
protected int get_AccessLevel() { return accessLevel.intValue(); } /** Load Meta Data */ @Override protected POInfo initPO (Properties ctx) { POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName()); return poi; } @Override public String toString() { Strin...
@return C_DirectDebitLine_ID */ @Override public int getC_DirectDebitLine_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_C_DirectDebitLine_ID); if (ii == null) return 0; return ii.intValue(); } @Override public I_C_Invoice getC_Invoice() throws Exception { return get_ValueAsPO(COLUMNNAME_...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.base\src\main\java-gen\org\compiere\model\X_C_DirectDebitLine.java
1
请完成以下Java代码
public DmnElement getElement() { return element; } public void setElement(DmnElement element) { this.element = element; } public int getXmlRowNumber() { return xmlRowNumber; } public void setXmlRowNumber(int xmlRowNumber) { this.xmlRowNumber = xmlRowNumber; ...
return false; } // check for zero value in case we are comparing model value to BPMN DI value // model values do not have xml location information if (0 != this.getXmlColumnNumber() && 0 != ginfo.getXmlColumnNumber() && this.getXmlColumnNumber() != ginfo.getXmlColumnNumber()) { ...
repos\flowable-engine-main\modules\flowable-dmn-model\src\main\java\org\flowable\dmn\model\GraphicInfo.java
1
请完成以下Java代码
public void addFlowGraphicInfoListByDiagramId(String diagramId, String key, List<GraphicInfo> graphicInfoList) { flowLocationByDiagramIdMap.computeIfAbsent(diagramId, k -> new LinkedHashMap<>()); flowLocationByDiagramIdMap.get(diagramId).put(key, graphicInfoList); flowLocationMap.put(key, graphi...
decisionServiceDividerLocationByDiagramIdMap.get(diagramId).put(key, graphicInfoList); decisionServiceDividerLocationMap.put(key, graphicInfoList); } public String getExporter() { return exporter; } public void setExporter(String exporter) { this.exporter = exporter; } p...
repos\flowable-engine-main\modules\flowable-dmn-model\src\main\java\org\flowable\dmn\model\DmnDefinition.java
1
请完成以下Java代码
private static void updateAllocationRecord( @NonNull final I_M_InOutLine_To_C_Customs_Invoice_Line record, @NonNull final CustomsInvoiceLineAlloc alloc, @NonNull final CustomsInvoiceLineId customsInvoiceLineId, @NonNull final ProductId productId) { record.setM_InOut_ID(alloc.getInoutAndLineId().getInOutI...
return InOutAndLineId.ofRepoId(record.getM_InOut_ID(), record.getM_InOutLine_ID()); } private ImmutableListMultimap<CustomsInvoiceLineId, CustomsInvoiceLineAlloc> retrieveAllocations(final CustomsInvoiceId customsInvoiceId) { return queryBL.createQueryBuilder(I_M_InOutLine_To_C_Customs_Invoice_Line.class) .ad...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\customs\CustomsInvoiceRepository.java
1
请在Spring Boot框架中完成以下Java代码
public class ProducerService { private static final Logger logger = LoggerFactory.getLogger(ProducerService.class); @Autowired private ALiMqConfig aLiMqConfig; @Autowired private ProducerBean producer; /** * 调用此方法 发送消息,o 为自定义的消息体 */ public void sendMessage(Object o) { Me...
@Override public void onSuccess(SendResult sendResult) { logger.info("向mq推送库存消息成功,消息是:{}", sendResult.toString()); } @Override public void onException(OnExceptionContext e) { logger.error("向mq推送库存消息失败,消息id 为 {} 错误是:{...
repos\springBoot-master\springboot-rocketmq-ali\src\main\java\cn\abel\queue\service\ProducerService.java
2
请完成以下Java代码
public class X_M_Product_PrintFormat extends org.compiere.model.PO implements I_M_Product_PrintFormat, org.compiere.model.I_Persistent { private static final long serialVersionUID = -1870500207L; /** Standard Constructor */ public X_M_Product_PrintFormat (final Properties ctx, final int M_Product_PrintForma...
else set_Value (COLUMNNAME_M_Product_ID, M_Product_ID); } @Override public int getM_Product_ID() { return get_ValueAsInt(COLUMNNAME_M_Product_ID); } @Override public void setM_Product_PrintFormat_ID (final int M_Product_PrintFormat_ID) { if (M_Product_PrintFormat_ID < 1) set_ValueNoCheck (COLUMNN...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_Product_PrintFormat.java
1
请完成以下Java代码
public Boolean getActive() { return active; } public void setActive(final Boolean active) { this.active = active; } public void setPassword(final String password) { this.password = password; } public String getEmail() { return email; } public void setE...
@Override public boolean isCredentialsNonExpired() { return true; } @Override public boolean isEnabled() { return Boolean.TRUE.equals(active); } @InstanceName @DependsOnProperties({"firstName", "lastName", "username"}) public String getDisplayName() { return Str...
repos\tutorials-master\spring-boot-modules\jmix\src\main\java\com\baeldung\jmix\expensetracker\entity\User.java
1
请完成以下Java代码
public class VersionResult { /** * 是否发现新版本 */ @ApiModelProperty(value = "是否发现新版本(true:发现新版本,false:没有发现新版本)", name = "findNew", example = "true", required = true) private boolean findNew; /** * APP名称 */ @ApiModelProperty(value = "APP名称", name = "appName", example = "行政收费") pri...
public String getAppName() { return appName; } public void setAppName(String appName) { this.appName = appName; } public String getVersion() { return version; } public void setVersion(String version) { this.version = version; } public String getTips() ...
repos\SpringBootBucket-master\springboot-swagger2\src\main\java\com\xncoding\jwt\api\model\VersionResult.java
1
请在Spring Boot框架中完成以下Java代码
public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Hospital hospital = (Hospital) o; return Objects.equals(this._id, hospital._id) && Objects.equals(this.company, hospital.company) && ...
sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" website: ").append(toIndentedString(website)).append("\n"); sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object ...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\alberta\alberta-patient-api\src\main\java\io\swagger\client\model\Hospital.java
2
请完成以下Java代码
public String getArea() { return area; } } public class AuthoredArticle { private UUID id; private String title; private String content; private Date createdAt; private Area area; private Author author; public Area getArea() { return area; } public void setAre...
return id; } public void setId(UUID id) { this.id = id; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getContent() { return content; } public void setContent(String conten...
repos\tutorials-master\json-modules\json-2\src\main\java\com\baeldung\jsonschemageneration\recursive\AuthoredArticle.java
1
请在Spring Boot框架中完成以下Java代码
public ViewResolver viewResolver() { final InternalResourceViewResolver bean = new InternalResourceViewResolver(); bean.setViewClass(JstlView.class); bean.setPrefix("/WEB-INF/view/"); bean.setSuffix(".jsp"); return bean; } @Override public void addResourceHandlers(Re...
@Bean public LocaleResolver localeResolver() { CookieLocaleResolver cookieLocaleResolver = new CookieLocaleResolver(); cookieLocaleResolver.setDefaultLocale(Locale.ENGLISH); return cookieLocaleResolver; } @Bean public MessageSource messageSource() { ReloadableResourceBun...
repos\tutorials-master\spring-web-modules\spring-static-resources\src\main\java\com\baeldung\spring\MvcConfig.java
2
请完成以下Java代码
private final I_AD_Image retrieveLogoADImage() { final Properties ctx = Env.newTemporaryCtx(); final I_AD_Client client = retriveAD_Client(ctx); if (client == null) { return null; } final I_AD_ClientInfo clientInfo = Services.get(IClientDAO.class).retrieveClientInfo(ctx, client.getAD_Client_ID()); if ...
// Draw the image on to the buffered image final Graphics2D bGr = bufferedImage.createGraphics(); bGr.drawImage(image, 0, 0, null); bGr.dispose(); // Return the buffered image return bufferedImage; } private static byte[] toPngData(final BufferedImage image, final int width) { if (image == null) { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\serverRoot\de.metas.adempiere.adempiere.serverRoot.base\src\main\java-legacy\org\adempiere\serverRoot\servlet\ImagesServlet.java
1
请完成以下Java代码
protected ProcessPreconditionsResolution checkPreconditionsApplicable() { if (!isHUEditorView()) { return ProcessPreconditionsResolution.rejectWithInternalReason("not the HU view"); } if (!streamSelectedHUIds(Select.ONLY_TOPLEVEL).findAny().isPresent()) { return ProcessPreconditionsResolution.reject(m...
{ final DataMatrixCode dataMatrix = getDataMatrix(); final SecurPharmHUAttributesScanner scanner = securPharmService.newHUScanner(); streamSelectedHUs(Select.ONLY_TOPLEVEL) .forEach(hu -> scanner.scanAndUpdateHUAttributes(dataMatrix, hu)); return super.doIt(); } protected final DataMatrixCode getDataMa...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\handlingunits\process\WEBUI_M_HU_ReturnFromCustomer_Pharma.java
1
请完成以下Java代码
public class RestartProcessInstancesBatchCmd extends AbstractRestartProcessInstanceCmd<Batch> { private final CommandLogger LOG = ProcessEngineLogger.CMD_LOGGER; public RestartProcessInstancesBatchCmd(CommandExecutor commandExecutor, RestartProcessInstanceBuilderImpl builder) { super(commandExecutor, builder)...
.tenantId(tenantId) .operationLogHandler((ctx, instanceCount) -> writeUserOperationLog(ctx, processDefinition, instanceCount, true)) .build(); } protected void ensureTenantAuthorized(CommandContext commandContext, ProcessDefinitionEntity processDefinition) { if (!commandContext.getT...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\batch\RestartProcessInstancesBatchCmd.java
1
请完成以下Java代码
public void setAuthoritiesClaimDelimiter(String authoritiesClaimDelimiter) { Assert.notNull(authoritiesClaimDelimiter, "authoritiesClaimDelimiter cannot be null"); this.authoritiesClaimDelimiter = authoritiesClaimDelimiter; } /** * Sets the name of token claim to use for mapping {@link GrantedAuthority * aut...
} Object authorities = jwt.getClaim(claimName); if (authorities instanceof String) { if (StringUtils.hasText((String) authorities)) { return Arrays.asList(((String) authorities).split(this.authoritiesClaimDelimiter)); } return Collections.emptyList(); } if (authorities instanceof Collection) { r...
repos\spring-security-main\oauth2\oauth2-resource-server\src\main\java\org\springframework\security\oauth2\server\resource\authentication\JwtGrantedAuthoritiesConverter.java
1
请完成以下Java代码
public PlanItemInstanceLifecycleListener createClassDelegateLifeCycleListener(FlowableListener listener) { return classDelegateFactory.create(listener.getImplementation(), listener.getFieldExtensions()); } @Override public PlanItemInstanceLifecycleListener createExpressionLifeCycleListener(Flowable...
public CaseInstanceLifecycleListener createClassDelegateCaseLifeCycleListener(FlowableListener listener) { return classDelegateFactory.create(listener.getImplementation(), listener.getFieldExtensions()); } @Override public CaseInstanceLifecycleListener createExpressionCaseLifeCycleListener(Flowable...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\listener\DefaultCmmnListenerFactory.java
1
请完成以下Java代码
public class MImpExConnector extends X_ImpEx_Connector { /** * */ private static final long serialVersionUID = -4915263677859779046L; public MImpExConnector(Properties ctx, int C_ImpExConnector_ID, String trxName) { super(ctx, C_ImpExConnector_ID, trxName); } public MImpExConnector(Properties ctx, Result...
mParam.setAD_Reference_ID(param.displayType); mParam.setName(param.name); mParam.setSeqNo(param.seqNo); mParam.setImpEx_Connector_ID(this.get_ID()); mParam.saveEx(); } } private void deleteParameters() { for (final MImpexConnectorParam mParam : MImpexConnectorParam.retrieve(this)) { mParam.d...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\impex\model\MImpExConnector.java
1
请在Spring Boot框架中完成以下Java代码
RSocketServerBootstrap rSocketServerBootstrap(RSocketServerFactory rSocketServerFactory, RSocketMessageHandler rSocketMessageHandler) { return new RSocketServerBootstrap(rSocketServerFactory, rSocketMessageHandler.responder()); } @Bean RSocketServerCustomizer frameDecoderRSocketServerCustomizer(RSocketMes...
} @ConditionalOnProperty(name = "spring.rsocket.server.port", matchIfMissing = true) static class HasNoPortConfigured { } @ConditionalOnProperty("spring.rsocket.server.mapping-path") static class HasMappingPathConfigured { } @ConditionalOnProperty(name = "spring.rsocket.server.transport", havingValue...
repos\spring-boot-4.0.1\module\spring-boot-rsocket\src\main\java\org\springframework\boot\rsocket\autoconfigure\RSocketServerAutoConfiguration.java
2
请在Spring Boot框架中完成以下Java代码
public void fetchAuthorByGenreAsDtoClassQueryBuilderMechanism() { List<AuthorDto> authors = authorRepository.findBy(); authors.forEach(a -> System.out.println("Author{id=" + a.getId() + ", name=" + a.getName() + ", genre=" + a.getGenre() + ", age=" + a.getAge() + "}")); ...
for (Object entry : entitiesByKey.values()) { EntityEntry ee = persistenceContext.getEntry(entry); System.out.println( "Entity name: " + ee.getEntityName() + " | Status: " + ee.getStatus() + " | State: " + Arrays.toString(ee.getLoadedSt...
repos\Hibernate-SpringBoot-master\HibernateSpringBootJoinDtoAllFields\src\main\java\com\bookstore\service\BookstoreService.java
2
请完成以下Java代码
private boolean isCreditMemoInvoice() { return isCreditMemoInvoice; } /** * Updates dimensions and UOM of given FactLine from invoice line */ private void updateFromInvoiceLine(@Nullable final FactLine fl) { if (fl == null) { return; } final I_C_InvoiceLine invoiceLine = getInvoiceLine(); //fl...
CostDetailCreateRequest.builder() .acctSchemaId(as.getId()) .clientId(matchInv.getClientId()) .orgId(matchInv.getOrgId()) .productId(matchInv.getProductId()) .attributeSetInstanceId(matchInv.getAsiId()) .documentRef(CostingDocumentRef.ofMatchInvoiceId(matchInv.getId())) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java-legacy\org\compiere\acct\Doc_MatchInv.java
1
请完成以下Java代码
public ProcessEngineService getProcessEngineService() { return this; } @Override public ProcessApplicationService getProcessApplicationService() { return this; } @Override public ExecutorService getExecutorService() { return serviceContainer.getServiceValue(ServiceTypes.BPM_PLATFORM, SERVICE_...
@Override public ProcessApplicationInfo getProcessApplicationInfo(String processApplicationName) { JmxManagedProcessApplication processApplicationService = serviceContainer.getServiceValue(ServiceTypes.PROCESS_APPLICATION, processApplicationName); if (processApplicationService == null) { return null; ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\container\impl\RuntimeContainerDelegateImpl.java
1
请完成以下Java代码
public class MForm extends X_AD_Form { /** * */ private static final long serialVersionUID = -2013533837940046638L; /** * Default Constructor * @param ctx context * @param AD_Form_ID id * @param trxName transaction */ public MForm (Properties ctx, int AD_Form_ID, String trxName)
{ super (ctx, AD_Form_ID, trxName); } // MForm /** * Load Constructor * @param ctx context * @param rs result set * @param trxName transaction */ public MForm (Properties ctx, ResultSet rs, String trxName) { super(ctx, rs, trxName); } // MForm } // MForm
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\MForm.java
1
请完成以下Java代码
public void setDeployers(List<Deployer> deployers) { this.deployers = deployers; } public void deploy(final DeploymentEntity deployment) { Context.getCommandContext().runWithoutAuthorization(new Callable<Void>() { public Void call() throws Exception { for (Deployer deployer : deployers) { ...
} return null; } }); deployment.setResources(null); } protected void initDeployment(final DeploymentEntity deployment, String... resourceNames) { deployment.clearResources(); for (String resourceName : resourceNames) { if (resourceName != null) { // with the given resour...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\deploy\cache\CacheDeployer.java
1
请完成以下Java代码
public void setName (java.lang.String Name) { set_Value (COLUMNNAME_Name, Name); } /** Get Name. @return Name */ @Override public java.lang.String getName () { return (java.lang.String)get_Value(COLUMNNAME_Name); } /** Set Preis Präzision. @param PricePrecision Precision (number of decimals) for...
{ set_Value (COLUMNNAME_PricePrecision, Integer.valueOf(PricePrecision)); } /** Get Preis Präzision. @return Precision (number of decimals) for the Price */ @Override public int getPricePrecision () { Integer ii = (Integer)get_Value(COLUMNNAME_PricePrecision); if (ii == null) return 0; return ii...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_PriceList.java
1
请完成以下Java代码
public class HistoricExternalTaskLogResourceImpl implements HistoricExternalTaskLogResource { protected String id; protected ProcessEngine engine; public HistoricExternalTaskLogResourceImpl(String id, ProcessEngine engine) { this.id = id; this.engine = engine; } @Override public HistoricExternalT...
return HistoricExternalTaskLogDto.fromHistoricExternalTaskLog(historicExternalTaskLog); } @Override public String getErrorDetails() { try { HistoryService historyService = engine.getHistoryService(); return historyService.getHistoricExternalTaskLogErrorDetails(id); } catch (AuthorizationExcep...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\sub\history\impl\HistoricExternalTaskLogResourceImpl.java
1