instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Spring Boot application配置
server: http2: enabled: false port: 8443 ssl: enabled: true key-store: classpath:keystore.p12 key-store-password: ab
cd1234 key-store-type: PKCS12 key-alias: http2-alias
repos\tutorials-master\spring-boot-modules\spring-boot-http2\src\main\resources\application-config-class.yml
2
请在Spring Boot框架中完成以下Java代码
public Builder relayState(String relayState) { this.parameters.put(Saml2ParameterNames.RELAY_STATE, relayState); return this; } /** * This is the unique id used in the {@link #samlRequest} * @param id the Logout Request id * @return the {@link Builder} for further configurations */ public Build...
* * In the event that you already have an encoded version that you want to use, you * can call this by doing {@code parameterEncoder((params) -> encodedValue)}. * @param encoder the strategy to use * @return the {@link Builder} for further configurations * @since 5.8 */ public Builder parametersQuer...
repos\spring-security-main\saml2\saml2-service-provider\src\main\java\org\springframework\security\saml2\provider\service\authentication\logout\Saml2LogoutRequest.java
2
请完成以下Java代码
public final class Sql { @NonNull private final Instant timestamp = SystemTime.asInstant(); @Nullable private final String sqlCommand2; @NonNull private final SqlParams sqlParams; @Nullable private final String comment; private transient String _sqlWithInlinedParams = null; // lazy private static final SqlParam...
public String toSql() { String sqlWithInlinedParams = this._sqlWithInlinedParams; if (sqlWithInlinedParams == null) { sqlWithInlinedParams = this._sqlWithInlinedParams = buildFinalSql(); } return sqlWithInlinedParams; } private String buildFinalSql() { final StringBuilder finalSql = new StringBuilde...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\migration\logger\Sql.java
1
请在Spring Boot框架中完成以下Java代码
public class DefaultDeploymentHandler implements DeploymentHandler { protected ProcessEngine processEngine; protected RepositoryService repositoryService; public DefaultDeploymentHandler(ProcessEngine processEngine) { this.processEngine = processEngine; this.repositoryService = processEngine.getReposito...
.createDeploymentQuery() .deploymentName(candidateDeployment.getName()) .list(); Set<String> deploymentIds = new HashSet<>(); for (Deployment deployment : previousDeployments) { deploymentIds.add(deployment.getId()); } return deploymentIds; } protected boolean resourcesDiffe...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\repository\DefaultDeploymentHandler.java
2
请完成以下Java代码
public LUTUAssignBuilder setDocumentLine(final IHUDocumentLine documentLine) { assertConfigurable(); _documentLine = documentLine; return this; } private IHUDocumentLine getDocumentLine() { return _documentLine; // null is ok } public LUTUAssignBuilder setC_BPartner(final I_C_BPartner bpartner) { ass...
private final int getC_BPartner_Location_ID() { return _bpLocationId; } public LUTUAssignBuilder setM_Locator(final I_M_Locator locator) { assertConfigurable(); _locatorId = LocatorId.ofRecordOrNull(locator); return this; } private LocatorId getLocatorId() { Check.assumeNotNull(_locatorId, "_locatorI...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\allocation\transfer\impl\LUTUAssignBuilder.java
1
请完成以下Java代码
protected Function<List<Val>, Val> transformFunction(CustomFunction function) { return args -> { List<Object> unpackedArgs = unpackVals(args); Function<List<Object>, Object> functionHandler = function.getFunction(); Object result = functionHandler.apply(unpackedArgs); return toVal(result)...
protected Object unpackVal(Val arg) { return valueMapper.unpackVal(arg); } @Override public Optional<JavaFunction> resolveFunction(String functionName) { return Optional.ofNullable(functions.get(functionName)); } @Override public Collection<String> getFunctionNames() { return functions.keySet(...
repos\camunda-bpm-platform-master\engine-dmn\feel-scala\src\main\java\org\camunda\bpm\dmn\feel\impl\scala\function\CustomFunctionTransformer.java
1
请在Spring Boot框架中完成以下Java代码
org.apache.commons.dbcp2.BasicDataSource dataSource(DataSourceProperties properties, JdbcConnectionDetails connectionDetails) { Class<? extends DataSource> dataSourceType = org.apache.commons.dbcp2.BasicDataSource.class; return createDataSource(connectionDetails, dataSourceType, properties.getClassLoader()); ...
throws SQLException { PoolDataSourceImpl dataSource = createDataSource(connectionDetails, PoolDataSourceImpl.class, properties.getClassLoader()); if (StringUtils.hasText(properties.getName())) { dataSource.setConnectionPoolName(properties.getName()); } return dataSource; } } /** * Generic D...
repos\spring-boot-4.0.1\module\spring-boot-jdbc\src\main\java\org\springframework\boot\jdbc\autoconfigure\DataSourceConfiguration.java
2
请完成以下Java代码
public class PrimitiveClass { private boolean primitiveBoolean; private int primitiveInt; public PrimitiveClass(boolean primitiveBoolean, int primitiveInt) { super(); this.primitiveBoolean = primitiveBoolean; this.primitiveInt = primitiveInt; } protected boolean isPrimitiv...
return false; if (getClass() != obj.getClass()) return false; PrimitiveClass other = (PrimitiveClass) obj; if (primitiveBoolean != other.primitiveBoolean) return false; if (primitiveInt != other.primitiveInt) return false; return true; } ...
repos\tutorials-master\core-java-modules\core-java-lang-8\src\main\java\com\baeldung\equalshashcode\entities\PrimitiveClass.java
1
请完成以下Java代码
public String hello(String name) { // 获得服务 `demo-provider` 的一个实例 ServiceInstance instance = loadBalancerClient.choose("demo-provider"); // 发起调用 String targetUrl = instance.getUri() + "/echo?name=" + name; String response = restTemplate.getForObject(targetUrl, ...
// 返回结果 return "consumer:" + response; } // @GetMapping("/hello03") // public String hello03(String name) { // // 直接使用 RestTemplate 调用服务 `demo-provider` // String targetUrl = "http://demo-provider-2/echo?name=" + name; // String response = restTemplate...
repos\SpringBoot-Labs-master\labx-02-spring-cloud-netflix-ribbon\labx-02-scn-ribbon-demo02B-consumer\src\main\java\cn\iocoder\springcloudnetflix\labx02\ribbondemo\consumer\DemoConsumerApplication.java
1
请完成以下Java代码
private LocalDate computeNextTwiceMonthlyInvoiceDate(@NonNull final LocalDate deliveryDate) { final LocalDate dateToInvoice; final LocalDate middleDayOfMonth = deliveryDate.withDayOfMonth(15); // tasks 08484, 08869 if (deliveryDate.isAfter(middleDayOfMonth)) { dateToInvoice = deliveryDate.with(lastDayOfM...
@NonNull final LocalDate deliveryDate, final int offset) { final LocalDate dateToInvoice; final int invoiceDayOfMonthToUse = Integer.min(deliveryDate.lengthOfMonth(), getInvoiceDayOfMonth()); final LocalDate deliveryDateWithDayOfMonth = deliveryDate.withDayOfMonth(invoiceDayOfMonthToUse); if (!deliveryDate...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\invoice\InvoiceSchedule.java
1
请完成以下Java代码
protected List<ActivityInstance> getActivityInstancesForActivity(ActivityInstance tree, Set<String> parentScopeIds) { // prune all search paths that are not in the scope hierarchy of the activity in question if (!parentScopeIds.contains(tree.getActivityId())) { return Collections.emptyList(); } L...
Set<String> parentScopeIds = collectParentScopeIdsForActivity(processDefinition, activityId); List<ActivityInstance> childrenForActivity = getActivityInstancesForActivity(activityInstanceTree, parentScopeIds); for (ActivityInstance instance : childrenForActivity) { commands.add(new ActivityInstanceCancel...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cmd\ActivityCancellationCmd.java
1
请完成以下Java代码
public void setId(Long id) { this.id = id; } public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } public String getLastName() { return lastName; } public void setLastName(String l...
} @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Passenger passenger = (Passenger) o; return Objects.equals(firstName, passenger.firstName) && Objects.equals(lastName, pas...
repos\tutorials-master\persistence-modules\spring-data-jpa-repo-2\src\main\java\com\baeldung\jpa\domain\Passenger.java
1
请完成以下Java代码
default String getSubject() { return this.getClaimAsString(JwtClaimNames.SUB); } /** * Returns the Audience {@code (aud)} claim which identifies the recipient(s) that the * JWT is intended for. * @return the Audience(s) that this JWT intended for */ default List<String> getAudience() { return this.getCl...
* JWT was issued. * @return the Issued at claim which identifies the time at which the JWT was issued */ default Instant getIssuedAt() { return this.getClaimAsInstant(JwtClaimNames.IAT); } /** * Returns the JWT ID {@code (jti)} claim which provides a unique identifier for the * JWT. * @return the JWT ID...
repos\spring-security-main\oauth2\oauth2-jose\src\main\java\org\springframework\security\oauth2\jwt\JwtClaimAccessor.java
1
请完成以下Java代码
public LocalDate getDateAcct() { if (dateAcctSet) { return dateAcct; } else if (defaults != null) { return defaults.getDateAcct(); } else { return null; } } public void setDateAcct(final LocalDate dateAcct) { this.dateAcct = dateAcct; dateAcctSet = true; } @Nullable @Override pu...
return false; } } public PlainInvoicingParams setStoreInvoicesInResult(final boolean storeInvoicesInResult) { this.storeInvoicesInResult = storeInvoicesInResult; return this; } @Override public boolean isAssumeOneInvoice() { if (assumeOneInvoice != null) { return assumeOneInvoice; } else if (d...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\invoicecandidate\api\impl\PlainInvoicingParams.java
1
请完成以下Java代码
public Iterator<TermFrequency> iterator() { return termFrequencyMap.values().iterator(); } @Override public Object[] toArray() { return termFrequencyMap.values().toArray(); } @Override public <T> T[] toArray(T[] a) { return termFrequencyMap.values().toArray(...
termFrequencyMap.clear(); } /** * 提取关键词(非线程安全) * * @param termList * @param size * @return */ @Override public List<String> getKeywords(List<Term> termList, int size) { clear(); add(termList); Collection<TermFrequency> topN = top(size); ...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\mining\word\TermFrequencyCounter.java
1
请在Spring Boot框架中完成以下Java代码
public class C_Queue_WorkPackage { private static final Logger logger = LogManager.getLogger(C_Queue_WorkPackage.class); private final AsyncBatchService asyncBatchService; private final ITrxManager trxManager = Services.get(ITrxManager.class); private final IWorkpackageParamDAO workpackageParamDAO = Services.get(...
public void deleteLogs(@NonNull final I_C_Queue_WorkPackage wp) { final IWorkpackageLogsRepository logsRepository = SpringContextHolder.instance.getBean(IWorkpackageLogsRepository.class); final QueueWorkPackageId workpackageId = QueueWorkPackageId.ofRepoId(wp.getC_Queue_WorkPackage_ID()); logsRepository.deleteL...
repos\metasfresh-new_dawn_uat\backend\de.metas.async\src\main\java\de\metas\async\model\validator\C_Queue_WorkPackage.java
2
请完成以下Java代码
public void init() { if (m_AD_Client_ID > 0) { final I_AD_Client client = clientDAO.getById(m_AD_Client_ID); modelValidationEngine.addModelValidator(this, client); } else { // register for all clients modelValidationEngine.addModelValidator(this); } } // NOTE: keep in sync with initialize me...
private void executeInvokeScriptedExportConversionAction( @NonNull final ExternalSystemScriptedExportConversionConfig config, final int recordId) { final int configTableId = tableDAO.retrieveTableId(I_ExternalSystem_Config_ScriptedExportConversion.Table_Name); try { trxManager.runAfterCommit(() -> { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.externalsystem\src\main\java\de\metas\externalsystem\scriptedexportconversion\interceptor\ExternalSystemScriptedExportConversionInterceptor.java
1
请在Spring Boot框架中完成以下Java代码
public String determineDuplicateDeployment(CandidateDeployment candidateDeployment) { return Context.getCommandContext() .getDeploymentManager() .findLatestDeploymentByName(candidateDeployment.getName()) .getId(); } @Override public Set<String> determineDeploymentsToResumeByProcessDef...
public Set<String> determineDeploymentsToResumeByDeploymentName(CandidateDeployment candidateDeployment) { List<Deployment> previousDeployments = processEngine.getRepositoryService() .createDeploymentQuery() .deploymentName(candidateDeployment.getName()) .list(); Set<String> deployment...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\repository\DefaultDeploymentHandler.java
2
请完成以下Java代码
public static void main(String[] args) throws Exception { // 本地模式 Configuration conf = new Configuration(); // 指定端口 conf.setString(RestOptions.BIND_PORT, "7777"); // 创建执行环境 StreamExecutionEnvironment env = StreamExecutionEnvironment.createLocalEnvironmentWithWebUI(conf);...
} ) // 局部设置算子并行度 .setParallelism(3) .returns(Types.TUPLE(Types.STRING, Types.INT)) .keyBy(value -> value.f0) .sum(1) // 局部设置算子并行度 .setParallelism(4); // 输出 sum.print(); ...
repos\springboot-demo-master\flink\src\main\java\com\et\flink\job\FlinkWebUI.java
1
请完成以下Java代码
public String toString() { return MoreObjects.toStringHelper("composite") .addValue(predicates) .toString(); } @Override public ImmutableSet<String> getParameters(@Nullable final String contextTableName) { return predicates.stream() .flatMap(predicate -> predicate.getParameters(contextT...
public INamePairPredicate build() { if (collectedPredicates == null || collectedPredicates.isEmpty()) { return ACCEPT_ALL; } else if (collectedPredicates.size() == 1) { return collectedPredicates.iterator().next(); } else { return new ComposedNamePairPredicate(collectedPredicates);...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\validationRule\NamePairPredicates.java
1
请完成以下Java代码
public Action getAction() { return action; } public void setAction(Action action) { this.action = action; } public I_AD_MigrationStep getMigrationStep() { return migrationStep; } @Override protected String doIt() throws Exception { if (migrationStep == null || migrationStep.getAD_MigrationStep_ID(...
executor.execute(action); return "Executed: " + action; } protected Action getAction(I_AD_MigrationStep step) { if (X_AD_MigrationStep.STATUSCODE_Applied.equals(migrationStep.getStatusCode())) { return IMigrationExecutor.Action.Rollback; } else { return IMigrationExecutor.Action.Apply; } } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\process\MigrationStepApply.java
1
请在Spring Boot框架中完成以下Java代码
public Signal getSignal() { return signal; } @Override public String getExecutionId() { return executionId; } @Override public String getProcessInstanceId() { return processInstanceId; } @Override public String getProcessDefinitionId() { return proc...
public String getScopeDefinitionKey() { return scopeDefinitionKey; } @Override public String getScopeType() { return scopeType; } @Override public String getTenantId() { return tenantId; } @Override public String getConfiguration() { return configur...
repos\flowable-engine-main\modules\flowable-eventsubscription-service\src\main\java\org\flowable\eventsubscription\service\impl\EventSubscriptionBuilderImpl.java
2
请完成以下Java代码
public ImmutableList<InventoryLineHU> getLineHUs() { return streamLineHUs().collect(ImmutableList.toImmutableList()); } private Stream<InventoryLineHU> streamLineHUs() { return lines.stream().flatMap(line -> line.getInventoryLineHUs().stream()); } public ImmutableSet<HuId> getHuIds() { return InventoryLi...
if (!UserId.equals(responsibleId, calledId)) { throw new AdempiereException("No access"); } } public Stream<InventoryLine> streamLines(@Nullable final InventoryLineId onlyLineId) { return onlyLineId != null ? Stream.of(getLineById(onlyLineId)) : lines.stream(); } public Set<LocatorId> getLocator...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\inventory\Inventory.java
1
请完成以下Java代码
public String getDecisionKey() { return decisionKey; } public String getInstanceId() { return instanceId; } public String getExecutionId() { return executionId; } public String getActivityId() { return activityId; } public String getScopeType() { ...
public String getCaseInstanceIdWithChildren() { return caseInstanceIdWithChildren; } public Boolean getFailed() { return failed; } public String getTenantId() { return tenantId; } public String getTenantIdLike() { return tenantIdLike; } public bool...
repos\flowable-engine-main\modules\flowable-dmn-engine\src\main\java\org\flowable\dmn\engine\impl\HistoricDecisionExecutionQueryImpl.java
1
请完成以下Java代码
public IHUAssignmentBuilder setM_TU_HU(final I_M_HU tuHU) { this.tuHU = tuHU; return this; } @Override public IHUAssignmentBuilder setVHU(final I_M_HU vhu) { this.vhu = vhu; return this; } @Override public IHUAssignmentBuilder setQty(final BigDecimal qty) { this.qty = qty; return this; } @Over...
@Override public IHUAssignmentBuilder setAssignmentRecordToUpdate(@NonNull final I_M_HU_Assignment assignmentRecord) { this.assignment = assignmentRecord; return updateFromRecord(assignmentRecord); } private IHUAssignmentBuilder updateFromRecord(final I_M_HU_Assignment assignmentRecord) { setTopLevelHU(assi...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\impl\HUAssignmentBuilder.java
1
请完成以下Java代码
public final class InvoiceCandidateIdsSelection { private static final InvoiceCandidateIdsSelection EMPTY = new InvoiceCandidateIdsSelection(null, ImmutableSet.of()); public static InvoiceCandidateIdsSelection ofSelectionId(@NonNull final PInstanceId selectionId) { return new InvoiceCandidateIdsSelection(selectio...
} this.selectionId = selectionId; this.ids = ids; } public boolean isEmpty() {return selectionId == null && (ids == null || ids.isEmpty());} public boolean isDatabaseSelection() { return selectionId != null; } public interface CaseMapper { void empty(); void fixedSet(@NonNull ImmutableSet<InvoiceC...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\invoicecandidate\api\InvoiceCandidateIdsSelection.java
1
请完成以下Java代码
public SpinDataFormatException unrecognizableDataFormatException() { return new SpinDataFormatException(exceptionMessage("004", "No matching data format detected")); } public SpinScriptException noScriptEnvFoundForLanguage(String scriptLanguage, String path) { return new SpinScriptException(exceptionMessag...
} public void logDataFormatProvider(DataFormatProvider provider) { if (isInfoEnabled()) { logInfo("010", "Discovered Spin data format provider: {}[name = {}]", provider.getClass().getName(), provider.getDataFormatName()); } } @SuppressWarnings("rawtypes") public void logDataFormatConfi...
repos\camunda-bpm-platform-master\spin\core\src\main\java\org\camunda\spin\impl\logging\SpinCoreLogger.java
1
请完成以下Java代码
public void setK_Source_ID (int K_Source_ID) { if (K_Source_ID < 1) set_Value (COLUMNNAME_K_Source_ID, null); else set_Value (COLUMNNAME_K_Source_ID, Integer.valueOf(K_Source_ID)); } /** Get Knowledge Source. @return Source of a Knowledge Entry */ public int getK_Source_ID () { Integer ii = (I...
/** Get Rating. @return Classification or Importance */ public int getRating () { Integer ii = (Integer)get_Value(COLUMNNAME_Rating); if (ii == null) return 0; return ii.intValue(); } /** Set Text Message. @param TextMsg Text Message */ public void setTextMsg (String TextMsg) { set_Valu...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_K_Entry.java
1
请在Spring Boot框架中完成以下Java代码
public void doProgramAuth(@PathVariable(value = "payKey") String payKey, @PathVariable(value = "orderNo") String orderNo, HttpServletResponse response) { logger.info("鉴权,payKey:[{}],订单号:[{}]", payKey, orderNo); String payResultJson; try { RpUserPayConfig rpUserPayConfig = userPayCon...
resultJson.put("status", "NO"); } else { resultJson.put("status", "YES"); resultJson.put("returnUrl", AuthConfigUtil.AUTH_ORDER_QUERY_URL + userBankAuth.getMerchantNo() + "/" + userBankAuth.getPayOrderNo()); } return resultJson.toJSONString(); } /** * 获取错误返...
repos\roncoo-pay-master\roncoo-pay-web-gateway\src\main\java\com\roncoo\pay\controller\auth\AuthController.java
2
请完成以下Java代码
public void setPP_Weighting_Spec_ID (final int PP_Weighting_Spec_ID) { if (PP_Weighting_Spec_ID < 1) set_ValueNoCheck (COLUMNNAME_PP_Weighting_Spec_ID, null); else set_ValueNoCheck (COLUMNNAME_PP_Weighting_Spec_ID, PP_Weighting_Spec_ID); } @Override public int getPP_Weighting_Spec_ID() { return get...
@Override public BigDecimal getTolerance_Perc() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_Tolerance_Perc); return bd != null ? bd : BigDecimal.ZERO; } @Override public void setWeightChecksRequired (final int WeightChecksRequired) { set_Value (COLUMNNAME_WeightChecksRequired, WeightChecksReq...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\eevolution\model\X_PP_Weighting_Spec.java
1
请完成以下Java代码
public ActiveOrHistoricCurrencyAndAmount getAmt() { return amt; } /** * Sets the value of the amt property. * * @param value * allowed object is * {@link ActiveOrHistoricCurrencyAndAmount } * */ public void setAmt(ActiveOrHistoricCurrencyAndAmount va...
* * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getInf() { if (inf == null) { inf = new ArrayList<String>(); } return this.inf; } }
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\StructuredRegulatoryReporting3.java
1
请完成以下Java代码
private static void loggContextSwitchDetails(ExecutionEntity execution) { final CoreExecutionContext<? extends CoreExecution> executionContext = Context.getCoreExecutionContext(); // only log for first atomic op: if(executionContext == null ||( executionContext.getExecution() != execution) ) { Proces...
} } public static void doContextSwitch(final Runnable runnable, ProcessDefinitionEntity contextDefinition) { ProcessApplicationReference processApplication = getTargetProcessApplication(contextDefinition); if (requiresContextSwitch(processApplication)) { Context.executeWithinProcessApplication(new Ca...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\context\ProcessApplicationContextUtil.java
1
请完成以下Java代码
protected POInfo initPO (Properties ctx) { POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName()); return poi; } public String toString() { StringBuffer sb = new StringBuffer ("X_HR_Department[") .append(get_ID()).append("]"); return sb.toString(); } public I...
set_ValueNoCheck (COLUMNNAME_HR_Department_ID, Integer.valueOf(HR_Department_ID)); } /** Get Payroll Department. @return Payroll Department */ public int getHR_Department_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_HR_Department_ID); if (ii == null) return 0; return ii.intValue(); } /** Se...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\eevolution\model\X_HR_Department.java
1
请完成以下Java代码
public void deleteVariable(String variableName) { try { removeVariableEntity(variableName); } catch (AuthorizationException e) { throw e; } catch (ProcessEngineException e) { String errorMessage = String.format("Cannot delete %s variable %s: %s", getResourceTypeName(), variableName, e.getM...
String errorMessage = String.format("Cannot modify variables for %s %s: %s", getResourceTypeName(), resourceId, e.getMessage()); throw new RestException(Status.INTERNAL_SERVER_ERROR, e, errorMessage); } } protected abstract VariableMap getVariableEntities(boolean deserializeValues); protected abstra...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\sub\impl\AbstractVariablesResource.java
1
请完成以下Java代码
public Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException { synchronized (JreCompat.isGraalAvailable() ? this : getClassLoadingLock(name)) { Class<?> result = findExistingLoadedClass(name); result = (result != null) ? result : doLoadClass(name); if (result == null) { throw new...
} @Override protected void addURL(URL url) { // Ignore URLs added by the Tomcat 8 implementation (see gh-919) if (logger.isTraceEnabled()) { logger.trace("Ignoring request to add " + url + " to the tomcat classloader"); } } private @Nullable Class<?> loadFromParent(String name) { if (this.parent == nul...
repos\spring-boot-4.0.1\module\spring-boot-tomcat\src\main\java\org\springframework\boot\tomcat\TomcatEmbeddedWebappClassLoader.java
1
请在Spring Boot框架中完成以下Java代码
protected Publisher<Void> handle(Flux<InstanceEvent> publisher) { return publisher .filter((event) -> event instanceof InstanceRegisteredEvent || event instanceof InstanceRegistrationUpdatedEvent) .flatMap((event) -> updateStatus(event.getInstance())); } protected Mono<Void> updateStatus(InstanceId inst...
@Override public void stop() { super.stop(); this.intervalCheck.stop(); } public void setInterval(Duration updateInterval) { this.intervalCheck.setInterval(updateInterval); } public void setLifetime(Duration statusLifetime) { this.intervalCheck.setMinRetention(statusLifetime); } }
repos\spring-boot-admin-master\spring-boot-admin-server\src\main\java\de\codecentric\boot\admin\server\services\StatusUpdateTrigger.java
2
请完成以下Java代码
private ProjectManifest read(InputStream inputStream) throws IOException { return objectMapper.readValue(inputStream, ProjectManifest.class); } public boolean isRollbackDeployment() { return isRollbackDeployment; } public ProjectManifest loadProjectManifest() throws IOException { ...
); } public boolean hasProjectManifest() { return retrieveResource().isPresent(); } public boolean hasEnforcedAppVersion() { return this.enforcedAppVersion > 0; } public Integer getEnforcedAppVersion() { return this.enforcedAppVersion; } }
repos\Activiti-develop\activiti-core-common\activiti-spring-project\src\main\java\org\activiti\core\common\spring\project\ApplicationUpgradeContextService.java
1
请完成以下Java代码
public int hashCode() { if (_hashcode == null) { _hashcode = Objects.hash(isParameter1, operand1, operator, isParameter2, operand2); } return _hashcode; } @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (get...
{ final Set<CtxName> result = new LinkedHashSet<>(); if (operand1 instanceof CtxName) { result.add((CtxName)operand1); } if (operand2 instanceof CtxName) { result.add((CtxName)operand2); } _parameters = ImmutableSet.copyOf(result); } } return _parameters; } /** * @r...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\expression\api\impl\LogicTuple.java
1
请在Spring Boot框架中完成以下Java代码
public Page<UserDTO> getAllManagedUsers(Pageable pageable) { return userRepository.findAllByLoginNot(pageable, Constants.ANONYMOUS_USER).map(UserDTO::new); } @Transactional(readOnly = true) public Optional<User> getUserWithAuthoritiesByLogin(String login) { return userRepository.findOneWith...
* <p> * This is scheduled to get fired everyday, at 01:00 (am). */ @Scheduled(cron = "0 0 1 * * ?") public void removeNotActivatedUsers() { userRepository .findAllByActivatedIsFalseAndCreatedDateBefore(Instant.now().minus(3, ChronoUnit.DAYS)) .forEach(user -> { ...
repos\tutorials-master\jhipster-6\bookstore-monolith\src\main\java\com\baeldung\jhipster6\service\UserService.java
2
请完成以下Java代码
public void searchArrayLoop() { for (int i = 0; i < SearchData.count; i++) { searchLoop(SearchData.strings, "T"); } } @Benchmark public void searchArrayAllocNewList() { for (int i = 0; i < SearchData.count; i++) { searchList(SearchData.strings, "T"); ...
} } private boolean searchList(String[] strings, String searchString) { return Arrays.asList(strings).contains(searchString); } private boolean searchSet(String[] strings, String searchString) { Set<String> set = new HashSet<>(Arrays.asList(strings)); return set.contains(searchStri...
repos\tutorials-master\core-java-modules\core-java-arrays-operations-basic-3\src\main\java\com\baeldung\array\SearchArrayBenchmark.java
1
请完成以下Java代码
public void setName (String Name) { set_Value (COLUMNNAME_Name, Name); } /** Get Name. @return Alphanumeric identifier of the entity */ public String getName () { return (String)get_Value(COLUMNNAME_Name); } /** Get Record ID/ColumnName @return ID/ColumnName pair */ public KeyNam...
/** Set Sql WHERE. @param WhereClause Fully qualified SQL WHERE clause */ public void setWhereClause (String WhereClause) { set_Value (COLUMNNAME_WhereClause, WhereClause); } /** Get Sql WHERE. @return Fully qualified SQL WHERE clause */ public String getWhereClause () { return (String)get_Valu...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_CM_TemplateTable.java
1
请在Spring Boot框架中完成以下Java代码
public void publishConfigDeleted(final int MSV3_Customer_Config_ID) { final MSV3MetasfreshUserId userId = MSV3MetasfreshUserId.of(MSV3_Customer_Config_ID); final MSV3UserChangedEvent deletedEvent = MSV3UserChangedEvent.deletedEvent(userId); msv3ServerPeerService.publishUserChangedEvent(deletedEvent); } public...
private static MSV3UserChangedEvent toMSV3UserChangedEvent(final I_MSV3_Customer_Config configRecord) { final MSV3MetasfreshUserId externalId = MSV3MetasfreshUserId.of(configRecord.getMSV3_Customer_Config_ID()); if (configRecord.isActive()) { return MSV3UserChangedEvent.prepareCreatedOrUpdatedEvent(externalI...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma.msv3.server-peer-metasfresh\src\main\java\de\metas\vertical\pharma\msv3\server\peer\metasfresh\services\MSV3CustomerConfigService.java
2
请完成以下Java代码
public class AccessFilter extends ZuulFilter { private static Logger log = LoggerFactory.getLogger(AccessFilter.class); @Override public String filterType() { return "pre"; } @Override public int filterOrder() { return 0; } @Override public boolean shouldFilter()...
@Override public Object run() { RequestContext ctx = RequestContext.getCurrentContext(); HttpServletRequest request = ctx.getRequest(); log.info(String.format("%s request to %s", request.getMethod(), request.getRequestURL().toString())); Object accessToken = request.getParameter("a...
repos\SpringBoot-Learning-master\1.x\Chapter9-1-5\api-gateway\src\main\java\com\didispace\filter\AccessFilter.java
1
请完成以下Java代码
public String getDepartName() { return departName; } public void setDepartName(String departName) { this.departName = departName; } public String getDepartNameEn() { return departNameEn; } public void setDepartNameEn(String departNameEn) { this.departNameEn = d...
public void setOrgCode(String orgCode) { this.orgCode = orgCode; } public String getMobile() { return mobile; } public void setMobile(String mobile) { this.mobile = mobile; } public String getFax() { return fax; } public void setFax(String fax) { ...
repos\JeecgBoot-main\jeecg-boot\jeecg-boot-base-core\src\main\java\org\jeecg\common\system\vo\SysDepartModel.java
1
请完成以下Java代码
public final class NativeImageArgFile { /** * Location of the argfile. */ public static final String LOCATION = "META-INF/native-image/argfile"; private final List<String> excludes; /** * Constructs a new instance with the given excludes. * @param excludes dependencies for which the reachability metadata...
public void writeIfNecessary(ThrowingConsumer<List<String>> writer) { if (this.excludes.isEmpty()) { return; } List<String> lines = new ArrayList<>(); for (String exclude : this.excludes) { int lastSlash = exclude.lastIndexOf('/'); String jar = (lastSlash != -1) ? exclude.substring(lastSlash + 1) : exc...
repos\spring-boot-4.0.1\loader\spring-boot-loader-tools\src\main\java\org\springframework\boot\loader\tools\NativeImageArgFile.java
1
请在Spring Boot框架中完成以下Java代码
public List<User> getUserList() { List<User> users = new ArrayList<User>(usersMap.values()); return users; } @Operation(summary = "新增用户", description = "根据User对象新增用户") @PostMapping("/users") public String postUser(@RequestBody User user) { usersMap.put(user.getId(), user); ...
@PutMapping("/users/{id}") public String putUser(@PathVariable Integer id, @RequestBody User user) { User tempUser = usersMap.get(id); tempUser.setName(user.getName()); tempUser.setPassword(user.getPassword()); usersMap.put(id, tempUser); return "更新成功"; } @Operation(...
repos\spring-boot-projects-main\玩转SpringBoot系列案例源码\spring-boot-swagger\src\main\java\cn\lanqiao\springboot3\controller\UserModuleController.java
2
请在Spring Boot框架中完成以下Java代码
public class PPRoutingActivityTemplateId implements RepoIdAware { @JsonCreator public static PPRoutingActivityTemplateId ofRepoId(final int repoId) { return new PPRoutingActivityTemplateId(repoId); } @Nullable public static PPRoutingActivityTemplateId ofRepoIdOrNull(final int repoId) { return repoId > 0 ? o...
} int repoId; private PPRoutingActivityTemplateId(final int repoId) { this.repoId = Check.assumeGreaterThanZero(repoId, "AD_WF_Node_Template_ID"); } @JsonValue public int toJson() { return getRepoId(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.material\planning\src\main\java\de\metas\material\planning\pporder\PPRoutingActivityTemplateId.java
2
请完成以下Java代码
public boolean isMandatoryOnPicking(@NonNull final ProductId productId, @NonNull final AttributeId attributeId) { final AttributeSetId attributeSetId = productsService.getAttributeSetId(productId); final Boolean mandatoryOnPicking = attributesRepo.getAttributeSetDescriptorById(attributeSetId) .getMandatoryOnPi...
// no BPartner-Product association defined, so we cannot fetch the bestBeforeDays return null; } final int bestBeforeDays = bpartnerProduct.getShelfLifeMinDays(); // TODO: i think we shall introduce BestBeforeDays if (bestBeforeDays <= 0) { // BestBeforeDays was not configured return null; } // ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\org\adempiere\mm\attributes\api\impl\AttributesBL.java
1
请完成以下Java代码
private void setM_HU_PI_Item_Product(final I_M_HU sourceHU, final ProductId productId, final List<I_M_HU> husToConfigure) { final I_M_HU_PI_Item_Product piip = getM_HU_PI_Item_ProductToUse(sourceHU, productId); if (piip == null) { return; } for (final I_M_HU hu : husToConfigure) { if (handlingUnitsB...
} private void destroyIfEmptyStorage(@NonNull final IHUContext localHuContextCopy) { if (Adempiere.isUnitTestMode()) { handlingUnitsBL.destroyIfEmptyStorage(localHuContextCopy, huToSplit); // in unit test mode, there won't be a commit return; } // Destroy empty HUs from huToSplit trxManager.getCurre...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\allocation\transfer\impl\HUSplitBuilderCoreEngine.java
1
请完成以下Java代码
public void exportStatusMassUpdate( @NonNull final Set<ReceiptScheduleId> receiptScheduleIds, @NonNull final APIExportStatus exportStatus) { if (receiptScheduleIds.isEmpty()) { return; } final ICompositeQueryUpdater<I_M_ReceiptSchedule> updater = queryBL.createCompositeQueryUpdater(I_M_ReceiptSchedule...
public ImmutableMap<ReceiptScheduleId, ReceiptSchedule> getByIds(@NonNull final ImmutableSet<ReceiptScheduleId> receiptScheduleIds) { final List<I_M_ReceiptSchedule> records = loadByRepoIdAwares(receiptScheduleIds, I_M_ReceiptSchedule.class); final ImmutableMap.Builder<ReceiptScheduleId, ReceiptSchedule> result = ...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\inoutcandidate\ReceiptScheduleRepository.java
1
请完成以下Spring Boot application配置
server.port=8500 spring.application.name=sentinel-demo # 日志配置 logging.level.root=info #application.properties\u4E2D\u7684\u914D\u7F6E\u9879\u4F18\u5148\u7EA7\u9AD8\u4E8Elogback.xml\u6587\u4EF6\u4E2D\u7684\u914D\u7F6E\u9879 logging.file=e:/ssb
-student-log.log logging.level.com.xiaolyuh=debug logging.level.org.springframework.web=info debug=false
repos\spring-boot-student-master\spring-boot-student-sentinel\src\main\resources\application.properties
2
请完成以下Java代码
final class CompositeRfQResponseProducerFactory implements IRfQResponseProducerFactory { private static final Logger logger = LogManager.getLogger(CompositeRfQResponseProducerFactory.class); private final CopyOnWriteArrayList<IRfQResponseProducerFactory> factories = new CopyOnWriteArrayList<>(); @Override public ...
// No producer was created return null; } public void addRfQResponsesProducerFactory(final IRfQResponseProducerFactory factory) { Check.assumeNotNull(factory, "factory not null"); final boolean added = factories.addIfAbsent(factory); if (!added) { logger.warn("Factory {} was already registered: {}", fa...
repos\metasfresh-new_dawn_uat\backend\de.metas.rfq\src\main\java\de\metas\rfq\impl\CompositeRfQResponseProducerFactory.java
1
请完成以下Java代码
public long iterateUsingIteratorAndValues() { return mapIteration.iterateUsingIteratorAndValues(map); } @Benchmark public long iterateUsingEnhancedForLoopAndEntrySet() { return mapIteration.iterateUsingEnhancedForLoopAndEntrySet(map); } @Benchmark public long iterateByKeysUsing...
public long iterateUsingStreamAPIAndEntrySet() { return mapIteration.iterateUsingStreamAPIAndEntrySet(map); } @Benchmark public long iterateUsingStreamAPIAndKeySet() { return mapIteration.iterateUsingStreamAPIAndKeySet(map); } @Benchmark public long iterateKeysUsingKeySetAndEnh...
repos\tutorials-master\core-java-modules\core-java-collections-maps\src\main\java\com\baeldung\map\iteration\MapIterationBenchmark.java
1
请完成以下Java代码
public void setM_HazardSymbol(final org.compiere.model.I_M_HazardSymbol M_HazardSymbol) { set_ValueFromPO(COLUMNNAME_M_HazardSymbol_ID, org.compiere.model.I_M_HazardSymbol.class, M_HazardSymbol); } @Override public void setM_HazardSymbol_ID (final int M_HazardSymbol_ID) { if (M_HazardSymbol_ID < 1) set_Va...
@Override public void setM_Product_ID (final int M_Product_ID) { if (M_Product_ID < 1) set_Value (COLUMNNAME_M_Product_ID, null); else set_Value (COLUMNNAME_M_Product_ID, M_Product_ID); } @Override public int getM_Product_ID() { return get_ValueAsInt(COLUMNNAME_M_Product_ID); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_Product_HazardSymbol.java
1
请完成以下Java代码
public mxGraph getGraph() { return graph; } public void setGraph(mxGraph graph) { this.graph = graph; } public int getEventSize() { return eventSize; } public void setEventSize(int eventSize) { this.eventSize = eventSize; } public int getGatewaySize() ...
return subProcessMargin; } public void setSubProcessMargin(int subProcessMargin) { this.subProcessMargin = subProcessMargin; } // Due to a bug (see // http://forum.jgraph.com/questions/5952/mxhierarchicallayout-not-correct-when-using-child-vertex) // We must extend the default hierarch...
repos\Activiti-develop\activiti-core\activiti-bpmn-layout\src\main\java\org\activiti\bpmn\BpmnAutoLayout.java
1
请在Spring Boot框架中完成以下Java代码
public PriceListBasicInfo getTargetPriceListInfo(@NonNull final JsonExternalSystemRequest request) { final String targetPriceListIdStr = request.getParameters().get(ExternalSystemConstants.PARAM_TARGET_PRICE_LIST_ID); if (Check.isBlank(targetPriceListIdStr)) { return null; } final JsonMetasfreshId price...
throw new RuntimeCamelException("isTaxIncluded is missing although priceListId is specified, targetPriceListId: " + priceListId); } targetPriceListInfoBuilder.isTaxIncluded(Boolean.parseBoolean(isTaxIncluded)); final String targetCurrencyCode = request.getParameters().get(ExternalSystemConstants.PARAM_PRICE_LIST...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\de-metas-camel-shopware6\src\main\java\de\metas\camel\externalsystems\shopware6\product\GetProductsRouteHelper.java
2
请完成以下Spring Boot application配置
server.port=8080 logging.level.root=info spring.datasource.url=jdbc:mysql://localhost:3306/test spring.datasource.username=root spring.datasource.password= spring.datasource.driver-class-name=com.mysql.jdbc.Driver spring.datasource.druid.initial-size=1 spring.datasource.druid.min-idle=1 spring.
datasource.druid.max-active=20 spring.datasource.druid.test-on-borrow=true spring.datasource.druid.stat-view-servlet.allow=true
repos\MyBatis-Spring-Boot-master\src\main\resources\application-production.properties
2
请完成以下Java代码
public PaymentTermId getPaymentTermId(@NonNull final SOTrx soTrx) { return soTrx.isSales() ? paymentTermId : poPaymentTermId; } @Nullable public PricingSystemId getPricingSystemId(@NonNull final SOTrx soTrx) { return soTrx.isSales() ? pricingSystemId : poPricingSystemId; } @NonNull public PaymentRule getP...
{ return soTrx.isSales() ? invoiceRule : poInvoiceRule; } public boolean isAutoInvoice(@NonNull final SOTrx soTrx) { return soTrx.isSales() && isAutoInvoice; } @Nullable public Incoterms getIncoterms(@NonNull final SOTrx soTrx) { return soTrx.isSales() ? incoterms : poIncoterms; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\bpartner\effective\BPartnerEffective.java
1
请在Spring Boot框架中完成以下Java代码
public void customize(GsonBuilder builder) { GsonProperties properties = this.properties; PropertyMapper map = PropertyMapper.get(); map.from(properties::getGenerateNonExecutableJson).whenTrue().toCall(builder::generateNonExecutableJson); map.from(properties::getExcludeFieldsWithoutExposeAnnotation) .wh...
@SuppressWarnings("deprecation") private Consumer<GsonProperties.Strictness> strictnessOrLeniency(GsonBuilder builder) { if (ClassUtils.isPresent("com.google.gson.Strictness", getClass().getClassLoader())) { return (strictness) -> builder.setStrictness(Strictness.valueOf(strictness.name())); } return (st...
repos\spring-boot-4.0.1\module\spring-boot-gson\src\main\java\org\springframework\boot\gson\autoconfigure\GsonAutoConfiguration.java
2
请完成以下Java代码
public void setLoginUsername (final @Nullable String LoginUsername) { set_Value (COLUMNNAME_LoginUsername, LoginUsername); } @Override public String getLoginUsername() { return get_ValueAsString(COLUMNNAME_LoginUsername); } @Override public void setOutboundHttpEP (final String OutboundHttpEP) { set_Va...
{ set_Value (COLUMNNAME_SasSignature, SasSignature); } @Override public String getSasSignature() { return get_ValueAsString(COLUMNNAME_SasSignature); } /** * Type AD_Reference_ID=542016 * Reference name: ExternalSystem_Outbound_Endpoint_EndpointType */ public static final int TYPE_AD_Reference_ID=5...
repos\metasfresh-new_dawn_uat\backend\de.metas.externalsystem\src\main\java-gen\de\metas\externalsystem\model\X_ExternalSystem_Outbound_Endpoint.java
1
请完成以下Java代码
private static SessionFactory makeSessionFactory(ServiceRegistry serviceRegistry) { MetadataSources metadataSources = new MetadataSources(serviceRegistry); metadataSources.addPackage("com.baeldung.hibernate.pojo"); metadataSources.addAnnotatedClass(Employee.class); metadataSources.addAn...
return new StandardServiceRegistryBuilder().applySettings(properties) .build(); } private static Properties getProperties() throws IOException { Properties properties = new Properties(); URL propertiesURL = Thread.currentThread() .getContextClassLoader() .get...
repos\tutorials-master\persistence-modules\hibernate-mapping-2\src\main\java\com\baeldung\hibernate\HibernateUtil.java
1
请完成以下Java代码
public boolean canUpdate(final I_AD_BoilerPlate textTemplate) { if (textTemplate == null) { return false; } final Properties ctx = InterfaceWrapperHelper.getCtx(textTemplate); final ClientId adClientId = ClientId.ofRepoId(textTemplate.getAD_Client_ID()); final OrgId adOrgId = OrgId.ofRepoId(textTemplat...
setAD_BoilerPlate(letter, textTemplate); final BoilerPlateContext attributes = producer.createAttributes(item); setLetterBodyParsed(letter, attributes); // 04238 : We need to flag the letter for enqueue. letter.setIsMembershipBadgeToPrint(true); // mo73_05916 : Add record and table ID letter.setAD_...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\letters\api\impl\TextTemplateBL.java
1
请完成以下Java代码
public class RabbitMqConsumer { @RabbitListener(queues = {"${rabbit.mq.queue0}"}, containerFactory = "jmsQueue4TalentIdContainer0") public void firstMq0(String msg) { log.info("dev0 receive msg: {}", msg); } @RabbitListener(queues = {"${rabbit.mq.queue1}"}, containerFactory = "jmsQueue4TalentI...
@RabbitListener(queues = {"${rabbit.mq.queue4}"}, containerFactory = "jmsQueue4TalentIdContainer4") public void firstMq4(String msg) { log.info("dev4 receive msg: {}", msg); } @RabbitListener(queues = {"${rabbit.mq.queue5}"}, containerFactory = "jmsQueue4TalentIdContainer5") public void firstMq...
repos\spring-boot-quick-master\quick-multi-rabbitmq\src\main\java\com\multi\rabbitmq\mq\RabbitMqConsumer.java
1
请完成以下Java代码
private boolean containsOnlyValidCertificates(CertificateChainInfo certificateChain) { return validatableCertificates(certificateChain).allMatch(this::isValidCertificate); } private boolean containsInvalidCertificate(CertificateChainInfo certificateChain) { return validatableCertificates(certificateChain).anyMat...
CertificateValidityInfo validity = certificate.getValidity(); Assert.state(validity != null, "'validity' must not be null"); return validity.getStatus().isValid(); } private boolean isNotValidCertificate(CertificateInfo certificate) { return !isValidCertificate(certificate); } private boolean isExpiringCert...
repos\spring-boot-4.0.1\module\spring-boot-health\src\main\java\org\springframework\boot\health\application\SslHealthIndicator.java
1
请完成以下Java代码
public void run() { Window[] w = windowManager.getWindows(); Container dialogContent = dialog.getContentPane(); dialogContent.setLayout(new BorderLayout()); final CardLayout card = new CardLayout(); final JXPanel cardContainer = new JXPanel(card); dialogContent.add(cardContainer, BorderLay...
@Override public void actionPerformed(ActionEvent e) { card.previous(cardContainer); } }); next.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { card.next(cardContainer); } }); ctrl.add(previous); ctrl.add(...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\apps\WindowMenu.java
1
请完成以下Java代码
public List<I_PP_Order_Qty> retrieveOrderQtys(final PPOrderId ppOrderId) { return retrieveOrderQtys(Env.getCtx(), ppOrderId, ITrx.TRXNAME_ThreadInherited); } @SuppressWarnings("SameParameterValue") @Cached(cacheName = I_PP_Order_Qty.Table_Name + "#by#PP_Order_ID", expireMinutes = 10) ImmutableList<I_PP_Order_Qt...
.filter(cand -> cand.getPP_Order_BOMLine_ID() <= 0) .collect(ImmutableList.toImmutableList()); } @Override public Optional<I_PP_Order_Qty> retrieveOrderQtyForHu( @NonNull final PPOrderId ppOrderId, @NonNull final HuId huId) { return retrieveOrderQtys(ppOrderId) .stream() .filter(cand -> cand.ge...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\pporder\api\impl\HUPPOrderQtyDAO.java
1
请完成以下Java代码
public void setUp() { for (long i = 0; i < iterations; i++) { employeeMap.put(i, new Employee(i, "John")); } //employeeMap.put(iterations, employee); } } @Benchmark public Employee testGet(MyState state) { return state.employeeMap.get(sta...
@Benchmark public Boolean testContainsKey(MyState state) { return state.employeeMap.containsKey(state.employee.getId()); } public static void main(String[] args) throws Exception { Options options = new OptionsBuilder() .include(HashMapBenchmark.class.getSimpleName()).threa...
repos\tutorials-master\core-java-modules\core-java-collections-7\src\main\java\com\baeldung\performance\HashMapBenchmark.java
1
请完成以下Java代码
public class Main implements ModelValidator { private int adClientId = -1; @Override public void initialize(final ModelValidationEngine engine, final MClient client) { adClientId = client == null ? -1 : client.getAD_Client_ID(); // task 08926 // invoice candidate listener final IInvoiceCandidateListeners ...
{ return adClientId; } @Override public String login(final int AD_Org_ID, final int AD_Role_ID, final int AD_User_ID) { return null; } @Override public String modelChange(final PO po, final int type) { return null; } @Override public String docValidate(final PO po, final int timing) { return null...
repos\metasfresh-new_dawn_uat\backend\de.metas.edi\src\main\java\de\metas\edi\model\validator\Main.java
1
请完成以下Java代码
public class OrderConsumer { @Autowired OrderRepository orderRepository; @Autowired OrderProducer orderProducer; @KafkaListener(topics = "orders", groupId = "orders") public void consume(Order order) throws IOException { log.info("Order received to process: {}", order); if (Or...
return o.setOrderStatus(order.getOrderStatus()) .setResponseMessage(order.getResponseMessage()); }) .flatMap(orderRepository::save) .subscribe(); } else if (OrderStatus.SHIPPING_FAILURE.equals(order.getOrderStatus())) { orderRep...
repos\tutorials-master\reactive-systems\order-service\src\main\java\com\baeldung\async\consumer\OrderConsumer.java
1
请完成以下Java代码
public List<DecisionDefinitionDto> getDecisionDefinitions(UriInfo uriInfo, Integer firstResult, Integer maxResults) { DecisionDefinitionQueryDto queryDto = new DecisionDefinitionQueryDto(getObjectMapper(), uriInfo.getQueryParameters()); List<DecisionDefinitionDto> definitions = new ArrayList<DecisionDefinitionD...
@Override public CountResultDto getDecisionDefinitionsCount(UriInfo uriInfo) { DecisionDefinitionQueryDto queryDto = new DecisionDefinitionQueryDto(getObjectMapper(), uriInfo.getQueryParameters()); ProcessEngine engine = getProcessEngine(); DecisionDefinitionQuery query = queryDto.toQuery(engine); l...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\impl\DecisionDefinitionRestServiceImpl.java
1
请完成以下Java代码
void skippingFirstElementInSetWithWhileLoop(Set<String> stringSet) { final Iterator<String> iterator = stringSet.iterator(); if (iterator.hasNext()) { iterator.next(); } while (iterator.hasNext()) { process(iterator.next()); } } void skippingFirst...
if (i == 0) { // do something else } else { process(stringList.get(i)); } } } void skippingFirstElementInListWithWhileLoopWithCounter(List<String> stringList) { int counter = 0; while (counter < stringList.size()) { if ...
repos\tutorials-master\core-java-modules\core-java-collections-5\src\main\java\com\baeldung\skippingfirstelement\SkipFirstElementExample.java
1
请完成以下Java代码
public void afterPropertiesSet() { final ISysConfigBL sysConfigBL = Services.get(ISysConfigBL.class); final int clearViewSelectionsRateInSeconds = sysConfigBL.getIntValue(SYSCONFIG_ClearViewSelectionsRateInSeconds, 1800); if (clearViewSelectionsRateInSeconds > 0) { final ScheduledExecutorService scheduledEx...
{ logger.info("Clearing view selections disabled (see {} sysconfig)", SYSCONFIG_ClearViewSelectionsRateInSeconds); } } private ScheduledExecutorService viewMaintenanceScheduledExecutorService() { return Executors.newScheduledThreadPool( 1, // corePoolSize CustomizableThreadFactory.builder() .se...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\view\ViewConfiguration.java
1
请在Spring Boot框架中完成以下Java代码
public @Nullable Resource getCertificateLocation() { return this.certificate; } public void setCertificateLocation(@Nullable Resource certificate) { this.certificate = certificate; } } } } /** * Single logout details. */ public static class Singlelogout { /** * Location wher...
} public @Nullable String getResponseUrl() { return this.responseUrl; } public void setResponseUrl(@Nullable String responseUrl) { this.responseUrl = responseUrl; } public @Nullable Saml2MessageBinding getBinding() { return this.binding; } public void setBinding(@Nullable Saml2MessageBinding ...
repos\spring-boot-4.0.1\module\spring-boot-security-saml2\src\main\java\org\springframework\boot\security\saml2\autoconfigure\Saml2RelyingPartyProperties.java
2
请完成以下Java代码
public boolean isCompleteAsync() { return completeAsync; } public void setCompleteAsync(boolean completeAsync) { this.completeAsync = completeAsync; } public Boolean getFallbackToDefaultTenant() { return fallbackToDefaultTenant; } public void setFallbackToDefaultTenant...
public void setValues(CallActivity otherElement) { super.setValues(otherElement); setCalledElement(otherElement.getCalledElement()); setCalledElementType(otherElement.getCalledElementType()); setBusinessKey(otherElement.getBusinessKey()); setInheritBusinessKey(otherElement.isInhe...
repos\flowable-engine-main\modules\flowable-bpmn-model\src\main\java\org\flowable\bpmn\model\CallActivity.java
1
请完成以下Java代码
public int getPricePrecision () { Integer ii = (Integer)get_Value(COLUMNNAME_PricePrecision); if (ii == null) return 0; return ii.intValue(); } /** Set Standard Price. @param PriceStd Standard Price */ public void setPriceStd (BigDecimal PriceStd) { set_Value (COLUMNNAME_PriceStd, PriceStd); ...
/** Set Product Key. @param ProductValue Key of the Product */ public void setProductValue (String ProductValue) { set_Value (COLUMNNAME_ProductValue, ProductValue); } /** Get Product Key. @return Key of the Product */ public String getProductValue () { return (String)get_Value(COLUMNNAME_Produ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_I_PriceList.java
1
请完成以下Java代码
public String getAuthority() { return name; } public Authority() { } public Authority(String name) { this.name = name; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClas...
return name.equals(authority1.name); } @Override public int hashCode() { return name.hashCode(); } @Override public String toString() { return "Authority{" + "authority='" + name + '\'' + '}'; } }
repos\spring-boot-web-application-sample-master\main-app\main-orm\src\main\java\gt\app\domain\Authority.java
1
请在Spring Boot框架中完成以下Java代码
public R save(@Valid @RequestBody Datasource datasource) { return R.status(datasourceService.save(datasource)); } /** * 修改 数据源配置表 */ @PostMapping("/update") @ApiOperationSupport(order = 5) @Operation(summary = "修改", description = "传入datasource") public R update(@Valid @RequestBody Datasource datasource) { ...
@Operation(summary = "逻辑删除", description = "传入ids") public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) { return R.status(datasourceService.deleteLogic(Func.toLongList(ids))); } /** * 数据源列表 */ @GetMapping("/select") @ApiOperationSupport(order = 8) @Operation(summary ...
repos\SpringBlade-master\blade-ops\blade-develop\src\main\java\org\springblade\develop\controller\DatasourceController.java
2
请完成以下Java代码
public void setAlbertaRole (final String AlbertaRole) { set_Value (COLUMNNAME_AlbertaRole, AlbertaRole); } @Override public String getAlbertaRole() { return get_ValueAsString(COLUMNNAME_AlbertaRole); } @Override public void setC_BPartner_AlbertaRole_ID (final int C_BPartner_AlbertaRole_ID) { if (C_BPar...
@Override public void setC_BPartner_ID (final int C_BPartner_ID) { if (C_BPartner_ID < 1) set_Value (COLUMNNAME_C_BPartner_ID, null); else set_Value (COLUMNNAME_C_BPartner_ID, C_BPartner_ID); } @Override public int getC_BPartner_ID() { return get_ValueAsInt(COLUMNNAME_C_BPartner_ID); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.healthcare.alberta\src\main\java-gen\de\metas\vertical\healthcare\alberta\model\X_C_BPartner_AlbertaRole.java
1
请完成以下Java代码
private boolean isAuthenticated() { return getUserPrincipal() != null; } } private static class SecurityContextAsyncContext implements AsyncContext { private final AsyncContext asyncContext; SecurityContextAsyncContext(AsyncContext asyncContext) { this.asyncContext = asyncContext; } @Override p...
@Override public void start(Runnable run) { this.asyncContext.start(new DelegatingSecurityContextRunnable(run)); } @Override public void addListener(AsyncListener listener) { this.asyncContext.addListener(listener); } @Override public void addListener(AsyncListener listener, ServletRequest request...
repos\spring-security-main\web\src\main\java\org\springframework\security\web\servletapi\HttpServlet3RequestFactory.java
1
请在Spring Boot框架中完成以下Java代码
public class UserController { @Autowired private MyService service; @GetMapping("/me/myapi") public String me(@RequestParam String username, @RequestParam String password, HttpServletResponse responsehttp) { try { OAuth2AccessToken token = service.getService().getAccessTokenPasswo...
return response.getBody(); } catch (Exception e) { responsehttp.setStatus(HttpServletResponse.SC_BAD_REQUEST); } return null; } @GetMapping("/me") public Principal user(Principal principal) { return principal; } }
repos\tutorials-master\libraries-security-2\src\main\java\com\baeldung\scribejava\controller\UserController.java
2
请完成以下Java代码
public final void setArtifactParameter(final String artifactParameter) { this.artifactParameter = artifactParameter; } /** * Configures the Request parameter to look for when attempting to send a request to * CAS. * @return the service parameter to use. Default is "service". */ public final String getServ...
public final boolean isAuthenticateAllArtifacts() { return this.authenticateAllArtifacts; } /** * If true, then any non-null artifact (ticket) should be authenticated. Additionally, * the service will be determined dynamically in order to ensure the service matches * the expected value for this artifact. *...
repos\spring-security-main\cas\src\main\java\org\springframework\security\cas\ServiceProperties.java
1
请完成以下Java代码
protected boolean beforeSave(boolean newRecord) { // Check all settings are correct by reload all data m_mediaSize = null; getMediaSize(); getCPaper(); return true; } /** * Media Size Name */ class CMediaSizeName extends MediaSizeName { /** * */ private static final long serialVers...
} // CMediaSizeName /************************************************************************** * Test * @param args args */ public static void main(String[] args) { org.compiere.Adempiere.startupEnvironment(true); // create ("Standard Landscape", true); // create ("Standard Portrait", false); // ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\print\MPrintPaper.java
1
请完成以下Java代码
public class DD_Order_CompleteForwardBackward extends JavaProcess { private final DDOrderLowLevelService ddOrderLowLevelService = SpringContextHolder.instance.getBean(DDOrderLowLevelService.class); private I_DD_Order p_ddOrder; @Override protected void prepare() { // nothing } @Override protected String do...
return p_ddOrder; } if (I_DD_Order.Table_Name.equals(getTableName()) && getRecord_ID() > 0) { p_ddOrder = InterfaceWrapperHelper.create(getCtx(), getRecord_ID(), I_DD_Order.class, get_TrxName()); } if (p_ddOrder == null || p_ddOrder.getDD_Order_ID() <= 0) { throw new FillMandatoryException(I_DD_Orde...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing\src\main\java\org\eevolution\process\DD_Order_CompleteForwardBackward.java
1
请在Spring Boot框架中完成以下Java代码
protected UserDetailsService userDetailsService() { // Permission User(s) UserDetails urunovUser = User.builder() .username("urunov") .password(passwordEncoder.encode("urunov1987")) //.roles(ADMIN.name()) // ROLE_STUDENT ...
.username("tolik") .password(passwordEncoder.encode("tolik1")) .authorities(STUDENT.name()) .authorities(STUDENT.getGrantedAuthorities()) .build(); UserDetails hotamboyUser = User.builder() .username("hotam"...
repos\SpringBoot-Projects-FullStack-master\Advanced-SpringSecure\form-based-authentication\form-based-authentication\src\main\java\uz\bepro\formbasedauthentication\security\ApplicationSecurityConfig.java
2
请完成以下Java代码
public void setDescription (final @Nullable java.lang.String Description) { set_Value (COLUMNNAME_Description, Description); } @Override public java.lang.String getDescription() { return get_ValueAsString(COLUMNNAME_Description); } @Override public void setIsEUOneStopShop (final boolean IsEUOneStopShop) ...
@Override public java.lang.String getName() { return get_ValueAsString(COLUMNNAME_Name); } @Override public void setValue (final java.lang.String Value) { set_Value (COLUMNNAME_Value, Value); } @Override public java.lang.String getValue() { return get_ValueAsString(COLUMNNAME_Value); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_Org.java
1
请在Spring Boot框架中完成以下Java代码
public String toHandlePage(Model model, HttpServletRequest request, @RequestParam("id") String id) { RpAccountCheckMistake mistake = rpAccountCheckMistakeService.getDataById(id); model.addAttribute("mistake", mistake); model.addAttribute("reconciliationMistakeTypeEnums", ReconciliationMistakeTypeEnum.toList()); ...
rpAccountCheckTransactionService.handle(id, handleType, handleRemark); } catch (BizException e) { log.error(e); dwz.setStatusCode(DWZ.ERROR); dwz.setMessage(e.getMsg()); model.addAttribute("dwz", dwz); return "common/ajaxDone"; } catch (Exception e) { log.error(e); dwz.setStatusCode(DWZ.ERROR);...
repos\roncoo-pay-master\roncoo-pay-web-boss\src\main\java\com\roncoo\pay\controller\reconciliation\ReconciliationController.java
2
请完成以下Java代码
public Integer getShowStatus() { return showStatus; } public void setShowStatus(Integer showStatus) { this.showStatus = showStatus; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; ...
this.content = content; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", categoryId=").a...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\CmsHelp.java
1
请完成以下Java代码
public static String getNameByValue(String value){ if (oConvertUtils.isEmpty(value)) { return null; } for (DepartCategoryEnum val : values()) { if (val.getValue().equals(value)) { return val.getName(); } } return value; } ...
* @param name * @return */ public static String getValueByName(String name){ if (oConvertUtils.isEmpty(name)) { return null; } for (DepartCategoryEnum val : values()) { if (val.getName().equals(name)) { return val.getValue(); } ...
repos\JeecgBoot-main\jeecg-boot\jeecg-boot-base-core\src\main\java\org\jeecg\common\constant\enums\DepartCategoryEnum.java
1
请在Spring Boot框架中完成以下Java代码
public class OpenAPISecurityConfig { @Value("${keycloak.auth-server-url}") String authServerUrl; @Value("${keycloak.realm}") String realm; private static final String OAUTH_SCHEME_NAME = "my_oAuth_security_schema"; @Bean public OpenAPI openAPI() { return new OpenAPI().components(n...
private SecurityScheme createOAuthScheme() { OAuthFlows flows = createOAuthFlows(); return new SecurityScheme().type(SecurityScheme.Type.OAUTH2) .flows(flows); } private OAuthFlows createOAuthFlows() { OAuthFlow flow = createAuthorizationCodeFlow(); return new OAuthF...
repos\tutorials-master\spring-boot-modules\spring-boot-swagger-keycloak\src\main\java\com\baeldung\swaggerkeycloak\OpenAPISecurityConfig.java
2
请完成以下Java代码
public boolean accept(final T model) { final Date validFrom = getDate(model, validFromColumnName); if (validFrom != null && validFrom.compareTo(dateValue) > 0) { return false; } final Date validTo = getDate(model, validToColumnName); if (validTo != null && validTo.compareTo(dateValue) < 0) { retur...
private final Date getDate(final T model, final String dateColumnName) { if (dateColumnName == null) { return null; } if (!InterfaceWrapperHelper.hasModelColumnName(model, dateColumnName)) { return null; } final Optional<Date> date = InterfaceWrapperHelper.getValue(model, dateColumnName); retur...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\dao\impl\ValidFromToMatchesQueryFilter.java
1
请完成以下Java代码
public void repair(Collection<String> repairParts) { Assert.notEmpty(repairParts, "collection of repairParts mustn't be empty"); // ... } public void repair(Map<String, String> repairParts) { Assert.notEmpty(repairParts, "map of repairParts mustn't be empty"); // ... } ...
CarBattery carBattery = new CarBattery(); car.replaceBattery(carBattery); car.сhangeEngine(new ToyotaEngine()); car.startWithHasLength(" "); car.startWithHasText("t"); car.startWithNotContain("132"); List<String> repairPartsCollection = new ArrayList<>(); repai...
repos\tutorials-master\spring-5\src\main\java\com\baeldung\assertions\Car.java
1
请完成以下Java代码
public class GetVariableCmd implements Command<Object> { protected String caseInstanceId; protected String variableName; public GetVariableCmd(String caseInstanceId, String variableName) { this.caseInstanceId = caseInstanceId; this.variableName = variableName; } @Overr...
// Hence, why here a direct query is done here (which is cached). VariableInstanceEntity variableInstanceEntity = cmmnEngineConfiguration.getVariableServiceConfiguration().getVariableService() .createInternalVariableInstanceQuery() .scopeId(caseInstanceId) .withou...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\cmd\GetVariableCmd.java
1
请完成以下Java代码
public I_AD_Role getAD_Role() throws RuntimeException { return (I_AD_Role)MTable.get(getCtx(), I_AD_Role.Table_Name) .getPO(getAD_Role_ID(), get_TrxName()); } /** Set Role. @param AD_Role_ID Responsibility Role */ public void setAD_Role_ID (int AD_Role_ID) { if (AD_Role_ID < 0) set_ValueNoChe...
if (CM_AccessProfile_ID < 1) set_ValueNoCheck (COLUMNNAME_CM_AccessProfile_ID, null); else set_ValueNoCheck (COLUMNNAME_CM_AccessProfile_ID, Integer.valueOf(CM_AccessProfile_ID)); } /** Get Web Access Profile. @return Web Access Profile */ public int getCM_AccessProfile_ID () { Integer ii = (Inte...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_CM_AccessListRole.java
1
请完成以下Java代码
String substituteParametersInSqlString(String sql, SqlParameterSource paramSource) { ParsedSql parsedSql = NamedParameterUtils.parseSqlStatement(sql); List<SqlParameter> declaredParams = NamedParameterUtils.buildSqlParameterList(parsedSql, paramSource); if (declaredParams.isEmpty()) { ...
valueArrayStr += valueForSQLQuery; ++count; } sql = sql.replace(":" + paramName, valueArrayStr); } return sql; } String getValueForSQLQuery(Object valueParameter) { if (valueParameter instanceof String) { return "'" + ((String) val...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\sql\query\DefaultQueryLogComponent.java
1
请完成以下Java代码
public void deleteDeployment(String deploymentId, boolean cascade) { commandExecutor.execute(new DeleteDeploymentCmd(deploymentId, cascade)); } @Override public CmmnDeploymentQuery createDeploymentQuery() { return configuration.getCmmnDeploymentEntityManager().createDeploymentQuery(); ...
} @Override public void setCaseDefinitionCategory(String caseDefinitionId, String category) { commandExecutor.execute(new SetCaseDefinitionCategoryCmd(caseDefinitionId, category)); } @Override public void changeDeploymentParentDeploymentId(String deploymentId, String newParentDeploymen...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\CmmnRepositoryServiceImpl.java
1
请完成以下Java代码
public String docType(final ICalloutField calloutField) { final I_C_Payment payment = calloutField.getModel(I_C_Payment.class); final I_C_DocType docType = InterfaceWrapperHelper.load(payment.getC_DocType_ID(), I_C_DocType.class); if (docType != null) { calloutField.putWindowContext("IsSOTrx", docType.isS...
* Payment_Amounts. Change of: - IsOverUnderPayment -> set OverUnderAmt to 0 - * C_Currency_ID, C_ConvesionRate_ID -> convert all - PayAmt, DiscountAmt, * WriteOffAmt, OverUnderAmt -> PayAmt make sure that add up to * InvoiceOpenAmt */ public String amounts(final ICalloutField calloutField) { if (isCalloutAc...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java-legacy\org\compiere\model\CalloutPayment.java
1
请完成以下Java代码
public int getPhase() { return this.phase; } @Override public void start() { synchronized (this.lifeCycleMonitor) { if (!this.running) { logger.info("Starting..."); doStart(); this.running = true; logger.info("Sta...
public void stop(Runnable callback) { synchronized (this.lifeCycleMonitor) { stop(); callback.run(); } } @Override public boolean isRunning() { return this.running; } @Override public void destroy() { stop(); } }
repos\Activiti-develop\activiti-core\activiti-spring-boot-starter\src\main\java\org\activiti\spring\AbstractActivitiSmartLifeCycle.java
1
请完成以下Java代码
public boolean isSuccess() { return success; } public Result<R> setSuccess(boolean success) { this.success = success; return this; } public int getCode() { return code; } public Result<R> setCode(int code) { this.code = code; return this; } ...
this.msg = msg; return this; } public R getData() { return data; } public Result<R> setData(R data) { this.data = data; return this; } @Override public String toString() { return "Result{" + "success=" + success + ", code=" +...
repos\spring-boot-student-master\spring-boot-student-sentinel-dashboard\src\main\java\com\alibaba\csp\sentinel\dashboard\domain\Result.java
1
请在Spring Boot框架中完成以下Java代码
public void setProcessInstanceId(String processInstanceId) { this.processInstanceId = processInstanceId; } public String getProcessDefinitionId() { return processDefinitionId; } public void setProcessDefinitionId(String processDefinitionId) { this.processDefinitionId = processD...
public void setWithoutTenantId(Boolean withoutTenantId) { this.withoutTenantId = withoutTenantId; } public Set<String> getProcessInstanceIds() { return processInstanceIds; } public void setProcessInstanceIds(Set<String> processInstanceIds) { this.processInstanceIds = processIns...
repos\flowable-engine-main\modules\flowable-rest\src\main\java\org\flowable\rest\service\api\history\HistoricActivityInstanceQueryRequest.java
2
请完成以下Java代码
public List<List<String>> getSafeInvolvedGroups() { return safeInvolvedGroups; } public void setSafeInvolvedGroups(List<List<String>> safeInvolvedGroups) { this.safeInvolvedGroups = safeInvolvedGroups; } @Override protected void ensureVariablesInitialized() { super.ensureVa...
public List<PlanItemInstanceQueryImpl> getOrQueryObjects() { return orQueryObjects; } public List<List<String>> getSafeCaseInstanceIds() { return safeCaseInstanceIds; } public void setSafeCaseInstanceIds(List<List<String>> safeProcessInstanceIds) { this.safeCaseInstanceIds = sa...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\runtime\PlanItemInstanceQueryImpl.java
1