instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
public int getUpdateCount() { if (resultSetPointer >= m_resultSets.size()) { int updateCount = m_updateCount; m_updateCount = -1; return updateCount; } return -1; } public void setUpdateCount(int updateCount) { m_updateCount = updateCount; } public void addResultSet(ResultSet rs) { m_resultSe...
public ResultSet getResultSet() { if (resultSetPointer >= m_resultSets.size()) return null; return m_resultSets.get(resultSetPointer); } public boolean isFirstResult() { return firstResult; } public void setFirstResult(boolean firstResult) { this.firstResult = firstResult; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\compiere\util\ExecuteResult.java
1
请完成以下Java代码
public static AddressDisplaySequence ofNullable(@Nullable final String pattern) { return pattern != null && !Check.isBlank(pattern) ? new AddressDisplaySequence(pattern) : EMPTY; } @Override @Deprecated public String toString() { return pattern; } public void assertValid() { final boolean exist...
public boolean hasToken(@NonNull final Addressvars token) { // TODO: optimize it! this is just some crap refactored code final Scanner scan = new Scanner(pattern); scan.useDelimiter("@"); while (scan.hasNext()) { if (scan.next().equals(token.getName())) { scan.close(); return true; } } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\location\AddressDisplaySequence.java
1
请完成以下Java代码
public boolean hasField(final String fieldName) { return getQuickInputDocument().hasField(fieldName); } // // // ------ // // // public static final class Builder { private static final AtomicInteger nextQuickInputDocumentId = new AtomicInteger(1); private DocumentPath _rootDocumentPath; private Qu...
public Builder setQuickInputDescriptor(final QuickInputDescriptor quickInputDescriptor) { _quickInputDescriptor = quickInputDescriptor; return this; } private QuickInputDescriptor getQuickInputDescriptor() { Check.assumeNotNull(_quickInputDescriptor, "Parameter quickInputDescriptor is not null"); r...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\quickinput\QuickInput.java
1
请在Spring Boot框架中完成以下Java代码
private ProjectQuotationPricingInfo getPricingInfo(@NonNull final ServiceRepairProjectInfo project) { final PriceListVersionId priceListVersionId = project.getPriceListVersionId(); if (priceListVersionId == null) { throw new AdempiereException("@NotFound@ @M_PriceList_Version_ID@") .setParameter("project...
.pricingSystemId(PricingSystemId.ofRepoId(priceList.getM_PricingSystem_ID())) .priceListId(PriceListId.ofRepoId(priceList.getM_PriceList_ID())) .priceListVersionId(priceListVersionId) .currencyId(CurrencyId.ofRepoId(priceList.getC_Currency_ID())) .countryId(CountryId.ofRepoId(priceList.getC_Country_ID()...
repos\metasfresh-new_dawn_uat\backend\de.metas.servicerepair.base\src\main\java\de\metas\servicerepair\project\service\commands\CreateQuotationFromProjectCommand.java
2
请完成以下Java代码
public int getVersion() { return version; } @Override public String getResourceName() { return resourceName; } @Override public String getDeploymentId() { return deploymentId; } @Override public boolean hasGraphicalNotation() { return isGraphicalNot...
public void setDeploymentId(String deploymentId) { this.deploymentId = deploymentId; } @Override public void setHasGraphicalNotation(boolean hasGraphicalNotation) { this.isGraphicalNotationDefined = hasGraphicalNotation; } @Override public void setDiagramResourceName(String...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\persistence\entity\CaseDefinitionEntityImpl.java
1
请完成以下Java代码
protected FileUpload createFileUploadInstance() { return new FileUpload(); } protected MultipartFormData createMultipartFormDataInstance() { return new MultipartFormData(); } protected void parseRequest(MultipartFormData multipartFormData, FileUpload fileUpload, RestMultipartRequestContext requestCont...
static class RestMultipartRequestContext implements RequestContext { protected InputStream inputStream; protected String contentType; public RestMultipartRequestContext(InputStream inputStream, String contentType) { this.inputStream = inputStream; this.contentType = contentType; } pub...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\mapper\MultipartPayloadProvider.java
1
请完成以下Java代码
public int getC_Campaign_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Description. @param Description Optional short description of the record */ public void setDescription (String Description) { set_Value (COLUMN...
/** Get Name. @return Alphanumeric identifier of the entity */ public String getName () { return (String)get_Value(COLUMNNAME_Name); } /** Get Record ID/ColumnName @return ID/ColumnName pair */ public KeyNamePair getKeyNamePair() { return new KeyNamePair(get_ID(), getName(...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_Promotion.java
1
请在Spring Boot框架中完成以下Java代码
public JsonRemittanceAdvice getRemittanceAdviceWithLines(@NonNull final List<JsonRemittanceAdviceLine> lines) { if (document.getDocumentExtension() == null || document.getDocumentExtension().getDocumentExtension() == null || document.getDocumentExtension().getDocumentExtension().getREMADVExtension() == null)...
return getGLNFromBusinessEntityType(document.getSupplier()); } private String getGLNFromBusinessEntityType(@NonNull final BusinessEntityType businessEntityType) { if (Check.isNotBlank(businessEntityType.getGLN())) { return GLN_PREFIX + businessEntityType.getGLN(); } final String gln = businessEntityType...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java\de\metas\edi\esb\remadvimport\ecosio\JsonRemittanceAdviceProducer.java
2
请完成以下Java代码
protected void executeSetOperation(TaskEntity task, Integer value) { if (isAssignee(type)) { task.setAssignee(userId); return; } if (isOwner(type)) { task.setOwner(userId); return; } task.addIdentityLink(userId, groupId, type); } /** * Method to be overridden by co...
} } protected boolean hasNullIdentity(String userId, String groupId) { return (userId == null) && (groupId == null); } protected boolean isAssignee(String type) { return IdentityLinkType.ASSIGNEE.equals(type); } protected boolean isOwner(String type) { return IdentityLinkType.OWNER.equals(typ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cmd\AbstractAddIdentityLinkCmd.java
1
请完成以下Java代码
public String toString() { return this.delegate.toString(); } /** * Factory method for creating a {@link DelegatingSecurityContextRunnable}. * @param delegate the original {@link Runnable} that will be delegated to after * establishing a {@link SecurityContext} on the {@link SecurityContextHolder}. Cannot ...
return (securityContext != null) ? new DelegatingSecurityContextRunnable(delegate, securityContext) : new DelegatingSecurityContextRunnable(delegate); } static Runnable create(Runnable delegate, @Nullable SecurityContext securityContext, SecurityContextHolderStrategy securityContextHolderStrategy) { Assert....
repos\spring-security-main\core\src\main\java\org\springframework\security\concurrent\DelegatingSecurityContextRunnable.java
1
请完成以下Java代码
public Optional<ExternalSystemParentConfig> getByTypeAndValue(@NonNull final ExternalSystemType type, @NonNull final String childConfigValue) { return externalSystemConfigRepo.getByTypeAndValue(type, childConfigValue); } @NonNull public Optional<ExternalSystemExportAudit> getMostRecentByTableReferenceAndSystem( ...
.stacktrace(jsonErrorItem.getStackTrace()) .errorCode(jsonErrorItem.getErrorCode()) .pInstance_ID(pInstanceId) .orgId(RestUtils.retrieveOrgIdOrDefault(jsonErrorItem.getOrgCode())) .build(); } @Nullable public ExternalSystemType getExternalSystemTypeByCodeOrNameOrNull(@Nullable final String value) {...
repos\metasfresh-new_dawn_uat\backend\de.metas.business.rest-api-impl\src\main\java\de\metas\rest_api\v1\externlasystem\dto\ExternalSystemService.java
1
请完成以下Java代码
private void runScripts(List<Resource> resources) { runScripts(new Scripts(resources).continueOnError(this.settings.isContinueOnError()) .separator(this.settings.getSeparator()) .encoding(this.settings.getEncoding())); } /** * Initialize the database by running the given {@code scripts}. * @param scripts...
public Scripts(List<Resource> resources) { this.resources = resources; } @Override public Iterator<Resource> iterator() { return this.resources.iterator(); } public Scripts continueOnError(boolean continueOnError) { this.continueOnError = continueOnError; return this; } public boolean isCon...
repos\spring-boot-4.0.1\module\spring-boot-sql\src\main\java\org\springframework\boot\sql\init\AbstractScriptDatabaseInitializer.java
1
请完成以下Java代码
private static DecodedJWT verifyJWT(String jwtToken) { try { DecodedJWT decodedJWT = verifier.verify(jwtToken); return decodedJWT; } catch (JWTVerificationException e) { System.out.println(e.getMessage()); } return null; } private static boole...
if (decodedJWT != null) { System.out.println("Token Issued At : " + decodedJWT.getIssuedAt()); System.out.println("Token Expires At : " + decodedJWT.getExpiresAt()); System.out.println("Subject : " + decodedJWT.getSubject()); System.out.println("Data : " + getClaim(decode...
repos\tutorials-master\security-modules\jwt\src\main\java\com\baeldung\jwt\auth0\Auth0JsonWebToken.java
1
请在Spring Boot框架中完成以下Java代码
public Transport getTransport() { return this.transport; } public void setTransport(Transport transport) { this.transport = transport; } public Compression getCompression() { return this.compression; } public void setCompression(Compression compression) { this.compression = compression; } public Map...
this.headers = headers; } public enum Compression { /** * Gzip compression. */ GZIP, /** * No compression. */ NONE } }
repos\spring-boot-4.0.1\module\spring-boot-micrometer-tracing-opentelemetry\src\main\java\org\springframework\boot\micrometer\tracing\opentelemetry\autoconfigure\otlp\OtlpTracingProperties.java
2
请在Spring Boot框架中完成以下Java代码
public List<Pet> findPetsForAdoption(String speciesName) { var species = speciesRepo.findByName(speciesName) .orElseThrow(() -> new IllegalArgumentException("Unknown Species: " + speciesName)); return petsRepo.findPetsByOwnerNullAndSpecies(species); } public Pet adoptPet(UUID petUuid...
var pet = petsRepo.findPetByUuid(petUuid) .orElseThrow(() -> new IllegalArgumentException("No pet with UUID '" + petUuid + "' found")); return petsRepo.findRevisions(pet.getId()).stream() .map(r -> { CustomRevisionEntity rev = r.getMetadata().getDelegate(); retur...
repos\tutorials-master\persistence-modules\spring-data-envers\src\main\java\com\baeldung\envers\customrevision\service\AdoptionService.java
2
请完成以下Java代码
public int sendRequestWithAuthHeader(String url) throws IOException { HttpURLConnection connection = null; try { connection = createConnection(url); connection.setRequestProperty("Authorization", createBasicAuthHeaderValue()); return connection.getResponseCode(); ...
String auth = user + ":" + password; byte[] encodedAuth = Base64.encodeBase64(auth.getBytes(StandardCharsets.UTF_8)); String authHeaderValue = "Basic " + new String(encodedAuth); return authHeaderValue; } private void setAuthenticator() { Authenticator.setDefault(new BasicAuthen...
repos\tutorials-master\core-java-modules\core-java-networking-2\src\main\java\com\baeldung\url\auth\HttpClient.java
1
请在Spring Boot框架中完成以下Java代码
public String getValue() { return value; } /** * Sets the value of the value property. * * @param value * allowed object is * {@link String } * */ public void setValue(String value) { this.value = value; } /** * Used to identify...
* {@link String } * */ public String getIdentificationType() { return identificationType; } /** * Sets the value of the identificationType property. * * @param value * allowed object is * {@link String } * */ public void setIde...
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\FurtherIdentificationType.java
2
请完成以下Java代码
public void setRestTemplate(RestTemplate restTemplate) { this.restTemplate = restTemplate; } public boolean isAtAll() { return atAll; } public void setAtAll(boolean atAll) { this.atAll = atAll; } public String getSecret() { return secret; } public void setSecret(String secret) { this.secret = secr...
public enum MessageType { text, interactive } public static class Card { /** * This is header title. */ private String title = "Codecentric's Spring Boot Admin notice"; private String themeColor = "red"; public String getTitle() { return title; } public void setTitle(String title) { t...
repos\spring-boot-admin-master\spring-boot-admin-server\src\main\java\de\codecentric\boot\admin\server\notify\FeiShuNotifier.java
1
请完成以下Java代码
public String asString() { return "graphql.operation.name"; } }, /** * {@link graphql.execution.ExecutionId} of the GraphQL request. */ EXECUTION_ID { @Override public String asString() { return "graphql.execution.id"; } } } public enum DataFetcherLowCardinalityKeyNames implements ...
ERROR_TYPE { @Override public String asString() { return "graphql.error.type"; } }, /** * {@link DataLoader#getName()} of the data loader. */ LOADER_NAME { @Override public String asString() { return "graphql.loader.name"; } }, /** * Outcome of the GraphQL data fetching op...
repos\spring-graphql-main\spring-graphql\src\main\java\org\springframework\graphql\observation\GraphQlObservationDocumentation.java
1
请在Spring Boot框架中完成以下Java代码
public class CommonJWorkManagerExecutorService implements ExecutorService { private static Logger logger = Logger.getLogger(CommonJWorkManagerExecutorService.class.getName()); protected WorkManager workManager; protected JcaExecutorServiceConnector ra; protected String commonJWorkManagerName; protect...
} catch (WorkException e) { logger.log(Level.WARNING, "WorkException while scheduling jobs for execution", e); } return false; } protected boolean scheduleLongRunning(Runnable acquisitionRunnable) { // initialize the workManager here, because we have access to the initial context // of...
repos\camunda-bpm-platform-master\javaee\jobexecutor-ra\src\main\java\org\camunda\bpm\container\impl\threading\ra\commonj\CommonJWorkManagerExecutorService.java
2
请完成以下Java代码
public class BeanManagerLookup { /** holds a local beanManager if no jndi is available */ public static BeanManager localInstance; /** provide a custom jndi lookup name */ public static String jndiName; public static BeanManager getBeanManager() { BeanManager beanManager = lookupBeanManagerInJndi(...
try { return (BeanManager) InitialContext.doLookup(jndiName); } catch (NamingException e) { throw new ProcessEngineException("Could not lookup beanmanager in jndi using name: '" + jndiName + "'.", e); } } try { // in an application server return (BeanManager) InitialCont...
repos\camunda-bpm-platform-master\engine-cdi\core\src\main\java\org\camunda\bpm\engine\cdi\impl\util\BeanManagerLookup.java
1
请在Spring Boot框架中完成以下Java代码
public Condition getCondition() { return this.condition; } public ConditionOutcome getOutcome() { return this.outcome; } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } ConditionAn...
} @Override public String toString() { return this.condition.getClass() + " " + this.outcome; } } private static final class AncestorsMatchedCondition implements Condition { @Override public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) { throw new UnsupportedOperationE...
repos\spring-boot-4.0.1\core\spring-boot-autoconfigure\src\main\java\org\springframework\boot\autoconfigure\condition\ConditionEvaluationReport.java
2
请完成以下Java代码
private static void showLoginDialog() { final Splash splash = Splash.getSplash(); final Properties ctx = Env.getCtx(); final ALogin login = new ALogin(splash, ctx); if (login.initLogin()) { return; // automatic login, nothing more to do } // Center the window try (final IAutoCloseable c = ModelVali...
public ObjectMapper jsonObjectMapper() { return JsonObjectMapperHolder.sharedJsonObjectMapper(); } @Bean(Adempiere.BEAN_NAME) public Adempiere adempiere() { return Env.getSingleAdempiereInstance(applicationContext); } @EventListener(ApplicationReadyEvent.class) public void showSwingUIMainWindow() { Mod...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java\de\metas\SwingUIApplicationTemplate.java
1
请完成以下Java代码
public HttpComponentsClientHttpRequestFactoryBuilder withConnectionConfigCustomizer( Consumer<ConnectionConfig.Builder> connectionConfigCustomizer) { Assert.notNull(connectionConfigCustomizer, "'connectionConfigCustomizer' must not be null"); return new HttpComponentsClientHttpRequestFactoryBuilder(getCustomizer...
* given customizer. This can be useful for applying pre-packaged customizations. * @param customizer the customizer to apply * @return a new {@link HttpComponentsClientHttpRequestFactoryBuilder} * @since 4.0.0 */ public HttpComponentsClientHttpRequestFactoryBuilder with( UnaryOperator<HttpComponentsClientHt...
repos\spring-boot-4.0.1\module\spring-boot-http-client\src\main\java\org\springframework\boot\http\client\HttpComponentsClientHttpRequestFactoryBuilder.java
1
请完成以下Java代码
public void writeDTD(String dtd) throws XMLStreamException { writer.writeDTD(dtd); } public void writeEntityRef(String name) throws XMLStreamException { writer.writeEntityRef(name); } public void writeStartDocument() throws XMLStreamException { writer.writeStartDocument(); ...
public String getPrefix(String uri) throws XMLStreamException { return writer.getPrefix(uri); } public void setPrefix(String prefix, String uri) throws XMLStreamException { writer.setPrefix(prefix, uri); } public void setDefaultNamespace(String uri) throws XMLStreamException { ...
repos\Activiti-develop\activiti-core\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\DelegatingXMLStreamWriter.java
1
请完成以下Java代码
public String getCallbackType() { return callbackType; } public String getParentCaseInstanceId() { return parentCaseInstanceId; } public String getReferenceId() { return referenceId; } public String getReferenceType() { return referenceType; } public L...
public boolean isWithJobException() { return withJobException; } public String getLocale() { return locale; } public boolean isNeedsProcessDefinitionOuterJoin() { if (isNeedsPaging()) { if (AbstractEngineConfiguration.DATABASE_TYPE_ORACLE.equals(databaseType) ...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\ProcessInstanceQueryImpl.java
1
请在Spring Boot框架中完成以下Java代码
public @Nullable Boolean getRequired() { return this.required; } public void setRequired(@Nullable Boolean required) { this.required = required; } public @Nullable String getDefaultVersion() { return this.defaultVersion; } public void setDefaultVersion(@Nullable String defaultVersion) { this....
private @Nullable Integer pathSegment; /** * Use the media type parameter with the given name to obtain the version. */ private Map<MediaType, String> mediaTypeParameter = new LinkedHashMap<>(); public @Nullable String getHeader() { return this.header; } public void setHeader(@Nullable Str...
repos\spring-boot-4.0.1\module\spring-boot-webflux\src\main\java\org\springframework\boot\webflux\autoconfigure\WebFluxProperties.java
2
请在Spring Boot框架中完成以下Java代码
public String getServicePhone() { return servicePhone; } public void setServicePhone(String servicePhone) { this.servicePhone = servicePhone; } public String getProductDesc() { return productDesc; } public void setProductDesc(String productDesc) { this.productD...
", idCardName='" + idCardName + '\'' + ", idCardNumber='" + idCardNumber + '\'' + ", idCardValidTime='" + idCardValidTime + '\'' + ", accountBank='" + accountBank + '\'' + ", bankAddressCode='" + bankAddressCode + '\'' + ", accountNumber='"...
repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\trade\entity\RpMicroSubmitRecord.java
2
请完成以下Java代码
public String getLogo() { return logo; } public void setLogo(String logo) { this.logo = logo; } public String getBigPic() { return bigPic; } public void setBigPic(String bigPic) { this.bigPic = bigPic; } public String getBrandStory() { return b...
sb.append(", id=").append(id); sb.append(", name=").append(name); sb.append(", firstLetter=").append(firstLetter); sb.append(", sort=").append(sort); sb.append(", factoryStatus=").append(factoryStatus); sb.append(", showStatus=").append(showStatus); sb.append(", productCo...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\PmsBrand.java
1
请在Spring Boot框架中完成以下Java代码
public AuthorizedUrlVariable hasVariable(String variable) { return new AuthorizedUrlVariable(variable); } /** * Allows specifying a custom {@link AuthorizationManager}. * @param manager the {@link AuthorizationManager} to use * @return the {@link AuthorizationManagerRequestMatcherRegistry} for further ...
* attribute * <p> * For example, <pre> * requestMatchers("/user/{username}").hasVariable("username").equalTo(Authentication::getName)); * </pre> * @param function a function to get value from {@link Authentication}. * @return the {@link AuthorizationManagerRequestMatcherRegistry} for further ...
repos\spring-security-main\config\src\main\java\org\springframework\security\config\annotation\web\configurers\AuthorizeHttpRequestsConfigurer.java
2
请完成以下Java代码
public CreditDebitCode getCdtDbtInd() { return cdtDbtInd; } /** * Sets the value of the cdtDbtInd property. * * @param value * allowed object is * {@link CreditDebitCode } * */ public void setCdtDbtInd(CreditDebitCode value) { this.cdtDbtInd ...
* */ public String getCcy() { return ccy; } /** * Sets the value of the ccy property. * * @param value * allowed object is * {@link String } * */ public void setCcy(String value) { this.ccy = value; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.camt53\src\main\java-xjc\de\metas\banking\camt53\jaxb\camt053_001_02\CurrencyAndAmountRange2.java
1
请完成以下Java代码
public List<String> getUserTaskFormTypes() { return userTaskFormTypes; } public void setUserTaskFormTypes(List<String> userTaskFormTypes) { this.userTaskFormTypes = userTaskFormTypes; } public List<String> getStartEventFormTypes() { return startEventFormTypes; } public...
public void setEventSupport(Object eventSupport) { this.eventSupport = eventSupport; } public String getExporter() { return exporter; } public void setExporter(String exporter) { this.exporter = exporter; } public String getExporterVersion() { return exporterVers...
repos\flowable-engine-main\modules\flowable-bpmn-model\src\main\java\org\flowable\bpmn\model\BpmnModel.java
1
请在Spring Boot框架中完成以下Java代码
public class SumUpTransactionId implements RepoIdAware { @JsonCreator public static SumUpTransactionId ofRepoId(final int repoId) { return new SumUpTransactionId(repoId); } @Nullable public static SumUpTransactionId ofRepoIdOrNull(final int repoId) { return repoId > 0 ? new SumUpTransactionId(repoId) : null...
return SumUpTransactionId != null ? SumUpTransactionId.getRepoId() : -1; } int repoId; private SumUpTransactionId(final int repoId) { this.repoId = Check.assumeGreaterThanZero(repoId, "SUMUP_Transaction_ID"); } @Override @JsonValue public int getRepoId() { return repoId; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.sumup\src\main\java\de\metas\payment\sumup\SumUpTransactionId.java
2
请完成以下Spring Boot application配置
# Deprecated Properties for Demonstration #spring: # resources: # cache: # period: 31536000 # chain: # compressed: true # html-application-cache: true spring: web: res
ources: cache: period: 31536000 chain: compressed: false
repos\tutorials-master\spring-boot-modules\spring-boot-properties-migrator-demo\src\main\resources\application-dev.yaml
2
请在Spring Boot框架中完成以下Java代码
public class SimpleLoggingHandler implements ObservationHandler<Observation.Context> { private static final Logger log = LoggerFactory.getLogger(SimpleLoggingHandler.class); private static String toString(Observation.Context context) { return null == context ? "(no context)" : context.getName() ...
public void onEvent(Observation.Event event, Observation.Context context) { log.info("Event for context " + toString(context) + " [" + toString(event) + "]"); } @Override public void onScopeOpened(Observation.Context context) { log.info("Scope opened for context " + toString(context)); ...
repos\tutorials-master\spring-boot-modules\spring-boot-3-observation\src\main\java\com\baeldung\samples\config\SimpleLoggingHandler.java
2
请完成以下Java代码
public class Dialog { private Locale locale; private String hello; private String thanks; public Dialog() { } public Dialog(Locale locale, String hello, String thanks) { this.locale = locale; this.hello = hello; this.thanks = thanks; } public Locale getLocale(...
public String getHello() { return hello; } public void setHello(String hello) { this.hello = hello; } public String getThanks() { return thanks; } public void setThanks(String thanks) { this.thanks = thanks; } }
repos\tutorials-master\spring-core-2\src\main\java\com\baeldung\applicationcontext\Dialog.java
1
请完成以下Java代码
public void onDocValidate(final Object model, final DocTimingType timing) throws Exception { if (timing != DocTimingType.AFTER_COMPLETE) { return; // nothing to do } final ICounterDocBL counterDocumentBL = Services.get(ICounterDocBL.class); if (!counterDocumentBL.isCreateCounterDocument(model)) { re...
return new CounterDocHandlerInterceptor(this); } public Builder setTableName(String tableName) { this.tableName = tableName; return this; } private final String getTableName() { Check.assumeNotEmpty(tableName, "tableName not empty"); return tableName; } public Builder setAsync(boolean asy...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\document\model\interceptor\CounterDocHandlerInterceptor.java
1
请完成以下Java代码
public void itemStateChanged(ItemEvent e) { onActionPerformed(); } }); } @Override public String toString() { return ObjectUtils.toString(this); } private final void updateFromAction() { final String displayName = action.getDisplayName(); setText(displayName); // setToolTipText(displayName)...
} setEnabled(false); try { action.setToggled(isChecked()); action.execute(); } catch (Exception e) { final int windowNo = Env.getWindowNo(this); Services.get(IClientUI.class).error(windowNo, e); } finally { setEnabled(true); } } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java\org\adempiere\ui\sideactions\swing\CheckableSideActionComponent.java
1
请完成以下Java代码
public void setU_Key (String U_Key) { set_Value (COLUMNNAME_U_Key, U_Key); } /** Get Key. @return Key */ public String getU_Key () { return (String)get_Value(COLUMNNAME_U_Key); } /** Set Value. @param U_Value Value */ public void setU_Value (String U_Value) { set_Value (COLUMNNAME_U_Value, U_V...
{ if (U_Web_Properties_ID < 1) set_ValueNoCheck (COLUMNNAME_U_Web_Properties_ID, null); else set_ValueNoCheck (COLUMNNAME_U_Web_Properties_ID, Integer.valueOf(U_Web_Properties_ID)); } /** Get Web Properties. @return Web Properties */ public int getU_Web_Properties_ID () { Integer ii = (Integer)g...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_U_Web_Properties.java
1
请完成以下Java代码
public void simpleInitApp() { Box mesh = new Box(1, 2, 3); Geometry geometry = new Geometry("Box", mesh); Material material = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md"); material.setColor("Color", ColorRGBA.Red); geometry.setMaterial(material); Nod...
rotation.rotate(0, -tpf, 0); } else if (name.equals("Right")) { rotation.rotate(0, tpf, 0); } } }; inputManager.addListener(actionListener, "Rotate"); inputManager.addListener(analogListener, "Left", "Right"); } @Override ...
repos\tutorials-master\jmonkeyengine\src\main\java\com\baeldung\jmonkeyengine\UserInputApplication.java
1
请完成以下Java代码
public void setHU_Expired (final @Nullable java.lang.String HU_Expired) { set_ValueNoCheck (COLUMNNAME_HU_Expired, HU_Expired); } @Override public java.lang.String getHU_Expired() { return get_ValueAsString(COLUMNNAME_HU_Expired); } @Override public void setHU_ExpiredWarnDate (final @Nullable java.sql.Ti...
{ return get_ValueAsTimestamp(COLUMNNAME_HU_ExpiredWarnDate); } @Override public void setM_HU_ID (final int M_HU_ID) { if (M_HU_ID < 1) set_ValueNoCheck (COLUMNNAME_M_HU_ID, null); else set_ValueNoCheck (COLUMNNAME_M_HU_ID, M_HU_ID); } @Override public int getM_HU_ID() { return get_ValueAsInt...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java-gen\de\metas\handlingunits\model\X_M_HU_BestBefore_V.java
1
请完成以下Java代码
protected void onInit(final IModelValidationEngine engine, final I_AD_Client client) { this.engine = engine; ruleService.addRulesChangedListener(this::updateFromBusinessRulesRepository); Services.get(INotificationBL.class).addCtxProvider(new RecordWarningTextProvider(recordWarningRepository)); updateFromBusi...
continue; } engine.addModelChange(triggerTableName, this); registeredTableNames.add(triggerTableName); logger.info("Registered trigger for {}", triggerTableName); } // // Remove no longer needed interceptors for (final String triggerTableName : registeredTableNamesNoLongerNeeded) { engine.rem...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\business_rule\trigger\interceptor\BusinessRuleTriggerInterceptor.java
1
请完成以下Java代码
private BPartnerId getBPartnerId(@NonNull final OrgId orgId, @NonNull final JsonVendor vendor) { final String bpartnerIdentifierStr = vendor.getBpartnerIdentifier(); if (Check.isBlank(bpartnerIdentifierStr)) { throw new MissingPropertyException("vendor.bpartnerIdentifier", vendor); } final Exter...
private Optional<UomId> getPriceUOMId(@NonNull final JsonPrice price) { return X12DE355.ofCodeOrOptional(price.getPriceUomCode()) .map(uomDAO::getByX12DE355) .map(I_C_UOM::getC_UOM_ID) .map(UomId::ofRepoId); } @Nullable private CurrencyId getCurrencyId(@NonNull final JsonPrice price) { return Opti...
repos\metasfresh-new_dawn_uat\backend\de.metas.business.rest-api-impl\src\main\java\de\metas\rest_api\v2\order\CreatePurchaseCandidatesService.java
1
请在Spring Boot框架中完成以下Java代码
private @Nullable CloudPlatform deduceCloudPlatform(Environment environment, Binder binder) { for (CloudPlatform candidate : CloudPlatform.values()) { if (candidate.isEnforced(binder)) { return candidate; } } return CloudPlatform.getActive(environment); } /** * Return a new {@link ConfigDataActivat...
*/ @Nullable CloudPlatform getCloudPlatform() { return this.cloudPlatform; } /** * Return profile information if it is available. * @return profile information or {@code null} */ @Nullable Profiles getProfiles() { return this.profiles; } @Override public String toString() { ToStringCreator creator ...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\context\config\ConfigDataActivationContext.java
2
请完成以下Java代码
public CaseInstanceStartEventSubscriptionDeletionBuilder addCorrelationParameterValues(Map<String, Object> parameters) { correlationParameterValues.putAll(parameters); return this; } public String getCaseDefinitionId() { return caseDefinitionId; } public String getTenantId(...
public Map<String, Object> getCorrelationParameterValues() { return correlationParameterValues; } @Override public void deleteSubscriptions() { checkValidInformation(); cmmnRuntimeService.deleteCaseInstanceStartEventSubscriptions(this); } protected void checkValidInformatio...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\runtime\CaseInstanceStartEventSubscriptionDeletionBuilderImpl.java
1
请完成以下Java代码
public class BBANStructureEntryBuilder implements IBBANStructureEntryBuilder { private BBANCodeEntryType codeType; private EntryCharacterType characterType; private int length; private String seqNo; private IBBANStructureBuilder parent; private BBANStructureEntry entry; public BBANStructureEntryBuilder(BBANS...
return this; } @Override public IBBANStructureEntryBuilder setLength(int length) { this.length = length; return this; } @Override public IBBANStructureEntryBuilder setSeqNo(String seqNo) { this.seqNo = seqNo; return this; } public void create(BBANStructure _BBANStructure) { _BBANStructure.addEnt...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.sepa\base\src\main\java\de\metas\payment\sepa\api\impl\BBANStructureEntryBuilder.java
1
请完成以下Java代码
public List<Book> processReaderDataFromReaderList() { Mono<List<Reader>> response = webClient.get() .accept(MediaType.APPLICATION_JSON) .retrieve() .bodyToMono(new ParameterizedTypeReference<List<Reader>>() {}); List<Reader> readers = response.block(); return reade...
} @Override public List<String> processNestedReaderDataFromReaderList() { Mono<List<Reader>> response = webClient.get() .accept(MediaType.APPLICATION_JSON) .retrieve() .bodyToMono(new ParameterizedTypeReference<List<Reader>>() {}); List<Reader> readers = response....
repos\tutorials-master\spring-reactive-modules\spring-reactive-client\src\main\java\com\baeldung\webclient\json\ReaderConsumerServiceImpl.java
1
请完成以下Java代码
private static BigDecimal convert(Properties ctx, int C_UOM_ID, int C_UOM_To_ID, BigDecimal qty) { final I_C_UOM uomFrom = MUOM.get(ctx, C_UOM_ID); final I_C_UOM uomTo = MUOM.get(ctx, C_UOM_To_ID); // return convert(ctx, uomFrom, uomTo, qty); return Services.get(IUOMConversionBL.class).convert(uomFrom, uomT...
return Services.get(IUOMConversionBL.class).convert(uomFrom, uomTo, qty, StdPrecision); } @Deprecated public static BigDecimal convertFromProductUOM( final Properties ctx, final int M_Product_ID, final int C_UOM_Dest_ID, final BigDecimal qtyToConvert) { final ProductId productId = ProductId.ofRepoIdO...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\uom\LegacyUOMConversionUtils.java
1
请完成以下Java代码
private OAuth2AccessTokenResponse getTokenResponse(OAuth2AuthorizedClient authorizedClient, OAuth2RefreshTokenGrantRequest refreshTokenGrantRequest) { try { return this.accessTokenResponseClient.getTokenResponse(refreshTokenGrantRequest); } catch (OAuth2AuthorizationException ex) { throw new ClientAuthor...
* <p> * An access token is considered expired if * {@code OAuth2AccessToken#getExpiresAt() - clockSkew} is before the current time * {@code clock#instant()}. * @param clockSkew the maximum acceptable clock skew */ public void setClockSkew(Duration clockSkew) { Assert.notNull(clockSkew, "clockSkew cannot be...
repos\spring-security-main\oauth2\oauth2-client\src\main\java\org\springframework\security\oauth2\client\RefreshTokenOAuth2AuthorizedClientProvider.java
1
请完成以下Java代码
public class Producer implements Runnable { private static final Logger LOG = LoggerFactory.getLogger(Producer.class); private final TransferQueue<String> transferQueue; private final String name; final Integer numberOfMessagesToProduce; final AtomicInteger numberOfProducedMessages = new AtomicInte...
for (int i = 0; i < numberOfMessagesToProduce; i++) { try { LOG.debug("Producer: " + name + " is waiting to transfer..."); boolean added = transferQueue.tryTransfer("A" + i, 4000, TimeUnit.MILLISECONDS); if (added) { numberOfProducedMessage...
repos\tutorials-master\core-java-modules\core-java-concurrency-collections-2\src\main\java\com\baeldung\transferqueue\Producer.java
1
请完成以下Java代码
public class CmsSubjectCategory implements Serializable { private Long id; private String name; @ApiModelProperty(value = "分类图标") private String icon; @ApiModelProperty(value = "专题数量") private Integer subjectCount; private Integer showStatus; private Integer sort; private stati...
} public Integer getSort() { return sort; } public void setSort(Integer sort) { this.sort = sort; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("H...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\CmsSubjectCategory.java
1
请完成以下Java代码
public static void main(String[] args) { try { displayFactorial(10); getFactorial(10).get(); String result = cacheExchangeRates(); if (result != cacheExchangeRates()) { System.out.println(result); } divideByZero(); ...
} catch (IOException | URISyntaxException e) { e.printStackTrace(); } return result; } @LogExceptions public static void divideByZero() { int x = 1/0; } @RetryOnFailure(attempts = 2, types = { NumberFormatException.class}) @Quietly public static void div...
repos\tutorials-master\libraries-6\src\main\java\com\baeldung\jcabi\JcabiAspectJ.java
1
请完成以下Spring Boot application配置
# For MVC multipart spring.servlet.multipart.max-file-size=10MB spring.servlet.multipart.max-request-size=10MB spring.servlet.multipart.file-size-threshold=0 # For Reactive multipart spring.webflux.multipart.max-file-size=
10MB spring.webflux.multipart.max-request-size=10MB # spring.main.web-application-type=reactive
repos\tutorials-master\spring-web-modules\spring-rest-http-3\src\main\resources\application.properties
2
请完成以下Java代码
public final void fireTableRowsUpdated(final Collection<ModelType> rows) { if (rows == null || rows.isEmpty()) { return; } // NOTE: because we are working with small amounts of rows, // it's pointless to figure out which are the row indexes of those rows // so it's better to fire a full data change e...
} return selection.build(); } public ModelType getSelectedRow(final ListSelectionModel selectionModel, final Function<Integer, Integer> convertRowIndexToModel) { final int rowIndexView = selectionModel.getMinSelectionIndex(); if (rowIndexView < 0) { return null; } final int rowIndexModel = con...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\compiere\swing\table\AnnotatedTableModel.java
1
请完成以下Java代码
public void setRequestCache(ServerRequestCache requestCache) { Assert.notNull(requestCache, "requestCache cannot be null"); this.requestCache = requestCache; } @Override public Mono<Void> onAuthenticationSuccess(WebFilterExchange webFilterExchange, Authentication authentication) { ServerWebExchange exchange =...
public void setLocation(URI location) { Assert.notNull(location, "location cannot be null"); this.location = location; } /** * The RedirectStrategy to use. * @param redirectStrategy the strategy to use. Default is DefaultRedirectStrategy. */ public void setRedirectStrategy(ServerRedirectStrategy redirectS...
repos\spring-security-main\web\src\main\java\org\springframework\security\web\server\authentication\RedirectServerAuthenticationSuccessHandler.java
1
请完成以下Java代码
public class ChargeType2Choice { @XmlElement(name = "Cd") @XmlSchemaType(name = "string") protected ChargeType1Code cd; @XmlElement(name = "Prtry") protected GenericIdentification3 prtry; /** * Gets the value of the cd property. * * @return * possible object is * ...
this.cd = value; } /** * Gets the value of the prtry property. * * @return * possible object is * {@link GenericIdentification3 } * */ public GenericIdentification3 getPrtry() { return prtry; } /** * Sets the value of the prtry property...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.camt53\src\main\java-xjc\de\metas\banking\camt53\jaxb\camt053_001_02\ChargeType2Choice.java
1
请完成以下Java代码
public int getExternalSystem_Config_RabbitMQ_HTTP_ID() { return get_ValueAsInt(COLUMNNAME_ExternalSystem_Config_RabbitMQ_HTTP_ID); } @Override public void setExternalSystemValue (final String ExternalSystemValue) { set_Value (COLUMNNAME_ExternalSystemValue, ExternalSystemValue); } @Override public String...
{ set_Value (COLUMNNAME_RemoteURL, RemoteURL); } @Override public String getRemoteURL() { return get_ValueAsString(COLUMNNAME_RemoteURL); } @Override public void setRouting_Key (final String Routing_Key) { set_Value (COLUMNNAME_Routing_Key, Routing_Key); } @Override public String getRouting_Key() {...
repos\metasfresh-new_dawn_uat\backend\de.metas.externalsystem\src\main\java-gen\de\metas\externalsystem\model\X_ExternalSystem_Config_RabbitMQ_HTTP.java
1
请完成以下Java代码
public String getName() { return "juel"; } @Override public Object renderStartForm(StartFormData startForm) { if (startForm.getFormKey() == null) { return null; } String formTemplateString = getFormTemplateString(startForm, startForm.getFormKey()); Script...
TaskEntity task = (TaskEntity) taskForm.getTask(); return scriptingEngines.evaluate(formTemplateString, ScriptingEngines.DEFAULT_SCRIPTING_LANGUAGE, task.getExecution()); } protected String getFormTemplateString(FormData formInstance, String formKey) { String deploymentId = formInstance.getDepl...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\form\JuelFormEngine.java
1
请完成以下Java代码
public void setPhone (java.lang.String Phone) { set_Value (COLUMNNAME_Phone, Phone); } /** Get Telefon. @return Beschreibt eine Telefon Nummer */ @Override public java.lang.String getPhone () { return (java.lang.String)get_Value(COLUMNNAME_Phone); } /** Set Verarbeitet. @param Processed Checkbo...
return false; } /** Set Role name. @param RoleName Role name */ @Override public void setRoleName (java.lang.String RoleName) { set_Value (COLUMNNAME_RoleName, RoleName); } /** Get Role name. @return Role name */ @Override public java.lang.String getRoleName () { return (java.lang.String)get_Va...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_I_User.java
1
请完成以下Java代码
public BPartnerId getBPartnerId() { return BPartnerId.ofRepoId(bpartner.getIdAsInt()); } } @FunctionalInterface public interface PricingConditionsBreaksExtractor { Stream<PricingConditionsBreak> streamPricingConditionsBreaks(PricingConditions pricingConditions); } @lombok.Value @lombok.Builder public...
PricingConditionsBreakId pricingConditionsBreakId; } @lombok.Value @lombok.Builder private static final class LastInOutDateRequest { @NonNull BPartnerId bpartnerId; @NonNull ProductId productId; @NonNull SOTrx soTrx; } // // // // // public static class PricingConditionsRowsLoaderBuilder { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\order\pricingconditions\view\PricingConditionsRowsLoader.java
1
请完成以下Java代码
public Object aroundMethod(ProceedingJoinPoint joinPoint)throws Throwable { //System.out.println("环绕通知>>>>>>>>>"); MethodSignature signature = (MethodSignature) joinPoint.getSignature(); Method method = signature.getMethod(); TenantLog log = method.getAnnotation(TenantLog.class); ...
//获取登录用户信息 LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); if(sysUser!=null){ dto.setUserid(sysUser.getUsername()); dto.setUsername(sysUser.getRealname()); } dto.setCreateTime(new Date());...
repos\JeecgBoot-main\jeecg-boot\jeecg-module-system\jeecg-system-biz\src\main\java\org\jeecg\modules\aop\TenantPackUserLogAspect.java
1
请完成以下Java代码
public Map<String, String> getExtensionProperties() { return extensionProperties; } /** * Construct representation of locked ExternalTask from corresponding entity. * During mapping variables will be collected,during collection variables will not be deserialized * and scope will not be set to local. ...
result.processDefinitionId = externalTaskEntity.getProcessDefinitionId(); result.processDefinitionKey = externalTaskEntity.getProcessDefinitionKey(); result.processDefinitionVersionTag = externalTaskEntity.getProcessDefinitionVersionTag(); result.tenantId = externalTaskEntity.getTenantId(); result.prior...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\externaltask\LockedExternalTaskImpl.java
1
请完成以下Java代码
public abstract class Event extends FlowNode { protected List<EventDefinition> eventDefinitions = new ArrayList<EventDefinition>(); public List<EventDefinition> getEventDefinitions() { return eventDefinitions; } public void setEventDefinitions(List<EventDefinition> eventDefinitions) { ...
eventDefinitions = new ArrayList<EventDefinition>(); if (otherEvent.getEventDefinitions() != null && !otherEvent.getEventDefinitions().isEmpty()) { for (EventDefinition eventDef : otherEvent.getEventDefinitions()) { eventDefinitions.add(eventDef.clone()); } } ...
repos\Activiti-develop\activiti-core\activiti-bpmn-model\src\main\java\org\activiti\bpmn\model\Event.java
1
请完成以下Java代码
public BankStatementReconciliationView createView(final @NonNull CreateViewRequest request) { throw new UnsupportedOperationException(); } public BankStatementReconciliationView createView(@NonNull final BanksStatementReconciliationViewCreateRequest request) { final BankStatementLineAndPaymentsRows rows = retr...
public Stream<IView> streamAllViews() { return views.streamAllViews(); } @Override public void invalidateView(final ViewId viewId) { views.invalidateView(viewId); } private List<RelatedProcessDescriptor> getPaymentToReconcilateProcesses() { return ImmutableList.of( createProcessDescriptor(PaymentsTo...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\bankstatement_reconciliation\BankStatementReconciliationViewFactory.java
1
请完成以下Spring Boot application配置
server.port=9096 server.address=127.0.0.1 # ensure h2 database rce spring.jpa.database = MYSQL spring.jpa.database-platform=org.hibernate.dialect.MySQL5Dialect # enable h2 console jndi rce #spring.h2.console.path=/h2-console spring.h2.console.enabled=true # vulnerable configuration set 0: spring boot 1.0 - 1.4 # all...
nsitive actuators explicitly disabled #management.security.enabled=false ## vulnerable configuration set 2: spring boot 2+ #management.security.enabled=false #management.endpoint.refresh.enabled=true #management.endpoints.web.exposure.include=env,restart,refresh management.endpoints.web.exposure.include=* management.e...
repos\SpringBootVulExploit-master\repository\springboot-h2-database-rce\src\main\resources\application.properties
2
请完成以下Java代码
public String getVariableName() { return variableName; } public void setVariableName(String variableName) { this.variableName = variableName; } @Override public String getTypeName() { return typedValueField.getTypeName(); } public void setTypeName(String typeName) { typedValueField.setS...
public String getByteArrayValueId() { return byteArrayField.getByteArrayId(); } public void setByteArrayValueId(String byteArrayId) { byteArrayField.setByteArrayId(byteArrayId); } @Override public byte[] getByteArrayValue() { return byteArrayField.getByteArrayValue(); } @Override public v...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\history\event\HistoricDecisionOutputInstanceEntity.java
1
请完成以下Java代码
public <T> I_C_Letter createLetter(final T item, final ILetterProducer<T> producer) { DB.saveConstraints(); DB.getConstraints().addAllowedTrxNamePrefix("POSave"); try { final Properties ctx = InterfaceWrapperHelper.getCtx(item); // NOTE: we are working out of trx because we want to produce the letters o...
letter.setRecord_ID(InterfaceWrapperHelper.getId(item)); InterfaceWrapperHelper.save(letter); return letter; } finally { DB.restoreConstraints(); } } @Override public I_AD_BoilerPlate getById(int boilerPlateId) { return loadOutOfTrx(boilerPlateId, I_AD_BoilerPlate.class); } }
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 void setPostingType (String PostingType) { set_Value (COLUMNNAME_PostingType, PostingType); } /** Get PostingType. @return The type of posted amount for the transaction */ public String getPostingType () { return (String)get_Value(COLUMNNAME_PostingType); } /** Set Process Now. @param Proce...
{ set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); } /** Get Process Now. @return Process Now */ public boolean isProcessing () { Object oo = get_Value(COLUMNNAME_Processing); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_A_Asset_Acct.java
1
请完成以下Java代码
public static SubscriptionProgressQueryBuilder term(@NonNull final I_C_Flatrate_Term term) { return builder().term(term); } @NonNull I_C_Flatrate_Term term; Timestamp eventDateNotBefore; Timestamp eventDateNotAfter; @Default int seqNoNotLessThan = 0; @Default int seqNoLessThan = 0; /** ...
* @param ol * @return {@code true} if there is at lease one term that references the given <code>ol</code> via its <code>C_OrderLine_Term_ID</code> column. */ boolean existsTermForOl(I_C_OrderLine ol); /** * Retrieves the terms that are connection to the given <code>olCand</code> via an active * <code>C_Cont...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\subscription\ISubscriptionDAO.java
1
请完成以下Java代码
public static EngineInfo retry(String resourceUrl) { LOGGER.debug("retying initializing of resource {}", resourceUrl); try { return initEventRegistryEngineFromResource(new URL(resourceUrl)); } catch (MalformedURLException e) { throw new FlowableException("invalid url: " +...
eventRegistryEngine.close(); } catch (Exception e) { LOGGER.error("exception while closing {}", (eventRegistryEngineName == null ? "the default event registry engine" : "event registry engine " + eventRegistryEngineName), e); } } ...
repos\flowable-engine-main\modules\flowable-event-registry\src\main\java\org\flowable\eventregistry\impl\EventRegistryEngines.java
1
请完成以下Java代码
public long findUniqueTaskWorkerCount(Date startTime, Date endTime) { Map<String, Object> parameters = new HashMap<>(); parameters.put("startTime", startTime); parameters.put("endTime", endTime); return (Long) getDbEntityManager().selectOne(SELECT_UNIQUE_TASK_WORKER, parameters); } public void del...
@SuppressWarnings("unchecked") public List<String> findTaskMetricsForCleanup(int batchSize, Integer timeToLive, int minuteFrom, int minuteTo) { Map<String, Object> queryParameters = new HashMap<>(); queryParameters.put("currentTimestamp", ClockUtil.getCurrentTime()); queryParameters.put("timeToLive", time...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\MeterLogManager.java
1
请完成以下Java代码
public static HistoryManager getHistoryManager(CommandContext commandContext) { return getProcessEngineConfiguration(commandContext).getHistoryManager(); } public static HistoricDetailEntityManager getHistoricDetailEntityManager() { return getHistoricDetailEntityManager(getCommandContext()); ...
public static FlowableEventDispatcher getEventDispatcher() { return getEventDispatcher(getCommandContext()); } public static FlowableEventDispatcher getEventDispatcher(CommandContext commandContext) { return getProcessEngineConfiguration(commandContext).getEventDispatcher(); } public s...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\util\CommandContextUtil.java
1
请在Spring Boot框架中完成以下Java代码
public ReceiptEntity getReceiptEntity() { return receiptEntity; } public void setReceiptEntity(ReceiptEntity receiptEntity) { this.receiptEntity = receiptEntity; } public LocationEntity getLocationEntity() { return locationEntity; } public void setLocationEntity(Locati...
public void setBuyer(UserEntity buyer) { this.buyer = buyer; } @Override public String toString() { return "OrdersEntity{" + "id='" + id + '\'' + ", buyer=" + buyer + ", company=" + company + ", productOrderList=" + productOrde...
repos\SpringBoot-Dubbo-Docker-Jenkins-master\Gaoxi-Common-Service-Facade\src\main\java\com\gaoxi\entity\order\OrdersEntity.java
2
请在Spring Boot框架中完成以下Java代码
final class PermitAllSupport { private PermitAllSupport() { } static void permitAll(HttpSecurityBuilder<? extends HttpSecurityBuilder<?>> http, String... urls) { for (String url : urls) { if (url != null) { permitAll(http, new ExactUrlRequestMatcher(url)); } } } @SuppressWarnings("unchecked") sta...
public boolean matches(HttpServletRequest request) { String uri = request.getRequestURI(); String query = request.getQueryString(); if (query != null) { uri += "?" + query; } if ("".equals(request.getContextPath())) { return uri.equals(this.processUrl); } return uri.equals(request.getContex...
repos\spring-security-main\config\src\main\java\org\springframework\security\config\annotation\web\configurers\PermitAllSupport.java
2
请完成以下Java代码
public class Node { private String text; private List<Node> children; private int position; public Node(String word, int position) { this.text = word; this.position = position; this.children = new ArrayList<>(); } public String getText() { return text; } ...
public String printTree(String depthIndicator) { String str = ""; String positionStr = position > -1 ? "[" + String.valueOf(position) + "]" : ""; str += depthIndicator + text + positionStr + "\n"; for (int i = 0; i < children.size(); i++) { str += children.get(i) ...
repos\tutorials-master\algorithms-modules\algorithms-searching\src\main\java\com\baeldung\algorithms\suffixtree\Node.java
1
请完成以下Java代码
private static List<Term> segSentence(String text) { String sText = CharTable.convert(text); List<Term> termList = SEGMENT.seg(sText); int offset = 0; for (Term term : termList) { term.offset = offset; term.word = text.substring(offset, offset + term.l...
*/ public static List<List<Term>> seg2sentence(String text) { List<List<Term>> resultList = new LinkedList<List<Term>>(); { for (String sentence : SentencesUtil.toSentenceList(text)) { resultList.add(segment(sentence)); } } ret...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\tokenizer\TraditionalChineseTokenizer.java
1
请完成以下Java代码
public class DynamicAccessDecisionManager implements AccessDecisionManager { @Override public void decide(Authentication authentication, Object object, Collection<ConfigAttribute> configAttributes) throws AccessDeniedException, InsufficientAuthenticationException { // 当接口未被配置资源时直...
} } throw new AccessDeniedException("抱歉,您没有访问权限"); } @Override public boolean supports(ConfigAttribute configAttribute) { return true; } @Override public boolean supports(Class<?> aClass) { return true; } }
repos\mall-master\mall-security\src\main\java\com\macro\mall\security\component\DynamicAccessDecisionManager.java
1
请在Spring Boot框架中完成以下Java代码
public Optional<Instant> getNextImportStartingTimestamp() { if (this.skipNextImportStartingTimestamp || nextImportStartingTimestamp == null) { return Optional.empty(); } return Optional.of(nextImportStartingTimestamp.getTimestamp()); } @NonNull public JsonShippingCost getShippingCostNotNull() { if (...
+ prepareNameSegment.apply(getSalutationDisplayNameById(orderShippingAddress.getSalutationId()), " ") + prepareNameSegment.apply(orderShippingAddress.getTitle(), " ") + prepareNameSegment.apply(orderShippingAddress.getFirstName(), " ") + prepareNameSegment.apply(orderShippingAddress.getLastName(), "")...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\de-metas-camel-shopware6\src\main\java\de\metas\camel\externalsystems\shopware6\order\ImportOrdersRouteContext.java
2
请完成以下Java代码
protected void prepare() { if (I_C_Printing_Queue.Table_Name.equals(getTableName())) { p_C_Printing_Queue_ID = getRecord_ID(); } else { throw new AdempiereException("@NotSupported@ @TableName@: " + getTableName()); } Check.assume(p_C_Printing_Queue_ID > 0, "C_Printing_Queue_ID specified"); } @O...
final UserId adUserToPrintId = Env.getLoggedUserId(ctxToUse); // logged in user final SingletonPrintingQueueSource queue = new SingletonPrintingQueueSource(item, adUserToPrintId); // 04015 : This is a test process. We shall not mark the item as printed queue.setPersistPrintedFlag(false); return ImmutableList...
repos\metasfresh-new_dawn_uat\backend\de.metas.printing\de.metas.printing.base\src\main\java\de\metas\printing\process\C_Print_Job_TestPrintQueueItem.java
1
请完成以下Java代码
public String getFirstName() { return firstName; } public String getLastName() { return lastName; } public int getAge() { return age; } public List<PhoneNumber> getPhoneNumbers() { return phoneNumbers; } public Address getAddress() { return add...
} @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Person person = (Person) o; return age == person.age && Objects.equals(firstName, person.firstName) && Objects.equals(last...
repos\tutorials-master\core-java-modules\core-java-lang-6\src\main\java\com\baeldung\compareobjects\Person.java
1
请在Spring Boot框架中完成以下Java代码
public void init() { log.debug("Registering JVM gauges"); metricRegistry.register(PROP_METRIC_REG_JVM_MEMORY, new MemoryUsageGaugeSet()); metricRegistry.register(PROP_METRIC_REG_JVM_GARBAGE, new GarbageCollectorMetricSet()); metricRegistry.register(PROP_METRIC_REG_JVM_THREADS, new Thread...
jmxReporter.start(); } if (jHipsterProperties.getMetrics().getLogs().isEnabled()) { log.info("Initializing Metrics Log reporting"); Marker metricsMarker = MarkerFactory.getMarker("metrics"); final Slf4jReporter reporter = Slf4jReporter.forRegistry(metricRegistry) ...
repos\tutorials-master\jhipster-modules\jhipster-uaa\gateway\src\main\java\com\baeldung\jhipster\gateway\config\MetricsConfiguration.java
2
请完成以下Java代码
public Set<ProductId> retrieveUsedProductsByInventoryIds(@NonNull final Collection<InventoryId> inventoryIds) { if (inventoryIds.isEmpty()) { return ImmutableSet.of(); } final List<ProductId> productIds = queryBL.createQueryBuilder(I_M_InventoryLine.class) .addOnlyActiveRecordsFilter() .addInArrayF...
public List<I_M_Inventory> list(@NonNull InventoryQuery query) { return toSqlQuery(query).list(); } @Override public Stream<I_M_Inventory> stream(@NonNull InventoryQuery query) { return toSqlQuery(query).stream(); } private IQuery<I_M_Inventory> toSqlQuery(@NonNull InventoryQuery query) { return queryBL...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\inventory\impl\InventoryDAO.java
1
请完成以下Java代码
public void handleRemaining(Exception thrownException, List<ConsumerRecord<?, ?>> records, Consumer<?, ?> consumer, MessageListenerContainer container) { CommonErrorHandler handler = findDelegate(thrownException); if (handler != null) { handler.handleRemaining(thrownException, records, consumer, container); ...
return this.defaultErrorHandler.handleOne(thrownException, record, consumer, container); } } @Nullable private CommonErrorHandler findDelegate(Throwable thrownException) { Throwable cause = findCause(thrownException); if (cause != null) { Class<? extends Throwable> causeClass = cause.getClass(); for (En...
repos\spring-kafka-main\spring-kafka\src\main\java\org\springframework\kafka\listener\CommonDelegatingErrorHandler.java
1
请在Spring Boot框架中完成以下Java代码
public class ViewService { @Resource private MongoTemplate mongoTemplate; /** * 创建视图 * * @return 创建视图结果 */ public Object createView() { // 设置视图名 String newViewName = "usersView"; // 设置获取数据的集合名称 String collectionName = "users"; // 定义视图的管道,可是设置...
/** * 删除视图 * * @return 删除视图结果 */ public Object dropView() { // 设置待删除的视图名称 String viewName = "usersView"; // 检测视图是否存在 if (mongoTemplate.collectionExists(viewName)) { // 删除视图 mongoTemplate.getDb().getCollection(viewName).drop(); r...
repos\springboot-demo-master\mongodb\src\main\java\demo\et\mongodb\service\ViewService.java
2
请完成以下Java代码
public Integer parse(Decision decision, String definitionKey, boolean skipEnforceTtl) { String historyTimeToLiveString = decision.getCamundaHistoryTimeToLiveString(); return parseAndValidate(historyTimeToLiveString, definitionKey, skipEnforceTtl); } /** * Parses the given HistoryTimeToLive String expre...
protected class HTTLParsedResult { protected final boolean systemDefaultConfigWillBeUsed; protected final String value; protected final Integer valueAsInteger; public HTTLParsedResult(String historyTimeToLiveString) { this.systemDefaultConfigWillBeUsed = (historyTimeToLiveString == null); ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\HistoryTimeToLiveParser.java
1
请完成以下Java代码
default URL getClientRegistrationEndpoint() { return getClaimAsURL(OAuth2AuthorizationServerMetadataClaimNames.REGISTRATION_ENDPOINT); } /** * Returns the Proof Key for Code Exchange (PKCE) {@code code_challenge_method} values * supported {@code (code_challenge_methods_supported)}. * @return the {@code code_...
return Boolean.TRUE.equals(getClaimAsBoolean( OAuth2AuthorizationServerMetadataClaimNames.TLS_CLIENT_CERTIFICATE_BOUND_ACCESS_TOKENS)); } /** * Returns the {@link JwsAlgorithms JSON Web Signature (JWS) algorithms} supported for * DPoP Proof JWTs {@code (dpop_signing_alg_values_supported)}. * @return the {@...
repos\spring-security-main\oauth2\oauth2-authorization-server\src\main\java\org\springframework\security\oauth2\server\authorization\OAuth2AuthorizationServerMetadataClaimAccessor.java
1
请完成以下Java代码
public Builder setTooltipIconName(final String tooltipIconName) { this.tooltipIconName = tooltipIconName; return this; } public Builder setPublicField(final boolean publicField) { this.publicField = publicField; return this; } public boolean isPublicField() { return publicField; } pr...
private DeviceDescriptorsList getDevices() { return _devices; } public Builder setSupportZoomInto(final boolean supportZoomInto) { this.supportZoomInto = supportZoomInto; return this; } private boolean isSupportZoomInto() { return supportZoomInto; } public Builder setForbidNewRecordCrea...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\descriptor\DocumentLayoutElementFieldDescriptor.java
1
请完成以下Java代码
public Integer getLockTimeInMillis() { return lockTimeInMillis; } public void setLockTimeInMillis(Integer lockTimeInMillis) { this.lockTimeInMillis = lockTimeInMillis; } public Integer getMaxJobsPerAcquisition() { return maxJobsPerAcquisition; } public void setMaxJobsPerAcquisition(Integer ma...
public void setMaxBackoff(Long maxBackoff) { this.maxBackoff = maxBackoff; } public Integer getBackoffDecreaseThreshold() { return backoffDecreaseThreshold; } public void setBackoffDecreaseThreshold(Integer backoffDecreaseThreshold) { this.backoffDecreaseThreshold = backoffDecreaseThreshold; } ...
repos\camunda-bpm-platform-master\spring-boot-starter\starter\src\main\java\org\camunda\bpm\spring\boot\starter\property\JobExecutionProperty.java
1
请完成以下Java代码
public void setHelp (String Help) { set_Value (COLUMNNAME_Help, Help); } /** Get Comment/Help. @return Comment or Hint */ public String getHelp () { return (String)get_Value(COLUMNNAME_Help); } /** Set Knowledge Category. @param K_Category_ID Knowledge Category */ public void setK_Category_I...
set_Value (COLUMNNAME_Name, Name); } /** Get Name. @return Alphanumeric identifier of the entity */ public String getName () { return (String)get_Value(COLUMNNAME_Name); } /** Get Record ID/ColumnName @return ID/ColumnName pair */ public KeyNamePair getKeyNamePair() { r...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_K_Category.java
1
请在Spring Boot框架中完成以下Java代码
private PrintFormatId getPrintFormatIdOrNull(final ReportContext reportContext) { for (final ProcessInfoParameter param : reportContext.getProcessInfoParameters()) { final String parameterName = param.getParameterName(); if (PARAM_AD_PRINTFORMAT_ID.equals(parameterName)) { return PrintFormatId.ofRepoI...
logger.warn("No development workspace directory configured. Not considering workspace reports directories"); return ImmutableList.of(); } } private ImmutableList<File> getConfiguredReportsDirs() { final String reportsDirs = StringUtils.trimBlankToNull(sysConfigBL.getValue(SYSCONFIG_ReportsDirs)); if (repor...
repos\metasfresh-new_dawn_uat\backend\de.metas.report\metasfresh-report-service\src\main\java\de\metas\report\server\AbstractReportEngine.java
2
请在Spring Boot框架中完成以下Java代码
public class JsonDistributionJobStep { @NonNull DistributionJobStepId id; @NonNull String productName; @NonNull String uom; @NonNull BigDecimal qtyToMove; // // Pick From @NonNull JsonLocatorInfo pickFromLocator; @NonNull JsonHUInfo pickFromHU; @NonNull BigDecimal qtyPicked; // // Drop To @NonNull JsonL...
.productName(line.getProduct().getCaption().translate(adLanguage)) .uom(step.getQtyToMoveTarget().getUOMSymbol()) .qtyToMove(step.getQtyToMoveTarget().toBigDecimal()) // // Pick From .pickFromLocator(JsonLocatorInfo.of(line.getPickFromLocator())) .pickFromHU(JsonHUInfo.of(step.getPickFromHU().ge...
repos\metasfresh-new_dawn_uat\backend\de.metas.distribution.rest-api\src\main\java\de\metas\distribution\mobileui\rest_api\json\JsonDistributionJobStep.java
2
请完成以下Java代码
final class JarUri { private static final String JAR_SCHEME = "jar:"; private static final String JAR_EXTENSION = ".jar"; private final String uri; private final String description; private JarUri(String uri) { this.uri = uri; this.description = extractDescription(uri); } private String extractDescript...
return this.description; } String getDescription(String existing) { return existing + " from " + this.description; } @Override public String toString() { return this.uri; } static @Nullable JarUri from(URI uri) { return from(uri.toString()); } static @Nullable JarUri from(String uri) { if (uri.star...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\origin\JarUri.java
1
请完成以下Java代码
public String getDescription () { return (String)get_Value(COLUMNNAME_Description); } /** ModerationType AD_Reference_ID=395 */ public static final int MODERATIONTYPE_AD_Reference_ID=395; /** Not moderated = N */ public static final String MODERATIONTYPE_NotModerated = "N"; /** Before Publishing = B */ publ...
*/ 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 Ke...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_CM_ChatType.java
1
请完成以下Java代码
public class PPOrderCandidateAdvisedEvent extends AbstractPPOrderCandidateEvent { public static PPOrderCandidateAdvisedEvent cast(@NonNull final AbstractPPOrderCandidateEvent ppOrderCandidateEvent) { return (PPOrderCandidateAdvisedEvent)ppOrderCandidateEvent; } public static final String TYPE = "PPOrderCandidate...
{ final SupplyRequiredDescriptor supplyRequiredDescriptor = getSupplyRequiredDescriptor(); Check.errorIf(supplyRequiredDescriptor == null, "The given ppOrderCandidateAdvisedEvent has no supplyRequiredDescriptor"); final PPOrderCandidate ppOrderCandidate = getPpOrderCandidate(); Check.errorIf(ppOrderCandidate....
repos\metasfresh-new_dawn_uat\backend\de.metas.material\event\src\main\java\de\metas\material\event\pporder\PPOrderCandidateAdvisedEvent.java
1
请完成以下Java代码
public Object execute(CommandContext commandContext) { ensureNotNull("decisionDefinitionId", decisionDefinitionId); DecisionDefinitionEntity decisionDefinition = commandContext .getDecisionDefinitionManager() .findDecisionDefinitionById(decisionDefinitionId); ensureNotNull("No decision defi...
propertyChanges.add(new PropertyChange("async", null, false)); commandContext.getOperationLogManager() .logDecisionInstanceOperation(UserOperationLogEntry.OPERATION_TYPE_DELETE_HISTORY, null, propertyChanges); } protected long getDecisionInstanceCount(CommandContext commandContext) {...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\dmn\cmd\DeleteHistoricDecisionInstanceByDefinitionIdCmd.java
1
请在Spring Boot框架中完成以下Java代码
public void updateAllTaskRelatedEntityCountFlags(boolean newValue) { getDbSqlSession().directUpdate("updateTaskRelatedEntityCountEnabled", newValue); } @Override public void deleteTasksByExecutionId(String executionId) { DbSqlSession dbSqlSession = getDbSqlSession(); if (isEntit...
protected void setSafeInValueLists(TaskQueryImpl taskQuery) { if (taskQuery.getCandidateGroups() != null) { taskQuery.setSafeCandidateGroups(createSafeInValuesList(taskQuery.getCandidateGroups())); } if (taskQuery.getInvolvedGroups() != null) { taskQuery.setSafeI...
repos\flowable-engine-main\modules\flowable-task-service\src\main\java\org\flowable\task\service\impl\persistence\entity\data\impl\MybatisTaskDataManager.java
2
请完成以下Java代码
public void setW_CounterCount_ID (int W_CounterCount_ID) { if (W_CounterCount_ID < 1) set_ValueNoCheck (COLUMNNAME_W_CounterCount_ID, null); else set_ValueNoCheck (COLUMNNAME_W_CounterCount_ID, Integer.valueOf(W_CounterCount_ID)); } /** Get Counter Count. @return Web Counter Count Management */ pu...
{ if (W_Counter_ID < 1) set_ValueNoCheck (COLUMNNAME_W_Counter_ID, null); else set_ValueNoCheck (COLUMNNAME_W_Counter_ID, Integer.valueOf(W_Counter_ID)); } /** Get Web Counter. @return Individual Count hit */ public int getW_Counter_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_W_Counter_I...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_W_Counter.java
1
请完成以下Java代码
protected final ConfigurationPropertyName getPrefix() { return this.prefix; } @Override public @Nullable ConfigurationProperty getConfigurationProperty(ConfigurationPropertyName name) { ConfigurationProperty configurationProperty = this.source.getConfigurationProperty(getPrefixedName(name)); if (configuration...
} @Override public ConfigurationPropertyState containsDescendantOf(ConfigurationPropertyName name) { return this.source.containsDescendantOf(getPrefixedName(name)); } @Override public @Nullable Object getUnderlyingSource() { return this.source.getUnderlyingSource(); } protected ConfigurationPropertySource...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\context\properties\source\PrefixedConfigurationPropertySource.java
1
请完成以下Java代码
public String getOutputLabel() { return outputLabelAttribute.getValue(this); } public void setOutputLabel(String outputLabel) { outputLabelAttribute.setValue(this, outputLabel); } public Collection<Input> getInputs() { return inputCollection.get(this); } public Collection<Output> getOutputs()...
preferredOrientationAttribute = typeBuilder.namedEnumAttribute(DMN_ATTRIBUTE_PREFERRED_ORIENTATION, DecisionTableOrientation.class) .defaultValue(DecisionTableOrientation.Rule_as_Row) .build(); outputLabelAttribute = typeBuilder.stringAttribute(DMN_ATTRIBUTE_OUTPUT_LABEL) .build(); SequenceB...
repos\camunda-bpm-platform-master\model-api\dmn-model\src\main\java\org\camunda\bpm\model\dmn\impl\instance\DecisionTableImpl.java
1
请完成以下Java代码
public boolean isMultiInstance() { Boolean isMultiInstance = (Boolean) getProperty(BpmnParse.PROPERTYNAME_IS_MULTI_INSTANCE); return Boolean.TRUE.equals(isMultiInstance); } public boolean isTriggeredByEvent() { Boolean isTriggeredByEvent = getProperties().get(BpmnProperties.TRIGGERED_BY_EVENT); ret...
} /** * Delegate interface for the asyncBefore property update. */ public interface AsyncBeforeUpdate { /** * Method which is called if the asyncBefore property should be updated. * * @param asyncBefore the new value for the asyncBefore flag * @param exclusive the exclusive flag ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\pvm\process\ActivityImpl.java
1