instruction
string
input
string
output
string
source_file
string
priority
int64
请在Spring Boot框架中完成以下Java代码
public class SecurityConfig { private final UserDetailsService userDetailsService; public SecurityConfig(UserDetailsService userDetailsService) { this.userDetailsService = userDetailsService; } @Bean public AuthenticationManager customAuthenticationManager(HttpSecurity http) throws Except...
public BCryptPasswordEncoder bCryptPasswordEncoder() { return new BCryptPasswordEncoder(); } @Bean public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http.csrf(AbstractHttpConfigurer::disable) .authorizeHttpRequests(Customizer.withDefaults()) ...
repos\tutorials-master\spring-security-modules\spring-security-web-boot-3\src\main\java\com\baeldung\mongoauth\config\SecurityConfig.java
2
请完成以下Java代码
public GarnishmentType1Choice getCdOrPrtry() { return cdOrPrtry; } /** * Sets the value of the cdOrPrtry property. * * @param value * allowed object is * {@link GarnishmentType1Choice } * */ public void setCdOrPrtry(GarnishmentType1Choice value) { ...
public String getIssr() { return issr; } /** * Sets the value of the issr property. * * @param value * allowed object is * {@link String } * */ public void setIssr(String value) { this.issr = value; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.esr\src\main\java-xjc_camt054_001_06\de\metas\payment\camt054_001_06\GarnishmentType1.java
1
请完成以下Spring Boot application配置
########################################################## ################## 所有profile共有的配置 ################# ########################################################## ################### spring配置 ################### spring: profiles: active: dev --- ######################################################...
##################### ######################## 测试环境profile ########################## ##################################################################### spring: profiles: test logging: level: ROOT: INFO com: xncoding: DEBUG file: /var/logs/app.log
repos\SpringBootBucket-master\springboot-async\src\main\resources\application.yml
2
请完成以下Java代码
private static DocumentPath toDocumentPath(final ViewRowAttributesKey key) { final DocumentId documentTypeId = key.getHuId(); final DocumentId huEditorRowId = key.getHuEditorRowId(); return DocumentPath.rootDocumentPath(DocumentType.ViewRecordAttributes, documentTypeId, huEditorRowId); } private IAttributeSto...
return attributeStorageFactoryService.createHUAttributeStorageFactory(storageFactory); } @Override public void invalidateAll() { // // Destroy AttributeStorageFactory _attributeStorageFactory.forget(); // // Destroy attribute documents rowAttributesByKey.clear(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\handlingunits\HUEditorRowAttributesProvider.java
1
请完成以下Java代码
public void setType(String type) { this.type = type; } public ModelApiResponse message(String message) { this.message = message; return this; } /** * Get message * @return message **/ @ApiModelProperty(value = "") public String getMessage() { return message; } public void set...
public int hashCode() { return Objects.hash(code, type, message); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ModelApiResponse {\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" type: ").append(t...
repos\tutorials-master\spring-swagger-codegen-modules\spring-swagger-codegen-api-client\src\main\java\com\baeldung\petstore\client\model\ModelApiResponse.java
1
请在Spring Boot框架中完成以下Java代码
public class CustomerService { private static final Logger LOGGER = LoggerFactory.getLogger(CustomerService.class); private final Map<String, Customer> customerRepoMap = new HashMap<>(); public List<Customer> createCustomers(List<Customer> customers) { return customers.stream() .ma...
customerToUpdate.setName(customer.getName()); customerToUpdate.setAddress(customer.getAddress()); LOGGER.info("Updated Customer : {}", customerToUpdate); } return Optional.ofNullable(customerToUpdate); } public Optional<Customer> deleteCustomer(Customer customer) { ...
repos\tutorials-master\spring-web-modules\spring-rest-http-3\src\main\java\com\baeldung\bulkandbatchapi\service\CustomerService.java
2
请完成以下Java代码
public boolean isReadWrite() { return readWrite; } // getReadWrite /** * Set Mandatory * @param mandatory */ @Override public void setMandatory (final boolean mandatory) { if (this.m_mandatory == mandatory) { return; } m_mandatory = mandatory; setBackground(false); } // setMandat...
requestFocus(); // metas end } // propertyChange /** * Start dialog and set value */ private final void onButtonPressed() { try { // Show the dialog final VImageDialog vid = new VImageDialog(Env.getWindow(m_WindowNo), m_WindowNo, m_mImage); vid.setVisible(true); // Do nothing if user ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\grid\ed\VImage.java
1
请在Spring Boot框架中完成以下Java代码
public List<PmsOperatorRole> listByOperatorId(Long operatorId) { return super.getSessionTemplate().selectList(getStatement("listByOperatorId"), operatorId); } /** * 根据角色ID查找该操作员关联的操作员. * * @param roleId * @return */ public List<PmsOperatorRole> listByRoleId(Long roleId) { return super.getSessionTempl...
*/ public void deleteByRoleId(Long roleId) { super.getSessionTemplate().delete(getStatement("deleteByRoleId"), roleId); } /** * 根据角色ID和操作员ID删除关联数据(用于更新操作员的角色). * * @param roleId * 角色ID. * @param operatorId * 操作员ID. */ @Override public void deleteByRoleIdAndOperatorId(Long ro...
repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\permission\dao\impl\PmsOperatorRoleDaoImpl.java
2
请完成以下Java代码
public class ExpiryAttributeUpdater { private final transient IAttributeSetInstanceAwareFactoryService attributeSetInstanceAwareFactoryService = Services.get(IAttributeSetInstanceAwareFactoryService.class); private Object sourceModel; private final transient IAttributeSetInstanceBL attributeSetInstanceBL = Services....
if (ai != null) { // If it was set, just leave it as it is return; } attributeSetInstanceBL.getCreateAttributeInstance(asiId, expiredAttribute); } public ExpiryAttributeUpdater setSourceModel(final Object sourceModel) { this.sourceModel = sourceModel; return this; } private Object getSourceModel...
repos\metasfresh-new_dawn_uat\backend\de.metas.fresh\de.metas.fresh.base\src\main\java\org\adempiere\mm\attributes\api\impl\ExpiryAttributeUpdater.java
1
请在Spring Boot框架中完成以下Java代码
public void setDateTrx (final java.sql.Timestamp DateTrx) { set_Value (COLUMNNAME_DateTrx, DateTrx); } @Override public java.sql.Timestamp getDateTrx() { return get_ValueAsTimestamp(COLUMNNAME_DateTrx); } @Override public void setDocumentNo (final java.lang.String DocumentNo) { set_Value (COLUMNNAME_D...
@Override public void setIsClosed (final boolean IsClosed) { set_Value (COLUMNNAME_IsClosed, IsClosed); } @Override public boolean isClosed() { return get_ValueAsBoolean(COLUMNNAME_IsClosed); } @Override public void setOpeningNote (final @Nullable java.lang.String OpeningNote) { set_Value (COLUMNNAME...
repos\metasfresh-new_dawn_uat\backend\de.metas.pos.base\src\main\java-gen\de\metas\pos\repository\model\X_C_POS_Journal.java
2
请完成以下Java代码
public void replayApiRequests(@NonNull final ApiRequestIterator apiRequestIterator) { apiRequestIterator.forEach(this::replayAction); } @VisibleForTesting public void replayApiRequests(@NonNull final ImmutableList<ApiRequestAudit> apiRequestAuditTimeSortedList) { apiRequestAuditTimeSortedList.forEach(this::re...
{ loggable.flush(); } } private void replayAction(@NonNull final ApiRequestAudit apiRequestAudit) { try { final ApiResponse apiResponse = apiAuditService.executeHttpCall(apiRequestAudit); final ApiAuditConfig apiAuditConfig = apiAuditConfigRepository.getConfigById(apiRequestAudit.getApiAuditConfigId...
repos\metasfresh-new_dawn_uat\backend\de.metas.util.web\src\main\java\de\metas\util\web\audit\ApiRequestReplayService.java
1
请在Spring Boot框架中完成以下Java代码
public class ParamController extends BladeController { private IParamService paramService; /** * 详情 */ @GetMapping("/detail") @ApiOperationSupport(order = 1) @Operation(summary = "详情", description = "传入param") public R<Param> detail(Param param) { Param detail = paramService.getOne(Condition.getQueryWrapp...
public R submit(@Valid @RequestBody Param param) { return R.status(paramService.saveOrUpdate(param)); } /** * 删除 */ @PostMapping("/remove") @ApiOperationSupport(order = 4) @Operation(summary = "逻辑删除", description = "传入ids") public R remove(@Parameter(description = "主键集合", required = true) @RequestParam St...
repos\SpringBlade-master\blade-service\blade-system\src\main\java\org\springblade\system\controller\ParamController.java
2
请完成以下Java代码
public class EDI_Desadv_Pack_PrintSSCCLabels extends JavaProcess implements IProcessPrecondition { private final IQueryBL queryBL = Services.get(IQueryBL.class); private final IDesadvBL desadvBL = Services.get(IDesadvBL.class); @Override public ProcessPreconditionsResolution checkPreconditionsApplicable(@NonNull f...
final Set<EDIDesadvPackId> list = queryBL .createQueryBuilder(I_EDI_Desadv_Pack.class) .filter(selectedRecordsFilter) .create() .stream() .map(I_EDI_Desadv_Pack::getEDI_Desadv_Pack_ID) .map(EDIDesadvPackId::ofRepoId) .collect(ImmutableSet.toImmutableSet()); final ReportResultData reportRe...
repos\metasfresh-new_dawn_uat\backend\de.metas.edi\src\main\java\de\metas\edi\process\EDI_Desadv_Pack_PrintSSCCLabels.java
1
请完成以下Java代码
public void setOverrides_Window_ID (final int Overrides_Window_ID) { if (Overrides_Window_ID < 1) set_Value (COLUMNNAME_Overrides_Window_ID, null); else set_Value (COLUMNNAME_Overrides_Window_ID, Overrides_Window_ID); } @Override public int getOverrides_Window_ID() { return get_ValueAsInt(COLUMNNAM...
@Override public void setWinHeight (final int WinHeight) { set_Value (COLUMNNAME_WinHeight, WinHeight); } @Override public int getWinHeight() { return get_ValueAsInt(COLUMNNAME_WinHeight); } @Override public void setWinWidth (final int WinWidth) { set_Value (COLUMNNAME_WinWidth, WinWidth); } @Over...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_Window.java
1
请完成以下Java代码
/* package */ static String convertDecimalPatternToPG(final String formatPattern) { if (formatPattern == null || formatPattern.isEmpty()) { return null; } final StringBuilder pgFormatPattern = new StringBuilder(formatPattern.length() + 2); pgFormatPattern.append("FM"); // fill mode (suppress padding blan...
/** * Return number as string for INSERT statements with correct precision * * @param number number * @param displayType display Type * @return number as string */ public static String TO_NUMBER(final BigDecimal number, final int displayType) { if (number == null) { return "NULL"; } BigDec...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\db\Database.java
1
请完成以下Java代码
private static void jsonMembers(Environment environment, @Nullable StackTracePrinter stackTracePrinter, ContextPairs contextPairs, JsonWriter.Members<LogEvent> members) { Extractor extractor = new Extractor(stackTracePrinter); members.add("@timestamp", LogEvent::getInstant).as(ElasticCommonSchemaStructuredLogFor...
private static void addContextDataPairs(Pairs<ReadOnlyStringMap> contextPairs) { contextPairs.add((contextData, pairs) -> contextData.forEach(pairs::accept)); } private static java.time.Instant asTimestamp(Instant instant) { return java.time.Instant.ofEpochMilli(instant.getEpochMillisecond()).plusNanos(instant.g...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\logging\log4j2\ElasticCommonSchemaStructuredLogFormatter.java
1
请在Spring Boot框架中完成以下Java代码
public GitIgnoreCustomizer mavenGitIgnoreCustomizer() { return (gitIgnore) -> { gitIgnore.getGeneral() .add("target/", ".mvn/wrapper/maven-wrapper.jar", "!**/src/main/**/target/", "!**/src/test/**/target/"); gitIgnore.getNetBeans().add("build/", "!**/src/main/**/build/", "!**/src/test/**/build/"); }; } ...
}; } @Bean @ConditionalOnBuildSystem(GradleBuildSystem.ID) public GitAttributesCustomizer gradleGitAttributesCustomizer() { return (gitAttributes) -> { gitAttributes.add("/gradlew", "text", "eol=lf"); gitAttributes.add("*.bat", "text", "eol=crlf"); gitAttributes.add("*.jar", "binary"); }; } private...
repos\initializr-main\initializr-generator-spring\src\main\java\io\spring\initializr\generator\spring\scm\git\GitProjectGenerationConfiguration.java
2
请完成以下Java代码
static AvailabilityInfoResultForWebui.Group.Type extractGroupType(@NonNull final AttributesKeyPattern attributesKey) { if (AttributesKeyPattern.ALL.equals(attributesKey)) { return AvailabilityInfoResultForWebui.Group.Type.ALL_STORAGE_KEYS; } else if (AttributesKeyPattern.OTHER.equals(attributesKey)) { ...
? AttributesKeys.toImmutableAttributeSet(commonsResultGroup.getStorageAttributesKey()) : ImmutableAttributeSet.EMPTY; return AvailabilityInfoResultForWebui.Group.builder() .productId(commonsResultGroup.getProductId()) .qty(quantity) .type(type) .attributes(attributes) .build(); } private Q...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\material\adapter\AvailableForSaleAdapter.java
1
请完成以下Java代码
public boolean isUserParameter() { return parameterAnnotation != null; } public DocumentFieldDescriptor.Builder createParameterFieldDescriptor() { Preconditions.checkState(isUserParameter(), "parameter is internal"); LookupDescriptorProvider lookupDescriptorProvider = LookupDescriptorProviders.NULL; if (p...
return DocumentFieldDescriptor.builder(parameterName) .setCaption(parameterAnnotation.caption()) // .setDescription(parameterAnnotation.description()) // .setValueClass(parameterValueClass) .setWidgetType(parameterAnnotation.widgetType()) .setLookupDescriptorProvider(lookupDescriptorProvider != ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\process\view\ViewActionParamDescriptor.java
1
请完成以下Java代码
public int getM_HU_PI_Item_Product_ID() { // // Check the invoice line first final int invoiceLine_PIItemProductId = invoiceLine.getM_HU_PI_Item_Product_ID(); if (invoiceLine_PIItemProductId > 0) { return invoiceLine_PIItemProductId; } // // Check order line final I_C_OrderLine orderline = Interf...
@Override public void setQtyTU(final BigDecimal qtyPacks) { invoiceLine.setQtyEnteredTU(qtyPacks); } @Override public void setC_BPartner_ID(final int partnerId) { values.setC_BPartner_ID(partnerId); } @Override public int getC_BPartner_ID() { return values.getC_BPartner_ID(); } @Override public bo...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\adempiere\gui\search\impl\InvoiceLineHUPackingAware.java
1
请在Spring Boot框架中完成以下Java代码
public List<String> getCustomMybatisXMLMappers() { return customMybatisXMLMappers; } public void setCustomMybatisXMLMappers(List<String> customMybatisXMLMappers) { this.customMybatisXMLMappers = customMybatisXMLMappers; } public String getActivityFontName() { return activityFontName; }...
} public void setSchemaLockWaitTime(Duration schemaLockWaitTime) { this.schemaLockWaitTime = schemaLockWaitTime; } public boolean isEnableHistoryCleaning() { return enableHistoryCleaning; } public void setEnableHistoryCleaning(boolean enableHistoryCleaning) { this.enableHis...
repos\flowable-engine-main\modules\flowable-spring-boot\flowable-spring-boot-starters\flowable-spring-boot-autoconfigure\src\main\java\org\flowable\spring\boot\FlowableProperties.java
2
请完成以下Java代码
public void setAD_ReplicationStrategy_ID (final int AD_ReplicationStrategy_ID) { if (AD_ReplicationStrategy_ID < 1) set_Value (COLUMNNAME_AD_ReplicationStrategy_ID, null); else set_Value (COLUMNNAME_AD_ReplicationStrategy_ID, AD_ReplicationStrategy_ID); } @Override public int getAD_ReplicationStrategy_...
} @Override public boolean isSummary() { return get_ValueAsBoolean(COLUMNNAME_IsSummary); } @Override public void setName (final java.lang.String Name) { set_Value (COLUMNNAME_Name, Name); } @Override public java.lang.String getName() { return get_ValueAsString(COLUMNNAME_Name); } @Override pu...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_Org.java
1
请完成以下Java代码
public VariableInstanceQuery orderBy(QueryProperty property) { wrappedVariableInstanceQuery.orderBy(property); return this; } @Override public VariableInstanceQuery orderBy(QueryProperty property, NullHandlingOnOrder nullHandlingOnOrder) { wrappedVariableInstanceQuery.orderBy(proper...
public VariableInstance singleResult() { return wrappedVariableInstanceQuery.singleResult(); } @Override public List<VariableInstance> list() { return wrappedVariableInstanceQuery.list(); } @Override public List<VariableInstance> listPage(int firstResult, int maxResults) { ...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\runtime\CmmnVariableInstanceQueryImpl.java
1
请完成以下Java代码
public String getName() { return TYPE_NAME; } @Override public Object getInformation(String key) { if (key.equals("values")) { return values; } return null; } public TypedValue convertValue(TypedValue propertyValue) { Object value = propertyValue.getValue(); if(value == null ||...
} //////////////////// deprecated //////////////////////////////////////// @Override public Object convertFormValueToModelValue(Object propertyValue) { validateValue(propertyValue); return propertyValue; } @Override public String convertModelValueToFormValue(Object modelValue) { if(modelValue...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\form\type\EnumFormType.java
1
请在Spring Boot框架中完成以下Java代码
public final class DevelopmentWorkspaceJasperDirectoriesFinder { public static List<File> getReportsDirectoriesForWorkspace(final File workspaceDir) { if (!workspaceDir.isDirectory()) { return ImmutableList.of(); } final File[] projectDirs = workspaceDir.listFiles(File::isDirectory); final ArrayList<Fi...
final File reportsDir = getReportsDirOfProjectDirIfExists(dir); if (reportsDir != null) { result.add(reportsDir); } } for (final File subProjectDir : dir.listFiles(DevelopmentWorkspaceJasperDirectoriesFinder::isProjectDir)) { result.addAll(getReportsDirectories(subProjectDir)); } return resu...
repos\metasfresh-new_dawn_uat\backend\de.metas.report\metasfresh-report-service\src\main\java\de\metas\report\util\DevelopmentWorkspaceJasperDirectoriesFinder.java
2
请在Spring Boot框架中完成以下Java代码
public TaskService taskServiceBean(ProcessEngine processEngine) { return super.taskServiceBean(processEngine); } @Bean @ConditionalOnMissingBean @Override public HistoryService historyServiceBean(ProcessEngine processEngine) { return super.historyServiceBean(processEngine); } ...
public TaskExecutor taskExecutor() { return new SimpleAsyncTaskExecutor(); } @Bean @ConditionalOnMissingBean @Override public IntegrationContextManager integrationContextManagerBean(ProcessEngine processEngine) { return super.integrationContextManagerBean(processEngine); } ...
repos\Activiti-develop\activiti-core\activiti-spring-boot-starter\src\main\java\org\activiti\spring\boot\AbstractProcessEngineAutoConfiguration.java
2
请完成以下Java代码
public Boolean getBoolField() { return boolField; } public void setBoolField(Boolean boolField) { this.boolField = boolField; } public Boolean getTrueField() { return trueField; } public void setTrueField(Boolean trueField) { this.trueField = trueField; }
public Boolean getFalseField() { return falseField; } public void setFalseField(Boolean falseField) { this.falseField = falseField; } public Boolean getBoolStringVar() { return boolStringVar; } public void setBoolStringVar(Boolean boolStringVar) { this.boolStri...
repos\tutorials-master\spring-boot-modules\spring-boot-validations\src\main\java\com\baeldung\dto\BooleanObject.java
1
请完成以下Java代码
public boolean getIsShipToOr(final boolean defaultValue) { return shipTo.orElse(defaultValue); } public boolean getIsShipToDefaultOr(final boolean defaultValue) { return shipToDefault.orElse(defaultValue); } public boolean getIsBillToOr(final boolean defaultValue) { return billTo.orElse(defaultValue); }...
} public boolean getIsVisitorsAddressDefaultOr(final boolean defaultValue) { return visitorsAddressDefault.orElse(defaultValue); } public void setBillToDefault(final boolean billToDefault) { this.billToDefault = Optional.of(billToDefault); } public void setShipToDefault(final boolean shipToDefault) { t...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\bpartner\composite\BPartnerLocationType.java
1
请完成以下Java代码
public void setDocumentFlavor (final @Nullable java.lang.String DocumentFlavor) { set_Value (COLUMNNAME_DocumentFlavor, DocumentFlavor); } @Override public java.lang.String getDocumentFlavor() { return get_ValueAsString(COLUMNNAME_DocumentFlavor); } @Override public void setDocumentNo (final @Nullable ja...
{ set_Value (COLUMNNAME_IsReport, IsReport); } @Override public boolean isReport() { return get_ValueAsBoolean(COLUMNNAME_IsReport); } @Override public void setName (final java.lang.String Name) { set_Value (COLUMNNAME_Name, Name); } @Override public java.lang.String getName() { return get_Valu...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_Archive.java
1
请完成以下Java代码
private AllocablePackageable toBOMLineAllocablePackageable(final PickingCandidateIssueToBOMLine candidate, final AllocablePackageable finishedGoodPackageable) { return finishedGoodPackageable.toBuilder() .productId(candidate.getProductId()) .qtyToAllocateTarget(candidate.getQtyToIssue()) .issueToBOMLine(...
{ final HashSet<AlternativePickFromKey> keysConsidered = new HashSet<>(); final ArrayList<AlternativePickFrom> alternatives = new ArrayList<>(); for (final PickingPlanLine line : lines) { final PickFromHU pickFromHU = line.getPickFromHU(); if (pickFromHU == null) { continue; } for (final Alt...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\picking\plan\generator\CreatePickingPlanCommand.java
1
请完成以下Java代码
public TablePageQueryImpl orderAsc(String column) { addOrder(column, ListQueryParameterObject.SORTORDER_ASC); return this; } @Override public TablePageQueryImpl orderDesc(String column) { addOrder(column, ListQueryParameterObject.SORTORDER_DESC); return this; } publ...
order = order + column + " " + sortOrder; } @Override public TablePage listPage(int firstResult, int maxResults) { this.firstResult = firstResult; this.maxResults = maxResults; return commandExecutor.execute(this); } @Override public TablePage execute(CommandContext com...
repos\flowable-engine-main\modules\flowable-engine-common\src\main\java\org\flowable\common\engine\impl\persistence\entity\TablePageQueryImpl.java
1
请完成以下Java代码
public Order complete(Boolean complete) { this.complete = complete; return this; } /** * Get complete * @return complete **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Bool...
sb.append("class Order {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" petId: ").append(toIndentedString(petId)).append("\n"); sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n"); sb.append(" shipDate: ").append(toIndentedString(shipDate)...
repos\tutorials-master\spring-swagger-codegen-modules\spring-openapi-generator-api-client\src\main\java\com\baeldung\petstore\client\model\Order.java
1
请完成以下Java代码
public ResponseEntity<PageResult<LocalStorageDto>> queryFile(LocalStorageQueryCriteria criteria, Pageable pageable){ return new ResponseEntity<>(localStorageService.queryAll(criteria,pageable),HttpStatus.OK); } @ApiOperation("导出数据") @GetMapping(value = "/download") @PreAuthorize("@el.check('sto...
@PutMapping @Log("修改文件") @ApiOperation("修改文件") @PreAuthorize("@el.check('storage:edit')") public ResponseEntity<Object> updateFile(@Validated @RequestBody LocalStorage resources){ localStorageService.update(resources); return new ResponseEntity<>(HttpStatus.NO_CONTENT); } @Log("...
repos\eladmin-master\eladmin-tools\src\main\java\me\zhengjie\rest\LocalStorageController.java
1
请在Spring Boot框架中完成以下Java代码
public String getCurrentTimestampSelectString() { return "select current_timestamp"; } public boolean supportsUnionAll() { return true; } public boolean hasAlterTable() { return false; // As specify in NHibernate dialect } public boolean dropConstraints() { ret...
} public String getAddForeignKeyConstraintString(String constraintName, String[] foreignKey, String referencedTable, String[] primaryKey, boolean referencesPrimaryKey) { throw new UnsupportedOperationExcep...
repos\SpringBoot-vue-master\src\main\java\com\boylegu\springboot_vue\config\SQLiteDialect.java
2
请完成以下Java代码
public Date getCompletedBefore() { return completedBefore; } public Date getCompletedAfter() { return completedAfter; } public String getGroupBy() { return groupby; } @CamundaQueryParam(value = "completedAfter", converter = DateConverter.class) public void setCompletedAfter(Date completedAf...
throw new InvalidRequestException(Response.Status.BAD_REQUEST, "periodUnit is null"); } } } protected HistoricTaskInstanceReport createNewReportQuery(ProcessEngine engine) { return engine.getHistoryService().createHistoricTaskInstanceReport(); } public List<HistoricTaskInstanceReportResult> exe...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\history\HistoricTaskInstanceReportQueryDto.java
1
请完成以下Java代码
public class GroupDto { protected String id; protected String name; protected String type; // Transformers //////////////////////////////// public static GroupDto fromGroup(Group dbGroup) { GroupDto groupDto = new GroupDto(); groupDto.setId(dbGroup.getId()); groupDto.setName(dbGroup.getName...
// Getters / Setters /////////////////////////// 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 getType() { return type; } public ...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\identity\GroupDto.java
1
请在Spring Boot框架中完成以下Java代码
public @Nullable Cluster getCluster() { DataRedisProperties.Cluster cluster = this.properties.getCluster(); return (cluster != null) ? new PropertiesCluster(cluster) : null; } @Override public @Nullable MasterReplica getMasterReplica() { DataRedisProperties.Masterreplica masterreplica = this.properties.getMas...
*/ private class PropertiesSentinel implements Sentinel { private final int database; private final DataRedisProperties.Sentinel properties; PropertiesSentinel(int database, DataRedisProperties.Sentinel properties) { this.database = database; this.properties = properties; } @Override public int g...
repos\spring-boot-4.0.1\module\spring-boot-data-redis\src\main\java\org\springframework\boot\data\redis\autoconfigure\PropertiesDataRedisConnectionDetails.java
2
请完成以下Java代码
public final class GroovyLanguage extends AbstractLanguage { // See https://docs.groovy-lang.org/latest/html/documentation/#_keywords private static final Set<String> KEYWORDS = Set.of("abstract", "assert", "break", "case", "catch", "class", "const", "continue", "def", "default", "do", "else", "enum", "extends", ...
* @param jvmVersion the JVM version */ public GroovyLanguage(String jvmVersion) { super(ID, jvmVersion, "groovy"); } @Override public boolean supportsEscapingKeywordsInPackage() { return false; } @Override public boolean isKeyword(String input) { return KEYWORDS.contains(input); } }
repos\initializr-main\initializr-generator\src\main\java\io\spring\initializr\generator\language\groovy\GroovyLanguage.java
1
请完成以下Java代码
public String toString() { String regexp = config.getRegexp(); return filterToStringCreator(RewritePathGatewayFilterFactory.this) .append(regexp != null ? regexp : "", replacement) .toString(); } }; } public static class Config { private @Nullable String regexp; private @Nullable String ...
return this; } public @Nullable String getReplacement() { return replacement; } public Config setReplacement(String replacement) { Objects.requireNonNull(replacement, "replacement must not be null"); this.replacement = replacement; return this; } } }
repos\spring-cloud-gateway-main\spring-cloud-gateway-server-webflux\src\main\java\org\springframework\cloud\gateway\filter\factory\RewritePathGatewayFilterFactory.java
1
请完成以下Java代码
public void updateBPartnerAddress(final I_M_ReceiptSchedule sched) { final IReceiptScheduleBL receiptScheduleBL = Services.get(IReceiptScheduleBL.class); receiptScheduleBL.updateBPartnerAddress(sched); } @ModelChange(timings = { ModelValidator.TYPE_BEFORE_NEW, ModelValidator.TYPE_BEFORE_CHANGE }, ifColum...
return; } final IAggregationKeyBuilder<I_M_ReceiptSchedule> headerAggregationKeyBuilder = receiptScheduleBL.getHeaderAggregationKeyBuilder(); final String headerAggregationKey = headerAggregationKeyBuilder.buildKey(sched); sched.setHeaderAggregationKey(headerAggregationKey); } @ModelChange(timings = { Model...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\inoutcandidate\modelvalidator\M_ReceiptSchedule.java
1
请在Spring Boot框架中完成以下Java代码
public Flux<User> getUserByAgeStream(@PathVariable Integer from, @PathVariable Integer to) { return userService.getUserByAge(from, to); } /** * 根据用户名查找 */ @GetMapping("/name/{name}") public Flux<User> getUserByName(@PathVariable String name) { return userService.getUserByName(...
@GetMapping(value = "/stream/description/{description}", produces = MediaType.TEXT_EVENT_STREAM_VALUE) public Flux<User> getUserByDescriptionStream(@PathVariable String description) { return userService.getUserByDescription(description); } /** * 根据多个检索条件查询 */ @GetMapping("/condition")...
repos\SpringAll-master\58.Spring-Boot-WebFlux-crud\src\main\java\com\example\webflux\controller\UserController.java
2
请完成以下Java代码
protected EventLoggerEventHandler instantiateEventHandler( ActivitiEvent event, Class<? extends EventLoggerEventHandler> eventHandlerClass ) { try { EventLoggerEventHandler eventHandler = eventHandlerClass.getDeclaredConstructor().newInstance(); eventHandler.setTimeSt...
/** * Subclasses that want something else than the database flusher should override this method */ protected EventFlusher createEventFlusher() { return null; } public Clock getClock() { return clock; } public void setClock(Clock clock) { this.clock = clock; } ...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\event\logger\EventLogger.java
1
请在Spring Boot框架中完成以下Java代码
public Hierarchy createForCustomer(@NonNull final BPartnerId bPartnerId, @NonNull final BPartnerId salesRepId) { if (bPartnerId.equals(salesRepId)) { return createFor(salesRepId, Hierarchy.builder(), new HashSet<>()); } final HierarchyBuilder hierarchyBuilder = Hierarchy.builder() .addChildren(node(sal...
{ hierarchyBuilder.addChildren(node(bPartnerId), ImmutableList.of()); return hierarchyBuilder.build(); } hierarchyBuilder.addChildren(node(parentBPartnerId), ImmutableList.of(node(bPartnerId))); // recurse createFor(parentBPartnerId, hierarchyBuilder, seenBPartnerIds); return hierarchyBuilder.build()...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\commission\commissioninstance\services\hierarchy\CommissionHierarchyFactory.java
2
请完成以下Java代码
public boolean isStockCandidateOfThisCandidate(@NonNull final Candidate potentialStockCandidate) { if (potentialStockCandidate.type != CandidateType.STOCK) { return false; } switch (type) { case DEMAND: return potentialStockCandidate.getParentId().equals(id); case SUPPLY: return potentialSto...
/** * The qty is always stored as an absolute value on the candidate, but we're interested if the candidate is adding or subtracting qty to the stock. */ public BigDecimal getStockImpactPlannedQuantity() { switch (getType()) { case DEMAND: case UNEXPECTED_DECREASE: case INVENTORY_DOWN: return get...
repos\metasfresh-new_dawn_uat\backend\de.metas.material\dispo-commons\src\main\java\de\metas\material\dispo\commons\candidate\Candidate.java
1
请完成以下Java代码
public int getC_ProjectType_ID() { return get_ValueAsInt(COLUMNNAME_C_ProjectType_ID); } @Override public void setDescription (final java.lang.String Description) { set_Value (COLUMNNAME_Description, Description); } @Override public java.lang.String getDescription() { return get_ValueAsString(COLUMNN...
@Override public java.lang.String getName() { return get_ValueAsString(COLUMNNAME_Name); } @Override public void setSeqNo (final int SeqNo) { set_Value (COLUMNNAME_SeqNo, SeqNo); } @Override public int getSeqNo() { return get_ValueAsInt(COLUMNNAME_SeqNo); } @Override public void setStandardQty (...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_Phase.java
1
请完成以下Java代码
public @NonNull String getHandledTableName() { return I_M_ShipperTransportation.Table_Name; } @Override public StandardDocumentReportType getStandardDocumentReportType() { return StandardDocumentReportType.SHIPPER_TRANSPORTATION; } @Override public @NonNull DocumentReportInfo getDocumentReportInfo( @No...
.bpartnerId(shipperPartnerId) .bPartnerLocationId(BPartnerLocationId.ofRepoId(shipperPartnerId, shipperTransportation.getShipper_Location_ID())) .docTypeId(docTypeId) .onlyCopiesGreaterZero(true) .build(); return DocumentReportInfo.builder() .recordRef(recordRef) .reportProcessId(reportProces...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\shipping\ShipperTransportationReportAdvisor.java
1
请完成以下Java代码
private String getUserNameAttributeName(OAuth2UserRequest userRequest) { if (!StringUtils .hasText(userRequest.getClientRegistration().getProviderDetails().getUserInfoEndpoint().getUri())) { OAuth2Error oauth2Error = new OAuth2Error(MISSING_USER_INFO_URI_ERROR_CODE, "Missing required UserInfo Uri in UserIn...
* Sets the {@link Converter} used for converting the {@link OAuth2UserRequest} to a * {@link RequestEntity} representation of the UserInfo Request. * @param requestEntityConverter the {@link Converter} used for converting to a * {@link RequestEntity} representation of the UserInfo Request * @since 5.1 */ pub...
repos\spring-security-main\oauth2\oauth2-client\src\main\java\org\springframework\security\oauth2\client\userinfo\DefaultOAuth2UserService.java
1
请在Spring Boot框架中完成以下Java代码
public Menu findOne(Long id) { Menu menu = menuRepository.findById(id).orElseGet(Menu::new); ValidationUtil.isNull(menu.getId(),"Menu","id",id); return menu; } @Override public void download(List<MenuDto> menuDtos, HttpServletResponse response) throws IOException { List<Map<...
/** * 构建前端路由 * @param menuDTO / * @param menuVo / * @return / */ private static MenuVo getMenuVo(MenuDto menuDTO, MenuVo menuVo) { MenuVo menuVo1 = new MenuVo(); menuVo1.setMeta(menuVo.getMeta()); // 非外链 if(!menuDTO.getIFrame()){ menuVo1.setPath("...
repos\eladmin-master\eladmin-system\src\main\java\me\zhengjie\modules\system\service\impl\MenuServiceImpl.java
2
请完成以下Java代码
public class AWindowSaveState { public static void createAndAdd(final APanel panel, final JMenu menu) { final AWindowSaveState app = new AWindowSaveState(panel); final JMenuItem menuItem = app.getJMenuItem(); menu.add(menuItem); } private final AWindowSaveStateModel model = new AWindowSaveStateModel(); priv...
for (final GridController child : gc.getChildGridControllers()) { save(child); } } private void save(final GridController gc) { Check.assumeNotNull(gc, "gc not null"); final GridTab gridTab = gc.getMTab(); final VTable table = gc.getVTable(); // // Check CTable to GridTab synchronizer final CTa...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java\org\compiere\apps\AWindowSaveState.java
1
请完成以下Java代码
public java.math.BigDecimal getUnitsCycles () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_UnitsCycles); if (bd == null) return BigDecimal.ZERO; return bd; } /** Set Waiting Time. @param WaitingTime Workflow Simulation Waiting time */ @Override public void setWaitingTime (int WaitingTime)...
@return Workflow Simulation Execution Time */ @Override public int getWorkingTime () { Integer ii = (Integer)get_Value(COLUMNNAME_WorkingTime); if (ii == null) return 0; return ii.intValue(); } /** Set Yield %. @param Yield The Yield is the percentage of a lot that is expected to be of acceptab...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\eevolution\model\X_PP_Order_Workflow.java
1
请完成以下Java代码
public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } @Override public int hashCode() { final int prime = 31;
int result = 1; result = prime * result + ((id == null) ? 0 : id.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (obj instanceo...
repos\tutorials-master\persistence-modules\java-jpa-3\src\main\java\com\baeldung\jpa\equality\EqualById.java
1
请完成以下Java代码
public Void execute(CommandContext commandContext) { if (deploymentId == null) { throw new ActivitiIllegalArgumentException("deploymentId is null"); } // Update all entities DeploymentEntity deployment = commandContext.getDeploymentEntityManager().findById(deploymentId); ...
commandContext.getDeadLetterJobEntityManager().updateJobTenantIdForDeployment(deploymentId, newTenantId); commandContext.getEventSubscriptionEntityManager().updateEventSubscriptionTenantId(oldTenantId, newTenantId); // Doing process definitions in memory, cause we need to clear the process definition c...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\cmd\ChangeDeploymentTenantIdCmd.java
1
请完成以下Java代码
public PickingSlotQueues getNotEmptyQueues(@NonNull final PickingSlotQueueQuery query) { return pickingSlotQueueRepository.getNotEmptyQueues(query); } public PickingSlotQueue getPickingSlotQueue(@NonNull final PickingSlotId pickingSlotId) { return pickingSlotQueueRepository.getPickingSlotQueue(pickingSlotId); ...
private static PickingSlotReservationValue extractReservationValue(final I_M_PickingSlot pickingSlot) { final BPartnerId bpartnerId = BPartnerId.ofRepoIdOrNull(pickingSlot.getC_BPartner_ID()); return PickingSlotReservationValue.builder() .bpartnerId(bpartnerId) .bpartnerLocationId(BPartnerLocationId.ofRepo...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\picking\slot\PickingSlotService.java
1
请完成以下Java代码
public String getEntityType () { return (String)get_Value(COLUMNNAME_EntityType); } /** Set Mark 1 Percent. @param Mark1Percent Percentage up to this color is used */ public void setMark1Percent (int Mark1Percent) { set_Value (COLUMNNAME_Mark1Percent, Integer.valueOf(Mark1Percent)); } /** Get Mark...
} /** 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() { return new KeyNamePair(get_ID(), getN...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_PA_ColorSchema.java
1
请完成以下Java代码
public void parseChildElement(XMLStreamReader xtr, BaseElement parentElement, BpmnModel model) throws Exception { String source = xtr.getAttributeValue(null, ATTRIBUTE_IOPARAMETER_SOURCE); String sourceExpression = xtr.getAttributeValue(null, ATTRIBUTE_IOPARAMETER_SOURCE_EXPRESSION);...
} public void parseChildElement(XMLStreamReader xtr, BaseElement parentElement, BpmnModel model) throws Exception { String source = xtr.getAttributeValue(null, ATTRIBUTE_IOPARAMETER_SOURCE); String sourceExpression = xtr.getAttributeValue(null, ATTRIBUTE_IOPARAMETER_SOURCE_E...
repos\Activiti-develop\activiti-core\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\CallActivityXMLConverter.java
1
请完成以下Java代码
public class ProductProposalPrice { @Getter private final BigDecimal userEnteredPriceValue; @Getter private final CurrencyCode currencyCode; private final Amount priceListPrice; private final ProductProposalCampaignPrice campaignPrice; @Getter private final boolean campaignPriceUsed; @Getter private final ...
{ this.userEnteredPriceValue = priceListPrice.getAsBigDecimal(); } // this.priceListPriceUsed = this.priceListPrice.valueComparingEqualsTo(this.userEnteredPriceValue); this.campaignPriceUsed = this.campaignPrice != null && !priceListPriceUsed && this.campaignPrice.amountValueComparingEqualsTo(this.u...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\order\products_proposal\model\ProductProposalPrice.java
1
请在Spring Boot框架中完成以下Java代码
public float getScore(boolean normalized) { // if (normalized && actionHistory.size() > 0) // return score / actionHistory.size(); return score; } public void addScore(float score) { this.score += score; } public void setScore(float score) { this...
@Override public boolean equals(Object o) { if (o instanceof Configuration) { Configuration configuration = (Configuration) o; if (configuration.score != score) return false; if (configuration.actionHistory.size() != actionHistory.size()) ...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\dependency\perceptron\transition\configuration\Configuration.java
2
请完成以下Java代码
public static final TableResource ofAD_Table_ID(final int adTableId) { return new TableResource(adTableId); } private final int adTableId; private TableResource(final int adTableId) { Check.assume(adTableId > 0, "AD_Table_ID > 0"); this.adTableId = adTableId; } /** "Any table" constructor */ private Ta...
} @Override public String toString() { if (this == ANY_TABLE) { return "@AD_Table_ID@=*"; } else { return "@AD_Table_ID@=" + adTableId; } } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\security\permissions\TableResource.java
1
请完成以下Java代码
public JsonCreateIssueResponse createIssue(final @NonNull JsonError jsonError, final @NonNull PInstanceId pInstanceId) { final List<JsonCreateIssueResponseItem> adIssueIds = jsonError .getErrors() .stream() .map(error -> createInsertRemoteIssueRequest(error, pInstanceId)) .map(errorManager::insertRem...
return externalSystemExportAuditRepo.getMostRecentByTableReferenceAndSystem(tableRecordReference, externalSystemType); } @NonNull public ExternalSystemExportAudit createESExportAudit(@NonNull final CreateExportAuditRequest request) { return externalSystemExportAuditRepo.createESExportAudit(request); } @NonNul...
repos\metasfresh-new_dawn_uat\backend\de.metas.business.rest-api-impl\src\main\java\de\metas\rest_api\v1\externlasystem\dto\ExternalSystemService.java
1
请完成以下Spring Boot application配置
spring.datasource.url=jdbc:postgresql://localhost:5433/yugabyte spring.datasource.username=yugabyte spring.datasource.password=yugabyte spring.jpa.hibernate.ddl-auto=cr
eate spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
repos\tutorials-master\persistence-modules\spring-data-yugabytedb\src\main\resources\application.properties
2
请完成以下Java代码
public DeploymentQueryImpl deploymentWithoutTenantId() { this.withoutTenantId = true; return this; } public DeploymentQueryImpl processDefinitionKey(String key) { if (key == null) { throw new ActivitiIllegalArgumentException("key is null"); } this.processDefi...
checkQueryOk(); return commandContext.getDeploymentEntityManager().findDeploymentCountByQueryCriteria(this); } @Override public List<Deployment> executeList(CommandContext commandContext, Page page) { checkQueryOk(); return commandContext.getDeploymentEntityManager().findDeployments...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\DeploymentQueryImpl.java
1
请完成以下Java代码
public Builder setUserElementString1(final String userElementString1) { setSegmentValue(AcctSegmentType.UserElementString1, userElementString1); return this; } public Builder setUserElementString2(final String userElementString2) { setSegmentValue(AcctSegmentType.UserElementString2, userElementString2...
public Builder setUserElementString5(final String userElementString5) { setSegmentValue(AcctSegmentType.UserElementString5, userElementString5); return this; } public Builder setUserElementString6(final String userElementString6) { setSegmentValue(AcctSegmentType.UserElementString6, userElementString6...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\acct\api\AccountDimension.java
1
请在Spring Boot框架中完成以下Java代码
public class WebController { private PersonRepository personRepository; private StudentRepository studentRepository; public WebController(PersonRepository personRepository, StudentRepository studentRepository) { this.personRepository = personRepository; this.studentRepository = studentRepo...
@GetMapping("/student") public Student getStudent(@PathParam("name") String name, @PathParam("searchLastName") String searchLastName) { if (name != null) return this.studentRepository.findByName(name) .orElseThrow(() -> new RuntimeException("Student not found")); if ...
repos\springboot-demo-master\RedisSearch\src\main\java\com\et\controller\WebController.java
2
请完成以下Java代码
public java.lang.String getSkonto() { return get_ValueAsString(COLUMNNAME_Skonto); } @Override public void setUmsatz (final @Nullable java.lang.String Umsatz) { set_Value (COLUMNNAME_Umsatz, Umsatz); } @Override public java.lang.String getUmsatz() { return get_ValueAsString(COLUMNNAME_Umsatz); } @...
public java.lang.String getZI_Art() { return get_ValueAsString(COLUMNNAME_ZI_Art); } @Override public void setZI_Inhalt (final @Nullable java.lang.String ZI_Inhalt) { set_Value (COLUMNNAME_ZI_Inhalt, ZI_Inhalt); } @Override public java.lang.String getZI_Inhalt() { return get_ValueAsString(COLUMNNAME_...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_DatevAcctExportLine.java
1
请完成以下Java代码
public class IntentEventListenerActivityBehaviour extends CoreCmmnTriggerableActivityBehavior implements PlanItemActivityBehavior { protected IntentEventListener intentEventListener; public IntentEventListenerActivityBehaviour(IntentEventListener intentEventListener) { this.intentEventListener = inten...
public void trigger(CommandContext commandContext, PlanItemInstanceEntity planItemInstanceEntity) { RepetitionRule repetitionRule = ExpressionUtil.getRepetitionRule(planItemInstanceEntity); if (repetitionRule != null && ExpressionUtil.evaluateRepetitionRule(commandContext, planItemInstanceEntity, planIt...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\behavior\impl\IntentEventListenerActivityBehaviour.java
1
请完成以下Java代码
public String getBom() { return this.bom; } public void setBom(String bom) { this.bom = bom; } /** * Return the default repository to associate to all dependencies of this group unless * specified otherwise. * @return the repository */ public String getRepository() { return this.repository; } pu...
/** * 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. * @param name the name of the group * @return a new {@link DependencyGroup} in...
repos\initializr-main\initializr-metadata\src\main\java\io\spring\initializr\metadata\DependencyGroup.java
1
请完成以下Java代码
private TsKvEntry getValueWithTs(TsKvEntry tsKvEntry) { var mapper = TbMsgSource.DATA.equals(fetchTo) ? JacksonUtil.OBJECT_MAPPER : JacksonUtil.ALLOW_UNQUOTED_FIELD_NAMES_MAPPER; var value = JacksonUtil.newObjectNode(mapper); value.put(TS, tsKvEntry.getTs()); JacksonUtil.addKvEntry(value...
return prefix; } private List<String> getNonExistentKeys(List<AttributeKvEntry> existingAttributesKvEntry, List<String> allKeys) { List<String> existingKeys = existingAttributesKvEntry.stream().map(KvEntry::getKey).collect(Collectors.toList()); return allKeys.stream().filter(key -> !existingKey...
repos\thingsboard-master\rule-engine\rule-engine-components\src\main\java\org\thingsboard\rule\engine\metadata\TbAbstractGetAttributesNode.java
1
请在Spring Boot框架中完成以下Java代码
public String getGLN() { return gln; } /** * Sets the value of the gln property. * * @param value * allowed object is * {@link String } * */ public void setGLN(String value) { this.gln = value; } /** * Further contact details. ...
} /** * Address details of the party. * * @return * possible object is * {@link AddressType } * */ public AddressType getAddress() { return address; } /** * Sets the value of the address property. * * @param value * allo...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_ecosio_remadv\at\erpel\schemas\_1p0\documents\BusinessEntityType.java
2
请在Spring Boot框架中完成以下Java代码
public Iterator<ConfigDataEnvironmentContributor> iterator() { return this.root.iterator(); } /** * {@link ConfigDataLocationResolverContext} for a contributor. */ private static class ContributorDataLoaderContext implements ConfigDataLoaderContext { private final ConfigDataEnvironmentContributors contribu...
@Override public @Nullable ConfigDataResource getParent() { return this.contributor.getResource(); } @Override public ConfigurableBootstrapContext getBootstrapContext() { return this.contributors.getBootstrapContext(); } } private class InactiveSourceChecker implements BindHandler { private fina...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\context\config\ConfigDataEnvironmentContributors.java
2
请完成以下Java代码
public static DistributionFacetId ofProductId(@NonNull ProductId productId) { return ofRepoId(DistributionFacetGroupType.PRODUCT, productId); } private static DistributionFacetId ofRepoId(@NonNull DistributionFacetGroupType groupType, @NonNull RepoIdAware id) { final WorkflowLaunchersFacetId workflowLaunchersF...
} public static DistributionFacetId ofPlantId(@NonNull final ResourceId plantId) { return ofRepoId(DistributionFacetGroupType.PLANT_RESOURCE_ID, plantId); } private static Quantity getAsQuantity(final @NonNull WorkflowLaunchersFacetId workflowLaunchersFacetId) { final ImmutablePair<BigDecimal, Integer> parts...
repos\metasfresh-new_dawn_uat\backend\de.metas.distribution.rest-api\src\main\java\de\metas\distribution\mobileui\launchers\facets\DistributionFacetId.java
1
请完成以下Java代码
public void onMsg(TbContext ctx, TbMsg msg) { var tbMsg = ackIfNeeded(ctx, msg); httpClient.processMessage(ctx, tbMsg, m -> tellSuccess(ctx, m), (m, t) -> tellFailure(ctx, m, t)); } @Override public void destroy() { if (this.httpClient != null) { ...
if (oldConfiguration.has("useRedisQueueForMsgPersistence")) { hasChanges = true; ((ObjectNode) oldConfiguration).remove(List.of("useRedisQueueForMsgPersistence", "trimQueue", "maxQueueSize")); } case 2: if (!oldConfiguration.has(MAX_IN_...
repos\thingsboard-master\rule-engine\rule-engine-components\src\main\java\org\thingsboard\rule\engine\rest\TbRestApiCallNode.java
1
请完成以下Java代码
public org.compiere.model.I_AD_Table getAD_Table_Source() throws RuntimeException { return (org.compiere.model.I_AD_Table)MTable.get(getCtx(), org.compiere.model.I_AD_Table.Table_Name) .getPO(getAD_Table_Source_ID(), get_TrxName()); } /** Set Quell-Tabelle. @param AD_Table_Source_ID Quell-Tabelle */ pub...
} /** Get Quell-Datensatz-ID. @return Quell-Datensatz-ID */ public int getRecord_Source_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_Record_Source_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Ziel-Datensatz-ID. @param Record_Target_ID Ziel-Datensatz-ID */ public void s...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_Relation_Explicit_v1.java
1
请完成以下Java代码
protected Boolean coerceToBoolean(Object value) { if (value instanceof Boolean) { return (Boolean) value; } else { throw LOG.unableToConvertValue(value, Boolean.class); } } @Override protected BigDecimal coerceToBigDecimal(Object value) { if (value instanceof BigDecimal) { r...
protected Long coerceToLong(Object value) { if (value instanceof Long) { return (Long)value; } else if (value instanceof Number && isLong((Number) value)) { return ((Number) value).longValue(); } else { throw LOG.unableToConvertValue(value, Long.class); } } @Override pro...
repos\camunda-bpm-platform-master\engine-dmn\feel-juel\src\main\java\org\camunda\bpm\dmn\feel\impl\juel\el\FeelTypeConverter.java
1
请完成以下Java代码
private String computeESRHashAndCheckForDuplicates(@NonNull final OrgId orgId, final byte[] fileContent) { final String esrHash = esrImportBL.computeMD5Checksum(fileContent); // // Check for duplicates final Boolean preventDuplicates = sysConfigBL.getBooleanValue(ESRConstants.SYSCONFIG_PreventDuplicateImportF...
} public ESRImportEnqueuer fromDataSource(final ESRImportEnqueuerDataSource fromDataSource) { this.fromDataSource = fromDataSource; return this; } @NonNull private ESRImportEnqueuerDataSource getFromDataSource() { return fromDataSource; } public ESRImportEnqueuer loggable(@NonNull final ILoggable logga...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.esr\src\main\java\de\metas\payment\esr\dataimporter\ESRImportEnqueuer.java
1
请完成以下Spring Boot application配置
server: port: 9000 servlet: session: cookie: name: sentinel_dashboard_cookie encoding: charset: UTF-8 enabled: true force: true spring: mvc: #Spring Boot 2.6+\u540E\u6620\u5C04\u5339\u914D\u7684\u9ED8\u8BA4\u7B56\u7565\u5DF2\u4ECEAntPathMatcher\u66F4\u6539\u4E3APathPatt...
attern: file: '%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n' file: name: ${user.home}/logs/csp/sentinel-dashboard.log nacos: server: ip: @config.server-addr@ sentinel: dashboard: version: 1.8.2 auth: username: sentinel password: sentinel
repos\JeecgBoot-main\jeecg-boot\jeecg-server-cloud\jeecg-visual\jeecg-cloud-sentinel\src\main\resources\application.yml
2
请完成以下Java代码
public class TicketId { private String venue; private String date; public TicketId() { } public String getVenue() { return venue; } public void setVenue(String venue) { this.venue = venue; } public String getDate() { return date; } public void set...
return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; TicketId other = (TicketId) obj; if (date == null) { ...
repos\tutorials-master\persistence-modules\spring-boot-persistence-mongodb-2\src\main\java\com\baeldung\boot\composite\key\data\TicketId.java
1
请完成以下Java代码
public boolean updateStatusByIdAndRecipientId(TenantId tenantId, UserId recipientId, NotificationId notificationId, NotificationStatus status) { return notificationRepository.updateStatusByIdAndRecipientId(notificationId.getId(), recipientId.getId(), status) != 0; } /** * For this hot method, the ...
notificationRepository.deleteByRecipientId(recipientId.getId()); } @Override public void createPartition(NotificationEntity entity) { partitioningRepository.createPartitionIfNotExists(ModelConstants.NOTIFICATION_TABLE_NAME, entity.getCreatedTime(), TimeUnit.HOURS.toMillis(partitionS...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\sql\notification\JpaNotificationDao.java
1
请完成以下Java代码
public static JSch setUpJsch() throws JSchException { JSch jsch = new JSch(); jsch.addIdentity(PRIVATE_KEY); return jsch; } public static Session createSession(JSch jsch) throws JSchException { Session session = jsch.getSession(USER, HOST, PORT); session.setConfig("Stric...
statement.execute(insertDataSQL); } } public static boolean isTableExists(Connection connection, String tableName) throws SQLException { try (Statement statement = connection.createStatement()) { ResultSet resultSet = statement.executeQuery("SHOW TABLES LIKE '" + tableName + "'"); ...
repos\tutorials-master\persistence-modules\jdbc-mysql\src\main\java\com\baeldung\connectingtoremotemysqlssh\RemoteMysqlConnection.java
1
请完成以下Java代码
private static ADMessageAndParams extractOrderCompletedADMessageAndParams(final I_C_Order order) { final I_C_BPartner bpartner = Services.get(IOrderBL.class).getBPartner(order); return ADMessageAndParams.builder() .adMessage(order.isSOTrx() ? MSG_SalesOrderCompleted : MSG_PurchaseOrderCompleted) .param(Tab...
} @Value @Builder public static class NotificationRequest { @NonNull I_C_Order order; @Nullable Set<UserId> recipientUserIds; @Nullable ADMessageAndParams adMessageAndParams; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\order\event\OrderUserNotifications.java
1
请完成以下Java代码
public void setGO_RequestSenderId (java.lang.String GO_RequestSenderId) { set_Value (COLUMNNAME_GO_RequestSenderId, GO_RequestSenderId); } /** Get Request Sender ID. @return Request Sender ID */ @Override public java.lang.String getGO_RequestSenderId () { return (java.lang.String)get_Value(COLUMNNAME_GO...
} /** Get GO URL. @return GO URL */ @Override public java.lang.String getGO_URL () { return (java.lang.String)get_Value(COLUMNNAME_GO_URL); } @Override public org.compiere.model.I_M_Shipper getM_Shipper() throws RuntimeException { return get_ValueAsPO(COLUMNNAME_M_Shipper_ID, org.compiere.model.I_M_S...
repos\metasfresh-new_dawn_uat\backend\de.metas.shipper.gateway.go\src\main\java-gen\de\metas\shipper\gateway\go\model\X_GO_Shipper_Config.java
1
请在Spring Boot框架中完成以下Java代码
public String getCurrencyCode() { return currencyCode; } /** * Sets the value of the currencyCode property. * * @param value * allowed object is * {@link String } * */ public void setCurrencyCode(String value) { this.currencyCode = value; ...
/** * Gets the value of the exchangeDate property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getExchangeDate() { return exchangeDate; } /** * Sets the value of the exchangeDate property. ...
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\TargetCurrencyType.java
2
请完成以下Java代码
protected String resolve(String value) { if (embeddedValueResolver != null) { return embeddedValueResolver.resolveStringValue(value); } else { return value; } } @Override public void setBeanFactory(BeanFactory beanFactory) throws BeansException { this...
} public void setJmsOperations(JmsOperations jmsOperations) { this.jmsOperations = jmsOperations; } public JmsListenerEndpointRegistry getEndpointRegistry() { return endpointRegistry; } public void setEndpointRegistry(JmsListenerEndpointRegistry endpointRegistry) { this.en...
repos\flowable-engine-main\modules\flowable-event-registry-spring\src\main\java\org\flowable\eventregistry\spring\jms\JmsChannelModelProcessor.java
1
请完成以下Java代码
void setEnable(Set<String> enable) { if (enable != null) { this.routeFilterConfigProvided = true; this.routeEnabledHeaders = enable.stream() .map(String::toLowerCase) .collect(Collectors.toUnmodifiableSet()); } } /** * @return the route specific/opt-in header names to enable, in lower ca...
return routeDisabledHeaders; } /** * @return the route specific/opt-out permission policies. */ protected @Nullable String getRoutePermissionsPolicyHeaderValue() { return routePermissionsPolicyHeaderValue; } /** * bind the route specific/opt-out permissions policy. */ void setPermissionsPol...
repos\spring-cloud-gateway-main\spring-cloud-gateway-server-webflux\src\main\java\org\springframework\cloud\gateway\filter\factory\SecureHeadersGatewayFilterFactory.java
1
请完成以下Java代码
public void setIcon(Icon defaultIcon) { ((MetalComboBoxButton)arrowButton).setComboIcon(defaultIcon); } // setIcon /** * Create Popup * * @return {@link AdempiereComboPopup} */ @Override protected ComboPopup createPopup() { final AdempiereComboPopup popup = new AdempiereComboPopup(comboBox); pop...
{ super(combo); } @Override protected int getPopupHeightForRowCount(final int maxRowCount) { // ensure the combo box sized for the amount of data to be displayed final int itemCount = comboBox.getItemCount(); int rows = itemCount < maxRowCount ? itemCount : maxRowCount; if (rows <= 0) rows =...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\plaf\AdempiereComboBoxUI.java
1
请在Spring Boot框架中完成以下Java代码
public String getParentTaskId() { return parentTaskId; } @Override public String getTenantId() { return tenantId; } @Override public String getFormKey() { return formKey; }
@Override public Set<? extends IdentityLinkInfo> getIdentityLinks() { return identityLinks; } @Override public String getScopeId() { return this.scopeId; } @Override public String getScopeType() { return this.scopeType; } }
repos\flowable-engine-main\modules\flowable-task-service\src\main\java\org\flowable\task\service\impl\BaseTaskBuilderImpl.java
2
请完成以下Java代码
public void setPageContext(PageContext pageContext) { super.setPageContext(pageContext); ServletContext servletContext = pageContext.getServletContext(); ApplicationContext context = SecurityWebApplicationContextUtils .findRequiredWebApplicationContext(servletContext); String[] names = context.getBeanNamesFo...
writeMessage(String.valueOf(result)); } } return EVAL_PAGE; } protected void writeMessage(String msg) throws JspException { try { this.pageContext.getOut().write(String.valueOf(msg)); } catch (IOException ioe) { throw new JspException(ioe); } } /** * Set HTML escaping for this tag, as boole...
repos\spring-security-main\taglibs\src\main\java\org\springframework\security\taglibs\authz\AuthenticationTag.java
1
请在Spring Boot框架中完成以下Java代码
public class ProdIdCountMapTransferComponent extends BaseDataTransferComponent { @Autowired private OrderDAO orderDAO; @Override protected void transfer(OrderProcessContext orderProcessContext) { // 获取订单ID 和 购买者ID String orderId = orderProcessContext.getOrderProcessReq().getOrderId(); ...
// 获取产品列表 List<ProductOrderEntity> productOrderList = ordersEntity.getProductOrderList(); // 构造结果集 for (ProductOrderEntity productOrderEntity : productOrderList) { // 产品ID String prodId = productOrderEntity.getProductEntity().getId(); // 购买数量 Inte...
repos\SpringBoot-Dubbo-Docker-Jenkins-master\Gaoxi-Order\src\main\java\com\gaoxi\order\component\datatransfer\ProdIdCountMapTransferComponent.java
2
请完成以下Java代码
public @Nullable RateLimiter getRateLimiter() { return rateLimiter; } public Config setRateLimiter(RateLimiter rateLimiter) { this.rateLimiter = rateLimiter; return this; } public HttpStatus getStatusCode() { return statusCode; } public Config setStatusCode(HttpStatus statusCode) { this.st...
public Config setEmptyKeyStatus(String emptyKeyStatus) { this.emptyKeyStatus = emptyKeyStatus; return this; } @Override public void setRouteId(String routeId) { this.routeId = routeId; } @Override public @Nullable String getRouteId() { return this.routeId; } } }
repos\spring-cloud-gateway-main\spring-cloud-gateway-server-webflux\src\main\java\org\springframework\cloud\gateway\filter\factory\RequestRateLimiterGatewayFilterFactory.java
1
请完成以下Java代码
public class MProductCategoryTreeSupport extends DefaultPOTreeSupport { @Override public int getAD_Tree_ID(PO po) { return UNKNOWN_TreeID; } @Override public int getParent_ID(PO po) { if (I_M_Product_Category.Table_Name.equals(po.get_TableName())) { I_M_Product_Category pc = InterfaceWrapperHelper.crea...
@Override public int getOldParent_ID(PO po) { return po.get_ValueOldAsInt(I_M_Product_Category.COLUMNNAME_M_Product_Category_Parent_ID); } @Override public String getParentIdSQL() { return I_M_Product_Category.COLUMNNAME_M_Product_Category_Parent_ID; } @Override public MTreeNode getNodeInfo(GridTab gridT...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\product\tree\spi\impl\MProductCategoryTreeSupport.java
1
请在Spring Boot框架中完成以下Java代码
public void deleteNotificationTargetById(@PathVariable UUID id) throws Exception { NotificationTargetId notificationTargetId = new NotificationTargetId(id); NotificationTarget notificationTarget = checkNotificationTargetId(notificationTargetId, Operation.DELETE); doDeleteAndLog(EntityType.NOTIFI...
CustomerId customerId = new CustomerId(((CustomerUsersFilter) usersFilter).getCustomerId()); checkEntityId(customerId, Operation.READ); break; case TENANT_ADMINISTRATORS: if (CollectionUtils.isNotEmpty(((TenantAdministratorsFilter) usersFilter).getTenantsIds()...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\controller\NotificationTargetController.java
2
请完成以下Java代码
private static String toJson(final HuId huId, final ProductId storageProductId, final HuId topLevelHUId) { // IMPORTANT: top level row shall be perfectly convertible to integers, else, a lot of APIs could fail final String idStrPart; if (storageProductId != null) { idStrPart = huId.getRepoId() + ID_SEPARAT...
public HUEditorRowId toTopLevelRowId() { if (isTopLevel()) { return this; } final HuId huId = getTopLevelHUId(); final ProductId storageProductId = null; final HuId topLevelHUId = null; final String json = null; final DocumentId documentId = null; return new HUEditorRowId(huId, storageProductId, ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\handlingunits\HUEditorRowId.java
1
请完成以下Java代码
private Iterator<InvoiceCandidateId> createInvoiceCandidateIdIterator(@NonNull final IQueryFilter<I_C_Invoice_Candidate> selectedICsFilter) { final IQueryBuilder<I_C_Invoice_Candidate> queryBuilder = queryBL .createQueryBuilder(I_C_Invoice_Candidate.class) .addOnlyActiveRecordsFilter() .filter(selectedIC...
final AdIssueId adIssueId = errorManager.createIssue(e); Loggables.withLogger(logger, Level.DEBUG) .addLog("C_Invoice_Candidate_ID={}: Caught {} and created AD_Issue_ID={}; exception-message={}", invoiceCandidateId.getRepoId(), e.getClass(), adIssueId.getRepoId(), e.getLocalizedMessage()); } } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\commission\commissioninstance\process\C_Invoice_Candidate_CreateOrUpdateCommissionInstance.java
1
请完成以下Java代码
public static AlarmStatusFilter empty() { return EMPTY; } public boolean hasAnyFilter() { return clearFilter.isPresent() || ackFilter.isPresent(); } public boolean hasClearFilter() { return clearFilter.isPresent(); } public boolean hasAckFilter() { return ackFi...
public static AlarmStatusFilter from(Collection<AlarmSearchStatus> statuses) { if (statuses == null || statuses.isEmpty() || statuses.contains(AlarmSearchStatus.ANY)) { return EMPTY; } boolean clearFilter = statuses.contains(AlarmSearchStatus.CLEARED); boolean activeFilter = ...
repos\thingsboard-master\common\data\src\main\java\org\thingsboard\server\common\data\alarm\AlarmStatusFilter.java
1
请在Spring Boot框架中完成以下Java代码
public Queue syncOrderRequestEventsQueue() { return new Queue(QUEUENAME_SyncOrderRequestEvents); } @Bean(name = QUEUENAME_SyncOrderResponseEvents) public Queue syncOrderResponseEventsQueue() { return new Queue(QUEUENAME_SyncOrderResponseEvents); } // Note: with spring boot-2 this somehow didn't work anymor...
// .addAll(createQueueExchangeAndBinding(QUEUENAME_UserChangedEvents)) // .addAll(createQueueExchangeAndBinding(QUEUENAME_StockAvailabilityUpdatedEvent)) // .addAll(createQueueExchangeAndBinding(QUEUENAME_ProductExcludeUpdatedEvents)) // .addAll(createQueueExchangeAndBinding(QUEUENAME_SyncOrderRequestEve...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma.msv3.server-peer\src\main\java\de\metas\vertical\pharma\msv3\server\peer\RabbitMQConfig.java
2
请完成以下Java代码
public String amt(@NonNull final ICalloutField calloutField) { if (isCalloutActive()) {// prevent recursive return NO_ERROR; } if (isDoInvocation(calloutField)) { return new CalloutOrder().amt(calloutField); } return NO_ERROR; } /** * This callout "interposes" {@link CalloutOrder#qty(ICallou...
.orderLine(ol) .qtyOverride(qty) .resultUOM(ResultUOM.CONTEXT_UOM) .updatePriceEnteredAndDiscountOnlyIfNotAlreadySet(true) .updateLineNetAmt(true) .build()); } if (IsSOTrx && isSubscription) { final int C_BPartner_ID = order.getC_BPartner_ID(); PreparedStatement pstmt = null; Re...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\flatrate\callout\OrderLine.java
1
请完成以下Java代码
public void setInitial(Boolean isInitial) { this.isInitial = isInitial; } public Boolean isInitial() { return isInitial; } @Override public String toString() { return this.getClass().getSimpleName() + "[variableName=" + variableName + ", variableInstanceId=" + variableInstan...
+ ", activityInstanceId=" + activityInstanceId + ", scopeActivityInstanceId=" + scopeActivityInstanceId + ", eventType=" + eventType + ", executionId=" + executionId + ", id=" + id + ", processDefinitionId=" + processDefinitionId + ", processInstanceId="...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\history\event\HistoricVariableUpdateEventEntity.java
1
请完成以下Java代码
protected void prepare() { // Nothing to to } String recurringRun(final int adClientId, final String trxName) { int count = 0; int thisTime = 0; while ((thisTime = run(adClientId, trxName)) != 0) { count += thisTime; } return "Performed " + count + " recurring runs"; } private int run(final int ...
final IRecurringPA recurringPA = Services.get(IRecurringPA.class); final IRecurringBL recurringBL = Services.get(IRecurringBL.class); // get recurring docs that need to run today. final Collection<I_C_Recurring> recurringDocs = recurringPA .retrieveForToday(adClientId, trxName); for (final I_C_Recurring r...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\document\process\RecurringAuto.java
1
请完成以下Java代码
private static TokenResponse parse(Map<String, Object> json) { try { return TokenResponse.parse(new JSONObject(json)); } catch (ParseException ex) { OAuth2Error oauth2Error = invalidTokenResponse( "An error occurred parsing the Access Token response: " + ex.getMessage()); throw new OAuth2Authorizati...
long expiresIn = accessToken.getLifetime(); Set<String> scopes = (accessToken.getScope() != null) ? new LinkedHashSet<>(accessToken.getScope().toStringList()) : Collections.emptySet(); String refreshToken = null; if (accessTokenResponse.getTokens().getRefreshToken() != null) { refreshToken = accessTokenRes...
repos\spring-security-main\oauth2\oauth2-core\src\main\java\org\springframework\security\oauth2\core\web\reactive\function\OAuth2AccessTokenResponseBodyExtractor.java
1
请完成以下Java代码
public int getM_InOutLine_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_M_InOutLine_ID); if (ii == null) return 0; return ii.intValue(); } /** Get Record ID/ColumnName @return ID/ColumnName pair */ public KeyNamePair getKeyNamePair() { return new KeyNamePair(get_ID(...
/** Set Scrapped Quantity. @param ScrappedQty The Quantity scrapped due to QA issues */ public void setScrappedQty (BigDecimal ScrappedQty) { set_Value (COLUMNNAME_ScrappedQty, ScrappedQty); } /** Get Scrapped Quantity. @return The Quantity scrapped due to QA issues */ public BigDecimal getScrapped...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_InOutLineConfirm.java
1
请在Spring Boot框架中完成以下Java代码
public I_C_InvoiceLine createInvoiceLine(final org.compiere.model.I_C_Invoice invoice) { final MInvoice invoicePO = LegacyAdapters.convertToPO(invoice); final MInvoiceLine invoiceLinePO = new MInvoiceLine(invoicePO); return InterfaceWrapperHelper.create(invoiceLinePO, I_C_InvoiceLine.class); } @Override publ...
return list; } // getLandedCost @Override public I_C_LandedCost createLandedCost(String trxName) { return new MLandedCost(Env.getCtx(), 0, trxName); } @Override public List<I_C_InvoiceTax> retrieveTaxes(org.compiere.model.I_C_Invoice invoice) { final MInvoice invoicePO = LegacyAdapters.convertToPO(invoice...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\invoice\service\impl\InvoiceDAO.java
2