instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
private static String readLongMessage() throws IOException { String data = ""; //update complete location of large message here data = new String(Files.readAllBytes(Paths.get("RandomTextFile.txt"))); return data; } @Bean public LongMessageProducer longMessageProducer() { ...
private String topicName; public void sendMessage(String message) { kafkaTemplate.send(topicName, message); System.out.println("Long message Sent"); } } public static class LongMessageListener { @KafkaListener(topics = "${long.message.topic.name}", groupId = "...
repos\tutorials-master\spring-kafka-4\src\main\java\com\baeldung\spring\kafka\KafkaApplicationLongMessage.java
1
请完成以下Java代码
public String getId() { return id; } public void setId(String id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getDescription() { return description; } public void setDescription(String descri...
public void setRemovalTime(Date removalTime) { this.removalTime = removalTime; } public String getRootProcessInstanceId() { return rootProcessInstanceId; } public void setRootProcessInstanceId(String rootProcessInstanceId) { this.rootProcessInstanceId = rootProcessInstanceId; } public static ...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\task\AttachmentDto.java
1
请完成以下Java代码
public class Jackson2XmlMessageConverter extends AbstractJackson2MessageConverter { /** * Construct with an internal {@link XmlMapper} instance * and trusted packed to all ({@code *}). */ public Jackson2XmlMessageConverter() { this("*"); } /** * Construct with an internal {@link XmlMapper} instance. *...
* Construct with the provided {@link XmlMapper} instance * and trusted packed to all ({@code *}). * @param xmlMapper the {@link XmlMapper} to use. */ public Jackson2XmlMessageConverter(XmlMapper xmlMapper) { this(xmlMapper, "*"); } /** * Construct with the provided {@link XmlMapper} instance. * @param x...
repos\spring-amqp-main\spring-amqp\src\main\java\org\springframework\amqp\support\converter\Jackson2XmlMessageConverter.java
1
请完成以下Java代码
public String getId() { return id; } public String getName() { return name; } public FormType getType() { return type; } public String getValue() { return value; }
public boolean isRequired() { return isRequired; } public boolean isReadable() { return isReadable; } public void setValue(String value) { this.value = value; } public boolean isWritable() { return isWritable; } }
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\form\FormPropertyImpl.java
1
请在Spring Boot框架中完成以下Java代码
public abstract class AbstractConnectionFactoryConfigurer<T extends AbstractConnectionFactory> { private final RabbitProperties rabbitProperties; private @Nullable ConnectionNameStrategy connectionNameStrategy; private final RabbitConnectionDetails connectionDetails; /** * Creates a new configurer that will c...
* Configures the given {@code connectionFactory} with sensible defaults. * @param connectionFactory connection factory to configure */ public final void configure(T connectionFactory) { Assert.notNull(connectionFactory, "'connectionFactory' must not be null"); PropertyMapper map = PropertyMapper.get(); Strin...
repos\spring-boot-4.0.1\module\spring-boot-amqp\src\main\java\org\springframework\boot\amqp\autoconfigure\AbstractConnectionFactoryConfigurer.java
2
请完成以下Java代码
private JsonHU toNewJsonHU(final @NonNull HUQRCode huQRCode) { return JsonHU.builder() .id(null) .huStatusCaption("-") .displayName(huQRCode.getPackingInfo().getCaption()) .qrCode(HandlingUnitsService.toJsonHUQRCode(huQRCode)) .warehouseValue(null) .locatorValue(null) .product(huQRCode.ge...
return JsonHUAttribute.builder() .code(attributeCode.getCode()) .caption(attributeDAO.getAttributeByCode(attributeCode).getDisplayName().translate(adLanguage)) .value(huQRCodeAttribute.getValueRendered()) .build(); } private static JsonHUType toJsonHUType(@NonNull final HUQRCodeUnitType huUnitType) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.mobileui\src\main\java\de\metas\handlingunits\rest_api\HandlingUnitsRestController.java
1
请完成以下Java代码
public abstract class FindPanelContainer { protected final FindPanel findPanel; FindPanelContainer(final FindPanelBuilder builder) { super(); findPanel = builder.buildFindPanel(); final int findPanelHeight = AdempierePLAF.getInt(FindPanelUI.KEY_StandardWindow_Height, FindPanelUI.DEFAULT_StandardWindow_Hei...
/** @return swing component */ public abstract JComponent getComponent(); public abstract boolean isExpanded(); public abstract void setExpanded(final boolean expanded); public abstract void runOnExpandedStateChange(final Runnable runnable); public abstract boolean isFocusable(); public abstract void request...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\apps\search\FindPanelContainer.java
1
请完成以下Java代码
public Optional<AdArchive> getLastArchive( @NonNull final TableRecordReference reference) { return getLastArchiveRecord(reference).map(this::toAdArchive); } @Override public Optional<I_AD_Archive> getLastArchiveRecord( @NonNull final TableRecordReference reference) { final IArchiveDAO archiveDAO = Servi...
@NonNull final TableRecordReference reference) { return getLastArchive(reference).map(AdArchive::getArchiveDataAsResource); } @Override public void updatePrintedRecords(final ImmutableSet<ArchiveId> ids, final UserId userId) { archiveDAO.updatePrintedRecords(ids, userId); } private AdArchive toAdArchive(fi...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\archive\api\impl\ArchiveBL.java
1
请完成以下Java代码
public class User { /** * 主键 */ @Id private Long id; /** * 用户名 */ private String username; /** * 密码 */ private String password; /** * 昵称 */ private String nickname; /** * 手机 */ private String phone; /** * 邮箱 ...
/** * 性别,男-1,女-2 */ private Integer sex; /** * 状态,启用-1,禁用-0 */ private Integer status; /** * 创建时间 */ @Column(name = "create_time") private Long createTime; /** * 更新时间 */ @Column(name = "update_time") private Long updateTime; }
repos\spring-boot-demo-master\demo-rbac-security\src\main\java\com\xkcoding\rbac\security\model\User.java
1
请在Spring Boot框架中完成以下Java代码
public Result<?> smsCheckCaptcha(@RequestBody SysLoginModel sysLoginModel, HttpServletRequest request){ String captcha = sysLoginModel.getCaptcha(); String checkKey = sysLoginModel.getCheckKey(); if(captcha==null){ return Result.error("验证码无效"); } String lowerCaseCaptcha = captcha.toLowerCase(); String re...
// 判断是否启用登录验证码校验 if (jeecgBaseConfig.getFirewall() != null && Boolean.FALSE.equals(jeecgBaseConfig.getFirewall().getEnableLoginCaptcha())) { log.warn("关闭了登录验证码校验,跳过验证码校验!"); return "LoginWithoutVerifyCode"; } String captcha = sysLoginModel.getCaptcha(); if (captcha == null) { re...
repos\JeecgBoot-main\jeecg-boot\jeecg-module-system\jeecg-system-biz\src\main\java\org\jeecg\modules\system\controller\LoginController.java
2
请完成以下Java代码
public void setHeaderValue(HeaderValue headerValue) { Assert.notNull(headerValue, "headerValue cannot be null"); this.headerValue = headerValue; } /** * The value of the x-xss-protection header. One of: "0", "1", "1; mode=block" * * @author Daniel Garnier-Moiroux * @since 5.8 */ public enum HeaderValu...
return null; } @Override public String toString() { return this.value; } } @Override public String toString() { return getClass().getName() + " [headerValue=" + this.headerValue + "]"; } }
repos\spring-security-main\web\src\main\java\org\springframework\security\web\header\writers\XXssProtectionHeaderWriter.java
1
请完成以下Java代码
public void addToCurrentQtyAndCumulate(@NonNull final CostAmountAndQty amtAndQty) { addToCurrentQtyAndCumulate(amtAndQty.getQty(), amtAndQty.getAmt()); } public void setCostPrice(@NonNull final CostPrice costPrice) { this.costPrice = costPrice; } public void setOwnCostPrice(@NonNull final CostAmount ownCost...
public void clearOwnCostPrice() { setCostPrice(getCostPrice().withZeroOwnCostPrice()); } public void addToOwnCostPrice(@NonNull final CostAmount ownCostPriceToAdd) { setCostPrice(getCostPrice().addToOwnCostPrice(ownCostPriceToAdd)); } public void clearComponentsCostPrice() { setCostPrice(getCostPrice().w...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\costing\CurrentCost.java
1
请完成以下Spring Boot application配置
server: port: 8081 #logging: # level: ## com.base.voice.mapper: debug # com.base.voice.autodialer.mapper: debug weixin: app-id: wxd8547a419105c817 app-secret: c16f43f4e602ee1ddfcc64d01f766fbe token: aliang media: voice: template: D:\weixinpath\template\ path: D:\weixinpath\voice\ ...
1/robot/callNotify # 最好为插卡数-1 maximumcall: 2 is-need-upload-file: false conversion: # v1: # voice-url: http://192.168.1.31:9840/v1/speech/chart # text-url: http://192.168.1.31:9840/v1/text/chart v2: voice-url: http://192.168.216.216:9841/v2/speech/chat text-url: http://192.168.216....
repos\spring-boot-quick-master\quick-wx-public\src\main\resources\application.yml
2
请完成以下Java代码
protected String doIt() { final PlainContextAware localCtx = PlainContextAware.newWithThreadInheritedTrx(getCtx()); final Set<I_M_DiscountSchemaBreak_V> breaks = getProcessInfo().getSelectedIncludedRecords() .stream() .map(recordRef -> recordRef.getModel(localCtx, I_M_DiscountSchemaBreak_V.class)) .c...
final ICompositeQueryFilter<I_M_DiscountSchemaBreak> queryFilter = Services.get(IQueryBL.class) .createCompositeQueryFilter(I_M_DiscountSchemaBreak.class) .setJoinAnd() .addInArrayFilter(I_M_DiscountSchemaBreak.COLUMNNAME_M_DiscountSchema_ID, pricingConditions) .addInArrayFilter(I_M_DiscountSchemaBreak....
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\pricing\process\M_DiscountSchemaBreak_CopyToSelectedSchema_Product.java
1
请完成以下Java代码
public int getVersion() { return version; } @Override public void setVersion(int version) { this.version = version; } @Override public String getName() { return name; } @Override public void setName(String name) { this.name = name; } @Overr...
@Override public void setCategory(String category) { this.category = category; } @Override public void setDeploymentId(String deploymentId) { this.deploymentId = deploymentId; } @Override public Date getCreateTime() { return createTime; } @Override ...
repos\flowable-engine-main\modules\flowable-event-registry\src\main\java\org\flowable\eventregistry\impl\persistence\entity\ChannelDefinitionEntityImpl.java
1
请完成以下Java代码
public Map<String, Object> getVariables() { return variables; } public Map<String, Object> getTransientVariables() { return transientVariables; } public Map<String, Object> getStartFormVariables() { return startFormVariables; } public String getOutcome() { retur...
} public FormInfo getExtraFormInfo() { return extraFormInfo; } public String getExtraFormOutcome() { return extraFormOutcome; } public boolean isFallbackToDefaultTenant() { return fallbackToDefaultTenant; } }
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\runtime\ProcessInstanceBuilderImpl.java
1
请在Spring Boot框架中完成以下Java代码
protected ProcessDefinitionEntity findLatestProcessDefinition(ProcessDefinition processDefinition) { ProcessDefinitionEntity latestProcessDefinition = null; if (processDefinition.getTenantId() != null && !ProcessEngineConfiguration.NO_TENANT_ID.equals(processDefinition.getTenantId())) { late...
query.processDefinitionVersionLowerThan(processDefinitionToBeRemoved.getVersion()); } query.orderByProcessDefinitionVersion().desc(); query.setFirstResult(0); query.setMaxResults(1); List<ProcessDefinition> processDefinitions = getProcessDefinitionEntityManager().findProcessDefi...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\repository\DeploymentProcessDefinitionDeletionManagerImpl.java
2
请完成以下Java代码
protected Class<? extends BaseElement> getHandledType() { return SubProcess.class; } @Override protected void executeParse(BpmnParse bpmnParse, SubProcess subProcess) { ActivityImpl activity = createActivityOnScope(bpmnParse, subProcess, BpmnXMLConstants.ELEMENT_SUBPROCESS, bpmnParse.getCu...
bpmnParse.processFlowElements(subProcess.getFlowElements()); processArtifacts(bpmnParse, subProcess.getArtifacts(), activity); // no data objects for event subprocesses if (!(subProcess instanceof EventSubProcess)) { // parse out any data objects from the template in order to set up...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\bpmn\parser\handler\SubProcessParseHandler.java
1
请完成以下Java代码
public static String getEmailAddressStringOrNull(@Nullable final ContactAddress contactAddress) { return cast(contactAddress).map(EmailAddress::getValue).orElse(null); } public static DeactivatedOnRemotePlatform getDeactivatedOnRemotePlatform(@Nullable final ContactAddress contactAddress) { final EmailAddress ...
@NonNull final DeactivatedOnRemotePlatform deactivatedOnRemotePlatform) { final String valueNorm = StringUtils.trimBlankToNull(value); if (valueNorm == null) { throw new AdempiereException("blank email address is not allowed"); } this.value = valueNorm; this.deactivatedOnRemotePlatform = deactivatedOnR...
repos\metasfresh-new_dawn_uat\backend\de.metas.marketing\base\src\main\java\de\metas\marketing\base\model\EmailAddress.java
1
请在Spring Boot框架中完成以下Java代码
private I_AD_WF_Node createWorkflowNode(@NonNull final I_AD_Workflow workflow, @NonNull final String name, final String action, final String docAction) { final I_AD_WF_Node workflowNode = InterfaceWrapperHelper.newInstance(I_AD_WF_Node.class); // Specific details workflowNode.setAD_Workflow_ID(workflow.getAD_Wo...
} private I_AD_WF_NodeNext linkNextNode(@NonNull final I_AD_WF_Node workflowSourceNode, @NonNull final I_AD_WF_Node workflowTargetNode, int seqNo) { final I_AD_WF_NodeNext workflowNodeNext = InterfaceWrapperHelper.newInstance(I_AD_WF_NodeNext.class); // Specific Details workflowNodeNext.setAD_WF_Node_ID(workf...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\workflow\service\impl\ADWorkflowBL.java
2
请完成以下Java代码
private Iterator<I_C_Payment> retrievePayments() { final Stopwatch stopwatch = Stopwatch.createStarted(); // // Create the selection which we might need to update final IQueryBuilder<I_C_Payment> queryBuilder = queryBL .createQueryBuilder(I_C_Payment.class) .addOnlyActiveRecordsFilter() .addEquals...
queryBuilder.addCompareFilter(I_C_Payment.COLUMNNAME_DateTrx, Operator.LESS_OR_EQUAL, p_PaymentDateTo); } final IQuery<I_C_Payment> query = queryBuilder .orderBy(I_C_Payment.COLUMNNAME_C_Payment_ID) .create(); addLog("Using query: " + query); final int count = query.count(); if (count > 0) { fi...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\payment\process\C_Payment_MassWriteOff.java
1
请完成以下Java代码
private static BPartnerId normalizeValueKey(@Nullable final Object valueKey) { if (valueKey == null) { return null; } else if (valueKey instanceof Number) { final int valueInt = ((Number)valueKey).intValue(); return BPartnerId.ofRepoIdOrNull(valueInt); } else { final int valueInt = NumberUt...
return ImmutableList.<KeyNamePair>builder() .add(staticNullValue()) .addAll(vendors) .build(); } private QueryLimit getMaxVendors() { final int maxVendorsInt = sysconfigBL.getIntValue(SYSCONFIG_MAX_VENDORS, DEFAULT_MAX_VENDORS); return QueryLimit.ofInt(maxVendorsInt); } private ImmutableList<KeyN...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\org\adempiere\mm\attributes\spi\impl\HUVendorBPartnerAttributeValuesProvider.java
1
请完成以下Java代码
private Optional<IExternalSystemChildConfig> getScriptedImportConversionConfigByParentId(@NonNull final ExternalSystemParentConfigId id) { return queryBL.createQueryBuilder(I_ExternalSystem_Config_ScriptedImportConversion.class) .addOnlyActiveRecordsFilter() .addEqualsFilter(I_ExternalSystem_Config_ScriptedI...
.addOnlyActiveRecordsFilter() .create() .stream() .map(this::getExternalSystemParentConfig) .collect(ImmutableList.toImmutableList()); } @NonNull private ImmutableList<ExternalSystemParentConfig> getAllByScriptedImportConversion() { return queryBL.createQueryBuilder(I_ExternalSystem_Config_Script...
repos\metasfresh-new_dawn_uat\backend\de.metas.externalsystem\src\main\java\de\metas\externalsystem\ExternalSystemConfigRepo.java
1
请完成以下Java代码
private ImmutableMap<AcctSchemaId, BPartnerVendorAccounts> retrieveVendorAccounts(final BPartnerId bpartnerId) { return queryBL.createQueryBuilder(I_C_BP_Vendor_Acct.class) .addOnlyActiveRecordsFilter() .addEqualsFilter(I_C_BP_Vendor_Acct.COLUMNNAME_C_BPartner_ID, bpartnerId) .create() .stream() ...
.addEqualsFilter(I_C_BP_Customer_Acct.COLUMNNAME_C_BPartner_ID, bpartnerId) .create() .stream() .map(BPartnerAccountsRepository::fromRecord) .collect(ImmutableMap.toImmutableMap(BPartnerCustomerAccounts::getAcctSchemaId, accts -> accts)); } @NonNull private static BPartnerCustomerAccounts fromRecord...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java\de\metas\acct\accounts\BPartnerAccountsRepository.java
1
请完成以下Java代码
public JsonResponseBPartner getJsonBPartnerById(@Nullable final String orgCode, @NonNull final BPartnerId bpartnerId) { final ResponseEntity<JsonResponseComposite> bpartner = bpartnerRestController.retrieveBPartner( orgCode, Integer.toString(bpartnerId.getRepoId())); return Optional.ofNullable(bpartner.ge...
{ final ResponseEntity<JsonResponseContact> contact = bpartnerRestController.retrieveBPartnerContact( orgCode, Integer.toString(bpartnerContactId.getBpartnerId().getRepoId()), Integer.toString(bpartnerContactId.getRepoId())); return Optional.ofNullable(contact.getBody()) .orElseThrow(() -> new Adem...
repos\metasfresh-new_dawn_uat\backend\de.metas.business.rest-api-impl\src\main\java\de\metas\rest_api\v2\ordercandidates\impl\BPartnerEndpointAdapter.java
1
请完成以下Java代码
private void destroyEventBus(@NonNull final EventBus eventBus) { eventBus.destroy(); } @Override public void registerGlobalEventListener( @NonNull final Topic topic, @NonNull final IEventListener listener) { // Register the listener to EventBus getEventBus(topic).subscribe(listener); // Add the lis...
/** * @return set of available topics on which user can subscribe for UI notifications */ private Set<Topic> getAvailableUserNotificationsTopics() { return ImmutableSet.copyOf(availableUserNotificationsTopic); } @Override public void registerUserNotificationsListener(@NonNull final IEventListener listener) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\event\impl\EventBusFactory.java
1
请在Spring Boot框架中完成以下Java代码
DecodingConfigurer inflate(boolean inflate) { this.inflate = inflate; return this; } DecodingConfigurer requireBase64(boolean requireBase64) { this.requireBase64 = requireBase64; return this; } String decode() { if (this.requireBase64) { BASE_64_CHECKER.checkAcceptable(this.encoded); } ...
int lastGoodCharVal = -1; // count number of characters from Base64 alphabet for (int i = 0; i < s.length(); i++) { int val = values[0xff & s.charAt(i)]; if (val != -1) { lastGoodCharVal = val; goodChars++; } } // in cases of an incomplete final chunk, ensure the unused bits...
repos\spring-security-main\saml2\saml2-service-provider\src\main\java\org\springframework\security\saml2\internal\Saml2Utils.java
2
请完成以下Java代码
@Override protected String doIt() throws Exception { final OrderId orderId = OrderId.ofRepoId(getRecord_ID()); final I_C_Order order = orderDAO.getById(orderId, de.metas.vertical.creditscore.creditpass.model.extended.I_C_Order.class); final BPartnerId bPartnerId = BPartnerId.ofRepoId(order.getC_BPartner_ID()); ...
if (context.isNoSelection()) { return ProcessPreconditionsResolution.rejectBecauseNoSelection(); } if (!context.isSingleSelection()) { return ProcessPreconditionsResolution.rejectBecauseNotSingleSelection(); } final OrderId orderId = OrderId.ofRepoId(context.getSingleSelectedRecordId()); final I_C...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.creditscore\creditpass\src\main\java\de\metas\vertical\creditscore\creditpass\process\CS_Creditpass_TransactionFrom_C_Order.java
1
请完成以下Java代码
class TaskEvenOdd implements Runnable { private final int max; private final Printer print; private final boolean isEvenNumber; TaskEvenOdd(Printer print, int max, boolean isEvenNumber) { this.print = print; this.max = max; this.isEvenNumber = isEvenNumber; } @Override ...
isOdd = false; notify(); } synchronized void printOdd(int number) { while (isOdd) { try { wait(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } } System.out.println(Thread.currentThrea...
repos\tutorials-master\core-java-modules\core-java-concurrency-advanced-2\src\main\java\com\baeldung\concurrent\evenandodd\PrintEvenOddWaitNotify.java
1
请完成以下Java代码
public CustomExceptionObject handleException3Json(CustomException3 ex) { return new CustomExceptionObject() .setMessage("custom exception 3: " + ex.getMessage()); } @ResponseStatus(HttpStatus.BAD_REQUEST) @ExceptionHandler( produces = MediaType.TEXT_PLAIN_VALUE ) public String h...
public ResponseEntity<CustomExceptionObject> handleException45(Exception ex) { return ResponseEntity .badRequest() .body( new CustomExceptionObject() .setMessage( "custom exception 4/5: " + ex.getMessage()) ); } ...
repos\tutorials-master\spring-web-modules\spring-boot-rest\src\main\java\com\baeldung\web\error\MyGlobalExceptionHandler.java
1
请在Spring Boot框架中完成以下Java代码
private VcapPropertySource toVcapPropertySource(Environment environment) { return VcapPropertySource.from(environment); } } static class EnableSecurityCondition extends AllNestedConditions { EnableSecurityCondition() { super(ConfigurationPhase.PARSE_CONFIGURATION); } @ConditionalOnProperty(name = CLO...
// credentials stored in the Environment. static class SpringDataGemFirePropertiesPropertySource extends PropertySource<Properties> { private static final String SPRING_DATA_GEMFIRE_PROPERTIES_PROPERTY_SOURCE_NAME = "spring.data.gemfire.properties"; SpringDataGemFirePropertiesPropertySource(Properties springD...
repos\spring-boot-data-geode-main\spring-geode-project\spring-geode-autoconfigure\src\main\java\org\springframework\geode\boot\autoconfigure\ClientSecurityAutoConfiguration.java
2
请完成以下Java代码
public final String getJMXName() { return jmxName; } @Override public void setDebugTrxCloseStacktrace(boolean debugTrxCloseStacktrace) { getTrxManager().setDebugTrxCloseStacktrace(debugTrxCloseStacktrace); } @Override public boolean isDebugTrxCloseStacktrace() { return getTrxManager().isDebugTrxCloseS...
@Override public void rollbackAndCloseActiveTrx(final String trxName) { final ITrxManager trxManager = getTrxManager(); if (trxManager.isNull(trxName)) { throw new IllegalArgumentException("Only not null transactions are allowed: " + trxName); } final ITrx trx = trxManager.getTrx(trxName); if (trxMana...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\trx\jmx\JMXTrxManager.java
1
请完成以下Java代码
public final C_AllocationLine_Builder writeOffAmt(final BigDecimal writeOffAmt) { allocLine.setWriteOffAmt(writeOffAmt); return this; } public final C_AllocationLine_Builder overUnderAmt(final BigDecimal overUnderAmt) { allocLine.setOverUnderAmt(overUnderAmt); return this; } public C_AllocationLine_Buil...
public final C_AllocationHdr_Builder lineDone() { return parent; } /** * @param allocHdrSupplier allocation header supplier which will provide the allocation header created & saved, just in time, so call it ONLY if you are really gonna create an allocation line. * @return created {@link I_C_AllocationLine} or...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\allocation\api\C_AllocationLine_Builder.java
1
请完成以下Java代码
public void setDirection (final java.lang.String Direction) { set_ValueNoCheck (COLUMNNAME_Direction, Direction); } @Override public java.lang.String getDirection() { return get_ValueAsString(COLUMNNAME_Direction); } @Override public void setEvent_UUID (final @Nullable java.lang.String Event_UUID) { s...
public void setRabbitMQ_QueueName (final @Nullable java.lang.String RabbitMQ_QueueName) { set_ValueNoCheck (COLUMNNAME_RabbitMQ_QueueName, RabbitMQ_QueueName); } @Override public java.lang.String getRabbitMQ_QueueName() { return get_ValueAsString(COLUMNNAME_RabbitMQ_QueueName); } @Override public void se...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_RabbitMQ_Message_Audit.java
1
请完成以下Java代码
public class UserDashboardWebsocketSender { private static final Logger logger = LogManager.getLogger(UserDashboardWebsocketSender.class); private final WebsocketSender websocketSender; private final WebSocketProducersRegistry websocketProducersRegistry; public UserDashboardWebsocketSender( @NonNull final Webso...
changeResult.getDashboardId(), changeResult.getDashboardWidgetType(), changeResult.getDashboardOrderedItemIds())); } return eventBuilder.build(); } private void sendEvents( @NonNull final Set<WebsocketTopicName> websocketEndpoints, @NonNull final JSONDashboardChangedEventsList events) { if (w...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\dashboard\websocket\UserDashboardWebsocketSender.java
1
请在Spring Boot框架中完成以下Java代码
public class CarController { @Autowired private CarService carService; @GetMapping(path = "/modelcount") public long getTotalCarsByModel(@RequestParam("model") String model) { return carService.getTotalCarsByModel(model); } @GetMapping(path = "/modelcountP") public long getTotalCar...
@GetMapping(path = "/modelcountEx") public long getTotalCarsByModelExplicit(@RequestParam("model") String model) { return carService.getTotalCarsByModelExplicit(model); } @GetMapping(path = "/modelcountEn") public long getTotalCarsByModelEntity(@RequestParam("model") String model) { ...
repos\tutorials-master\persistence-modules\spring-data-jpa-repo\src\main\java\com\baeldung\spring\data\persistence\storedprocedure\controller\CarController.java
2
请在Spring Boot框架中完成以下Java代码
public String updateUserProfile(@RequestParam("userid") int userid,@RequestParam("username") String username, @RequestParam("email") String email, @RequestParam("password") String password, @RequestParam("address") String address) { try { Class.forName("com.mysql.jdbc.Driver"); Connection con = DriverMana...
Authentication newAuthentication = new UsernamePasswordAuthenticationToken( username, password, SecurityContextHolder.getContext().getAuthentication().getAuthorities()); SecurityContextHolder.getContext().setAuthentication(newAuthentication); } catch(Exception e) {...
repos\E-commerce-project-springBoot-master2\JtProject\src\main\java\com\jtspringproject\JtSpringProject\controller\AdminController.java
2
请完成以下Java代码
public class ReactiveSessionsEndpoint { private final ReactiveSessionRepository<? extends Session> sessionRepository; private final @Nullable ReactiveFindByIndexNameSessionRepository<? extends Session> indexedSessionRepository; /** * Create a new {@link ReactiveSessionsEndpoint} instance. * @param sessionRepo...
public Mono<SessionsDescriptor> sessionsForUsername(String username) { if (this.indexedSessionRepository == null) { return Mono.empty(); } return this.indexedSessionRepository.findByPrincipalName(username).map(SessionsDescriptor::new); } @ReadOperation public Mono<SessionDescriptor> getSession(@Selector St...
repos\spring-boot-4.0.1\module\spring-boot-session\src\main\java\org\springframework\boot\session\actuate\endpoint\ReactiveSessionsEndpoint.java
1
请在Spring Boot框架中完成以下Java代码
public CommonResult delete(@PathVariable Long id) { int count = adminService.delete(id); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("修改帐号状态") @RequestMapping(value = "/updateStatus/{id}", method = RequestM...
public CommonResult updateRole(@RequestParam("adminId") Long adminId, @RequestParam("roleIds") List<Long> roleIds) { int count = adminService.updateRole(adminId, roleIds); if (count >= 0) { return CommonResult.success(count); } return Common...
repos\mall-master\mall-admin\src\main\java\com\macro\mall\controller\UmsAdminController.java
2
请完成以下Java代码
public void keyTyped(KeyEvent e) {} public void keyPressed(KeyEvent e) {} /** * Key Listener. * @param e event */ public void keyReleased(KeyEvent e) { String newText = String.valueOf(getPassword()); m_setting = true; try { fireVetoableChange(m_columnName, m_oldText, newText); } catch (Proper...
/** * Set Field/WindowNo for ValuePreference * @param mField field */ public void setField (GridField mField) { m_mField = mField; } // setField @Override public GridField getField() { return m_mField; } // metas: Ticket#2011062310000013 public boolean isAutoCommit() { return false; } } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\grid\ed\VPassword.java
1
请在Spring Boot框架中完成以下Java代码
protected RequestMatcher createLoginProcessingUrlMatcher(String loginProcessingUrl) { return getRequestMatcherBuilder().matcher(HttpMethod.POST, loginProcessingUrl); } /** * Gets the HTTP parameter that is used to submit the username. * @return the HTTP parameter that is used to submit the username */ priva...
* @param http the {@link HttpSecurityBuilder} to use */ private void initDefaultLoginFilter(H http) { DefaultLoginPageGeneratingFilter loginPageGeneratingFilter = http .getSharedObject(DefaultLoginPageGeneratingFilter.class); if (loginPageGeneratingFilter != null && !isCustomLoginPage()) { loginPageGenerat...
repos\spring-security-main\config\src\main\java\org\springframework\security\config\annotation\web\configurers\FormLoginConfigurer.java
2
请完成以下Java代码
public void setAD_User_AuthToken_ID (int AD_User_AuthToken_ID) { if (AD_User_AuthToken_ID < 1) set_ValueNoCheck (COLUMNNAME_AD_User_AuthToken_ID, null); else set_ValueNoCheck (COLUMNNAME_AD_User_AuthToken_ID, Integer.valueOf(AD_User_AuthToken_ID)); } /** Get User Authentication Token . @return User Au...
@param AuthToken Authentication Token */ @Override public void setAuthToken (java.lang.String AuthToken) { set_Value (COLUMNNAME_AuthToken, AuthToken); } /** Get Authentication Token. @return Authentication Token */ @Override public java.lang.String getAuthToken () { return (java.lang.String)get_Val...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_User_AuthToken.java
1
请完成以下Java代码
protected void prepare() { // TODO Auto-generated method stub } public boolean executeScript(String sql, String fileName) { BufferedReader reader = new BufferedReader(new StringReader(sql)); StringBuffer sqlBuf = new StringBuffer(); String line; boolean statementReady = false; boolean execOk = true; b...
System.out.print("."); } catch (SQLException e) { e.printStackTrace(); execOk = false; log.error("Script: " + fileName + " - " + e.getMessage() + ". The line that caused the error is the following ==> " + sqlBuf, e); } finally { stmt.close(); if(execOk) conn.commit(); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\adempiere\process\ApplyMigrationScripts.java
1
请完成以下Java代码
public static ProcessDefinitionSuspensionStateConfiguration byProcessDefinitionId(String processDefinitionId, boolean includeProcessInstances) { ProcessDefinitionSuspensionStateConfiguration configuration = new ProcessDefinitionSuspensionStateConfiguration(); configuration.by = JOB_HANDLER_CFG_PROCESS_DEFI...
configuration.isTenantIdSet = true; configuration.tenantId = tenantId; return configuration; } } public void onDelete(ProcessDefinitionSuspensionStateConfiguration configuration, JobEntity jobEntity) { // do nothing } }
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\jobexecutor\TimerChangeProcessDefinitionSuspensionStateJobHandler.java
1
请在Spring Boot框架中完成以下Java代码
public class ReactiveStreamingController { private static final Path UPLOAD_DIR = Path.of("reactive-uploads"); @PostMapping(value = "/upload", consumes = MediaType.MULTIPART_FORM_DATA_VALUE) @ResponseBody public Mono<String> uploadFileStreaming(@RequestPart("filePart") FilePart filePart) { ret...
"Content-Disposition: attachment; filename=\"" + file.getFileName() + "\"\r\n\r\n"; Flux<DataBuffer> fileContentFlux = DataBufferUtils.read(file, new DefaultDataBufferFactory(), 4096); DataBuffer footerBuffer = new DefaultDataBufferFactory().wrap("\r\n".getBytes()); // Build ...
repos\tutorials-master\spring-web-modules\spring-rest-http-3\src\main\java\com\baeldung\streaming\ReactiveStreamingController.java
2
请完成以下Java代码
public void setSubstitutionsgrund(Substitutionsgrund value) { this.substitutionsgrund = value; } /** * Gets the value of the grund property. * * @return * possible object is * {@link VerfuegbarkeitDefektgrund } * */ public VerfuegbarkeitDefektgrund g...
/** * Gets the value of the lieferPzn property. * */ public long getLieferPzn() { return lieferPzn; } /** * Sets the value of the lieferPzn property. * */ public void setLieferPzn(long value) { this.lieferPzn = value; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma.msv3.schema.v1\src\main\java-xjc\de\metas\vertical\pharma\vendor\gateway\msv3\schema\v1\VerfuegbarkeitSubstitution.java
1
请完成以下Java代码
private boolean isAvailable() { if (isWeak) { return weakValue.get() != null; } else { return true; } } public T get() { if (isWeak) { return weakValue.get(); } else { return value; } } /** * Always compare by identity. * * @return true if it's ...
public int hashCode() { // NOTE: we implemented this method only to get rid of "implemented equals() but not hashCode() warning" return super.hashCode(); } @Override public String toString() { if (!isAvailable()) { return DEBUG ? "<GARBAGED: " + valueStr + ">" : "<GARBAGED>"; } else ...
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\de\metas\util\WeakList.java
1
请完成以下Java代码
public OnLineCapability1Code getOnLineCpblties() { return onLineCpblties; } /** * Sets the value of the onLineCpblties property. * * @param value * allowed object is * {@link OnLineCapability1Code } * */ public void setOnLineCpblties(OnLineCapability...
} return this.dispCpblties; } /** * Gets the value of the prtLineWidth property. * * @return * possible object is * {@link String } * */ public String getPrtLineWidth() { return prtLineWidth; } /** * Sets the value of the prtLin...
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\PointOfInteractionCapabilities1.java
1
请完成以下Java代码
public String getContactman() { return contactman; } public void setContactman(String contactman) { this.contactman = contactman; } public String getTel() { return tel; } public void setTel(String tel) { this.tel = tel; } public String getEmail() { ...
public Integer getLevel() { return level; } public void setLevel(Integer level) { this.level = level; } public String getEnd() { return end; } public void setEnd(String end) { this.end = end; } public String getQrcantonid() { return qrcantonid;...
repos\SpringBootBucket-master\springboot-batch\src\main\java\com\xncoding\trans\modules\canton\Canton.java
1
请完成以下Java代码
public final GenericSpecificationsBuilder<U> with(final String precedenceIndicator, final String key, final String operation, final Object value, final String prefix, final String suffix) { SearchOperation op = SearchOperation.getSimpleOperation(operation.charAt(0)); if (op != null) { if (op...
.and(specs.get(idx)); } return result; } public Specification<U> build(Deque<?> postFixedExprStack, Function<SpecSearchCriteria, Specification<U>> converter) { Deque<Specification<U>> specStack = new LinkedList<>(); Collections.reverse((List<?>) postFixedExprStack); ...
repos\tutorials-master\spring-web-modules\spring-rest-query-language\src\main\java\com\baeldung\persistence\dao\GenericSpecificationsBuilder.java
1
请完成以下Java代码
public String getCompatibilityRange() { return this.compatibilityRange; } public void setCompatibilityRange(String compatibilityRange) { this.compatibilityRange = compatibilityRange; } /** * Return the default bom to associate to all dependencies of this group unless * specified otherwise. * @return the...
public void setRepository(String repository) { this.repository = repository; } /** * Return the {@link Dependency dependencies} of this group. * @return the content */ public List<Dependency> getContent() { return this.content; } /** * Create a new {@link DependencyGroup} instance with the given name...
repos\initializr-main\initializr-metadata\src\main\java\io\spring\initializr\metadata\DependencyGroup.java
1
请完成以下Java代码
public String getRootProcessInstanceId() { return rootProcessInstanceId; } @Override public String getEventName() { return eventName; } @Override public String getProcessInstanceBusinessKey() { return processInstanceBusinessKey; } @Override public String ge...
return active; } @Override public boolean isEnded() { return ended; } @Override public boolean isConcurrent() { return concurrent; } @Override public boolean isProcessInstanceType() { return processInstanceType; } @Override public boolean isSco...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\delegate\ReadOnlyDelegateExecutionImpl.java
1
请完成以下Java代码
public Long getOrderId() { return orderId; } public void setOrderId(Long orderId) { this.orderId = orderId; } public Long getCustomerId() { return customerId; } public void setCustomerId(Long customerId) { this.customerId = customerId; } public BigDeci...
protected Order() {} public Order(Long orderId, Long customerId, BigDecimal totalPrice, Status orderStatus, LocalDate orderDate, String deliveryAddress) { this.orderId = orderId; this.customerId = customerId; this.totalPrice = totalPrice; this.orderStatus = orderStatus; this...
repos\springboot-demo-master\sharding-jdbc\src\main\java\com\et\sharding\jdbc\Order.java
1
请完成以下Java代码
public class HistoryLevelActivity extends AbstractHistoryLevel { public int getId() { return 1; } public String getName() { return ProcessEngineConfiguration.HISTORY_ACTIVITY; } public boolean isHistoryEventProduced(HistoryEventType eventType, Object entity) { return PROCESS_INSTANCE_START == e...
|| ACTIVITY_INSTANCE_START == eventType || ACTIVITY_INSTANCE_UPDATE == eventType || ACTIVITY_INSTANCE_MIGRATE == eventType || ACTIVITY_INSTANCE_END == eventType || CASE_INSTANCE_CREATE == eventType || CASE_INSTANCE_UPDATE == eventType || CASE_INSTANCE_CLOSE == eventType ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\history\HistoryLevelActivity.java
1
请在Spring Boot框架中完成以下Java代码
private static void updateRecord( @NonNull final I_C_Project_Repair_Consumption_Summary record, @NonNull final ServiceRepairProjectConsumptionSummary from) { record.setC_Project_ID(from.getGroupingKey().getProjectId().getRepoId()); record.setM_Product_ID(from.getGroupingKey().getProductId().getRepoId()); r...
{ throw new AdempiereException("all values shall match " + projectId + ": " + newValues); } final HashMap<ServiceRepairProjectConsumptionSummary.GroupingKey, I_C_Project_Repair_Consumption_Summary> existingRecordsByGroupingKey = new HashMap<>(Maps.uniqueIndex( retrieveRecordByProjectId(projectId), Servi...
repos\metasfresh-new_dawn_uat\backend\de.metas.servicerepair.base\src\main\java\de\metas\servicerepair\project\repository\ServiceRepairProjectConsumptionSummaryRepository.java
2
请完成以下Java代码
public UserDashboardItemChangeResult changeUserDashboardItem(final UserDashboard dashboard, final UserDashboardItemChangeRequest request) { final UserDashboardId dashboardId = dashboard.getId(); final DashboardWidgetType dashboardWidgetType = request.getWidgetType(); final UserDashboardItemId itemId = request.ge...
private int retrieveLastSeqNo(final UserDashboardId dashboardId, final DashboardWidgetType dashboardWidgetType) { final Integer maxSeqNo = queryBL.createQueryBuilder(I_WEBUI_DashboardItem.class) .addEqualsFilter(I_WEBUI_DashboardItem.COLUMN_WEBUI_Dashboard_ID, dashboardId) .addEqualsFilter(I_WEBUI_DashboardI...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\dashboard\UserDashboardRepository.java
1
请完成以下Java代码
public void setPostActual (final boolean PostActual) { set_Value (COLUMNNAME_PostActual, PostActual); } @Override public boolean isPostActual() { return get_ValueAsBoolean(COLUMNNAME_PostActual); } @Override public void setPostBudget (final boolean PostBudget) { set_Value (COLUMNNAME_PostBudget, PostB...
public void setValidFrom (final @Nullable java.sql.Timestamp ValidFrom) { set_Value (COLUMNNAME_ValidFrom, ValidFrom); } @Override public java.sql.Timestamp getValidFrom() { return get_ValueAsTimestamp(COLUMNNAME_ValidFrom); } @Override public void setValidTo (final @Nullable java.sql.Timestamp ValidTo) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_ElementValue.java
1
请在Spring Boot框架中完成以下Java代码
public CountryType getCountry() { return country; } /** * Sets the value of the country property. * * @param value * allowed object is * {@link CountryType } * */ public void setCountry(CountryType value) { this.country = value; } /*...
* <p> * For example, to add a new item, do as follows: * <pre> * getAddressExtension().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getAddressExtension() { ...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_ecosio_remadv\at\erpel\schemas\_1p0\documents\AddressType.java
2
请在Spring Boot框架中完成以下Java代码
public int delete(long id,JdbcTemplate jdbcTemplate) { if(jdbcTemplate==null){ jdbcTemplate= primaryJdbcTemplate; } return jdbcTemplate.update("DELETE FROM users where id = ? ",id); } @Override public User findById(long id,JdbcTemplate jdbcTemplate) { if(jdbcTem...
} return jdbcTemplate.query("SELECT * FROM users", new UserRowMapper()); // return jdbcTemplate.query("SELECT * FROM users", new BeanPropertyRowMapper(User.class)); } class UserRowMapper implements RowMapper<User> { @Override public User mapRow(ResultSet rs, int rowNum) throws S...
repos\spring-boot-leaning-master\2.x_42_courses\第 3-1 课: Spring Boot 使用 JDBC 操作数据库\spring-boot-multi-jdbc\src\main\java\com\neo\repository\impl\UserRepositoryImpl.java
2
请完成以下Java代码
public Collection<String> getInvolvedGroups() { return involvedGroups; } public String getTenantId() { return tenantId; } public boolean isWithoutTenantId() { return withoutTenantId; } public boolean isIncludeLocalVariables() { return includeLocalVariables; }...
protected void ensureVariablesInitialized() { super.ensureVariablesInitialized(); for (PlanItemInstanceQueryImpl orQueryObject : orQueryObjects) { orQueryObject.ensureVariablesInitialized(); } } public List<PlanItemInstanceQueryImpl> getOrQueryObjects() { return orQu...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\runtime\PlanItemInstanceQueryImpl.java
1
请完成以下Java代码
public static void updateFromDateWorkStart(final IRfQWorkDatesAware workDatesAware) { final Timestamp dateWorkStart = workDatesAware.getDateWorkStart(); if(dateWorkStart == null) { return; } setDateWorkComplete(workDatesAware); } public static void updateFromDateWorkComplete(final IRfQWorkDatesAware w...
setDateWorkComplete(workDatesAware); } public static void setDateWorkStart(final IRfQWorkDatesAware workDatesAware) { final Timestamp dateWorkStart = TimeUtil.addDays(workDatesAware.getDateWorkComplete(), workDatesAware.getDeliveryDays() * -1); workDatesAware.setDateWorkStart(dateWorkStart); } public static ...
repos\metasfresh-new_dawn_uat\backend\de.metas.rfq\src\main\java\de\metas\rfq\util\RfQWorkDatesUtil.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 Process Now. @param Processing Process Now */ public void setProcessing (bool...
return bd; } public I_C_ElementValue getUser1() throws RuntimeException { return (I_C_ElementValue)MTable.get(getCtx(), I_C_ElementValue.Table_Name) .getPO(getUser1_ID(), get_TrxName()); } /** Set User List 1. @param User1_ID User defined list element #1 */ public void setUser1_ID (int User1_ID) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_Cash.java
1
请完成以下Java代码
public void setEndWaitTime (final java.sql.Timestamp EndWaitTime) { set_Value (COLUMNNAME_EndWaitTime, EndWaitTime); } @Override public java.sql.Timestamp getEndWaitTime() { return get_ValueAsTimestamp(COLUMNNAME_EndWaitTime); } @Override public void setPriority (final int Priority) { set_Value (COLUM...
@Override public void setTextMsg (final java.lang.String TextMsg) { set_Value (COLUMNNAME_TextMsg, TextMsg); } @Override public java.lang.String getTextMsg() { return get_ValueAsString(COLUMNNAME_TextMsg); } /** * WFState AD_Reference_ID=305 * Reference name: WF_Instance State */ public static fi...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_WF_Activity.java
1
请完成以下Java代码
public final void put(final IView view) { views.put(view.getViewId(), ProductsProposalView.cast(view)); } @Nullable @Override public final ProductsProposalView getByIdOrNull(final ViewId viewId) { return views.getIfPresent(viewId); } protected final ProductsProposalView getById(final ViewId viewId) { f...
@Override public final Stream<IView> streamAllViews() { return Stream.empty(); } @Override public final void invalidateView(final ViewId viewId) { final ProductsProposalView view = getById(viewId); view.invalidateAll(); } @lombok.Value(staticConstructor = "of") protected static class ViewLayoutKey { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\order\products_proposal\view\ProductsProposalViewFactoryTemplate.java
1
请在Spring Boot框架中完成以下Java代码
public String getRemark() { return remark; } public void setRemark(String remark) { this.remark = remark; } public Map<ProductEntity, Integer> getProdEntityCountMap() { return prodEntityCountMap; } public void setProdEntityCountMap(Map<ProductEntity, Integer> prodEntit...
this.prodIdCountJson = prodIdCountJson; } @Override public String toString() { return "OrderInsertReq{" + "userId='" + userId + '\'' + ", prodIdCountJson='" + prodIdCountJson + '\'' + ", prodIdCountMap=" + prodIdCountMap + ", prodEntit...
repos\SpringBoot-Dubbo-Docker-Jenkins-master\Gaoxi-Common-Service-Facade\src\main\java\com\gaoxi\req\order\OrderInsertReq.java
2
请完成以下Java代码
protected boolean isExecutionRelatedEntityCountEnabledGlobally() { return processEngineConfiguration.getPerformanceSettings().isEnableExecutionRelationshipCounts(); } protected boolean isExecutionRelatedEntityCountEnabled(ExecutionEntity executionEntity) { if (executionEntity instanceof Countin...
* however the flag on the executionEntity refers to the state at that particular moment. * * Global flag / ExecutionEntity flag : result * * T / T : T (all true, regular mode with flags enabled) * T / F : F (global is true, but execution was of a time when it was disabled, t...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\persistence\entity\AbstractEntityManager.java
1
请完成以下Java代码
public List<String> getActivityIds() { return Optional.ofNullable(activityIds).orElse(Collections.emptyList()); } public List<String> getMoveToActivityIds() { return Optional.ofNullable(moveToActivityIds).orElse(Collections.emptyList()); } public boolean isMoveToParentProcess() { ...
} public Integer getCallActivitySubProcessVersion() { return callActivitySubProcessVersion; } public void setCallActivitySubProcessVersion(Integer callActivitySubProcessVersion) { this.callActivitySubProcessVersion = callActivitySubProcessVersion; } public Optional<String> getNewA...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\runtime\MoveActivityIdContainer.java
1
请完成以下Java代码
public static Authentication authenticateService(Authentication authentication, final String username, final int lifetimeInSeconds, final String targetService) { KerberosAuthentication kerberosAuthentication = (KerberosAuthentication) authentication; final JaasSubjectHolder jaasSubjectHolder = kerberosAuthentic...
while (!established) { byte[] inToken = new byte[0]; outToken = securityContext.initSecContext(inToken, 0, inToken.length); established = securityContext.isEstablished(); } jaasContext.addToken(targetService, outToken); } catch (Exception ex) { throw new BadCredentialsException("Kerberos auth...
repos\spring-security-main\kerberos\kerberos-core\src\main\java\org\springframework\security\kerberos\authentication\KerberosMultiTier.java
1
请完成以下Java代码
public void setQtyReimbursed (BigDecimal QtyReimbursed) { set_Value (COLUMNNAME_QtyReimbursed, QtyReimbursed); } /** Get Quantity Reimbursed. @return The reimbursed quantity */ public BigDecimal getQtyReimbursed () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyReimbursed); if (bd == null) ...
return ii.intValue(); } /** Set Expense Line. @param S_TimeExpenseLine_ID Time and Expense Report Line */ public void setS_TimeExpenseLine_ID (int S_TimeExpenseLine_ID) { if (S_TimeExpenseLine_ID < 1) set_ValueNoCheck (COLUMNNAME_S_TimeExpenseLine_ID, null); else set_ValueNoCheck (COLUMNNAME_S_...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_S_TimeExpenseLine.java
1
请完成以下Java代码
public List<String> shortcutFieldOrder() { return Arrays.asList("sources"); } @Override public Predicate<ServerWebExchange> apply(Config config) { if (log.isDebugEnabled()) { log.debug("Applying XForwardedRemoteAddr route predicate with maxTrustedIndex of " + config.getMaxTrustedIndex() + " for " + conf...
public Config setMaxTrustedIndex(int maxTrustedIndex) { this.maxTrustedIndex = maxTrustedIndex; return this; } public List<String> getSources() { return this.sources; } public Config setSources(List<String> sources) { this.sources = sources; return this; } public Config setSources(String.....
repos\spring-cloud-gateway-main\spring-cloud-gateway-server-webflux\src\main\java\org\springframework\cloud\gateway\handler\predicate\XForwardedRemoteAddrRoutePredicateFactory.java
1
请完成以下Java代码
public class ManualCandidateHandler extends AbstractInvoiceCandidateHandler { /** * Not actually a real table name but a marker that is used to pick this manual handler. Please note that {@link #getSourceTable()} returns this. */ final public static String MANUAL = "ManualCandidateHandler"; /** @return {@code f...
@Override public String getSourceTable() { return ManualCandidateHandler.MANUAL; } /** @return {@code true}. */ @Override public boolean isUserInChargeUserEditable() { return true; } /** * Does nothing. */ @Override public void setOrderedData(final I_C_Invoice_Candidate ic) { // nothing to do }...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\invoicecandidate\spi\impl\ManualCandidateHandler.java
1
请完成以下Java代码
public static boolean removeConsoleAppender(ch.qos.logback.classic.Logger logger) { return removeAppender(logger, CONSOLE_APPENDER_NAME); } /** * Removes the {@literal delegate} {@link Appender} from the given {@link Logger}. * * @param logger {@link Logger} from which to remove the {@literal delegate} {@lin...
} private static Class<?> nullSafeType(Object obj) { return obj != null ? obj.getClass() : null; } private static String nullSafeTypeName(Class<?> type) { return type != null ? type.getName() : null; } private static String nullSafeTypeName(Object obj) { return nullSafeTypeName(nullSafeType(obj)); } pr...
repos\spring-boot-data-geode-main\spring-geode-project\spring-geode-starters\spring-geode-starter-logging\src\main\java\org\springframework\geode\logging\slf4j\logback\support\LogbackSupport.java
1
请在Spring Boot框架中完成以下Java代码
public class Address { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String street; private String city; private String zipCode; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Strin...
return city; } public void setCity(String city) { this.city = city; } public String getZipCode() { return zipCode; } public void setZipCode(String zipCode) { this.zipCode = zipCode; } }
repos\tutorials-master\persistence-modules\spring-jpa-2\src\main\java\com\baeldung\inheritancevscomposition\composition\Address.java
2
请完成以下Java代码
protected final ImportGroupResult importRecords( final RecordIdGroupKey groupKey, final List<ImportRecordType> importRecords, final IMutable<Object> stateHolder) throws Exception { final ImportRecordType importRecord = CollectionUtils.singleElement(importRecords); final ImportRecordResult result = importR...
{ return ImportGroupResult.ZERO; } } public enum ImportRecordResult { Inserted, Updated, Nothing, } protected abstract ImportRecordResult importRecord( @NonNull final IMutable<Object> stateHolder, @NonNull final ImportRecordType importRecord, final boolean isInsertOnly) throws Exception; }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\impexp\processing\SimpleImportProcessTemplate.java
1
请完成以下Java代码
public Optional<BPPurchaseSchedule> getBPPurchaseSchedule(final BPartnerId bpartnerId, final LocalDate date) { return bpPurchaseScheduleRepo.getByBPartnerIdAndValidFrom(bpartnerId, date); } public Optional<ZonedDateTime> calculatePurchaseDatePromised( @NonNull final ZonedDateTime salesPreparationDate, @NonN...
final IDateShifter dateShifter = BusinessDayShifter.builder() .businessDayMatcher(businessDayMatcher) .onNonBussinessDay(OnNonBussinessDay.MoveToClosestBusinessDay) .build(); final Optional<LocalDate> purchaseDayPromised = DateSequenceGenerator.builder() .dateFrom(LocalDate.MIN) .dateTo(LocalDate...
repos\metasfresh-new_dawn_uat\backend\de.metas.purchasecandidate.base\src\main\java\de\metas\purchasecandidate\BPPurchaseScheduleService.java
1
请完成以下Java代码
public final LookupValue retrieveLookupValueById(final @NonNull LookupDataSourceContext evalCtx) { final SqlAndParams sqlAndParams = this.sqlForFetchingLookupById.evaluate(evalCtx).orElse(null); if (sqlAndParams == null) { throw new AdempiereException("No ID provided in " + evalCtx); } final String adLan...
final SqlAndParams sqlAndParams = this.sqlForFetchingLookupById.evaluate(evalCtx).orElse(null); if (sqlAndParams == null) { return LookupValuesList.EMPTY; } final String adLanguage = evalCtx.getAD_Language(); final ImmutableList<LookupValue> rows = DB.retrieveRows( sqlAndParams.getSql(), sqlAndPa...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\model\lookup\GenericSqlLookupDataSourceFetcher.java
1
请在Spring Boot框架中完成以下Java代码
private void mapReactiveProperties(Reactive properties, ThymeleafReactiveViewResolver resolver) { PropertyMapper map = PropertyMapper.get(); map.from(properties::getMediaTypes).to(resolver::setSupportedMediaTypes); map.from(properties::getMaxChunkSize) .asInt(DataSize::toBytes) .when((size) -> size > 0...
@ConditionalOnClass(DataAttributeDialect.class) static class DataAttributeDialectConfiguration { @Bean @ConditionalOnMissingBean DataAttributeDialect dialect() { return new DataAttributeDialect(); } } @Configuration(proxyBeanMethods = false) @ConditionalOnClass({ SpringSecurityDialect.class, CsrfToken...
repos\spring-boot-4.0.1\module\spring-boot-thymeleaf\src\main\java\org\springframework\boot\thymeleaf\autoconfigure\ThymeleafAutoConfiguration.java
2
请完成以下Java代码
public void setKey(String key) { this.key = key; } @CamundaQueryParam("keyLike") public void setKeyLike(String keyLike) { this.keyLike = keyLike; } @CamundaQueryParam("name") public void setName(String name) { this.name = name; } @CamundaQueryParam("nameLike")
public void setNameLike(String nameLike) { this.nameLike = nameLike; } @Override protected boolean isValidSortByValue(String value) { return VALID_SORT_VALUES.containsKey(value); } @Override protected String getOrderByValue(String sortBy) { return VALID_SORT_VALUES.get(sortBy); } }
repos\camunda-bpm-platform-master\webapps\assembly\src\main\java\org\camunda\bpm\cockpit\impl\plugin\base\dto\query\ProcessDefinitionStatisticsQueryDto.java
1
请在Spring Boot框架中完成以下Java代码
private static class PartitionedInOutLineRecords { @Singular("lineToQuarantine") List<QuarantineInOutLine> linesToQuarantine; @Singular("lineToDD_Order") List<I_M_InOutLine> linesToDD_Order; @Singular("lineToMove") List<org.compiere.model.I_M_InOutLine> linesToMove; } private void setInvoiceCandsInDis...
} return lotNumberQuarantineRepository.getByProductIdAndLot(productId, lotNumberAttributeValue); } private boolean isCreateDDOrder(@NonNull final I_M_InOutLine inOutLine) { final List<I_M_ReceiptSchedule> rsForInOutLine = receiptScheduleDAO.retrieveRsForInOutLine(inOutLine); for (final I_M_ReceiptSchedule r...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\inout\impl\DistributeAndMoveReceiptCreator.java
2
请完成以下Java代码
private static void validateOrderLinesConsistency(@NonNull final JsonInvoiceCandidateReference invoiceCandidate) { if (!Check.isEmpty(invoiceCandidate.getOrderLines()) && invoiceCandidate.getOrderDocumentNo() == null) { throw new InvalidEntityException(TranslatableStrings.constant( "orderLines were provide...
if (orgId == null) { throw new InvalidEntityException(TranslatableStrings.constant( "When specifying Order Document Type, the org code also has to be specified")); } final DocBaseType docBaseType = Optional.of(orderDocumentType) .map(JsonDocTypeInfo::getDocBaseType) .map(DocBaseType::ofCode) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business.rest-api-impl\src\main\java\de\metas\rest_api\invoicecandidates\impl\InvoiceJsonConverters.java
1
请完成以下Java代码
public static String getOrigin(){ HttpServletRequest request = getHttpServletRequest(); return request.getHeader("Origin"); } /** * 通过name获取 Bean. * * @param name * @return */ public static Object getBean(String name) { return getApplicationContext().getBean(name); } /** * 通过class获取Bean. * ...
return getApplicationContext().getBean(clazz); } /** * 通过name,以及Clazz返回指定的Bean * * @param name * @param clazz * @param <T> * @return */ public static <T> T getBean(String name, Class<T> clazz) { return getApplicationContext().getBean(name, clazz); } }
repos\JeecgBoot-main\jeecg-boot\jeecg-boot-base-core\src\main\java\org\jeecg\common\util\SpringContextUtils.java
1
请完成以下Java代码
public SessionInformation getSessionInformation(String sessionId) { S session = this.sessionRepository.findById(sessionId); if (session != null) { return new SpringSessionBackedSessionInformation<>(session, this.sessionRepository); } return null; } /* * This is a no-op, as we don't administer sessions o...
*/ @Override public void removeSessionInformation(String sessionId) { } /** * Derives a String name for the given principal. * @param principal as provided by Spring Security * @return name of the principal, or its {@code toString()} representation if no name * could be derived */ protected String name(...
repos\spring-session-main\spring-session-core\src\main\java\org\springframework\session\security\SpringSessionBackedSessionRegistry.java
1
请完成以下Java代码
public void setConfiguration(String configuration) { this.configuration = configuration; } public String getAnnotation() { return annotation; } public void setAnnotation(String annotation) { this.annotation = annotation; } public String getCauseIncidentProcessInstanceId() { return cause...
public void setRootCauseIncidentProcessInstanceId(String rootCauseIncidentProcessInstanceId) { this.rootCauseIncidentProcessInstanceId = rootCauseIncidentProcessInstanceId; } public String getRootCauseIncidentProcessDefinitionId() { return rootCauseIncidentProcessDefinitionId; } public void setRootCau...
repos\camunda-bpm-platform-master\webapps\assembly\src\main\java\org\camunda\bpm\cockpit\impl\plugin\base\dto\IncidentDto.java
1
请完成以下Java代码
private static PPOrderId extractPPOrderId(final JsonRequestSetOrderExportStatus item) { return PPOrderId.ofRepoId(item.getOrderId().getValue()); } @Nullable private AdIssueId createADIssue(@Nullable final JsonError error) { if (error == null || error.getErrors().isEmpty()) { return null; } final Jso...
.build()); } private String toJsonString(@NonNull final JsonRequestSetOrderExportStatus requestItem) { try { return jsonObjectMapper.writeValueAsString(requestItem); } catch (final JsonProcessingException ex) { logger.warn("Failed converting {} to JSON. Returning toString()", requestItem, ex); re...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing.rest-api\src\main\java\de\metas\manufacturing\rest_api\v1\ManufacturingOrdersSetExportStatusCommand.java
1
请完成以下Java代码
private static byte[] bytesFromUUID(String uuidHexString) { final String normalizedUUIDHexString = uuidHexString.replace("-", ""); assert normalizedUUIDHexString.length() == 32; final byte[] bytes = new byte[16]; for (int i = 0; i < 16; i++) { final byte b = hexToByte(norma...
msb |= 5L << 12; // Set the variant field to 2 lsb &= ~(0x3L << 62); lsb |= 2L << 62; return new UUID(msb, lsb); } catch (NoSuchAlgorithmException e) { throw new AssertionError(e); } } private static long getLeastAndMostSignificantBit...
repos\tutorials-master\core-java-modules\core-java-uuid-generation\src\main\java\com\baeldung\uuid\UUIDGenerator.java
1
请完成以下Java代码
public Effect __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public String name() { int o = __offset(4); return o != 0 ? __string(o + bb_pos) : null; } public ByteBuffer nameAsByteBuffer() { return __vector_as_bytebuffer(4, 1); } public ByteBuffer nameInByteBuffer(ByteBuffer _bb) { return __v...
public static void startEffect(FlatBufferBuilder builder) { builder.startTable(2); } public static void addName(FlatBufferBuilder builder, int nameOffset) { builder.addOffset(0, nameOffset, 0); } public static void addDamage(FlatBufferBuilder builder, short damage) { builder.addShort(1, damage, 0); } public stati...
repos\tutorials-master\libraries-data-io-2\src\main\java\com\baeldung\flatbuffers\MyGame\terrains\Effect.java
1
请完成以下Java代码
public Builder setC_BPartner_ID(final int C_BPartner_ID) { this.C_BPartner_ID = C_BPartner_ID; return this; } public Builder setBPartnerName(final String BPartnerName) { this.BPartnerName = BPartnerName; return this; } public Builder setCurrencyISOCode(final CurrencyCode currencyISOCode) { ...
return this; } public Builder setMultiplierAP(final BigDecimal multiplierAP) { this.multiplierAP = multiplierAP; return this; } public Builder setIsPrepayOrder(final boolean isPrepayOrder) { this.isPrepayOrder = isPrepayOrder; return this; } public Builder setPOReference(final String PORe...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.swingui\src\main\java\de\metas\banking\payment\paymentallocation\model\InvoiceRow.java
1
请完成以下Java代码
public void unprocessTourInstance(final I_M_ShipperTransportation shipperTransportation) { final I_M_Tour_Instance tourInstance = retrieveTourInstanceOrNull(shipperTransportation); // No Tour Instance => nothing to do if (tourInstance == null) { return; } Services.get(ITourInstanceBL.class).unprocess(...
return; } throw new AdempiereException("@NotAllowed@ (@M_Tour_Instance_ID@: " + tourInstance + ")"); } private I_M_Tour_Instance retrieveTourInstanceOrNull(final I_M_ShipperTransportation shipperTransportation) { final Object contextProvider = shipperTransportation; final ITourInstanceQueryParams params = ...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\tourplanning\model\validator\M_ShipperTransportation.java
1
请在Spring Boot框架中完成以下Java代码
public User save(TenantId tenantId, CustomerId customerId, User tbUser, boolean sendActivationMail, HttpServletRequest request, User user) throws ThingsboardException { ActionType actionType = tbUser.getId() == null ? ActionType.ADDED : ActionType.UPDATED; try { boolean ...
userService.deleteUser(tenantId, user); logEntityActionService.logEntityAction(tenantId, userId, user, customerId, actionType, responsibleUser, customerId.toString()); } catch (Exception e) { logEntityActionService.logEntityAction(tenantId, emptyId(EntityType.USER), a...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\service\entitiy\user\DefaultUserService.java
2
请完成以下Java代码
public class Address { private Integer addressId; private String streetAddress; private Integer personId; public Address() { } public Integer getPersonId() { return personId; } public void setPersonId(Integer personId) { this.personId = personId; } public Address(String streetAddress) { this.street...
this.person = person; } private Person person; public Address(int i, String name) { this.streetAddress = name; } public Integer getAddressId() { return addressId; } public String getStreetAddress() { return streetAddress; } }
repos\tutorials-master\mybatis\src\main\java\com\baeldung\mybatis\model\Address.java
1
请完成以下Java代码
public final IQualityInspectionLineBuilder setName(final String name) { _name = name; return this; } protected final String getName() { return _name; } private IHandlingUnitsInfo getHandlingUnitsInfoToSet() { if (_handlingUnitsInfoSet) { return _handlingUnitsInfo; } return null; } @Overrid...
if (_handlingUnitsInfoProjectedSet) { return _handlingUnitsInfoProjected; } return null; } @Override public IQualityInspectionLineBuilder setHandlingUnitsInfoProjected(final IHandlingUnitsInfo handlingUnitsInfo) { _handlingUnitsInfoProjected = handlingUnitsInfo; _handlingUnitsInfoProjectedSet = true;...
repos\metasfresh-new_dawn_uat\backend\de.metas.materialtracking\src\main\java\de\metas\materialtracking\qualityBasedInvoicing\impl\QualityInspectionLineBuilder.java
1
请完成以下Java代码
protected int compare(Comparable original, Comparable other) { if (original == other) { return 0; } if (original == null) { return -1; } if (other == null) { return 1; } return original.compareTo(other); } @Override public boolean equals(Object obj) { if (obj ...
Entry<?, ?> other = (Entry<?, ?>) obj; return Objects.equals(this.getKey(), other.getKey()) && Objects.equals(this.getValue(), other.getValue()); } } @Override public int hashCode() { return (this.getKey() == null ? 0 : this.getKey().hashCode()) ^ (this.getValue() == null ? 0 : th...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\util\ImmutablePair.java
1
请完成以下Java代码
public class PaymentDAO extends AbstractPaymentDAO { @Override public BigDecimal getAvailableAmount(@NonNull final PaymentId paymentId) { final BigDecimal amt = DB.getSQLValueBDEx(ITrx.TRXNAME_ThreadInherited, "SELECT paymentAvailable(?)", paymentId); return amt != null ? amt : BigDecimal.ZERO; } @Ov...
payment.setC_Currency_ID(C_Currency_ID); // BigDecimal InvoiceOpen = rs.getBigDecimal(3); // Set Invoice // OPen Amount if (InvoiceOpen == null) { InvoiceOpen = BigDecimal.ZERO; } BigDecimal DiscountAmt = rs.getBigDecimal(4); // Set Discount // Amt if (DiscountAmt == null) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\payment\api\impl\PaymentDAO.java
1
请在Spring Boot框架中完成以下Java代码
public String getDISCREPANCYCODE() { return discrepancycode; } /** * Sets the value of the discrepancycode property. * * @param value * allowed object is * {@link String } * */ public void setDISCREPANCYCODE(String value) { this.discrepancyco...
* Gets the value of the discrepancydate1 property. * * @return * possible object is * {@link String } * */ public String getDISCREPANCYDATE1() { return discrepancydate1; } /** * Sets the value of the discrepancydate1 property. * * @param v...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_stepcom_desadv\de\metas\edi\esb\jaxb\stepcom\desadv\DQVAR1.java
2
请完成以下Java代码
public void setTransientVariable(String key, Object value) { this.transientVariables.put(key, value); } /** * Convenience method which returns <code>this</code> for method concatenation. * Same as {@link #setTransientVariable(String, Object)} */ public MapDelegateVariableContainer ad...
@Override public String getTenantId() { return this.delegate.getTenantId(); } @Override public Set<String> getVariableNames() { if (delegate == null || delegate == VariableContainer.empty()) { return this.transientVariables.keySet(); } if (transientVariables....
repos\flowable-engine-main\modules\flowable-engine-common\src\main\java\org\flowable\common\engine\impl\variable\MapDelegateVariableContainer.java
1
请完成以下Java代码
public void setDeploymentId(String deploymentId) { this.deploymentId = deploymentId; } public String getEditorSourceValueId() { return editorSourceValueId; } public void setEditorSourceValueId(String editorSourceValueId) { this.editorSourceValueId = editorSourceValueId; } ...
} public String getTenantId() { return tenantId; } public void setTenantId(String tenantId) { this.tenantId = tenantId; } public boolean hasEditorSource() { return this.editorSourceValueId != null; } public boolean hasEditorSourceExtra() { return this.edit...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\persistence\entity\ModelEntityImpl.java
1
请完成以下Java代码
private void publishRfqClose(final I_C_RfQResponse rfqResponse) { for (final I_C_RfQResponseLine rfqResponseLine : pmmRfqDAO.retrieveResponseLines(rfqResponse)) { publishRfQClose(rfqResponseLine); } } private void publishRfQClose(final I_C_RfQResponseLine rfqResponseLine) { // Create and collect the RfQ...
// Internally push the planned product supplies, to create the PMM_PurchaseCandidates serverSyncBL.reportProductSupplies(PutProductSuppliesRequest.of(syncProductSupplies)); } } private static <T> List<T> copyAndClear(final List<T> list) { if (list == null || list.isEmpty()) { return ImmutableList.of(); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.procurement.base\src\main\java\de\metas\procurement\base\rfq\PMMWebuiRfQResponsePublisherInstance.java
1
请完成以下Java代码
public ScriptTaskBuilder builder() { return new ScriptTaskBuilder((BpmnModelInstance) modelInstance, this); } public String getScriptFormat() { return scriptFormatAttribute.getValue(this); } public void setScriptFormat(String scriptFormat) { scriptFormatAttribute.setValue(this, scriptFormat); } ...
public String getCamundaResultVariable() { return camundaResultVariableAttribute.getValue(this); } public void setCamundaResultVariable(String camundaResultVariable) { camundaResultVariableAttribute.setValue(this, camundaResultVariable); } public String getCamundaResource() { return camundaResourc...
repos\camunda-bpm-platform-master\model-api\bpmn-model\src\main\java\org\camunda\bpm\model\bpmn\impl\instance\ScriptTaskImpl.java
1
请在Spring Boot框架中完成以下Java代码
public class PackagingInformationType { @XmlElement(name = "TypeOfPackaging", required = true) protected String typeOfPackaging; @XmlElement(name = "NVE", required = true) protected String nve; @XmlElement(name = "GrossVolume", required = true) protected UnitType grossVolume; @XmlElement(na...
* {@link UnitType } * */ public UnitType getGrossVolume() { return grossVolume; } /** * Sets the value of the grossVolume property. * * @param value * allowed object is * {@link UnitType } * */ public void setGrossVolume(UnitTy...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_ecosio_remadv\at\erpel\schemas\_1p0\documents\extensions\edifact\PackagingInformationType.java
2
请在Spring Boot框架中完成以下Java代码
public void onStart(Observation.Context context) { log.info("Starting context " + toString(context)); } @Override public void onError(Observation.Context context) { log.info("Error for context " + toString(context)); } @Override public void onEvent(Observation.Event event, Obse...
public void onScopeOpened(Observation.Context context) { log.info("Scope opened for context " + toString(context)); } @Override public void onScopeClosed(Observation.Context context) { log.info("Scope closed for context " + toString(context)); } @Override public void onStop(Ob...
repos\tutorials-master\spring-boot-modules\spring-boot-3-observation\src\main\java\com\baeldung\samples\config\SimpleLoggingHandler.java
2