instruction
string
input
string
output
string
source_file
string
priority
int64
请在Spring Boot框架中完成以下Java代码
public class HomeController { @RequestMapping("/") public String index(Model model){ Msg msg = new Msg("测试标题","测试内容","欢迎来到HOME页面,您拥有 ROLE_HOME 权限"); model.addAttribute("msg", msg); return "home"; } @RequestMapping("/admin") @ResponseBody public String hello(){ ...
@RequestMapping(value = "/user", method = RequestMethod.GET) @ResponseBody public String getList(){ return "hello getList"; } @RequestMapping(value = "/user", method = RequestMethod.POST) @ResponseBody public String save(){ return "hello save"; } @RequestMapping(value...
repos\springBoot-master\springboot-springSecurity3\src\main\java\com\us\example\controller\HomeController.java
2
请在Spring Boot框架中完成以下Java代码
public class UserLoginRespVO { private Integer userId; private String name; private String username; public Integer getUserId() { return userId; } public UserLoginRespVO setUserId(Integer userId) { this.userId = userId; return this; } public String getName()...
public UserLoginRespVO setName(String name) { this.name = name; return this; } public String getUsername() { return username; } public UserLoginRespVO setUsername(String username) { this.username = username; return this; } }
repos\SpringBoot-Labs-master\lab-24\lab-24-apidoc-showdoc\src\main\java\cn\iocoder\springboot\lab24\apidoc\controller\vo\UserLoginRespVO.java
2
请在Spring Boot框架中完成以下Java代码
public Security getSecurity() { return this.security; } public static class Security { private final String username; private final String password; private final List<String> roles; public Security(String username, String password, @DefaultValue("USER") List<String> roles) { this.username = usernam...
} public String getUsername() { return this.username; } public String getPassword() { return this.password; } public List<String> getRoles() { return this.roles; } } }
repos\spring-boot-4.0.1\documentation\spring-boot-docs\src\main\java\org\springframework\boot\docs\features\externalconfig\typesafeconfigurationproperties\constructorbinding\nonnull\MyProperties.java
2
请完成以下Java代码
public String getName() { if (localizedName != null && localizedName.length() > 0) { return localizedName; } else { return name; } } public void setName(String name) { this.name = name; } public String getLocalizedName() { return localize...
this.localizedDescription = localizedDescription; } @Override public Map<String, Object> getProcessVariables() { Map<String, Object> variables = new HashMap<>(); if (queryVariables != null) { for (HistoricVariableInstanceEntity variableInstance : queryVariables) { ...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\persistence\entity\HistoricProcessInstanceEntity.java
1
请完成以下Java代码
public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public int getAge() { return age; } public void setAge(int age) { this.age = age; } public Date getRegTime() { return regTime; }
public void setRegTime(Date regTime) { this.regTime = regTime; } public String getState() { return state; } public void setState(String state) { this.state = state; } }
repos\spring-boot-leaning-master\2.x_42_courses\第 5-7 课: 综合实战客户管理系统(一)\user-manage\src\main\java\com\neo\model\User.java
1
请完成以下Java代码
public void setC_Print_Job_ID (int C_Print_Job_ID) { if (C_Print_Job_ID < 1) set_Value (COLUMNNAME_C_Print_Job_ID, null); else set_Value (COLUMNNAME_C_Print_Job_ID, Integer.valueOf(C_Print_Job_ID)); } @Override public int getC_Print_Job_ID() { return get_ValueAsInt(COLUMNNAME_C_Print_Job_ID); } ...
{ set_ValueFromPO(COLUMNNAME_C_Print_Package_ID, de.metas.printing.model.I_C_Print_Package.class, C_Print_Package); } @Override public void setC_Print_Package_ID (int C_Print_Package_ID) { if (C_Print_Package_ID < 1) set_Value (COLUMNNAME_C_Print_Package_ID, null); else set_Value (COLUMNNAME_C_Print_...
repos\metasfresh-new_dawn_uat\backend\de.metas.printing\de.metas.printing.base\src\main\java-gen\de\metas\printing\model\X_C_Print_Job_Line.java
1
请完成以下Java代码
public int getC_AcctSchema_ID() { return C_AcctSchema_ID; } @Override public String getPostingType() { return postingType; } @Override public int getC_Period_ID() { return C_Period_ID; } @Override public Date getDateAcct() { return new Date(dateAcctMs); }
@Override public int getAD_Client_ID() { return AD_Client_ID; } @Override public int getAD_Org_ID() { return AD_Org_ID; } @Override public int getPA_ReportCube_ID() { return PA_ReportCube_ID; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java\de\metas\acct\aggregation\legacy\impl\FactAcctSummaryKey.java
1
请在Spring Boot框架中完成以下Java代码
public class CreditPassConfig { @NonNull private String restApiBaseUrl; @NonNull private String authId; @NonNull private String authPassword; private int transactionType; private int processingCode; @NonNull private ResultCode resultCode;
@NonNull private UserId notificationUserId; private int retryDays; @NonNull private String requestReason; @NonNull private CreditPassConfigId creditPassConfigId; private List<CreditPassConfigPaymentRule> creditPassConfigPaymentRuleList; }
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.creditscore\creditpass\src\main\java\de\metas\vertical\creditscore\creditpass\model\CreditPassConfig.java
2
请在Spring Boot框架中完成以下Java代码
public int getReadTimeout() { return this.readTimeout; } public void setReadTimeout(int readTimeout) { this.readTimeout = readTimeout; } public boolean isReadyForEvents() { return this.readyForEvents; } public void setReadyForEvents(boolean readyForEvents) { this.readyForEvents = readyForEvents; } p...
public int getSubscriptionAckInterval() { return this.subscriptionAckInterval; } public void setSubscriptionAckInterval(int subscriptionAckInterval) { this.subscriptionAckInterval = subscriptionAckInterval; } public boolean isSubscriptionEnabled() { return this.subscriptionEnabled; } public void setSubsc...
repos\spring-boot-data-geode-main\spring-geode-project\spring-geode-autoconfigure\src\main\java\org\springframework\geode\boot\autoconfigure\configuration\support\PoolProperties.java
2
请完成以下Spring Boot application配置
# This is true to make SpringBoot to automatically register a bean of type 'org.springframework.amqp.core.AmqpAdmin'. # Check the org.springframework.boot.autoconfigure.amqp.RabbitAutoConfiguration javadoc for details. spring.rabbitmq.dynamic=true # The port to which the client should connect defaults to 5672. spring....
.host=192.168.99.100 # Logging logging.pattern.console=%d{mm:ss.SSS} %-5p [%-31t] [%-54logger{0}] %marker%m%ex{full} - %logger - %F:%L%n logging.level.root=WARN logging.level.org.springframework.amqp=TRACE
repos\tutorials-master\spring-remoting-modules\remoting-amqp\remoting-amqp-client\src\main\resources\application.properties
2
请完成以下Java代码
public class Main { public static void main(String[] args) { // Manual creation OkHttpClient.Builder httpClient = new OkHttpClient.Builder(); Retrofit retrofit = new Retrofit.Builder().baseUrl("https://api.github.com/").addConverterFactory(GsonConverterFactory.create()).client(httpClient.bu...
// Execute the call asynchronously. Get a positive or negative callback. callAsync.enqueue(new Callback<User>() { @Override public void onResponse(Call<User> call, Response<User> response) { User user = response.body(); System.out.println(user); ...
repos\tutorials-master\libraries-http\src\main\java\com\baeldung\retrofitguide\Main.java
1
请完成以下Java代码
public Object getValue(ELContext context, Object base, Object property) { Objects.requireNonNull(context); if (base instanceof ResourceBundle) { context.setPropertyResolved(base, property); if (property != null) { try { return ((ResourceBundle) base).getObject(property.toString()); } catch (Mis...
throw new PropertyNotWritableException("ELResolver not writable for type '" + base.getClass().getName() + "'"); } } @Override public boolean isReadOnly(ELContext context, Object base, Object property) { Objects.requireNonNull(context); if (base instanceof ResourceBundle) { context.setPropertyResolved(bas...
repos\flowable-engine-main\modules\flowable-engine-common\src\main\java\org\flowable\common\engine\impl\javax\el\ResourceBundleELResolver.java
1
请完成以下Java代码
public Set<String> getAttributeNames() { return this.cached.getAttributeNames(); } @Override public void setAttribute(String attributeName, Object attributeValue) { this.cached.setAttribute(attributeName, attributeValue); this.delta.put(getAttributeKey(attributeName), attributeValue); flushIfRequired...
return this.cached.isExpired(); } private void flushIfRequired() { if (RedisSessionRepository.this.flushMode == FlushMode.IMMEDIATE) { save(); } } private boolean hasChangedSessionId() { return !getId().equals(this.originalSessionId); } private void save() { saveChangeSessionId(); save...
repos\spring-session-main\spring-session-data-redis\src\main\java\org\springframework\session\data\redis\RedisSessionRepository.java
1
请完成以下Java代码
public IGridTabRowBuilder getGridTabRowBuilder(final int recordId) { final CompositeGridTabRowBuilder recordBuilders = builders.get(recordId); if (recordBuilders == null) { return NullGridTabRowBuilder.instance; } return recordBuilders; } private static final String createContextName(final int windowN...
* * @param ctx * @param windowNo * @return builders or null */ public static IInfoWindowGridRowBuilders getFromContextOrNull(final Properties ctx, final int windowNo) { final String ctxName = createContextName(windowNo); final IInfoWindowGridRowBuilders builders = Env.getAndRemove(ctx, ctxName); return...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\compiere\apps\search\impl\InfoWindowGridRowBuilders.java
1
请完成以下Java代码
public Set<Entry<String, List<String>>> entrySet() { return headers.entrySet(); } public void add(String headerName, String headerValue) { headers.computeIfAbsent(headerName, key -> new ArrayList<>()).add(headerValue); } public String formatAsString() { return formatAsString(fa...
while (line != null) { int colonIndex = line.indexOf(':'); if (colonIndex > 0) { String headerName = line.substring(0, colonIndex); if (line.length() > colonIndex + 2) { headers.add(headerName, StringUtil...
repos\flowable-engine-main\modules\flowable-http-common\src\main\java\org\flowable\http\common\api\HttpHeaders.java
1
请完成以下Java代码
public ImmutableSet<HuId> getPickedHUIds() { return steps.stream() .map(PickingJobStep::getPickedHUIds) .flatMap(List::stream) .collect(ImmutableSet.toImmutableSet()); } public Optional<HuId> getLastPickedHUId() { return steps.stream() .map(PickingJobStep::getLastPickedHU) .filter(Optional:...
? toBuilder().currentPickingTarget(changedCurrentPickingTarget).build() : this; } public boolean isPickingSlotSet() {return currentPickingTarget.isPickingSlotSet();} public Optional<PickingSlotId> getPickingSlotId() {return currentPickingTarget.getPickingSlotId();} public PickingJobLine withPickingSlot(@Null...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\picking\job\model\PickingJobLine.java
1
请完成以下Java代码
protected ProcessDefinition getProcessDefinitionById(String processDefinitionId, CommandContext commandContext) { RepositoryService repositoryService = CommandContextUtil.getProcessEngineConfiguration(commandContext).getRepositoryService(); ProcessDefinition processDefinition = repositoryService.create...
return bpmnModel.getMainProcess(); } protected EventModel getEventModel(String eventDefinitionKey, String tenantId, CommandContext commandContext) { EventModel eventModel = CommandContextUtil.getEventRepositoryService(commandContext).getEventModelByKey(eventDefinitionKey, tenantId); if (eventMo...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\cmd\AbstractProcessStartEventSubscriptionCmd.java
1
请在Spring Boot框架中完成以下Java代码
public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } public String getCreater() { return creater; } public void setCreater(String creater) { this.creater = creater; } public Date getCreateTime() { return createTime; } public void setCreateT...
public String getEditor() { return editor; } public void setEditor(String editor) { this.editor = editor; } public Date getEditTime() { return editTime; } public void setEditTime(Date editTime) { this.editTime = editTime; } public String getRemark() { return remark; } public void setRemark(Stri...
repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\permission\entity\PermissionBaseEntity.java
2
请在Spring Boot框架中完成以下Java代码
public class ErrorBuilderHelper { public static JsonErrorItem buildJsonErrorItem(@NonNull final Exchange exchange) { final JsonErrorItem.JsonErrorItemBuilder errorBuilder = JsonErrorItem .builder() .orgCode(exchange.getIn().getHeader(HEADER_ORG_CODE, String.class)); final Exception exception = exchange.g...
errorBuilder.stackTrace(sw.toString()); final Optional<StackTraceElement> sourceStackTraceElem = exception.getStackTrace() != null ? Optional.ofNullable(exception.getStackTrace()[0]) : Optional.empty(); sourceStackTraceElem.ifPresent(stackTraceElement -> { errorBuilder.sourceClassName(sourceStackT...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\common\src\main\java\de\metas\camel\externalsystems\common\ErrorBuilderHelper.java
2
请在Spring Boot框架中完成以下Java代码
public int getExternalSystem_ID() { return get_ValueAsInt(COLUMNNAME_ExternalSystem_ID); } /** * ProjectType AD_Reference_ID=541118 * Reference name: ExternalProjectType */ public static final int PROJECTTYPE_AD_Reference_ID=541118; /** Budget = Budget */ public static final String PROJECTTYPE_Budget =...
{ return get_ValueAsInt(COLUMNNAME_SeqNo); } @Override public void setS_ExternalProjectReference_ID (final int S_ExternalProjectReference_ID) { if (S_ExternalProjectReference_ID < 1) set_ValueNoCheck (COLUMNNAME_S_ExternalProjectReference_ID, null); else set_ValueNoCheck (COLUMNNAME_S_ExternalProject...
repos\metasfresh-new_dawn_uat\backend\de.metas.serviceprovider\src\main\java-gen\de\metas\serviceprovider\model\X_S_ExternalProjectReference.java
2
请完成以下Java代码
public String getTrxName(final Object model, final boolean ignoreIfNotHandled) { return POJOWrapper.getTrxName(model); } @Override public void setTrxName(final Object model, final String trxName, final boolean ignoreIfNotHandled) { POJOWrapper.setTrxName(model, trxName); } @Override public int getId(final...
return null; } } @SuppressWarnings("unchecked") final T value = (T)wrapper.getValuesMap().get(columnName); return value; } @Override public boolean isValueChanged(final Object model, final String columnName) { return POJOWrapper.isValueChanged(model, columnName); } @Override public boolean isValue...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\wrapper\POJOInterfaceWrapperHelper.java
1
请在Spring Boot框架中完成以下Java代码
public class TwitterController { private OAuth10aService createService() { return new ServiceBuilder("PSRszoHhRDVhyo2RIkThEbWko") .apiSecret("prpJbz03DcGRN46sb4ucdSYtVxG8unUKhcnu3an5ItXbEOuenL") .callback("http://localhost:8080/spring-mvc-simple/twitter/callback") .build...
} @GetMapping(value = "/callback", produces = "text/plain") @ResponseBody public String callback(HttpServletRequest servletReq, @RequestParam("oauth_verifier") String oauthV) throws InterruptedException, ExecutionException, IOException { OAuth10aService twitterService = createService(); OAu...
repos\tutorials-master\spring-web-modules\spring-mvc-basics-2\src\main\java\com\baeldung\spring\controller\scribe\TwitterController.java
2
请完成以下Java代码
public String getExplanation() { return explanation; } /** * Sets the value of the explanation property. * * @param value * allowed object is * {@link String } * */ public void setExplanation(String value) { this.explanation = value; } ...
* * <p> * For example, to add a new item, do as follows: * <pre> * getError().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link ErrorType } * * */ public List<ErrorType> getError() { i...
repos\metasfresh-new_dawn_uat\backend\vertical-healthcare_ch\forum_datenaustausch_ch.invoice_440_response\src\main\java-xjc\de\metas\vertical\healthcare_ch\forum_datenaustausch_ch\invoice_440\response\RejectedType.java
1
请完成以下Java代码
public org.compiere.model.I_C_Year getC_Year() { return get_ValueAsPO(COLUMNNAME_C_Year_ID, org.compiere.model.I_C_Year.class); } @Override public void setC_Year(final org.compiere.model.I_C_Year C_Year) { set_ValueFromPO(COLUMNNAME_C_Year_ID, org.compiere.model.I_C_Year.class, C_Year); } @Override public...
public int getC_Year_ID() { return get_ValueAsInt(COLUMNNAME_C_Year_ID); } @Override public void setValidTo (final @Nullable java.sql.Timestamp ValidTo) { set_ValueNoCheck (COLUMNNAME_ValidTo, ValidTo); } @Override public java.sql.Timestamp getValidTo() { return get_ValueAsTimestamp(COLUMNNAME_ValidT...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_MembershipMonth.java
1
请完成以下Java代码
public I_AD_InfoColumn getAD_InfoColumn() { return infoColumnDef; } @Override public int getParameterCount() { return 1; } @Override public String getLabel(final int index) { return null; } @Override public Object getParameterComponent(final int index) { return checkbox; } @Override public O...
final String productColumnName = org.compiere.model.I_M_Product.Table_Name + "." + org.compiere.model.I_M_Product.COLUMNNAME_M_Product_ID; final StringBuilder whereClause = new StringBuilder(productColumnName + " IN " + DB.buildSqlList(record2productId.values(), params)); if (gridConvertAfterLoadDelegate != null) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\adempiere\gui\search\InfoProductQtyController.java
1
请完成以下Java代码
private void readObject(ObjectInputStream aInputStream) throws ClassNotFoundException, IOException { statusCode = (HttpStatusCode) aInputStream.readObject(); headers = (HttpHeaders) aInputStream.readObject(); body = List.of(ByteBuffer.wrap(aInputStream.readAllBytes()).asReadOnlyBuffer()); timestamp = (Date) aIn...
private @Nullable Instant timestamp; public Builder(HttpStatusCode statusCode) { this.statusCode = statusCode; } public Builder header(String name, String value) { this.headers.add(name, value); return this; } public Builder headers(HttpHeaders headers) { this.headers.addAll(headers); return...
repos\spring-cloud-gateway-main\spring-cloud-gateway-server-webflux\src\main\java\org\springframework\cloud\gateway\filter\factory\cache\CachedResponse.java
1
请在Spring Boot框架中完成以下Java代码
public String getTemplateId() { return templateId; } public void setTemplateId(String templateId) { this.templateId = templateId; } public InsuranceContractRequiredTemplates careType(BigDecimal careType) { this.careType = careType; return this; } /** * Art der Versorgung (0 &#x3D; Unb...
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class InsuranceContractRequiredTemplates {\n"); sb.append(" templateId: ").append(toIndentedString(templateId)).append("\n"); sb.append(" careType: ").append(toIndentedString(careType)).append("\n"); ...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\alberta\alberta-article-api\src\main\java\io\swagger\client\model\InsuranceContractRequiredTemplates.java
2
请在Spring Boot框架中完成以下Java代码
ResourceConfig resourceConfig(ObjectProvider<ResourceConfigCustomizer> resourceConfigCustomizers) { ResourceConfig resourceConfig = new ResourceConfig(); resourceConfigCustomizers.orderedStream().forEach((customizer) -> customizer.customize(resourceConfig)); return resourceConfig; } @Bean ServletRegistr...
JerseyHealthEndpointAdditionalPathResourceFactory resourceFactory = new JerseyHealthEndpointAdditionalPathResourceFactory( WebServerNamespace.SERVER, this.groups); Collection<Resource> endpointResources = resourceFactory .createEndpointResources(mapping, (this.endpoint != null) ? Collections.singleton...
repos\spring-boot-4.0.1\module\spring-boot-jersey\src\main\java\org\springframework\boot\jersey\autoconfigure\actuate\endpoint\web\HealthEndpointJerseyExtensionAutoConfiguration.java
2
请完成以下Java代码
public class ClusterGroupEntity { private String machineId; private String ip; private Integer port; private Set<String> clientSet = new HashSet<>(); private Boolean belongToApp; public String getMachineId() { return machineId; } public ClusterGroupEntity setMachineId(Strin...
public Set<String> getClientSet() { return clientSet; } public ClusterGroupEntity setClientSet(Set<String> clientSet) { this.clientSet = clientSet; return this; } public Boolean getBelongToApp() { return belongToApp; } public ClusterGroupEntity setBelongToApp(B...
repos\spring-boot-student-master\spring-boot-student-sentinel-dashboard\src\main\java\com\alibaba\csp\sentinel\dashboard\domain\cluster\ClusterGroupEntity.java
1
请完成以下Java代码
public class Context { public static CommandContext getCommandContext() { return CommandContextUtil.getCommandContext(); } public static FlowableEngineAgenda getAgenda() { return CommandContextUtil.getAgenda(); } public static ProcessEngineConfigurationImpl getProcessEngineConfigu...
return CommandContextUtil.getProcessEngineConfiguration(commandContext); } public static TransactionContext getTransactionContext() { return TransactionContextHolder.getTransactionContext(); } public static Flowable5CompatibilityHandler getFlowable5CompatibilityHandler() { return g...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\context\Context.java
1
请完成以下Java代码
private CapturedHUInfo getCapturedHUInfo(@NonNull final I_M_HU hu) { return Check.assumeNotNull(getCapturedHUInfoOrNull(hu), "capturedHUInfos contains {}: {}", hu, capturedHUInfos); } private CapturedHUInfo getCapturedHUInfoOrNull(@NonNull final I_M_HU hu) { return capturedHUInfos.get(HuId.ofRepoId(hu.getM_HU_...
} } } private void setWeightNet(@NonNull final I_M_HU hu, @NonNull final Quantity weightNet) { final IAttributeStorage huAttributes = huContext.getHUAttributeStorageFactory().getAttributeStorage(hu); huAttributes.setSaveOnChange(true); final IWeightable weightable = Weightables.wrap(huAttributes); final...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\picking\candidate\commands\PackedHUWeightNetUpdater.java
1
请完成以下Java代码
public class GL_Journal_ChangePostingType extends JavaProcess { // services private final transient IGLJournalDAO glJournalDAO = Services.get(IGLJournalDAO.class); private final transient IGLJournalBL glJournalBL = Services.get(IGLJournalBL.class); private static final String PARAM_PostingType = "PostingType"; pr...
} else { throw new AdempiereException("@NotSupported@ @TableName@: " + tableName); } return MSG_OK; } private void changePostingType(final I_GL_JournalBatch glJournalBatch) { glJournalBatch.setPostingType(p_PostingType); InterfaceWrapperHelper.save(glJournalBatch); final List<I_GL_Journal> glJour...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java\de\metas\acct\process\GL_Journal_ChangePostingType.java
1
请完成以下Java代码
private MInvoiceLine[] createInvoiceLines(MRMA rma, MInvoice invoice) { ArrayList<MInvoiceLine> invLineList = new ArrayList<>(); MRMALine rmaLines[] = rma.getLines(true); for (MRMALine rmaLine : rmaLines) { if (rmaLine.getM_InOutLine_ID() == 0) ...
private void generateInvoice(int M_RMA_ID) { MRMA rma = new MRMA(getCtx(), M_RMA_ID, get_TrxName()); MInvoice invoice = createInvoice(rma); MInvoiceLine invoiceLines[] = createInvoiceLines(rma, invoice); if (invoiceLines.length == 0) { log.warn("...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java-legacy\org\adempiere\process\InvoiceGenerateRMA.java
1
请完成以下Java代码
public class X_C_Print_Job extends org.compiere.model.PO implements I_C_Print_Job, org.compiere.model.I_Persistent { private static final long serialVersionUID = 1440503648L; /** Standard Constructor */ public X_C_Print_Job (Properties ctx, int C_Print_Job_ID, String trxName) { super (ctx, C_Print...
@Override public void setC_Print_Job_ID (int C_Print_Job_ID) { if (C_Print_Job_ID < 1) set_ValueNoCheck (COLUMNNAME_C_Print_Job_ID, null); else set_ValueNoCheck (COLUMNNAME_C_Print_Job_ID, Integer.valueOf(C_Print_Job_ID)); } @Override public int getC_Print_Job_ID() { return get_ValueAsInt(COLUMNNA...
repos\metasfresh-new_dawn_uat\backend\de.metas.printing\de.metas.printing.base\src\main\java-gen\de\metas\printing\model\X_C_Print_Job.java
1
请完成以下Java代码
public int getCardinality() { return 2; } @Override public AstNode getChild(int i) { return i == 0 ? parameters : i == 1 ? body : null; } @Override public String toString() { return parameters.toString() + " -> " + body.toString(); } /** * Simple ValueExpr...
return body.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (!(obj instanceof LambdaBodyValueExpression)) return false; LambdaBodyValueExpression other = (LambdaBodyValueExpression) obj; return body.equ...
repos\flowable-engine-main\modules\flowable-engine-common\src\main\java\org\flowable\common\engine\impl\de\odysseus\el\tree\impl\ast\AstLambdaExpression.java
1
请完成以下Java代码
protected InterpretableExecution newProcessInstance(ActivityImpl startActivity) { return new ExecutionImpl(startActivity); } @Override public String getDiagramResourceName() { return null; } @Override public String getDeploymentId() { return null; } public void...
public String getKey() { return key; } public void setKey(String key) { this.key = key; } @Override public String getDescription() { return (String) getProperty("documentation"); } /** * @return all lane-sets defined on this process-instance. Returns an empty ...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\pvm\process\ProcessDefinitionImpl.java
1
请完成以下Java代码
public Resource getChild(String name) { return this; } private String getTokenFromRequest(Request request) { return (request.getSourceContext() != null ? request.getSourceContext().getPeerAddress().getAddress().getHostAddress() : "null") + ":" + (request.getSourceContext() != n...
} private void sendOtaData(CoapExchange exchange) { String idStr = exchange.getRequestOptions().getUriPath().get(exchange.getRequestOptions().getUriPath().size() - 1 ); UUID currentId = UUID.fromString(idStr); Response response = new Response(CoAP.ResponseCode.CONTENT); byte...
repos\thingsboard-master\common\transport\lwm2m\src\main\java\org\thingsboard\server\transport\lwm2m\server\LwM2mTransportCoapResource.java
1
请完成以下Java代码
public void setM_LU_HU_PI_Item(final de.metas.handlingunits.model.I_M_HU_PI_Item M_LU_HU_PI_Item) { set_ValueFromPO(COLUMNNAME_M_LU_HU_PI_Item_ID, de.metas.handlingunits.model.I_M_HU_PI_Item.class, M_LU_HU_PI_Item); } @Override public void setM_LU_HU_PI_Item_ID (final int M_LU_HU_PI_Item_ID) { if (M_LU_HU_PI_...
} @Override public int getM_TU_HU_PI_ID() { return get_ValueAsInt(COLUMNNAME_M_TU_HU_PI_ID); } @Override public void setQtyCUsPerTU (final BigDecimal QtyCUsPerTU) { set_Value (COLUMNNAME_QtyCUsPerTU, QtyCUsPerTU); } @Override public BigDecimal getQtyCUsPerTU() { final BigDecimal bd = get_ValueAsBi...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java-gen\de\metas\handlingunits\model\X_M_HU_LUTU_Configuration.java
1
请完成以下Java代码
public String getName() { return name; } @Override public String toString() { return name; } public boolean isAbstract() { return false; } public ValueType getParent() { return null; } public boolean canConvertFromTypedValue(TypedValue typedValue) { return false; } public ...
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; AbstractValueTypeImpl other = (AbstractValueTypeImpl) obj; if (name == null) { if (other.name != null) return f...
repos\camunda-bpm-platform-master\commons\typed-values\src\main\java\org\camunda\bpm\engine\variable\impl\type\AbstractValueTypeImpl.java
1
请完成以下Java代码
public class CommandContextInterceptor extends AbstractCommandInterceptor { private static final Logger log = LoggerFactory.getLogger(CommandContextInterceptor.class); protected CommandContextFactory commandContextFactory; protected ProcessEngineConfigurationImpl processEngineConfiguration; public Co...
Context.removeCommandContext(); Context.removeProcessEngineConfiguration(); Context.removeBpmnOverrideContext(); } } return null; } public CommandContextFactory getCommandContextFactory() { return commandContextFactory; } public void...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\interceptor\CommandContextInterceptor.java
1
请在Spring Boot框架中完成以下Java代码
public void validateEvent(@NonNull final PurchaseCandidateCreatedEvent event) { // nothing to do; the event was already validated on construction time } @Override public void handleEvent(@NonNull final PurchaseCandidateCreatedEvent event) { handlePurchaseCandidateEvent(event); } @Override protected Candid...
return CandidatesQuery.FALSE; } return CandidatesQuery.fromId(CandidateId.ofRepoId(event.getSupplyCandidateRepoId())); } @Override protected CandidateBuilder updateBuilderFromEvent( @NonNull final CandidateBuilder candidateBuilder, @NonNull final PurchaseCandidateEvent event) { final PurchaseCandidateC...
repos\metasfresh-new_dawn_uat\backend\de.metas.material\dispo-service\src\main\java\de\metas\material\dispo\service\event\handler\purchasecandidate\PurchaseCandidateCreatedHandler.java
2
请在Spring Boot框架中完成以下Java代码
public void transferGatesRepo(String fromId, String toId, int gatesToTransfer, RuntimeException exceptionToThrow) { AirlineGates fromAirlineGates = airlineGatesRepository.findById(fromId).orElse(null); AirlineGates toAirlineGates = airlineGatesRepository.findById(toId).orElse(null); toAirlineGates.gates += gatesT...
return template.save(airlineGates); } // This does not have the @Transactional annotation therefore is not executed in a transaction public AirlineGates findById(String id) { return template.findById(AirlineGates.class).one(id); } // This does not have the @Transactional annotation therefore is not executed in...
repos\spring-data-examples-main\couchbase\transactions\src\main\java\com\example\demo\AirlineGatesService.java
2
请完成以下Java代码
public RecordChangeLog getByRecord(@NonNull final TableRecordReference recordRef) { final String tableName = recordRef.getTableName(); final int recordId = recordRef.getRecord_ID(); final String singleKeyColumnName = InterfaceWrapperHelper.getKeyColumnName(tableName); return RecordChangeLogLoader.ofAdTableId...
final String tableName = recordRef.getTableName(); final int recordId = recordRef.getRecord_ID(); final int adTableId = recordRef.getAD_Table_ID(); final String singleKeyColumnName = InterfaceWrapperHelper.getKeyColumnName(tableName); return RecordChangeLogLoader.ofAdTableId(adTableId) .getSummaryByRecord...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\table\RecordChangeLogRepository.java
1
请完成以下Java代码
public Integer getPort() { return port; } public ClusterServerStateVO setPort(Integer port) { this.port = port; return this; } public List<ConnectionGroupVO> getConnection() { return connection; } public ClusterServerStateVO setConnection(List<ConnectionGroupVO...
this.embedded = embedded; return this; } @Override public String toString() { return "ClusterServerStateVO{" + "appName='" + appName + '\'' + ", transport=" + transport + ", flow=" + flow + ", namespaceSet=" + namespaceSet + ", por...
repos\spring-boot-student-master\spring-boot-student-sentinel-dashboard\src\main\java\com\alibaba\csp\sentinel\dashboard\domain\cluster\state\ClusterServerStateVO.java
1
请完成以下Java代码
protected final PickingConfig getPickingConfig() { return pickingConfigRepo.getPickingConfig(); } @Nullable protected final OrderId getCurrentlyPickingOrderId() { final I_M_ShipmentSchedule shipmentSchedule = getCurrentShipmentSchedule(); return OrderId.ofRepoIdOrNull(shipmentSchedule.getC_Order_ID()); } ...
final OrgId orgId = OrgId.ofRepoId(shipmentSchedule.getAD_Org_ID()); final ClientId clientId = ClientId.ofRepoId(shipmentSchedule.getAD_Client_ID()); final ProductId productId = ProductId.ofRepoId(shipmentSchedule.getM_Product_ID()); final AttributeSetInstanceId attributeSetInstanceId = AttributeSetInstanceId.ofR...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\picking\pickingslot\process\WEBUI_Picking_With_M_Source_HU_Base.java
1
请完成以下Java代码
protected void removeEntity(TenantId tenantId, DeviceProfile entity) { removeDeviceProfile(tenantId, entity); } }; private DeviceProfileInfo toDeviceProfileInfo(DeviceProfile profile) { return profile == null ? null : new DeviceProfileInfo(profile.getId(), pr...
} private String formatCertificateValue(String certificateValue) { try { CertificateFactory cf = CertificateFactory.getInstance("X.509"); ByteArrayInputStream inputStream = new ByteArrayInputStream(certificateValue.getBytes()); Certificate[] certificates = cf.generateCer...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\device\DeviceProfileServiceImpl.java
1
请在Spring Boot框架中完成以下Java代码
protected void await() { // has been waited, return immediately if (awaited.get()) { return; } if (!executorService.isShutdown()) { executorService.execute(() -> executeMutually(() -> { while (!awaited.get()) { if (logger.isIn...
if (logger.isInfoEnabled()) { logger.info(" [Dubbo] Current Spring Boot Application is about to shutdown..."); } condition.signalAll(); // @since 2.7.8 method shutdown() is combined into the method release() shutdown(); } ...
repos\dubbo-spring-boot-project-master\dubbo-spring-boot-compatible\autoconfigure\src\main\java\org\apache\dubbo\spring\boot\context\event\AwaitingNonWebApplicationListener.java
2
请完成以下Java代码
protected final String convertWithConvertMap(String sqlStatement) { try { sqlStatement = applyConvertMap(cleanUpStatement(sqlStatement)); } catch (RuntimeException e) { log.warn("Failed converting {}", sqlStatement, e); } return sqlStatement; } /** * Get convert map for use in sql convertion ...
* @param sqlStatement * @return converted statement */ protected abstract List<String> convertStatement (String sqlStatement); /** * Mark given keyword as native. * * Some prefixes/suffixes can be added, but this depends on implementation. * * @param keyword * @return keyword with some prefix/suffi...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\dbPort\Convert.java
1
请完成以下Java代码
public OrderCost getById(@NonNull final OrderCostId orderCostId) { return CollectionUtils.singleElement(getByIds(ImmutableSet.of(orderCostId))); } public List<OrderCost> getByIds(@NonNull final Collection<OrderCostId> orderCostIds) { return newSession().getByIds(orderCostIds); } public void saveAll(final Co...
} public void deleteByCreatedOrderLineId(@NonNull final OrderAndLineId createdOrderLineId) { final I_C_Order_Cost orderCostRecord = queryBL.createQueryBuilder(I_C_Order_Cost.class) .addEqualsFilter(I_C_Order_Cost.COLUMNNAME_C_Order_ID, createdOrderLineId.getOrderId()) .addEqualsFilter(I_C_Order_Cost.COLUMN...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\order\costs\OrderCostRepository.java
1
请完成以下Java代码
public class IncidentManager extends AbstractManager { @SuppressWarnings("unchecked") public List<IncidentEntity> findIncidentsByExecution(String id) { return getDbEntityManager().selectList("selectIncidentsByExecutionId", id); } @SuppressWarnings("unchecked") public List<IncidentEntity> findIncidentsBy...
@SuppressWarnings("unchecked") public List<Incident> findIncidentByConfigurationAndIncidentType(String configuration, String incidentType) { Map<String,Object> params = new HashMap<String, Object>(); params.put("configuration", configuration); params.put("incidentType", incidentType); return getDbEnti...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\IncidentManager.java
1
请完成以下Java代码
public class UserDO { /** * 用户编号 */ private Integer id; /** * 账号 */ private String username; public Integer getId() { return id; } public UserDO setId(Integer id) { this.id = id; return this; }
public String getUsername() { return username; } public UserDO setUsername(String username) { this.username = username; return this; } @Override public String toString() { return "UserDO{" + "id=" + id + ", username='" + username + '\...
repos\SpringBoot-Labs-master\lab-17\lab-17-dynamic-datasource-baomidou-01\src\main\java\cn\iocoder\springboot\lab17\dynamicdatasource\dataobject\UserDO.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; } @Override public org.compiere.model.I_AD_Column getAD_Column() { return get_ValueAsPO(COLUMNNAME_AD_Column_ID, org.c...
/** Get Dimensionsspezifikationszuordnung. @return Dimensionsspezifikationszuordnung */ @Override public int getDIM_Dimension_Spec_Assignment_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_DIM_Dimension_Spec_Assignment_ID); if (ii == null) return 0; return ii.intValue(); } @Override public de....
repos\metasfresh-new_dawn_uat\backend\de.metas.dimension\src\main\java-gen\de\metas\dimension\model\X_DIM_Dimension_Spec_Assignment.java
1
请完成以下Java代码
public class AddIdentityLinkCmd extends NeedsAppDefinitionCmd<Void> { private static final long serialVersionUID = 1L; public static final int IDENTITY_USER = 1; public static final int IDENTITY_GROUP = 2; protected String identityId; protected int identityIdType; protected String identityT...
@Override protected Void execute(CommandContext commandContext, AppDefinition appDefinition) { if (IDENTITY_USER == identityIdType) { CommandContextUtil.getIdentityLinkService().createScopeIdentityLink(appDefinition.getId(), null, ScopeTypes.APP, identityId, null, id...
repos\flowable-engine-main\modules\flowable-app-engine\src\main\java\org\flowable\app\engine\impl\cmd\AddIdentityLinkCmd.java
1
请完成以下Java代码
public String getVariantGroup() { return variantGroup; } @Override public void setVariantGroup(final String variantGroup) { this.variantGroup = variantGroup; } @Override public IHandlingUnitsInfo getHandlingUnitsInfo() { return handlingUnitsInfo; }
@Override public void setHandlingUnitsInfo(final IHandlingUnitsInfo handlingUnitsInfo) { this.handlingUnitsInfo = handlingUnitsInfo; } @Override public void setHandlingUnitsInfoProjected(final IHandlingUnitsInfo handlingUnitsInfo) { handlingUnitsInfoProjected = handlingUnitsInfo; } @Override public IHand...
repos\metasfresh-new_dawn_uat\backend\de.metas.materialtracking\src\main\java\de\metas\materialtracking\qualityBasedInvoicing\impl\QualityInspectionLine.java
1
请完成以下Java代码
public void setGraphType (String GraphType) { set_Value (COLUMNNAME_GraphType, GraphType); } /** Get Graph Type. @return Type of graph to be painted */ public String getGraphType () { return (String)get_Value(COLUMNNAME_GraphType); } /** Set Name. @param Name Alphanumeric identifier of the enti...
{ set_Value (COLUMNNAME_Name, Name); } /** Get Name. @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() { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_PrintGraph.java
1
请在Spring Boot框架中完成以下Java代码
public Builder getBuilder(String registrationId) { ClientRegistration.Builder builder = getBuilder(registrationId, ClientAuthenticationMethod.CLIENT_SECRET_POST, DEFAULT_REDIRECT_URL); builder.scope("public_profile", "email"); builder.authorizationUri("https://www.facebook.com/v2.8/dialog/oauth"); buil...
private static final String DEFAULT_REDIRECT_URL = "{baseUrl}/{action}/oauth2/code/{registrationId}"; protected final ClientRegistration.Builder getBuilder(String registrationId, ClientAuthenticationMethod method, String redirectUri) { ClientRegistration.Builder builder = ClientRegistration.withRegistrationId(re...
repos\spring-security-main\config\src\main\java\org\springframework\security\config\oauth2\client\CommonOAuth2Provider.java
2
请完成以下Java代码
public class BlueprintContextELResolver extends ELResolver { private BlueprintContainer blueprintContainer; public BlueprintContextELResolver() { } public BlueprintContextELResolver(BlueprintContainer blueprintContainer) { this.blueprintContainer = blueprintContainer; } public void ...
return null; } @Override public boolean isReadOnly(ELContext context, Object base, Object property) { return true; } @Override public void setValue(ELContext context, Object base, Object property, Object value) { } @Override public Class<?> getCommonPropertyType(ELContext ...
repos\flowable-engine-main\modules\flowable-osgi\src\main\java\org\flowable\osgi\blueprint\BlueprintContextELResolver.java
1
请在Spring Boot框架中完成以下Java代码
public Mono<Void> updateStatus(InstanceId id) { return this.repository.computeIfPresent(id, (key, instance) -> this.doUpdateStatus(instance)).then(); } protected Mono<Instance> doUpdateStatus(Instance instance) { if (!instance.isRegistered()) { return Mono.empty(); } log.debug("Update status for {}", ins...
if (httpStatus.is2xxSuccessful()) { return StatusInfo.ofUp(); } Map<String, Object> details = new LinkedHashMap<>(); details.put("status", httpStatus.value()); details.put("error", Objects.requireNonNull(HttpStatus.resolve(httpStatus.value())).getReasonPhrase()); if (body.get("details") instanceof Map) { ...
repos\spring-boot-admin-master\spring-boot-admin-server\src\main\java\de\codecentric\boot\admin\server\services\StatusUpdater.java
2
请完成以下Java代码
public void setAD_WF_Responsible_ID (final int AD_WF_Responsible_ID) { if (AD_WF_Responsible_ID < 1) set_ValueNoCheck (COLUMNNAME_AD_WF_Responsible_ID, null); else set_ValueNoCheck (COLUMNNAME_AD_WF_Responsible_ID, AD_WF_Responsible_ID); } @Override public int getAD_WF_Responsible_ID() { return get...
/** * ResponsibleType AD_Reference_ID=304 * Reference name: WF_Participant Type */ public static final int RESPONSIBLETYPE_AD_Reference_ID=304; /** Organisation = O */ public static final String RESPONSIBLETYPE_Organisation = "O"; /** Human = H */ public static final String RESPONSIBLETYPE_Human = "H"; /**...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_WF_Responsible.java
1
请完成以下Java代码
public int getId() { return id; } public void setId(int id) { this.id = id; } public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } public String getLastName() { return las...
} public void setLastName(String lastName) { this.lastName = lastName; } public double getSalary() { return salary; } public void setSalary(double salary) { this.salary = salary; } }
repos\tutorials-master\persistence-modules\spring-data-jpa-repo-4\src\main\java\com\baeldung\spring\data\noconverterfound\models\Employee.java
1
请完成以下Java代码
public void setProcessing (boolean Processing) { set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); } /** Get Process Now. @return Process Now */ public boolean isProcessing () { Object oo = get_Value(COLUMNNAME_Processing); if (oo != null) { if (oo instanceof Boolean) return ...
*/ public String getTextMsg () { return (String)get_Value(COLUMNNAME_TextMsg); } /** Set Topic Action. @param TopicAction Topic Action */ public void setTopicAction (String TopicAction) { set_Value (COLUMNNAME_TopicAction, TopicAction); } /** Get Topic Action. @return Topic Action */ public Stri...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_B_Topic.java
1
请完成以下Java代码
public List<String> filterUsingStringMatches() { List<String> list = List.of("123", "abc", "456def", "789", "xyz"); return list.stream() .filter(str -> str.matches("\\d+")) .toList(); } public List<String> filterUsingPatternCompile() { List<String> numbers = List.of...
public Map<Boolean, List<String>> filterUsingCollectorsPartitioningBy() { List<String> fruits = List.of("apple", "banana", "apricot", "berry"); Pattern pattern = Pattern.compile("^a.*"); return fruits.stream() .collect(Collectors.partitioningBy(pattern.asPredicate())); } pub...
repos\tutorials-master\core-java-modules\core-java-regex-3\src\main\java\com\baeldung\listregexfilter\RegexFilterExample.java
1
请在Spring Boot框架中完成以下Java代码
public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; TaskDTO other = (TaskDTO) obj; if (comments == null) { if (other.comments != null) return false; } else if (!comments.equals(other.comments)) re...
return false; } else if (!taskId.equals(other.taskId)) return false; if (userName == null) { if (other.userName != null) return false; } else if (!userName.equals(other.userName)) return false; return true; } /* (non-Javadoc) * @see java.lang.Object#toString() */ @Override public String to...
repos\spring-boot-microservices-master\task-webservice\src\main\java\com\rohitghatol\microservices\task\dtos\TaskDTO.java
2
请在Spring Boot框架中完成以下Java代码
public void update(ConcurrentMap<UUID, TbProtoQueueMsg<TransportProtos.ToRuleEngineMsg>> reprocessMap) { super.update(reprocessMap); initMaps(); } @Override protected void doOnSuccess(UUID id) { EntityId entityId = msgToEntityIdMap.get(id); if (entityId != null) { ...
} } private void initMaps() { msgToEntityIdMap.clear(); entityIdToListMap.clear(); for (IdMsgPair<TransportProtos.ToRuleEngineMsg> pair : orderedMsgList) { EntityId entityId = getEntityId(pair.msg.getValue()); if (entityId != null) { msgToEntityId...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\service\queue\processing\SequentialByEntityIdTbRuleEngineSubmitStrategy.java
2
请完成以下Java代码
public void addMouseListener(MouseListener l) { m_text.addMouseListener(l); } /** * This implementation always returns true. */ // task 05005 @Override public boolean isRealChange(final PropertyChangeEvent e) { return true; } @Override public final ICopyPasteSupportEditor getCopyPasteSupport() { ...
// * make sure that in the focus event which will come, the text is not selected again, else, if user is typing fast, the editor content will be only what he typed last. if(!m_text.hasFocus()) { skipNextSelectAllOnFocusGained = true; m_text.requestFocus(); if (m_text.getDocument().getLength() > 0...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\grid\ed\VNumber.java
1
请完成以下Java代码
public BigDecimal getQtyPromised() { return qtyPromised; } public void setQtyPromised(BigDecimal qtyPromised) { this.qtyPromised = qtyPromised; } public BigDecimal getQtyPromised_TU() { return qtyPromised_TU; } public void setQtyPromised_TU(BigDecimal qtyPromised_TU) { this.qtyPromised_TU = qtyPr...
public Builder setC_BPartner_ID(final int C_BPartner_ID) { this.C_BPartner_ID = C_BPartner_ID; return this; } public Builder setM_Product_ID(final int M_Product_ID) { this.M_Product_ID = M_Product_ID; return this; } public Builder setM_AttributeSetInstance_ID(final int M_AttributeSetInstance...
repos\metasfresh-new_dawn_uat\backend\de.metas.procurement.base\src\main\java\de\metas\procurement\base\balance\PMMBalanceChangeEvent.java
1
请在Spring Boot框架中完成以下Java代码
public class TrailingSlashRedirectFilter implements Filter { @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest httpRequest = (HttpServletRequest) request; String path = httpReq...
@Override public String getRequestURI() { return newPath; } @Override public StringBuffer getRequestURL() { StringBuffer url = new StringBuffer(); url.append(getScheme()).append("://").append(getServerName()).append(":").append(getServerPort()) ...
repos\tutorials-master\spring-boot-modules\spring-boot-3-url-matching\src\main\java\com\baeldung\sample\filters\TrailingSlashRedirectFilter.java
2
请完成以下Java代码
public void setOpenAmt (BigDecimal OpenAmt) { set_Value (COLUMNNAME_OpenAmt, OpenAmt); } /** Get Open Amount. @return Open item amount */ public BigDecimal getOpenAmt () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_OpenAmt); if (bd == null) return Env.ZERO; return bd; } /** Set Percent....
{ set_Value (COLUMNNAME_Percent, Percent); } /** Get Percent. @return Percentage */ public BigDecimal getPercent () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Percent); if (bd == null) return Env.ZERO; return bd; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_T_InvoiceGL.java
1
请完成以下Java代码
public AuthenticatorAssertionResponseBuilder authenticatorData(Bytes authenticatorData) { this.authenticatorData = authenticatorData; return this; } /** * Set the {@link #getSignature()} property * @param signature the signature * @return the {@link AuthenticatorAssertionResponseBuilder} */ pub...
} /** * Set the {@link #getClientDataJSON()} property * @param clientDataJSON the client data JSON * @return the {@link AuthenticatorAssertionResponseBuilder} */ public AuthenticatorAssertionResponseBuilder clientDataJSON(Bytes clientDataJSON) { this.clientDataJSON = clientDataJSON; return this; ...
repos\spring-security-main\webauthn\src\main\java\org\springframework\security\web\webauthn\api\AuthenticatorAssertionResponse.java
1
请完成以下Spring Boot application配置
logging.level.org.springframework.web=INFO logging.level.org.hibernate=ERROR logging.level.net.guides=DEBUG # spring.datasource.driver-class-name=com.mysql.jdbc.Driver spring.datasource.url=jdbc:mysql://localhost:3306/management?characterEncoding=UTF-8&serverTimezone=UTC spring.datasource.username=root spring.dat...
osilka2020 # #################### Hibernate Configuration #################### # spring.jpa.hibernate.ddl-auto=update spring.jpa.show-sql=true k
repos\SpringBoot-Projects-FullStack-master\Part-4 Spring Boot REST API\Aspect Oriented Programming\SpringAspectOrinentProgram\src\main\resources\application.properties
2
请完成以下Java代码
public void setIsWriteOff (boolean IsWriteOff) { set_Value (COLUMNNAME_IsWriteOff, Boolean.valueOf(IsWriteOff)); } /** Get Massenaustritt. @return Massenaustritt */ @Override public boolean isWriteOff () { Object oo = get_Value(COLUMNNAME_IsWriteOff); if (oo != null) { if (oo instanceof Boolean...
if (Record_ID < 0) set_ValueNoCheck (COLUMNNAME_Record_ID, null); else set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); } /** Get Datensatz-ID. @return Direct internal record ID */ @Override public int getRecord_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.dunning\src\main\java-gen\de\metas\dunning\model\X_C_Dunning_Candidate.java
1
请在Spring Boot框架中完成以下Java代码
public ApacheShiroProperties getShiro() { return this.apacheShiroProperties; } public SslProperties getSsl() { return this.ssl; } public String getUsername() { return this.username; } public void setUsername(String username) { this.username = username; } public static class ApacheShiroProperties { ...
private String className; public String getClassName() { return this.className; } public void setClassName(String className) { this.className = className; } } public static class SecurityPostProcessorProperties { private String className; public String getClassName() { return this.className;...
repos\spring-boot-data-geode-main\spring-geode-project\spring-geode-autoconfigure\src\main\java\org\springframework\geode\boot\autoconfigure\configuration\support\SecurityProperties.java
2
请完成以下Java代码
public class Order { private int orderId; private int itemId; private int quantity; private int customerId; public int getOrderId() { return orderId; } public void setOrderId(int orderId) { this.orderId = orderId; } public int getItemId() { return itemI...
public void setItemId(int itemId) { this.itemId = itemId; } public int getQuantity() { return quantity; } public void setQuantity(int quantity) { this.quantity = quantity; } public int getCustomerId() { return customerId; } public void setCustomerId(in...
repos\tutorials-master\spring-boot-modules\spring-boot-caching\src\main\java\com\baeldung\multiplecachemanager\entity\Order.java
1
请完成以下Java代码
private static String generateReport(String projectName, ProjectStats stats) throws IOException { ByteArrayOutputStream bOut = new ByteArrayOutputStream(); try (InputStream in = ProjectStatsBuildWrapper.class.getResourceAsStream(REPORT_TEMPLATE_PATH)) { byte[] buffer = new byte[1024]; ...
public static final class DescriptorImpl extends BuildWrapperDescriptor { @Override public boolean isApplicable(AbstractProject<?, ?> item) { return true; } @Nonnull @Override public String getDisplayName() { return "Construct project stats durin...
repos\tutorials-master\jenkins-modules\plugins\src\main\java\com\baeldung\jenkins\plugins\ProjectStatsBuildWrapper.java
1
请在Spring Boot框架中完成以下Java代码
public class FlexypoolDemoApplication { private static FlexyPoolDataSource<HikariDataSource> poolDataSource; public FlexypoolDemoApplication(FlexyPoolDataSource<HikariDataSource> poolDataSource) { FlexypoolDemoApplication.poolDataSource = poolDataSource; } public static List<Employee> getEmpl...
employee.setComm(rs.getInt("comm")); employee.setDeptno(rs.getInt("deptno")); employees.add(employee); } } return employees; } public static void main(String[] args) throws SQLException { SpringApplication.run(FlexypoolDemoApplication.class, a...
repos\tutorials-master\libraries-data-db-2\src\main\java\com\baeldung\libraries\flexypool\FlexypoolDemoApplication.java
2
请完成以下Java代码
public int getAD_Attachment_ID() { return get_ValueAsInt(COLUMNNAME_AD_Attachment_ID); } @Override public void setAD_AttachmentEntry_ID (final int AD_AttachmentEntry_ID) { if (AD_AttachmentEntry_ID < 1) set_ValueNoCheck (COLUMNNAME_AD_AttachmentEntry_ID, null); else set_ValueNoCheck (COLUMNNAME_AD_...
{ return get_ValueAsString(COLUMNNAME_Tags); } /** * Type AD_Reference_ID=540751 * Reference name: AD_AttachmentEntry_Type */ public static final int TYPE_AD_Reference_ID=540751; /** Data = D */ public static final String TYPE_Data = "D"; /** URL = U */ public static final String TYPE_URL = "U"; /** L...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_AttachmentEntry.java
1
请完成以下Java代码
public <T> T getDynAttribute(final @NonNull Object model, final String attributeName) { return POWrapper.getDynAttribute(model, attributeName); } @Override public Object setDynAttribute(final Object model, final String attributeName, final Object value) { return POWrapper.setDynAttribute(model, attributeName,...
// always strict, else other wrapper helpers will handle it! return POWrapper.getStrictPO(model); } @Override public Evaluatee getEvaluatee(final Object model) { return POWrapper.getStrictPO(model); } @Override public boolean isCopy(final Object model) {return POWrapper.getStrictPO(model).isCopiedFromOther...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\wrapper\POInterfaceWrapperHelper.java
1
请完成以下Java代码
public XMLGregorianCalendar getExpiryDate() { return expiryDate; } /** * Sets the value of the expiryDate property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setE...
return validationId; } /** * Sets the value of the validationId property. * * @param value * allowed object is * {@link String } * */ public void setValidationId(String value) { this.validationId = value; ...
repos\metasfresh-new_dawn_uat\backend\vertical-healthcare_ch\forum_datenaustausch_ch.invoice_440_request\src\main\java-xjc\de\metas\vertical\healthcare_ch\forum_datenaustausch_ch\invoice_440\request\PatientAddressType.java
1
请完成以下Java代码
public String getA_User6 () { return (String)get_Value(COLUMNNAME_A_User6); } /** Set A_User7. @param A_User7 A_User7 */ public void setA_User7 (String A_User7) { set_Value (COLUMNNAME_A_User7, A_User7); } /** Get A_User7. @return A_User7 */ public String getA_User7 () { return (String)get_Va...
public void setA_User9 (String A_User9) { set_Value (COLUMNNAME_A_User9, A_User9); } /** Get A_User9. @return A_User9 */ public String getA_User9 () { return (String)get_Value(COLUMNNAME_A_User9); } /** Set Text. @param Text Text */ public void setText (String Text) { set_Value (COLUMNNAME_Tex...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_A_Asset_Info_Oth.java
1
请完成以下Java代码
public class PlainAttributeSetInstanceAware implements IAttributeSetInstanceAware { @Getter @Nullable private final ProductId productId; @NonNull private final AttributeSetInstanceId attributeSetInstanceId; public static PlainAttributeSetInstanceAware forProductIdAndAttributeSetInstanceId( final ProductId produc...
@Override public int getM_Product_ID() { return ProductId.toRepoId(productId); } @Override public I_M_AttributeSetInstance getM_AttributeSetInstance() { return Services.get(IAttributeSetInstanceBL.class).getById(attributeSetInstanceId); } @Override public int getM_AttributeSetInstance_ID() { return at...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\org\adempiere\mm\attributes\asi_aware\PlainAttributeSetInstanceAware.java
1
请完成以下Java代码
public boolean isReadOnly () { Object oo = get_Value(COLUMNNAME_IsReadOnly); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Single Row Layout. @param IsSingleRow Default for toggle between Single- and ...
public void setName (String Name) { set_Value (COLUMNNAME_Name, Name); } /** Get Name. @return Alphanumeric identifier of the entity */ public String getName () { return (String)get_Value(COLUMNNAME_Name); } /** Get Record ID/ColumnName @return ID/ColumnName pair */ public KeyNam...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_UserDef_Tab.java
1
请完成以下Java代码
public class DocumentQueryOrderByList { public static DocumentQueryOrderByList ofList(@Nullable final List<DocumentQueryOrderBy> list) { return list != null && !list.isEmpty() ? new DocumentQueryOrderByList(list) : EMPTY; } public static Collector<DocumentQueryOrderBy, ?, DocumentQueryOrderByList> toDocu...
{ return list; } public boolean isEmpty() { return list.isEmpty(); } public static boolean equals(final DocumentQueryOrderByList list1, final DocumentQueryOrderByList list2) { return Objects.equals(list1, list2); } public Stream<DocumentQueryOrderBy> stream() { return list.stream(); } public void...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\model\DocumentQueryOrderByList.java
1
请在Spring Boot框架中完成以下Java代码
public int updateReceiverInfo(OmsReceiverInfoParam receiverInfoParam) { OmsOrder order = new OmsOrder(); order.setId(receiverInfoParam.getOrderId()); order.setReceiverName(receiverInfoParam.getReceiverName()); order.setReceiverPhone(receiverInfoParam.getReceiverPhone()); order.se...
} @Override public int updateNote(Long id, String note, Integer status) { OmsOrder order = new OmsOrder(); order.setId(id); order.setNote(note); order.setModifyTime(new Date()); int count = orderMapper.updateByPrimaryKeySelective(order); OmsOrderOperateHistory hi...
repos\mall-master\mall-admin\src\main\java\com\macro\mall\service\impl\OmsOrderServiceImpl.java
2
请在Spring Boot框架中完成以下Java代码
public class CoordinatorService implements ICoordinatorService { @Override public Partition inspectPartition(final Partition partition) { // TODO: consider to make the selects in an autocommit transaction so we don't accumulate millions of locks for large aprtitions int minLevel = Integer.MAX_VALUE; final Pl...
final Timestamp nextInspectionDate = findNextInspectionDate(partitioneWithTargetDLMLevel); return partitioneWithTargetDLMLevel.withNextInspectionDate(nextInspectionDate); } private Timestamp findNextInspectionDate(final Partition partition) { if (partition.getTargetDLMLevel() == IMigratorService.DLM_Level_LIVE)...
repos\metasfresh-new_dawn_uat\backend\de.metas.dlm\base\src\main\java\de\metas\dlm\coordinator\impl\CoordinatorService.java
2
请完成以下Java代码
public int getSalesRep_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_SalesRep_ID); if (ii == null) return 0; return ii.intValue(); } /** * Season AD_Reference_ID=540588 * Reference name: Season */ public static final int SEASON_AD_Reference_ID=540588; /** Winter = 4 */ public static final ...
*/ @Override public void setValidFrom (java.sql.Timestamp ValidFrom) { set_Value (COLUMNNAME_ValidFrom, ValidFrom); } /** Get Gültig ab. @return Gültig ab inklusiv (erster Tag) */ @Override public java.sql.Timestamp getValidFrom () { return (java.sql.Timestamp)get_Value(COLUMNNAME_ValidFrom); } /*...
repos\metasfresh-new_dawn_uat\backend\de.metas.materialtracking\src\main\java-gen\de\metas\materialtracking\model\X_M_Material_Tracking.java
1
请完成以下Java代码
private void createDeliveryDaysForLine(final ITourVersionRange tourVersionRange, final I_M_TourVersionLine tourVersionLine) { final Set<LocalDate> deliveryDates = tourVersionRange.generateDeliveryDates(); if (deliveryDates.isEmpty()) { loggable.addLog("Skip {} because no eligible delivery days were found in {...
countGeneratedDeliveryDays++; return deliveryDay; } private void inactivateDeliveryDaysInRange(final ITourVersionRange tourVersionRange, final String trxName) { final I_M_TourVersion tourVersion = tourVersionRange.getM_TourVersion(); final DateTruncQueryFilterModifier dateTruncModifier = DateTruncQueryFilte...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\tourplanning\api\impl\DeliveryDayGenerator.java
1
请完成以下Java代码
public class Flower { private String name; private Color color; private Integer petals; public Flower() { } public Flower(String name, Color color, Integer petals) { this.name = name; this.color = color; this.petals = petals; } public String getName() { ...
public void setName(String name) { this.name = name; } public Color getColor() { return color; } public void setColor(Color color) { this.color = color; } public Integer getPetals() { return petals; } public void setPetals(Integer petals) { thi...
repos\tutorials-master\jackson-modules\jackson-conversions-2\src\main\java\com\baeldung\jackson\xmlToJson\Flower.java
1
请完成以下Java代码
public class InAusLandAttributeDAO implements IInAusLandAttributeDAO { public static final String SYSCONFIG_InAusLandAttribute = "de.metas.fresh.In/AuslandAttribute"; @Override public AttributeId retrieveInAusLandAttributeId(final int adClientId, final int adOrgId) { final int inAusAttributeId = Services.get(IS...
@Override public I_M_Attribute retrieveInAusLandAttribute(final Properties ctx) { final int adClientId = Env.getAD_Client_ID(ctx); final int adOrgId = Env.getAD_Org_ID(ctx); final AttributeId inAusLandAttributeId = retrieveInAusLandAttributeId(adClientId, adOrgId); if (inAusLandAttributeId == null) { ret...
repos\metasfresh-new_dawn_uat\backend\de.metas.fresh\de.metas.fresh.base\src\main\java\org\adempiere\mm\attributes\api\impl\InAusLandAttributeDAO.java
1
请完成以下Java代码
public boolean canConvert(final String filterId) { return FTSDocumentFilterDescriptorsProviderFactory.FILTER_ID.equals(filterId); } @Nullable @Override public FilterSql getSql( @NonNull final DocumentFilter filter, @NonNull final SqlOptions sqlOpts, @NonNull final SqlDocumentFilterConverterContext cont...
// .append(" SELECT 1 FROM ").append(I_T_ES_FTS_Search_Result.Table_Name) // .append(" WHERE ") // .append(" ").append(I_T_ES_FTS_Search_Result.COLUMNNAME_Search_UUID).append("=?", ftsResult.getSearchId()) // .append(" AND ").append(ftsFilterDescriptor.getJoinColumns().buildJoinCondition(sqlOpts.getTableN...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\document\filter\provider\fullTextSearch\FTSDocumentFilterConverter.java
1
请完成以下Java代码
public CardTransaction1 getCardTx() { return cardTx; } /** * Sets the value of the cardTx property. * * @param value * allowed object is * {@link CardTransaction1 } * */ public void setCardTx(CardTransaction1 value) { this.cardTx = value; ...
this.addtlTxInf = value; } /** * Gets the value of the splmtryData property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is wh...
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\EntryTransaction4.java
1
请完成以下Java代码
protected PlanItemLifeCycleEvent createPlanItemLifeCycleEvent() { return new PlanItemLifeCycleEvent(planItemInstanceEntity, getLifeCycleTransition()); } public abstract String getNewState(); public abstract String getLifeCycleTransition(); /** * Overwrite this default implemented hook, i...
stringBuilder.append(", PlanItemInstance id: "); stringBuilder.append(planItemInstanceEntity.getId()); stringBuilder.append("), "); String currentState = planItemInstanceEntity.getState(); String newState = getNewState(); if (!Objects.equals(currentState, newState)) { ...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\agenda\operation\AbstractChangePlanItemInstanceStateOperation.java
1
请完成以下Java代码
protected Server createJettyServer(ServletHttpHandlerAdapter servlet) { int port = Math.max(getPort(), 0); InetSocketAddress address = new InetSocketAddress(getAddress(), port); Server server = new Server(getThreadPool()); if (this.resourceFactory == null) { server.addConnector(createConnector(address, serve...
if (Ssl.isEnabled(getSsl())) { customizeSsl(server, address); } for (JettyServerCustomizer customizer : getServerCustomizers()) { customizer.customize(server); } if (this.isUseForwardHeaders()) { new ForwardHeadersCustomizer().customize(server); } if (getShutdown() == Shutdown.GRACEFUL) { Statis...
repos\spring-boot-4.0.1\module\spring-boot-jetty\src\main\java\org\springframework\boot\jetty\reactive\JettyReactiveWebServerFactory.java
1
请完成以下Java代码
public class AddRequestHeadersIfNotPresentGatewayFilterFactory extends AbstractGatewayFilterFactory<KeyValueConfig> { @Override public GatewayFilter apply(KeyValueConfig config) { return new GatewayFilter() { @Override public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) { Serve...
public String toString() { ToStringCreator toStringCreator = filterToStringCreator( AddRequestHeadersIfNotPresentGatewayFilterFactory.this); for (KeyValue keyValue : config.getKeyValues()) { toStringCreator.append(keyValue.getKey(), keyValue.getValue()); } return toStringCreator.toString(); ...
repos\spring-cloud-gateway-main\spring-cloud-gateway-server-webflux\src\main\java\org\springframework\cloud\gateway\filter\factory\AddRequestHeadersIfNotPresentGatewayFilterFactory.java
1
请完成以下Java代码
private void init() { setOpaque(false); // transparent } /************************************************************************** * Set Background - ignored by UI - * @param bg ignored */ @Override public void setBackground (Color bg) { if (bg.equals(getBackground())) return; super.setBackg...
* @param level */ public void setTabLevel (int level) { if (level == 0) putClientProperty(AdempiereLookAndFeel.TABLEVEL, null); else putClientProperty(AdempiereLookAndFeel.TABLEVEL, new Integer(level)); } // setTabLevel /** * Get Tab Hierarchy Level * @return Tab Level */ public int getTab...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\swing\CPanel.java
1
请完成以下Java代码
public class EventSubscriptionDto { private String id; private String eventType; private String eventName; private String executionId; private String processInstanceId; private String activityId; private Date createdDate; private String tenantId; public String getId() { return id; } public S...
return tenantId; } public static EventSubscriptionDto fromEventSubscription(EventSubscription eventSubscription) { EventSubscriptionDto dto = new EventSubscriptionDto(); dto.id = eventSubscription.getId(); dto.eventType = eventSubscription.getEventType(); dto.eventName = eventSubscription.getEventN...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\runtime\EventSubscriptionDto.java
1
请完成以下Java代码
protected ProcessPreconditionsResolution checkPreconditionsApplicable() { if (getSelectedRowIds().isEmpty()) { return ProcessPreconditionsResolution.rejectBecauseNoSelection().toInternal(); } return ProcessPreconditionsResolution.accept(); } @Override public @Nullable Object getParameterDefaultValue(fi...
pickingJobScheduleService.createOrUpdate(CreateOrUpdatePickingJobSchedulesRequest.builder() .shipmentScheduleAndJobScheduleIds(ids) .workplaceId(workplaceId) .qtyToPickBD(qtyToPickBD) .build()); return MSG_OK; } @Override protected void postProcess(final boolean success) { if (!success) {retur...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\pickingJobSchedule\process\PickingJobScheduleView_Schedule.java
1
请在Spring Boot框架中完成以下Java代码
public byte[] getVariableData(@ApiParam(name = "processInstanceId") @PathVariable("processInstanceId") String processInstanceId, @ApiParam(name = "variableName") @PathVariable("variableName") String variableName, HttpServletResponse response) { try { byte[] result = null; ...
if (processObject == null) { throw new FlowableObjectNotFoundException("Historic process instance '" + processInstanceId + "' could not be found.", HistoricProcessInstanceEntity.class); } if (restApiInterceptor != null) { restApiInterceptor.accessHistoryProcessInfoById(p...
repos\flowable-engine-main\modules\flowable-rest\src\main\java\org\flowable\rest\service\api\history\HistoricProcessInstanceVariableDataResource.java
2
请完成以下Java代码
public void invokeHandlerAndLog(@NonNull final InvokeHandlerAndLogRequest request) { if (request.isOnlyIfNotAlreadyProcessed() && wasEventProcessedByHandler(request.getHandlerClass())) { return; } try (final IAutoCloseable loggable = EventLogLoggable.createAndRegisterThreadLocal(request.getHandlerClass...
{ // e.printStackTrace(); newErrorLogEntry( request.getHandlerClass(), e) .createAndStore(); } } private boolean wasEventProcessedByHandler(@NonNull final Class<?> handlerClass) { final EventLogEntryCollector eventLogCollector = EventLogEntryCollector.getThreadLocal(); final Collection<Stri...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\event\log\EventLogUserService.java
1
请完成以下Java代码
public class WEBUI_M_ReceiptSchedule_AttachPhoto extends ReceiptScheduleBasedProcess { @Override public ProcessPreconditionsResolution checkPreconditionsApplicable(final IProcessPreconditionsContext context) { // Allow only single selection if (context.isNoSelection()) { return ProcessPreconditionsResolutio...
{ final I_M_ReceiptSchedule receiptSchedule = getRecord(I_M_ReceiptSchedule.class); final MImage adImage = MImage.get(getCtx(), p_AD_Image_ID); if (adImage == null || adImage.getAD_Image_ID() <= 0) { throw new EntityNotFoundException("@NotFound@ @AD_Image_ID@: " + p_AD_Image_ID); } final String name = ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\handlingunits\process\WEBUI_M_ReceiptSchedule_AttachPhoto.java
1
请完成以下Java代码
public I_C_Order reverseOrder(@NonNull final OrderId orderId) { if (orderDAO.hasDeliveredItems(orderId)) { throw new AdempiereException(MSG_ERR_ORDER_HAS_DELIVERED_ITEMS, orderId); } final I_C_Order documentRecord = orderDAO.getById(orderId); documentBL.processEx(documentRecord, IDocument.ACTION_Reverse...
.documentNo(orderIdentifier.asDoc()) .build(); return orderDAO.retrieveByOrderCriteria(getOrderByDocQuery) .map(I_C_Order::getC_Order_ID) .map(OrderId::ofRepoId); case EXTERNAL_ID: final OrderQuery getOrderByExternalId = queryBuilder .externalId(orderIdentifier.asExternalId()) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business.rest-api-impl\src\main\java\de\metas\rest_api\v2\order\sales\OrderService.java
1