instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
private Mono<Void> handleWebClientResponseException(ClientRequest request, WebClientResponseException exception) { return Mono.justOrEmpty(resolveErrorIfPossible(exception.getStatusCode())).flatMap((oauth2Error) -> { Mono<Optional<ServerWebExchange>> serverWebExchange = effectiveServerWebExchange(request); ...
* @param exception the authorization exception to include in the failure event. * @return a {@link Mono} that completes empty after the authorization failure * handler completes. */ private Mono<Void> handleAuthorizationFailure(Authentication principal, Optional<ServerWebExchange> exchange, OAuth2Authori...
repos\spring-security-main\oauth2\oauth2-client\src\main\java\org\springframework\security\oauth2\client\web\reactive\function\client\ServerOAuth2AuthorizedClientExchangeFilterFunction.java
1
请完成以下Java代码
public <K, V> IAutoCloseable putCache(@Nullable final CacheInterface cache) { if (cache == null) { return null; } final ImmutableList.Builder<MDCCloseable> closables = ImmutableList.builder(); final String cacheId = Long.toString(cache.getCacheId()); if (!Objects.equals(MDC.get("de.metas.cache.cacheId...
closables.add(MDC.putCloseable("de.metas.cache.cacheName", cacheName)); } } final ImmutableList<MDCCloseable> composite = closables.build(); return () -> composite.forEach(MDCCloseable::close); } public MDCCloseable putCacheLabel(@Nullable final CacheLabel cacheLabel) { if (cacheLabel == null) { re...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\cache\CacheMDC.java
1
请在Spring Boot框架中完成以下Java代码
public String getTaskUrl() { return taskUrl; } public void setTaskUrl(String taskUrl) { this.taskUrl = taskUrl; } public String getProcessInstanceUrl() { return processInstanceUrl; } public void setProcessInstanceUrl(String processInstanceUrl) { this.processIns...
return contentUrl; } public void setContentUrl(String contentUrl) { this.contentUrl = contentUrl; } public Date getTime() { return time; } public void setTime(Date time) { this.time = time; } }
repos\flowable-engine-main\modules\flowable-rest\src\main\java\org\flowable\rest\service\api\engine\AttachmentResponse.java
2
请完成以下Java代码
public void setM_Forecast_ID (final int M_Forecast_ID) { if (M_Forecast_ID < 1) set_ValueNoCheck (COLUMNNAME_M_Forecast_ID, null); else set_ValueNoCheck (COLUMNNAME_M_Forecast_ID, M_Forecast_ID); } @Override public int getM_Forecast_ID() { return get_ValueAsInt(COLUMNNAME_M_Forecast_ID); } @Over...
@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 public void setProcessed (final boolean Processed) { set_ValueNoCheck (COLUMNNAME_Processed, Processe...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_Forecast.java
1
请完成以下Java代码
public void updateAuthorization(AuthorizationDto dto) { // get db auth Authorization dbAuthorization = getDbAuthorization(); // copy values from dto AuthorizationDto.update(dto, dbAuthorization, getProcessEngine().getProcessEngineConfiguration()); // save authorizationService.saveAuthorization(d...
protected Authorization getDbAuthorization() { Authorization dbAuthorization = authorizationService.createAuthorizationQuery() .authorizationId(resourceId) .singleResult(); if (dbAuthorization == null) { throw new InvalidRequestException(Status.NOT_FOUND, "Authorization with id " + resourceId...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\sub\authorization\impl\AuthorizationResourceImpl.java
1
请完成以下Java代码
public String getLastName() { return lastName; } public void setLastName(String lastName) { this.lastName = lastName; } public DateTime getCreated() { return created; } public void setCreated(DateTime created) { this.created = created; } public DateTim...
hash = hash * 31 + firstName.hashCode(); } if (lastName != null) { hash = hash * 31 + lastName.hashCode(); } return hash; } @Override public boolean equals(Object obj) { if ((obj == null) || (obj.getClass() != this.getClass())) return false; ...
repos\tutorials-master\persistence-modules\spring-data-couchbase-2\src\main\java\com\baeldung\spring\data\couchbase\model\Person.java
1
请完成以下Java代码
public void setDescription (String Description) { set_Value (COLUMNNAME_Description, Description); } /** Get Description. @return Optional short description of the record */ public String getDescription () { return (String)get_Value(COLUMNNAME_Description); } /** Set Name. @param Name Alphanumer...
/** Get Report Column Set. @return Collection of Columns for Report */ public int getPA_ReportColumnSet_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_PA_ReportColumnSet_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Process Now. @param Processing Process Now */ public void...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_PA_ReportColumnSet.java
1
请在Spring Boot框架中完成以下Java代码
public int getTimeBetweenEvictionRunsMillis() { return timeBetweenEvictionRunsMillis; } public void setTimeBetweenEvictionRunsMillis(int timeBetweenEvictionRunsMillis) { this.timeBetweenEvictionRunsMillis = timeBetweenEvictionRunsMillis; } public long getMinEvictableIdleTimeMillis() { ...
return testOnReturn; } public void setTestOnReturn(boolean testOnReturn) { this.testOnReturn = testOnReturn; } public boolean isPoolPreparedStatements() { return poolPreparedStatements; } public void setPoolPreparedStatements(boolean poolPreparedStatements) { this.pool...
repos\spring-boot-leaning-master\2.x_42_courses\第 3-7 课: Spring Boot 集成 Druid 监控数据源\spring-boot-multi-Jpa-druid\src\main\java\com\neo\config\druid\DruidConfig.java
2
请完成以下Java代码
public Object postProcessBeforeInitialization(final Object bean, final String beanName) throws BeansException { return bean; } @Override public Object postProcessAfterInitialization(final Object bean, final String beanName) throws BeansException { this.process(bean, EventBus::register, "ini...
this.getClass().getSimpleName(), annotationValue, proxy.getClass().getSimpleName()); return; } final EventBus eventBus = (EventBus)value; consumer.accept(eventBus, proxy); } catch (ExpressionException ex) { this.logger.error("{}: unable to parse/ev...
repos\tutorials-master\spring-core-4\src\main\java\com\baeldung\beanpostprocessor\GuavaEventBusBeanPostProcessor.java
1
请在Spring Boot框架中完成以下Java代码
public Step step1() { return new StepBuilder("job1step1", jobRepository).tasklet(new Tasklet() { @Override public RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext) throws Exception { LOGGER.info("Tasklet has run"); ...
.start(job2step1) .build(); } @Bean public Step job2step1() { return new StepBuilder("job2step1", jobRepository).tasklet(new Tasklet() { @Override public RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext) throws Exception { ...
repos\tutorials-master\spring-cloud-modules\spring-cloud-task\springcloudtaskbatch\src\main\java\com\baeldung\task\JobConfiguration.java
2
请完成以下Java代码
public int getM_HU_Trx_Line_ID() { return get_ValueAsInt(COLUMNNAME_M_HU_Trx_Line_ID); } /** * Operation AD_Reference_ID=540410 * Reference name: M_HU_PI_Attribute_Operation */ public static final int OPERATION_AD_Reference_ID=540410; /** Save = SAVE */ public static final String OPERATION_Save = "SAVE...
{ set_Value (COLUMNNAME_ValueDateInitial, ValueDateInitial); } @Override public java.sql.Timestamp getValueDateInitial() { return get_ValueAsTimestamp(COLUMNNAME_ValueDateInitial); } @Override public void setValueInitial (final @Nullable java.lang.String ValueInitial) { set_Value (COLUMNNAME_ValueIniti...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java-gen\de\metas\handlingunits\model\X_M_HU_Trx_Attribute.java
1
请在Spring Boot框架中完成以下Java代码
public class TxProducerListener implements RocketMQLocalTransactionListener { @Override public RocketMQLocalTransactionState executeLocalTransaction(Message msg, Object arg) { // 执行本地事务 System.out.println("TX message listener execute local transaction"); RocketMQLocalTransactionState re...
@Override public RocketMQLocalTransactionState checkLocalTransaction(Message msg) { // 检查本地事务( 例如检查下订单是否成功 ) System.out.println("TX message listener check local transaction"); RocketMQLocalTransactionState result; try { //业务代码( 根据检查结果,决定是COMMIT或ROLLBACK ) resu...
repos\SpringBootLearning-master (1)\springboot-rocketmq-message\src\main\java\com\itwolfed\msg\TxProducerListener.java
2
请完成以下Java代码
public ViewLayout getViewLayout( @NonNull final WindowId windowId, @NonNull final JSONViewDataType viewDataType, final ViewProfileId profileId) { final ITranslatableString caption = processDAO .retrieveProcessNameByClassIfUnique(WEBUI_C_Flatrate_DataEntry_Detail_Launcher.class) .orElse(null); ret...
@Override public final void put(@NonNull final IView view) { views.put(view.getViewId(), DataEntryDetailsView.cast(view)); } @Nullable @Override public IView getByIdOrNull(final ViewId viewId) { return views.getIfPresent(viewId); } @Override public void closeById(final ViewId viewId, final ViewCloseActi...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\contract\flatrate\view\DataEntryDedailsViewFactory.java
1
请完成以下Java代码
public TaskCompletionBuilder taskId(String id) { this.taskId = id; return this; } @Override public TaskCompletionBuilder formDefinitionId(String formDefinitionId) { this.formDefinitionId = formDefinitionId; return this; } @Override public TaskCompletionBuilder o...
} protected void completeTaskWithForm() { this.commandExecutor.execute(new CompleteTaskWithFormCmd(this.taskId, formDefinitionId, outcome, variables, variablesLocal, transientVariables, transientVariablesLocal)); } @Override public void complete() { if (this.formDefinitionI...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\task\TaskCompletionBuilderImpl.java
1
请在Spring Boot框架中完成以下Java代码
public List<RestIdentityLink> getIdentityLinks(@ApiParam(name = "processDefinitionId") @PathVariable String processDefinitionId) { ProcessDefinition processDefinition = getProcessDefinitionFromRequestWithoutAccessCheck(processDefinitionId); if (restApiInterceptor != null) { restApiIntercept...
if (restApiInterceptor != null) { restApiInterceptor.createProcessDefinitionIdentityLink(processDefinition, identityLink); } if (identityLink.getGroup() != null) { repositoryService.addCandidateStarterGroup(processDefinition.getId(), identityLink.getGroup()); } else { ...
repos\flowable-engine-main\modules\flowable-rest\src\main\java\org\flowable\rest\service\api\repository\ProcessDefinitionIdentityLinkCollectionResource.java
2
请完成以下Java代码
public abstract class AbstractResultSetBlindIterator<E> implements BlindIterator<E>, Closeable { private ResultSet rs = null; private boolean closed = false; public AbstractResultSetBlindIterator() { super(); } /** * Create and returns the {@link ResultSet}. * * This method will be called internally, o...
final E item = fetch(rs); keepAliveResultSet = true; return item; } catch (SQLException e) { keepAliveResultSet = false; // make sure we will close the ResultSet onSQLException(e); // NOTE: we shall not reach this point because onSQLException is assumed to throw the exception throw new DBExcept...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\db\util\AbstractResultSetBlindIterator.java
1
请完成以下Java代码
public String addNewTodo(ModelMap model, @Valid Todo todo, BindingResult result) { if(result.hasErrors()) { return "todo"; } String username = getLoggedInUsername(model); todo.setUsername(username); todoRepository.save(todo); // todoService.addTodo(username, todo.getDescription(), // todo.getTar...
@RequestMapping(value="update-todo", method = RequestMethod.POST) public String updateTodo(ModelMap model, @Valid Todo todo, BindingResult result) { if(result.hasErrors()) { return "todo"; } String username = getLoggedInUsername(model); todo.setUsername(username); todoRepository.save(todo); return...
repos\master-spring-and-spring-boot-main\11-web-application\src\main\java\com\in28minutes\springboot\myfirstwebapp\todo\TodoControllerJpa.java
1
请完成以下Java代码
public String getActivityInstanceId() { return activityInstanceId; } public String getExecutionId() { return executionId; } public String getProcessInstanceId() { return processInstanceId; } public String getProcessDefinitionId() { return processDefinitionId; } public String getProce...
return removalTime; } public String getRootProcessInstanceId() { return rootProcessInstanceId; } public static HistoricExternalTaskLogDto fromHistoricExternalTaskLog(HistoricExternalTaskLog historicExternalTaskLog) { HistoricExternalTaskLogDto result = new HistoricExternalTaskLogDto(); result.id ...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\history\HistoricExternalTaskLogDto.java
1
请完成以下Spring Boot application配置
server.port=8081 spring.application.name=nacos-consumer spring.cloud.nacos.discovery.server-addr=localhost:8848 spring.cloud.nacos.config.refresh-enabled=true spring.cloud.nacos.config.group=${spring.application.name} #nacos.discovery.server-addr=localhost:8848 spring.main.allow-bean-definition-overriding=true dubbo...
col.name=dubbo dubbo.protocol.port=-1 dubbo.consumer.check=false dubbo.cloud.subscribed-services=nacos-provider service.version=1.0.0 service.name=helloService
repos\spring-boot-quick-master\quick-dubbo-nacos\consumer\src\main\resources\application.properties
2
请完成以下Java代码
protected final HUEditorRow getSingleSelectedRow() { return HUEditorRow.cast(super.getSingleSelectedRow()); } protected final Stream<HUEditorRow> streamSelectedRows(@NonNull final HUEditorRowFilter filter) { final DocumentIdsSelection selectedDocumentIds = getSelectedRowIds(); if (selectedDocumentIds.isEmpty...
*/ protected final Stream<I_M_HU> streamSelectedHUs(@NonNull final Select select) { return streamSelectedHUs(HUEditorRowFilter.select(select)); } protected final Stream<I_M_HU> streamSelectedHUs(@NonNull final HUEditorRowFilter filter) { final Stream<HuId> huIds = streamSelectedHUIds(filter); return StreamU...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\handlingunits\HUEditorProcessTemplate.java
1
请完成以下Java代码
public Employee build() { try { Employee record = new Employee(); record.id = fieldSetFlags()[0] ? this.id : (java.lang.Integer) defaultValue(fields()[0]); record.firstName = fieldSetFlags()[1] ? this.firstName : (java.lang.CharSequence) defaultValue(fields()[1]); record.lastName =...
@Override public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException { WRITER$.write(this, SpecificData.getEncoder(out)); } @SuppressWarnings("unchecked") private static final org.apache.avro.io.DatumReader<Employee> READER$ = (org.apache.avro.io.DatumReader<Employee>)MODEL$.creat...
repos\tutorials-master\spring-cloud-modules\spring-cloud-stream\spring-cloud-stream-kafka\src\main\java\com\baeldung\schema\Employee.java
1
请完成以下Java代码
public void setMsgText (java.lang.String MsgText) { set_Value (COLUMNNAME_MsgText, MsgText); } /** Get Message Text. @return Textual Informational, Menu or Error Message */ @Override public java.lang.String getMsgText () { return (java.lang.String)get_Value(COLUMNNAME_MsgText); } /** Set PMM_Message...
set_ValueNoCheck (COLUMNNAME_PMM_Message_ID, null); else set_ValueNoCheck (COLUMNNAME_PMM_Message_ID, Integer.valueOf(PMM_Message_ID)); } /** Get PMM_Message. @return PMM_Message */ @Override public int getPMM_Message_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_PMM_Message_ID); if (ii == nul...
repos\metasfresh-new_dawn_uat\backend\de.metas.procurement.base\src\main\java-gen\de\metas\procurement\base\model\X_PMM_Message.java
1
请完成以下Java代码
public RegulatoryAuthority2 createRegulatoryAuthority2() { return new RegulatoryAuthority2(); } /** * Create an instance of {@link RegulatoryReporting3 } * */ public RegulatoryReporting3 createRegulatoryReporting3() { return new RegulatoryReporting3(); } /** * ...
*/ public StructuredRegulatoryReporting3 createStructuredRegulatoryReporting3() { return new StructuredRegulatoryReporting3(); } /** * Create an instance of {@link StructuredRemittanceInformation7 } * */ public StructuredRemittanceInformation7 createStructuredRemittanceInformati...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.sepa\schema-pain_001_01_03_ch_02\src\main\java-xjc\de\metas\payment\sepa\jaxb\sct\pain_001_001_03_ch_02\ObjectFactory.java
1
请完成以下Java代码
public String getFrom() { return from; } /** * Sets the value of the from property. * * @param value * allowed object is * {@link String } * */ public void setFrom(String value) { this.from = value; } /** * Gets the value of the...
public String getVia() { return via; } /** * Sets the value of the via property. * * @param value * allowed object is * {@link String } * */ public void setVia(String value) { this.via = value; ...
repos\metasfresh-new_dawn_uat\backend\vertical-healthcare_ch\forum_datenaustausch_ch.invoice_440_request\src\main\java-xjc\de\metas\vertical\healthcare_ch\forum_datenaustausch_ch\invoice_440\request\TransportType.java
1
请在Spring Boot框架中完成以下Java代码
private AbstractRememberMeServices createTokenBasedRememberMeServices(H http, String key) { UserDetailsService userDetailsService = getUserDetailsService(http); return new TokenBasedRememberMeServices(key, userDetailsService); } /** * Creates {@link PersistentTokenBasedRememberMeServices} * @param http the {...
* @return the remember me key to use */ private String getKey() { if (this.key == null) { if (this.rememberMeServices instanceof AbstractRememberMeServices) { this.key = ((AbstractRememberMeServices) this.rememberMeServices).getKey(); } else { this.key = UUID.randomUUID().toString(); } } re...
repos\spring-security-main\config\src\main\java\org\springframework\security\config\annotation\web\configurers\RememberMeConfigurer.java
2
请完成以下Java代码
public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getIsbn() { return isbn; } public void setIsbn(String isbn) { this.isbn = isbn; } public int getPrice() { return price; } ...
@Override public boolean equals(Object o) { if (this == o) { return true; } if (getClass() != o.getClass()) { return false; } Book other = (Book) o; return Objects.equals(isbn, other.getIsbn()); // including sku ...
repos\Hibernate-SpringBoot-master\HibernateSpringBootNaturalId\src\main\java\com\bookstore\entity\Book.java
1
请完成以下Java代码
void add(int value) { if (_size == _capacity) { resizeBuf(_size + 1); } _buf[_size++] = value; } void deleteLast() { --_size; } void resize(int size) { if (size > _capacity) { resizeBuf(size); } ...
capacity = size; } else { capacity = 1; while (capacity < size) { capacity <<= 1; } } int[] buf = new int[capacity]; if (_size > 0) { System.arraycopy(_buf, 0, buf, 0, _size); } ...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\collection\dartsclone\details\AutoIntPool.java
1
请完成以下Java代码
public void setM_ReceiptSchedule_ID (final int M_ReceiptSchedule_ID) { if (M_ReceiptSchedule_ID < 1) set_Value (COLUMNNAME_M_ReceiptSchedule_ID, null); else set_Value (COLUMNNAME_M_ReceiptSchedule_ID, M_ReceiptSchedule_ID); } @Override public int getM_ReceiptSchedule_ID() { return get_ValueAsInt(CO...
@Override public BigDecimal getQtyOrdered() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_QtyOrdered); return bd != null ? bd : BigDecimal.ZERO; } @Override public void setQtyReserved (final @Nullable BigDecimal QtyReserved) { set_Value (COLUMNNAME_QtyReserved, QtyReserved); } @Override pub...
repos\metasfresh-new_dawn_uat\backend\de.metas.material\cockpit\src\main\java-gen\de\metas\material\cockpit\model\X_MD_Cockpit_DocumentDetail.java
1
请在Spring Boot框架中完成以下Java代码
public class Cache { private List<MessagingService> services; public Cache(){ services = new ArrayList<MessagingService>(); } public MessagingService getService(String serviceName){ for (MessagingService service : services) { if(service.getServiceName().equalsIgnoreCase(se...
} public void addService(MessagingService newService){ boolean exists = false; for (MessagingService service : services) { if(service.getServiceName().equalsIgnoreCase(newService.getServiceName())){ exists = true; } } if(!exists){ ...
repos\tutorials-master\patterns-modules\design-patterns-architectural\src\main\java\com\baeldung\service\locator\Cache.java
2
请在Spring Boot框架中完成以下Java代码
public Result executeByRuleCode(@PathVariable("ruleCode") String ruleCode, @RequestBody JSONObject formData) { Object result = FillRuleUtil.executeRule(ruleCode, formData); return Result.ok(result); } /** * 批量通过 ruleCode 执行自定义填值规则 * * @param ruleData 要执行的填值规则JSON数组: * ...
// 如果没有传递 formData,就用common的 if (formData == null) { formData = commonFormData; } // 执行填值规则 Object result = FillRuleUtil.executeRule(ruleCode, formData); JSONObject obj = new JSONObject(rules.size()); obj.put("ruleCode", ruleCode); ...
repos\JeecgBoot-main\jeecg-boot\jeecg-module-system\jeecg-system-biz\src\main\java\org\jeecg\modules\system\controller\SysFillRuleController.java
2
请在Spring Boot框架中完成以下Java代码
private EdqsSyncState getSyncState() { EdqsSyncState state = attributesService.find(TenantId.SYS_TENANT_ID, TenantId.SYS_TENANT_ID, AttributeScope.SERVER_SCOPE, "edqsSyncState").get(30, TimeUnit.SECONDS) .flatMap(KvEntry::getJsonValue) .map(value -> JacksonUtil.fromString(value, ...
EdqsSyncState state = new EdqsSyncState(status, objectTypes); log.info("New EDQS sync state: {}", state); attributesService.save(TenantId.SYS_TENANT_ID, TenantId.SYS_TENANT_ID, AttributeScope.SERVER_SCOPE, new BaseAttributeKvEntry( new JsonDataEntry("edqsSyncState", JacksonUtil.toString(...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\service\edqs\DefaultEdqsService.java
2
请完成以下Java代码
public class PrintPackagePDFBuilder { private final IPrintingDAO printingDAO = Services.get(IPrintingDAO.class); private I_C_Print_Package printPackage; public PrintPackagePDFBuilder setPrintPackage(@NonNull final I_C_Print_Package printPackage) { this.printPackage = printPackage; return this; } private Pr...
final PdfReader reader = new PdfReader(pdf); for (int page = 0; page < reader.getNumberOfPages(); ) { copy.addPage(copy.getImportedPage(reader, ++page)); } copy.freeReader(reader); reader.close(); } document.close(); print_Job_Instructions.setErrorMsg(null); print_Job_Instructions...
repos\metasfresh-new_dawn_uat\backend\de.metas.printing\de.metas.printing.base\src\main\java\de\metas\printing\PrintPackagePDFBuilder.java
1
请完成以下Java代码
public void setS_Resource_ID (int S_Resource_ID) { if (S_Resource_ID < 1) set_Value (COLUMNNAME_S_Resource_ID, null); else set_Value (COLUMNNAME_S_Resource_ID, Integer.valueOf(S_Resource_ID)); } /** Get Ressource. @return Resource */ @Override public int getS_Resource_ID () { Integer ii = (In...
@param Value Search key for the record in the format required - must be unique */ @Override public void setValue (java.lang.String Value) { set_Value (COLUMNNAME_Value, Value); } /** Get Suchschlüssel. @return Search key for the record in the format required - must be unique */ @Override public jav...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\eevolution\model\X_PP_MRP.java
1
请完成以下Java代码
public void setUp() { array = new boolean[size]; for (int i = 0; i < array.length; i++) { array[i] = ThreadLocalRandom.current().nextBoolean(); } bitSet = new BitSet(size); for (int i = 0; i < size; i++) { bitSet.set(i, ThreadLocalRandom.current().nextBoo...
bitSet.set(index); } @Benchmark public int cardinalityBoolArray() { int sum = 0; for (boolean b : array) { if (b) { sum++; } } return sum; } @Benchmark public int cardinalityBitSet() { return bitSet.cardinality();...
repos\tutorials-master\jmh\src\main\java\com\baeldung\bitset\VectorOfBitsBenchmark.java
1
请完成以下Java代码
public void setAge(int age) { this.age = age; } 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; } @Expo...
@Expose(serialize = false, deserialize = false) private String email; public User(String name, int age, String email) { this.name = name; this.age = age; this.email = email; } @Override public String toString() { return "User{" + "name='" + name + '\'' + ", age=" + ...
repos\tutorials-master\json-modules\gson-3\src\main\java\com\baeldung\gson\entities\User.java
1
请完成以下Java代码
public org.compiere.model.I_AD_Rule getAD_Rule() throws RuntimeException { return get_ValueAsPO(COLUMNNAME_AD_Rule_ID, org.compiere.model.I_AD_Rule.class); } @Override public void setAD_Rule(org.compiere.model.I_AD_Rule AD_Rule) { set_ValueFromPO(COLUMNNAME_AD_Rule_ID, org.compiere.model.I_AD_Rule.class, AD_R...
public java.lang.String getName () { return (java.lang.String)get_Value(COLUMNNAME_Name); } /** * Type AD_Reference_ID=540047 * Reference name: AD_BoilerPlate_VarType */ public static final int TYPE_AD_Reference_ID=540047; /** SQL = S */ public static final String TYPE_SQL = "S"; /** Rule Engine = R *...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\de\metas\letters\model\X_AD_BoilerPlate_Var.java
1
请在Spring Boot框架中完成以下Java代码
public Doctor timestamp(OffsetDateTime timestamp) { this.timestamp = timestamp; return this; } /** * Der Zeitstempel der letzten Änderung * @return timestamp **/ @Schema(description = "Der Zeitstempel der letzten Änderung") public OffsetDateTime getTimestamp() { return timestamp; } pu...
sb.append(" titleShort: ").append(toIndentedString(titleShort)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); ...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\alberta\alberta-patient-api\src\main\java\io\swagger\client\model\Doctor.java
2
请完成以下Java代码
public ResponseEntity<?> getByExternalIdentifier( @PathVariable("orgCode") @Nullable final String orgCode, @ApiParam(PRODUCT_IDENTIFIER_DOC) @PathVariable(value = "externalIdentifier") @NonNull final String externalIdentifier) { final String adLanguage = Env.getADLanguageOrBaseLanguage(); try { final E...
.stream() .map(entry -> entry.getKey() + "=" + entry.getValue()) .collect(Collectors.joining(", ")); products.getProducts().stream() .map(product -> TableRecordReference.of(I_M_Product.Table_Name, product.getId().getValue())) .map( productTableRecordReference -> CreateExportAuditRequest.builder...
repos\metasfresh-new_dawn_uat\backend\de.metas.business.rest-api-impl\src\main\java\de\metas\rest_api\v2\product\ProductsRestController.java
1
请在Spring Boot框架中完成以下Java代码
public void addHandle(final ApiConfigChangeHandle handle) { super.addObserver(handle); } /** * 移除配置变化监听器 * * @param handle 监听器 */ public void removeHandle(final ApiConfigChangeHandle handle) { super.deleteObserver(handle); } /** * 移除所有配置变化监听器 */ public void removeAllHandle() { super.deleteObse...
//记住原本的时间,用于出错回滚 final long oldTime = this.jsTokenStartTime; this.jsTokenStartTime = refreshTime; String url = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=" + accessToken + "&type=jsapi"; NetWorkCenter.get(url, null, new NetWorkCenter.ResponseCallback() { @Override public void onRespo...
repos\spring-boot-quick-master\quick-wx-public\src\main\java\com\wx\pn\api\config\ApiConfig.java
2
请在Spring Boot框架中完成以下Java代码
public String getNumber() { return number; } public void setNumber(String number) { this.number = number; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Phone phone = (Phone)o; return Object...
StringBuilder sb = new StringBuilder(); sb.append("class Phone {\n"); sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n"); sb.append(" number: ").append(toIndentedString(number)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to strin...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\de-metas-camel-ebay\ebay-api-client\src\main\java\de\metas\camel\externalsystems\ebay\api\model\Phone.java
2
请完成以下Java代码
private void consume() { while (true) { Double value; try { value = blockingQueue.take(); } catch (InterruptedException e) { e.printStackTrace(); break; } // Consume value log.info(String.form...
} for (int i = 0; i < 3; i++) { Thread consumerThread = new Thread(this::consume); consumerThread.start(); } } public static void main(String[] args) { SimpleProducerConsumerDemonstrator simpleProducerConsumerDemonstrator = new SimpleProducerConsumerDemonstrator...
repos\tutorials-master\core-java-modules\core-java-concurrency-advanced-7\src\main\java\com\baeldung\producerconsumer\SimpleProducerConsumerDemonstrator.java
1
请完成以下Java代码
protected Properties getCtx() { return InterfaceWrapperHelper.getCtx(referenceModel); } @Override public String getDisplayName() { final I_M_Product product = Services.get(IProductDAO.class).getById(getProductId()); final StringBuilder name = new StringBuilder() .append(product.getName()).append("#").a...
{ return storage.getQty().toBigDecimal(); } @Override public Object getTrxReferencedModel() { return referenceModel; } protected IProductStorage getStorage() { return storage; } @Override public IAllocationSource createAllocationSource(final I_M_HU hu) { return HUListAllocationSourceDestination.of...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\document\impl\AbstractHUDocumentLine.java
1
请在Spring Boot框架中完成以下Java代码
void createDummyProductSupplies() { for (final BPartner bpartner : bpartnersRepo.findAll()) { for (final Contract contract : contractsRepo.findByBpartnerAndDeletedFalse(bpartner)) { final List<ContractLine> contractLines = contract.getContractLines(); if (contractLines.isEmpty()) { continue;...
.date(LocalDate.now()) // today .qty(new BigDecimal("10")) .qtyConfirmedByUser(true) .build()); productSuppliesService.reportSupply(IProductSuppliesService.ReportDailySupplyRequest.builder() .bpartner(bpartner) .contractLine(contractLine) .productId(product.getId()) .date(L...
repos\metasfresh-new_dawn_uat\misc\services\procurement-webui\procurement-webui-backend\src\main\java\de\metas\procurement\webui\util\DummyDataProducer.java
2
请在Spring Boot框架中完成以下Java代码
public String getPoReference() { return poReference; } public void setPoReference(final String poReference) { this.poReference = poReference; } public String getShipmentDocumentno() { return shipmentDocumentno; } public void setShipmentDocumentno(final String shipmentDocumentno) { this.shipmentDocu...
{ return false; } } else if (!movementDate.equals(other.movementDate)) { return false; } if (poReference == null) { if (other.poReference != null) { return false; } } else if (!poReference.equals(other.poReference)) { return false; } if (shipmentDocumentno == null) { ...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java\de\metas\edi\esb\invoicexport\compudata\Cctop111V.java
2
请完成以下Java代码
public boolean contains(@NonNull final AttributeId attributeId) { return byId.containsKey(attributeId); } public Optional<AttributeSetAttribute> getByAttributeId(@NonNull final AttributeId attributeId) { return Optional.ofNullable(byId.get(attributeId)); } public OptionalBoolean getMandatoryOnReceipt(@NonNu...
return getByAttributeId(attributeId) .map(AttributeSetAttribute::getMandatoryOnPicking) .orElse(OptionalBoolean.UNKNOWN); } public boolean isASIMandatory(@NonNull final SOTrx soTrx) { if (!isInstanceAttribute) { return false; } else { return mandatoryType.isASIMandatory(soTrx); } } }
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\org\adempiere\mm\attributes\AttributeSetDescriptor.java
1
请在Spring Boot框架中完成以下Java代码
public PackagingUnit archived(Boolean archived) { this.archived = archived; return this; } /** * Kennzeichen ob Verpackungseinheit archiviert ist, d. h. nicht mehr im Warenkorb ausgewählt werden kann * @return archived **/ @Schema(example = "false", description = "Kennzeichen ob Verpackungseinhe...
StringBuilder sb = new StringBuilder(); sb.append("class PackagingUnit {\n"); sb.append(" unit: ").append(toIndentedString(unit)).append("\n"); sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n"); sb.append(" pcn: ").append(toIndentedString(pcn)).append("\n"); sb.a...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\alberta\alberta-article-api\src\main\java\io\swagger\client\model\PackagingUnit.java
2
请完成以下Java代码
public Map<Class<?>, SessionFactory> getSessionFactories() { return sessionFactories; } public HistoryManager getHistoryManager() { return getSession(HistoryManager.class); } // getters and setters ////////////////////////////////////////////////////// public TransactionContext ge...
public Throwable getException() { return exception; } public FailedJobCommandFactory getFailedJobCommandFactory() { return failedJobCommandFactory; } public ProcessEngineConfigurationImpl getProcessEngineConfiguration() { return processEngineConfiguration; } public Flo...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\interceptor\CommandContext.java
1
请完成以下Java代码
public List<ReferenceType2> getReference() { if (reference == null) { reference = new ArrayList<ReferenceType2>(); } return this.reference; } /** * Gets the value of the id property. * * @return * possible object is * {@link String } * ...
return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {@link String } * */ public void setId(String value) { this.id = value; } }
repos\metasfresh-new_dawn_uat\backend\vertical-healthcare_ch\forum_datenaustausch_ch.invoice_440_request\src\main\java-xjc\de\metas\vertical\healthcare_ch\forum_datenaustausch_ch\invoice_440\request\ManifestType.java
1
请完成以下Java代码
public static Partition partition(int input[], int begin, int end) { int left = begin, right = end; int leftEqualKeysCount = 0, rightEqualKeysCount = 0; int partitioningValue = input[end]; while (true) { while (input[left] < partitioningValue) left++; ...
swap(input, k, right); } for (int k = end; k > end - rightEqualKeysCount; k--, left++) { if (left <= end - rightEqualKeysCount) swap(input, left, k); } return new Partition(right + 1, left - 1); } public static void quicksort(int input[], int begin, i...
repos\tutorials-master\algorithms-modules\algorithms-sorting-2\src\main\java\com\baeldung\algorithms\quicksort\BentleyMcIlroyPartioning.java
1
请完成以下Java代码
public boolean isSequential() { return sequential; } public void setSequential(boolean sequential) { this.sequential = sequential; } public boolean isNoWaitStatesAsyncLeave() { return noWaitStatesAsyncLeave; } public void setNoWaitStatesAsyncLeave(boolean noWaitStatesA...
} @Override public MultiInstanceLoopCharacteristics clone() { MultiInstanceLoopCharacteristics clone = new MultiInstanceLoopCharacteristics(); clone.setValues(this); return clone; } public void setValues(MultiInstanceLoopCharacteristics otherLoopCharacteristics) { super...
repos\flowable-engine-main\modules\flowable-bpmn-model\src\main\java\org\flowable\bpmn\model\MultiInstanceLoopCharacteristics.java
1
请完成以下Java代码
public void setQtyRejectedToPick (final BigDecimal QtyRejectedToPick) { set_Value (COLUMNNAME_QtyRejectedToPick, QtyRejectedToPick); } @Override public BigDecimal getQtyRejectedToPick() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_QtyRejectedToPick); return bd != null ? bd : BigDecimal.ZERO; }...
@Override public void setSinglePackage (final boolean SinglePackage) { set_Value (COLUMNNAME_SinglePackage, SinglePackage); } @Override public boolean isSinglePackage() { return get_ValueAsBoolean(COLUMNNAME_SinglePackage); } @Override public void setWorkplaceIndicator_ID (final int WorkplaceIndicator_I...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java-gen\de\metas\handlingunits\model\X_M_Picking_Job_Step.java
1
请完成以下Java代码
public List<CashDeposit1> getCshDpst() { if (cshDpst == null) { cshDpst = new ArrayList<CashDeposit1>(); } return this.cshDpst; } /** * Gets the value of the cardTx property. * * @return * possible object is * {@link CardTransaction1 } ...
* @param value * allowed object is * {@link String } * */ public void setAddtlTxInf(String value) { this.addtlTxInf = value; } /** * Gets the value of the splmtryData property. * * <p> * This accessor method returns a reference to the live list,...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.camt53\src\main\java-xjc\de\metas\banking\camt53\jaxb\camt053_001_04\EntryTransaction4.java
1
请完成以下Java代码
private static String toJson(final com.paypal.orders.Order apiOrder) { if (apiOrder == null) { return ""; } try { // IMPORTANT: we shall use paypal's JSON serializer, else we won't get any result return new com.braintreepayments.http.serializer.Json().serialize(apiOrder); } catch (final Excepti...
{ final I_PayPal_Order existingRecord = getRecordById(id); final PayPalOrder order = toPayPalOrder(existingRecord) .toBuilder() .status(PayPalOrderStatus.REMOTE_DELETED) .build(); updateRecord(existingRecord, order); saveRecord(existingRecord); return order; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.paypal\src\main\java\de\metas\payment\paypal\client\PayPalOrderRepository.java
1
请完成以下Java代码
public class ItemParam { @HeaderParam("headerParam") private String shopKey; @PathParam("pathParam") private String itemId; @FormParam("formParam") private String price; public String getShopKey() { return shopKey; } public void setShopKey(String shopKey) { this....
} public void setItemId(String itemId) { this.itemId = itemId; } public String getPrice() { return price; } public void setPrice(String price) { this.price = price; } @Override public String toString() { return "ItemParam{shopKey='" + shopKey + ", item...
repos\tutorials-master\web-modules\jersey\src\main\java\com\baeldung\jersey\server\ItemParam.java
1
请完成以下Java代码
public static <V, K> Map<V, K> invertMapUsingForLoop(Map<K, V> map) { Map<V, K> inversedMap = new HashMap<V, K>(); for (Entry<K, V> entry : map.entrySet()) { inversedMap.put(entry.getValue(), entry.getKey()); } System.out.println(inversedMap); return inversedMap; ...
.stream() .collect(Collectors.toMap(Entry::getValue, Entry::getKey, (oldValue, newValue) -> oldValue)); System.out.println(inversedMap); return inversedMap; } public static <V, K> Map<V, List<K>> invertMapUsingGroupingBy(Map<K, V> map) { Map<V, List<K>> inversedMap = map.ent...
repos\tutorials-master\core-java-modules\core-java-collections-maps-5\src\main\java\com\baeldung\map\invert\InvertHashMapExample.java
1
请完成以下Java代码
public void setTargetCaseDefinitionId(String targetProcessDefinitionId) { this.targetProcessDefinitionId = targetProcessDefinitionId; } public List<CaseInstanceBatchMigrationPartResult> getAllMigrationParts() { return allMigrationParts; } public void addMigrationPart(CaseInstanceBatchM...
} } public List<CaseInstanceBatchMigrationPartResult> getSuccessfulMigrationParts() { return succesfulMigrationParts; } public List<CaseInstanceBatchMigrationPartResult> getFailedMigrationParts() { return failedMigrationParts; } public List<CaseInstanceBatchMigrationPartResult...
repos\flowable-engine-main\modules\flowable-cmmn-api\src\main\java\org\flowable\cmmn\api\migration\CaseInstanceBatchMigrationResult.java
1
请完成以下Java代码
protected void prepare() { ProcessInfoParameter[] para = getParametersAsArray(); for (int i = 0; i < para.length; i++) { String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else log.error("prepare - Unknown Parameter: " + name); } } // prepare /** * Perform pr...
int count = 0; List<I_C_ProjectTask> tasks = fromPhase.getTasks (); for (int i = 0; i < tasks.size(); i++) { MOrderLine ol = new MOrderLine(order); ol.setLine(tasks.get(i).getSeqNo()); StringBuffer sb = new StringBuffer (tasks.get(i).getName()); if (tasks.get(i).getDescription() != null && tasks.get(i...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java-legacy\de\metas\project\process\legacy\ProjectPhaseGenOrder.java
1
请完成以下Java代码
private static String getValueAsString(EntityKeyValue entityKeyValue) { Object result = null; switch (entityKeyValue.getDataType()) { case STRING: result = entityKeyValue.getStrValue(); break; case JSON: result = entityKeyValue.getJ...
boolean updated = false; if (currentAlarm != null && currentAlarm.getId().equals(alarmNf.getId())) { currentAlarm = null; for (AlarmRuleState state : createRulesSortedBySeverityDesc) { updated = clearAlarmState(updated, state); } } return updat...
repos\thingsboard-master\rule-engine\rule-engine-components\src\main\java\org\thingsboard\rule\engine\profile\AlarmState.java
1
请完成以下Java代码
public BigDecimal getAllocatedAmt(final PaymentId paymentId) { final I_C_Payment payment = getById(paymentId); return getAllocatedAmt(payment); } @Override public BigDecimal getAllocatedAmt(final I_C_Payment payment) { Adempiere.assertUnitTestMode(); BigDecimal sum = BigDecimal.ZERO; for (final I_C_All...
{ sum = sum.add(lineAmt); } } return sum; } @Override public void updateDiscountAndPayment(final I_C_Payment payment, final int c_Invoice_ID, final I_C_DocType c_DocType) { Adempiere.assertUnitTestMode(); throw new UnsupportedOperationException(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\payment\api\impl\PlainPaymentDAO.java
1
请在Spring Boot框架中完成以下Java代码
public class TaxExtensionType { @XmlElement(name = "VATAmount") protected BigDecimal vatAmount; @XmlElement(name = "DocumentDefaultTax") protected BigDecimal documentDefaultTax; /** * Gets the value of the vatAmount property. * * @return * possible object is * {@l...
public BigDecimal getDocumentDefaultTax() { return documentDefaultTax; } /** * Sets the value of the documentDefaultTax property. * * @param value * allowed object is * {@link BigDecimal } * */ public void setDocumentDefaultTax(BigDecimal value) { ...
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\TaxExtensionType.java
2
请在Spring Boot框架中完成以下Java代码
SysDepartModel queryCompByOrgCodeAndLevel(@RequestParam("orgCode") String orgCode, @RequestParam("level") Integer level){ return sysBaseApi.queryCompByOrgCodeAndLevel(orgCode,level); } /** * 运行AIRag流程 * for [QQYUN-13634]在baseapi里面封装方法,方便其他模块调用 * @param airagFlowDTO * @return 流程执行结果...
* @return */ @GetMapping("/queryUserIdsByCascadeDeptIds") public List<String> queryUserIdsByCascadeDeptIds(@RequestParam("deptIds") List<String> deptIds){ return sysBaseApi.queryUserIdsByCascadeDeptIds(deptIds); } /** * 推送uniapp 消息 * @param pushMessageDTO * @return */ ...
repos\JeecgBoot-main\jeecg-boot\jeecg-module-system\jeecg-system-biz\src\main\java\org\jeecg\modules\api\controller\SystemApiController.java
2
请完成以下Java代码
public class BranchAndFinancialInstitutionIdentification4CHBicOrClrId { @XmlElement(name = "FinInstnId", required = true) protected FinancialInstitutionIdentification7CHBicOrClrId finInstnId; /** * Gets the value of the finInstnId property. * * @return * possible object is * ...
} /** * Sets the value of the finInstnId property. * * @param value * allowed object is * {@link FinancialInstitutionIdentification7CHBicOrClrId } * */ public void setFinInstnId(FinancialInstitutionIdentification7CHBicOrClrId value) { this.finInstnId = v...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.sepa\schema-pain_001_01_03_ch_02\src\main\java-xjc\de\metas\payment\sepa\jaxb\sct\pain_001_001_03_ch_02\BranchAndFinancialInstitutionIdentification4CHBicOrClrId.java
1
请完成以下Java代码
protected void verifyResultVariableName(Process process, ServiceTask serviceTask, List<ValidationError> errors) { if ( StringUtils.isNotEmpty(serviceTask.getResultVariableName()) && (ImplementationType.IMPLEMENTATION_TYPE_CLASS.equals(serviceTask.getImplementationType()) || ...
) { boolean operationFound = false; if (bpmnModel.getInterfaces() != null && !bpmnModel.getInterfaces().isEmpty()) { for (Interface bpmnInterface : bpmnModel.getInterfaces()) { if (bpmnInterface.getOperations() != null && !bpmnInterface.getOperations().isEmpty...
repos\Activiti-develop\activiti-core\activiti-process-validation\src\main\java\org\activiti\validation\validator\impl\ServiceTaskValidator.java
1
请在Spring Boot框架中完成以下Java代码
private boolean isCandidate(PropertyDescriptor descriptor) { return descriptor.isProperty(this.environment) || descriptor.isNested(this.environment); } /** * Wrapper around a {@link TypeElement} that could be bound. */ private static class Bindable { private final TypeElement type; private final List<Ex...
} return boundConstructor; } static Bindable of(TypeElement type, MetadataGenerationEnvironment env) { List<ExecutableElement> constructors = ElementFilter.constructorsIn(type.getEnclosedElements()); List<ExecutableElement> boundConstructors = getBoundConstructors(type, env, constructors); return new B...
repos\spring-boot-4.0.1\configuration-metadata\spring-boot-configuration-processor\src\main\java\org\springframework\boot\configurationprocessor\PropertyDescriptorResolver.java
2
请在Spring Boot框架中完成以下Java代码
public class C_Order_CreateCompensationMultiGroups extends OrderCompensationGroupProcess { @Autowired private GroupTemplateRepository groupTemplateRepo; @Override public ProcessPreconditionsResolution checkPreconditionsApplicable(final @NonNull IProcessPreconditionsContext context) { return acceptIfEligibleOrde...
final ListMultimap<GroupTemplate, OrderLineId> orderLineIdsByGroupTemplate = LinkedListMultimap.create(); for (final I_C_OrderLine orderLine : orderLinesSorted) { final GroupTemplate groupTemplate = extractGroupTemplate(orderLine); if (groupTemplate == null) { continue; } orderLineIdsByGroupTemp...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\order\process\C_Order_CreateCompensationMultiGroups.java
2
请在Spring Boot框架中完成以下Java代码
public String getGroupsClaim() { return groupsClaim; } /** * @param groupsClaim the groupsClaim to set */ public void setGroupsClaim(String groupsClaim) { this.groupsClaim = groupsClaim; } /** * @return the groupToAuthorities */ public Map<String, Li...
this.groupToAuthorities = groupToAuthorities; } /** * @return the authoritiesPrefix */ public String getAuthoritiesPrefix() { return authoritiesPrefix; } /** * @param authoritiesPrefix the authoritiesPrefix to set */ public void setAuthoritiesPrefix(String authoriti...
repos\tutorials-master\spring-security-modules\spring-security-azuread\src\main\java\com\baeldung\security\azuread\config\JwtAuthorizationProperties.java
2
请完成以下Java代码
public void setC_ElementValue_ID (final int C_ElementValue_ID) { if (C_ElementValue_ID < 1) set_Value (COLUMNNAME_C_ElementValue_ID, null); else set_Value (COLUMNNAME_C_ElementValue_ID, C_ElementValue_ID); } @Override public int getC_ElementValue_ID() { return get_ValueAsInt(COLUMNNAME_C_ElementVal...
{ return get_ValueAsPO(COLUMNNAME_C_InvoiceLine_ID, org.compiere.model.I_C_InvoiceLine.class); } @Override public void setC_InvoiceLine(final org.compiere.model.I_C_InvoiceLine C_InvoiceLine) { set_ValueFromPO(COLUMNNAME_C_InvoiceLine_ID, org.compiere.model.I_C_InvoiceLine.class, C_InvoiceLine); } @Override...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_Invoice_Acct.java
1
请在Spring Boot框架中完成以下Java代码
public class BPartnerDispatchMessageProcessor implements Processor { @Override public void process(final Exchange exchange) throws Exception { final JsonResponseComposite jsonResponseComposite = exchange.getIn().getBody(JsonResponseComposite.class); final ExportBPartnerRouteContext routeContext = ProcessorHelp...
.url(routeContext.getRemoteUrl()) .authToken(routeContext.getAuthToken()) .message(jsonRabbitMQHttpMessage) .build(); exchange.getIn().setBody(dispatchMessageRequest); } @NonNull private JsonRabbitMQProperties getDefaultRabbitMQProperties() { return JsonRabbitMQProperties.builder() .delivery_m...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\de-metas-camel-rabbitmq\src\main\java\de\metas\camel\externalsystems\rabbitmq\bpartner\processor\BPartnerDispatchMessageProcessor.java
2
请完成以下Java代码
public static I_AD_Field createADField( final I_AD_Tab tab, final I_AD_Column adColumn, final boolean displayedIfNotIDColumn, @Nullable final String p_EntityType) { final String entityTypeToUse; if (Check.isEmpty(p_EntityType, true)) { entityTypeToUse = tab.getEntityType(); // Use Tab's Entity Typ...
field.setColumn(adColumn); field.setEntityType(entityTypeToUse); if (adColumn.isKey() || !displayedIfNotIDColumn) { field.setIsDisplayed(false); field.setIsDisplayedGrid(false); } if("AD_Client_ID".equals(adColumn.getColumnName())) { field.setIsReadOnly(true); } InterfaceWrapperHelper.save...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\process\AD_Tab_CreateFields.java
1
请完成以下Java代码
private List<ShipmentSchedule> retrieveShipmentSchedulesByPackageId(@NonNull final PackageId packageId) { return shipmentScheduleRepository.loadByPackageId(packageId); } private Set<CarrierServiceId> retrieveCarrierServiceIdsForShipmentSchedules(@NonNull final List<ShipmentSchedule> schedules) { return carrier...
.collect(ImmutableSet.toImmutableSet()); final CreateDraftDeliveryOrderRequest request = CreateDraftDeliveryOrderRequest.builder() .deliveryOrderKey(deliveryOrderKey) .packageInfos(packageInfos) .build(); final DraftDeliveryOrderCreator shipperGatewayService = shipperRegistry.getShipperGatewayService(...
repos\metasfresh-new_dawn_uat\backend\de.metas.shipper.gateway.commons\src\main\java\de\metas\shipper\gateway\commons\ShipperGatewayFacade.java
1
请完成以下Java代码
public PhoneNumber instantiate(ValueAccess values) { return new PhoneNumber(values.getValue(0, Integer.class), values.getValue(1, Integer.class), values.getValue(2, Integer.class)); } @Override public Class<?> embeddable() { return PhoneNumber.class; } @Override public Class re...
public boolean isMutable() { return false; } @Override public Serializable disassemble(PhoneNumber value) { return (Serializable) value; } @Override public PhoneNumber assemble(Serializable cached, Object owner) { return (PhoneNumber) cached; } @Override pu...
repos\tutorials-master\persistence-modules\hibernate-annotations\src\main\java\com\baeldung\hibernate\customtypes\PhoneNumberType.java
1
请完成以下Java代码
public void destroy() { filterConfig = null; } @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { applyFilter((HttpServletRequest) request, (HttpServletResponse) response, chain); } /** * Apply the filter to ...
* @return the resource contents * * @throws IOException */ protected String getWebResourceContents(String name) throws IOException { InputStream is = null; try { is = filterConfig.getServletContext().getResourceAsStream(name); BufferedReader reader = new BufferedReader(new InputStreamR...
repos\camunda-bpm-platform-master\webapps\assembly\src\main\java\org\camunda\bpm\webapp\impl\filter\AbstractTemplateFilter.java
1
请完成以下Java代码
public LookupValue findById(final Object idObj) { final Object idNormalized = LookupValue.normalizeId(idObj, fetcher.isNumericKey()); if (idNormalized == null) { return null; } final LookupValuesList partition = getLookupValuesList(Evaluatees.empty()); return partition.getById(idNormalized); } @Over...
return DocumentZoomIntoInfo.of(tableName, id); } @Override public Optional<WindowId> getZoomIntoWindowId() { return fetcher.getZoomIntoWindowId(); } @Override public List<CCacheStats> getCacheStats() { return ImmutableList.of(cacheByPartition.stats()); } @Override public void cacheInvalidate() { ca...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\model\lookup\FullyCachedLookupDataSource.java
1
请完成以下Java代码
protected static class CacheValue { protected final String json; protected final int version; protected final String definitionId; public CacheValue(String json, ChannelDefinition definition) { this.json = json; this.version = definition.getVersion(); ...
protected final CacheRegisteredChannel previousChannel; protected final CacheKey cacheKey; public ChannelRegistrationImpl(boolean registered, CacheRegisteredChannel previousChannel, CacheKey cacheKey) { this.registered = registered; this.previousChannel = previousChannel; ...
repos\flowable-engine-main\modules\flowable-event-registry\src\main\java\org\flowable\eventregistry\impl\deployer\DefaultInboundChannelModelCacheManager.java
1
请完成以下Java代码
protected org.compiere.model.POInfo initPO(final Properties ctx) { return org.compiere.model.POInfo.getPOInfo(Table_Name); } @Override public void setC_MediatedCommissionSettings_ID (final int C_MediatedCommissionSettings_ID) { if (C_MediatedCommissionSettings_ID < 1) set_ValueNoCheck (COLUMNNAME_C_Mediat...
return get_ValueAsString(COLUMNNAME_Description); } @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 public void setPointsPrecision (final int PointsP...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java-gen\de\metas\contracts\commission\model\X_C_MediatedCommissionSettings.java
1
请完成以下Java代码
public void reactivated(CmmnActivityExecution execution) { // noop } // repetition /////////////////////////////////////////////////////////////// public void repeat(CmmnActivityExecution execution, String standardEvent) { CmmnActivity activity = execution.getActivity(); boolean repeat = false; ...
if (execution.isTerminating() || execution.isSuspending()) { currentState = execution.getPreviousState(); } // is the case execution already in the target state if (target.equals(currentState)) { throw LOG.isAlreadyInStateException(transition, id, target); } else // is the case executi...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cmmn\behavior\PlanItemDefinitionActivityBehavior.java
1
请完成以下Java代码
public Flux<ClientGraphQlResponse> executeSubscription() { return initRequestSpec().executeSubscription(); } private GraphQLQueryRequest createRequest() { Assert.state(this.projectionNode != null || this.coercingMap == null, "Coercing map provided without projection"); GraphQLQueryRequest request; ...
operationName = (this.query.getName() != null) ? this.query.getName() : null; } return DgsGraphQlClient.this.graphQlClient.document(document) .operationName(operationName) .attributes((map) -> { if (this.attributes != null) { map.putAll(this.attributes); } }); } private Str...
repos\spring-graphql-main\spring-graphql\src\main\java\org\springframework\graphql\client\DgsGraphQlClient.java
1
请完成以下Java代码
default String getListenerId() { throw new UnsupportedOperationException("This container does not support retrieving the listener id"); } /** * The 'id' attribute of the main {@code @KafkaListener} container, if this container * is for a retry topic; null otherwise. * @return the id. * @since 3.0 */ @Nu...
*/ default void stopAbnormally(Runnable callback) { stop(callback); } /** * If this container has child containers, return the child container that is assigned * the topic/partition. Return this when there are no child containers. * @param topic the topic. * @param partition the partition. * @return the...
repos\spring-kafka-main\spring-kafka\src\main\java\org\springframework\kafka\listener\MessageListenerContainer.java
1
请完成以下Java代码
public WebEndpointResponse<QuartzGroupsDescriptor> quartzJobOrTriggerGroups(@Selector String jobsOrTriggers) throws SchedulerException { return handle(jobsOrTriggers, this.delegate::quartzJobGroups, this.delegate::quartzTriggerGroups); } @ReadOperation public WebEndpointResponse<Object> quartzJobOrTriggerGroup...
} private <T> WebEndpointResponse<T> handleNull(@Nullable T value) { return (value != null) ? new WebEndpointResponse<>(value) : new WebEndpointResponse<>(WebEndpointResponse.STATUS_NOT_FOUND); } @FunctionalInterface private interface ResponseSupplier<T> { @Nullable T get() throws SchedulerException; }...
repos\spring-boot-4.0.1\module\spring-boot-quartz\src\main\java\org\springframework\boot\quartz\actuate\endpoint\QuartzEndpointWebExtension.java
1
请完成以下Java代码
private String getAlphaNumerics(String value) { StringBuilder result = new StringBuilder(value.length()); for (int i = 0; i < value.length(); i++) { char ch = value.charAt(i); if (ch >= 'a' && ch <= 'z' || ch >= '0' && ch <= '9') { result.append(ch); } } return result.toString(); } @Override pu...
} /** * Factory method to create a new {@link EndpointId} of the specified value. This * variant will respect the {@code management.endpoints.migrate-legacy-names} property * if it has been set in the {@link Environment}. * @param environment the Spring environment * @param value the endpoint ID value * @...
repos\spring-boot-4.0.1\module\spring-boot-actuator\src\main\java\org\springframework\boot\actuate\endpoint\EndpointId.java
1
请在Spring Boot框架中完成以下Java代码
public Properties getCtx() { final Object referencedObject = getReferencedObject(); if (referencedObject == null) { return Env.getCtx(); } return InterfaceWrapperHelper.getCtx(referencedObject); } @Override public OptionalBoolean getManualPriceEnabled() { return manualPriceEnabled; } @Override ...
this.forcePricingConditionsBreak = forcePricingConditionsBreak; return this; } @Override public Optional<IAttributeSetInstanceAware> getAttributeSetInstanceAware() { final Object referencedObj = getReferencedObject(); if (referencedObj == null) { return Optional.empty(); } final IAttributeSetInstan...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\pricing\service\impl\PricingContext.java
2
请完成以下Java代码
public Object getPrincipal() { return this.clientPrincipal; } @Override public Object getCredentials() { return ""; } /** * Returns the authorization {@code URI}. * @return the authorization {@code URI} */ public String getAuthorizationUri() { return this.authorizationUri; } /** * Returns the r...
return this.deviceCode; } /** * Returns the user code. * @return the user code */ public OAuth2UserCode getUserCode() { return this.userCode; } /** * Returns the additional parameters. * @return the additional parameters */ public Map<String, Object> getAdditionalParameters() { return this.addit...
repos\spring-security-main\oauth2\oauth2-authorization-server\src\main\java\org\springframework\security\oauth2\server\authorization\authentication\OAuth2DeviceAuthorizationRequestAuthenticationToken.java
1
请在Spring Boot框架中完成以下Java代码
public void configureMessageBroker(MessageBrokerRegistry registry) { registry.enableSimpleBroker("/topic"); registry.setApplicationDestinationPrefixes("/app"); } @Override public void registerStompEndpoints(StompEndpointRegistry registry) { // registry.addEndpoint("/send_to_all") // ...
// registry.addHandler(this.webSocketHandler(), "/") // 配置处理器 // .addInterceptors(new DemoWebSocketShakeInterceptor()) // 配置拦截器 // .setAllowedOrigins("*"); // 解决跨域问题 // } // @Bean // public DemoWebSocketHandler webSocketHandler() { // return new DemoWebSocketHandler...
repos\SpringBoot-Labs-master\lab-25\lab-websocket-25-03\src\main\java\cn\iocoder\springboot\lab25\springwebsocket\config\WebSocketConfiguration.java
2
请完成以下Java代码
public static int usingRecursion(int[] prices, int n) { if (n <= 0) { return 0; } int maxRevenue = Integer.MIN_VALUE; for (int i = 1; i <= n; i++) { maxRevenue = Math.max(maxRevenue, prices[i - 1] + usingRecursion(prices, n - i)); } return maxReve...
for (int i = 1; i <= n; i++) { int maxRevenue = Integer.MIN_VALUE; for (int j = 1; j <= i; j++) { maxRevenue = Math.max(maxRevenue, prices[j - 1] + dp[i - j]); } dp[i] = maxRevenue; } return dp[n]; } public static int usingUnbound...
repos\tutorials-master\core-java-modules\core-java-lang-math-4\src\main\java\com\baeldung\math\rodcutting\RodCuttingProblem.java
1
请在Spring Boot框架中完成以下Java代码
public final class DataJdbcRepositoriesAutoConfiguration { @Configuration(proxyBeanMethods = false) @ConditionalOnMissingBean(JdbcRepositoryConfigExtension.class) @Import(DataJdbcRepositoriesRegistrar.class) static class JdbcRepositoriesConfiguration { } @Configuration(proxyBeanMethods = false) @ConditionalOn...
@Override @Bean @ConditionalOnMissingBean public JdbcCustomConversions jdbcCustomConversions() { return super.jdbcCustomConversions(); } @Override @Bean @ConditionalOnMissingBean public JdbcAggregateTemplate jdbcAggregateTemplate(ApplicationContext applicationContext, JdbcMappingContext mappingC...
repos\spring-boot-4.0.1\module\spring-boot-data-jdbc\src\main\java\org\springframework\boot\data\jdbc\autoconfigure\DataJdbcRepositoriesAutoConfiguration.java
2
请在Spring Boot框架中完成以下Java代码
public int hashCode() { return Objects.hash(_id, orderedArticleLineId, articleId, pcn, productGroupName, quantity, unit, annotation, updated); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PrescriptedArticleLine {\n"); sb.append(" _id: ")...
sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\alberta\alberta-orders-api\src\main\java\io\swagger\client\model\PrescriptedArticleLine.java
2
请完成以下Java代码
final class PemCertificateParser { private static final String HEADER = "-+BEGIN\\s+.*CERTIFICATE[^-]*-+(?:\\s|\\r|\\n)+"; private static final String BASE64_TEXT = "([a-z0-9+/=\\r\\n]+)"; private static final String FOOTER = "-+END\\s+.*CERTIFICATE[^-]*-+"; private static final Pattern PATTERN = Pattern.compil...
return CertificateFactory.getInstance("X.509"); } catch (CertificateException ex) { throw new IllegalStateException("Unable to get X.509 certificate factory", ex); } } private static void readCertificates(String text, CertificateFactory factory, Consumer<X509Certificate> consumer) { try { Matcher match...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\ssl\pem\PemCertificateParser.java
1
请在Spring Boot框架中完成以下Java代码
private void updateContextAfterSuccess(@NonNull final Exchange exchange) { final ImportOrdersRouteContext importOrdersRouteContext = ImportUtil.getOrCreateImportOrdersRouteContext(exchange); final PurchaseOrderRow purchaseOrderRow = exchange.getProperty(PROPERTY_CURRENT_CSV_ROW, PurchaseOrderRow.class); final J...
final Object fileName = exchange.getIn().getHeader(Exchange.FILE_NAME_ONLY); throw new RuntimeCamelException("No purchase order candidates from file " + fileName.toString() + " can be imported to metasfresh"); } final JsonPurchaseCandidatesRequest.JsonPurchaseCandidatesRequestBuilder builder = JsonPurchaseCandi...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\de-metas-camel-pcm-file-import\src\main\java\de\metas\camel\externalsystems\pcm\purchaseorder\GetPurchaseOrderFromFileRouteBuilder.java
2
请完成以下Java代码
public List<HistoricIdentityLinkEntity> findHistoricIdentityLinksByProcessDefinitionId(String processDefinitionId) { return getDbSqlSession().selectList("selectHistoricIdentityLinksByProcessDefinition", processDefinitionId); } @SuppressWarnings("unchecked") public List<HistoricIdentityLinkEntity> f...
// Delete for (HistoricIdentityLinkEntity identityLink : identityLinks) { deleteHistoricIdentityLink(identityLink); } // Identity links from cache List<HistoricIdentityLinkEntity> identityLinksFromCache = Context.getCommandContext().getDbSqlSession().findInCache(HistoricIden...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\persistence\entity\HistoricIdentityLinkEntityManager.java
1
请在Spring Boot框架中完成以下Java代码
public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentDispute {\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" availableChoices: ").append(toIndentedString(availableChoices)).append("\n"); sb.append(" buyerProvided: ").appe...
sb.append(" revision: ").append(toIndentedString(revision)).append("\n"); sb.append(" sellerResponse: ").append(toIndentedString(sellerResponse)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\de-metas-camel-ebay\ebay-api-client\src\main\java\de\metas\camel\externalsystems\ebay\api\model\PaymentDispute.java
2
请完成以下Java代码
public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; BaseDataWithAdditionalInfo<?> that = (BaseDataWithAdditionalInfo<?>) o; return Arrays.equals(additionalInfoBytes, that.addi...
} catch (IOException e) { log.warn("Can't deserialize json data: ", e); return null; } } else { return null; } } } public static void setJson(JsonNode json, Consumer<JsonNode> jsonConsumer, Consumer<byte[]> ...
repos\thingsboard-master\common\data\src\main\java\org\thingsboard\server\common\data\BaseDataWithAdditionalInfo.java
1
请完成以下Java代码
public void mouseDragged(MouseEvent me) { if (selObject == null || !selObject.isUpdateable()) { moved = false; return; } moved = true; if (getCursor() != customCursor) { setCursor(customCursor); } } // mouseDragged /* (non-Javadoc) * @see javax.swing.event.MouseInputAdapter#mouse...
setCursor(Cursor.getDefaultCursor()); moved = false; return; // move within noList } p = SwingUtilities.convertPoint (noList, p, yesList); } int index = endList.locationToIndex(p); if (index > -1) // && endList.getCellBounds(index, index).contains(p)) { startModel.removeEleme...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\grid\VSortTab.java
1
请完成以下Java代码
public java.math.BigDecimal getStd_MaxAmt () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Std_MaxAmt); if (bd == null) return Env.ZERO; return bd; } /** Set Standard price min Margin. @param Std_MinAmt Minimum margin allowed for a product */ @Override public void setStd_MinAmt (java.math....
/** Ten 10.00, 20.00, .. = T */ public static final String STD_ROUNDING_Ten10002000 = "T"; /** Currency Precision = C */ public static final String STD_ROUNDING_CurrencyPrecision = "C"; /** Ending in 9/5 = 9 */ public static final String STD_ROUNDING_EndingIn95 = "9"; /** Set Rundung Standardpreis. @param Std_R...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_DiscountSchemaLine.java
1
请完成以下Java代码
public void setAuditEventType(String auditEventType) { this.auditEventType = auditEventType; } public Map<String, String> getData() { return data; } public void setData(Map<String, String> data) { this.data = data; } @Override public boolean equals(Object o) { ...
} PersistentAuditEvent persistentAuditEvent = (PersistentAuditEvent) o; return !(persistentAuditEvent.getId() == null || getId() == null) && Objects.equals(getId(), persistentAuditEvent.getId()); } @Override public int hashCode() { return Objects.hashCode(getId()); } @Over...
repos\tutorials-master\jhipster-6\bookstore-monolith\src\main\java\com\baeldung\jhipster6\domain\PersistentAuditEvent.java
1
请完成以下Java代码
public String bar(String device) { log.info("bar({})", device); counterProvider.withTag("device.type", device) .increment(); String response = timerProvider.withTag("device.type", device) .record(this::invokeSomeLogic); return response; } @Timed("buzz.t...
return invokeSomeLogic(); } private String invokeSomeLogic() { long sleepMs = ThreadLocalRandom.current() .nextInt(0, 100); try { Thread.sleep(sleepMs); } catch (InterruptedException e) { throw new RuntimeException(e); } return "dummy ...
repos\tutorials-master\spring-boot-modules\spring-boot-3-observation\src\main\java\com\baeldung\micrometer\tags\dummy\DummyService.java
1
请完成以下Java代码
public class UserUpdateRequest { private final Email emailToUpdate; private final UserName userNameToUpdate; private final String passwordToUpdate; private final Image imageToUpdate; private final String bioToUpdate; public static UserUpdateRequestBuilder builder() { return new UserUpd...
public UserUpdateRequestBuilder userNameToUpdate(UserName userNameToUpdate) { this.userNameToUpdate = userNameToUpdate; return this; } public UserUpdateRequestBuilder passwordToUpdate(String passwordToUpdate) { this.passwordToUpdate = passwordToUpdate; re...
repos\realworld-springboot-java-master\src\main\java\io\github\raeperd\realworld\domain\user\UserUpdateRequest.java
1
请完成以下Java代码
public String getParentId() { return parentId; } public boolean isOnlyChildExecutions() { return onlyChildExecutions; } public boolean isOnlySubProcessExecutions() { return onlySubProcessExecutions; } public boolean isOnlyProcessInstanceExecutions() { return on...
} public void setStartedBefore(Date startedBefore) { this.startedBefore = startedBefore; } public Date getStartedAfter() { return startedAfter; } public void setStartedAfter(Date startedAfter) { this.startedAfter = startedAfter; } public String getStartedBy() { ...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\ExecutionQueryImpl.java
1
请完成以下Java代码
protected Authentication getCurrentAuthentication() { return getProcessEngine().getIdentityService().getCurrentAuthentication(); } /** * Configure the authorization check for the given {@link QueryParameters}. */ protected void configureAuthorizationCheck(QueryParameters query) { Authentication cur...
tenantCheck.setTenantCheckEnabled(false); tenantCheck.setAuthTenantIds(null); } } /** * Add a new {@link PermissionCheck} with the given values. */ protected void addPermissionCheck(QueryParameters query, Resource resource, String queryParam, Permission permission) { if(!isPermissionDisabled(...
repos\camunda-bpm-platform-master\webapps\assembly\src\main\java\org\camunda\bpm\cockpit\plugin\resource\AbstractCockpitPluginResource.java
1
请完成以下Java代码
public ImmutableModelCacheInvalidateRequestFactoriesList build() { return ImmutableModelCacheInvalidateRequestFactoriesList.builder() .factoriesByTableName(factoriesByTableName) .tableNamesToEnableRemoveCacheInvalidation( TableNamesGroup.builder() .groupId(WindowBasedModelCacheInvalidateR...
try { final ParentChildModelCacheInvalidateRequestFactory factory = info.toGenericModelCacheInvalidateRequestFactoryOrNull(); if (factory != null) { factoriesByTableName.put(childTableName, factory); } } catch (final Exception ex) { logger.warn("Failed to create model cache invalida...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\cache\model\WindowBasedModelCacheInvalidateRequestFactoryGroup.java
1
请在Spring Boot框架中完成以下Java代码
public boolean isEnabled() { return this.enabled; } public void setEnabled(boolean enabled) { this.enabled = enabled; } public Duration getInterval() { return this.interval; } public void setInterval(Duration interval) { this.interval = interval; } public Duration getDelayAft...
/** * SSL bundle name. */ private @Nullable String bundle; public @Nullable String getBundle() { return this.bundle; } public void setBundle(@Nullable String bundle) { this.bundle = bundle; } } } }
repos\spring-boot-4.0.1\module\spring-boot-elasticsearch\src\main\java\org\springframework\boot\elasticsearch\autoconfigure\ElasticsearchProperties.java
2