instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
public String getCamundaCaseVersion() { return camundaCaseVersionAttribute.getValue(this); } public void setCamundaCaseVersion(String camundaCaseVersion) { camundaCaseVersionAttribute.setValue(this, camundaCaseVersion); } public String getCamundaCaseTenantId() { return camundaCaseTenantIdAttribute...
camundaCaseBindingAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_CASE_BINDING) .namespace(CAMUNDA_NS) .build(); camundaCaseVersionAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_CASE_VERSION) .namespace(CAMUNDA_NS) .build(); camundaCaseTenantIdAttribute = typeBuild...
repos\camunda-bpm-platform-master\model-api\cmmn-model\src\main\java\org\camunda\bpm\model\cmmn\impl\instance\CaseTaskImpl.java
1
请完成以下Java代码
public int getM_Product_ID() { return get_ValueAsInt(COLUMNNAME_M_Product_ID); } @Override public void setName (final @Nullable java.lang.String Name) { set_ValueNoCheck (COLUMNNAME_Name, Name); } @Override public java.lang.String getName() { return get_ValueAsString(COLUMNNAME_Name); } @Override ...
return get_ValueAsString(COLUMNNAME_UPC); } @Override public void setValidFrom (final java.sql.Timestamp ValidFrom) { set_Value (COLUMNNAME_ValidFrom, ValidFrom); } @Override public java.sql.Timestamp getValidFrom() { return get_ValueAsTimestamp(COLUMNNAME_ValidFrom); } @Override public void setValid...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java-gen\de\metas\handlingunits\model\X_M_HU_PI_Item_Product.java
1
请在Spring Boot框架中完成以下Java代码
protected JakartaTransactionProcessEngineConfiguration createProcessEngineConfiguration() { String configurationClassName = ManagedJtaProcessEngineConfiguration.class.getName(); if(processEngineMetadata.getConfiguration() != null && !processEngineMetadata.getConfiguration().isEmpty()) { configurationClas...
ContextNames.BindInfo datasourceBindInfo = ContextNames.bindInfoFor(processEngineConfiguration.getDatasourceJndiName()); transactionManagerSupplier = serviceBuilder.requires(ServiceName.JBOSS.append("txn").append("TransactionManager")); datasourceBinderServiceSupplier = serviceBuilder.requires(datasourceBindInf...
repos\camunda-bpm-platform-master\distro\wildfly\subsystem\src\main\java\org\camunda\bpm\container\impl\jboss\service\MscManagedProcessEngineController.java
2
请在Spring Boot框架中完成以下Java代码
public IQueryBL queryBL() { return Services.get(IQueryBL.class); } @Bean public ImportQueue<ImportTimeBookingInfo> timeBookingImportQueue() { return new ImportQueue<>(TIME_BOOKING_QUEUE_CAPACITY, IMPORT_TIME_BOOKINGS_LOG_MESSAGE_PREFIX); } @Bean public ImportQueue<ImportIssueInfo> importIssuesQueue() { ...
} @Bean public ObjectMapper objectMapper() { return JsonObjectMapperHolder.sharedJsonObjectMapper(); } @Bean public IMsgBL msgBL() { return Services.get(IMsgBL.class); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.serviceprovider\src\main\java\de\metas\serviceprovider\configuration\ApplicationConfiguration.java
2
请在Spring Boot框架中完成以下Java代码
public CategoryEntity getSubCategEntity() { return subCategEntity; } public void setSubCategEntity(CategoryEntity subCategEntity) { this.subCategEntity = subCategEntity; } public BrandEntity getBrandEntity() { return brandEntity; } public void setBrandEntity(BrandEntit...
public void setCompanyEntity(UserEntity companyEntity) { this.companyEntity = companyEntity; } public int getSales() { return sales; } public void setSales(int sales) { this.sales = sales; } @Override public String toString() { return "ProductEntity{" + ...
repos\SpringBoot-Dubbo-Docker-Jenkins-master\Gaoxi-Common-Service-Facade\src\main\java\com\gaoxi\entity\product\ProductEntity.java
2
请在Spring Boot框架中完成以下Java代码
protected CommandContext getCommandContext() { return Context.getCommandContext(); } protected <T> T getSession(Class<T> sessionClass) { return getCommandContext().getSession(sessionClass); } // Engine scoped protected VariableServiceConfiguration getVariableServiceConfigurati...
return getVariableServiceConfiguration().getClock(); } protected FlowableEventDispatcher getEventDispatcher() { return getVariableServiceConfiguration().getEventDispatcher(); } protected VariableInstanceEntityManager getVariableInstanceEntityManager() { return getVariableServiceConfigu...
repos\flowable-engine-main\modules\flowable-variable-service\src\main\java\org\flowable\variable\service\impl\persistence\AbstractManager.java
2
请完成以下Java代码
public boolean isVerfuegbarkeitBulkVereinbart() { return verfuegbarkeitBulkVereinbart; } /** * Sets the value of the verfuegbarkeitBulkVereinbart property. * */ public void setVerfuegbarkeitBulkVereinbart(boolean value) { this.verfuegbarkeitBulkVereinbart = value; } ...
sondertag = new ArrayList<TypSondertag>(); } return this.sondertag; } /** * Gets the value of the automatischerAbruf property. * */ public boolean isAutomatischerAbruf() { return automatischerAbruf; } /** * Sets the value of the automatischerAbruf prope...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma.msv3.schema.v2\src\main\java-xjc\de\metas\vertical\pharma\vendor\gateway\msv3\schema\v2\VertragsdatenAntwort.java
1
请完成以下Java代码
public boolean supports(ConfigAttribute attribute) { for (AccessDecisionVoter<?> voter : this.decisionVoters) { if (voter.supports(attribute)) { return true; } } return false; } /** * Iterates through all <code>AccessDecisionVoter</code>s and ensures each can support * the presented class. * <p...
for (AccessDecisionVoter<?> voter : this.decisionVoters) { if (!voter.supports(clazz)) { return false; } } return true; } @Override public String toString() { return this.getClass().getSimpleName() + " [DecisionVoters=" + this.decisionVoters + ", AllowIfAllAbstainDecisions=" + this.allowIfAllAbs...
repos\spring-security-main\access\src\main\java\org\springframework\security\access\vote\AbstractAccessDecisionManager.java
1
请完成以下Java代码
public abstract class AbstractJasyptMojo extends AbstractMojo { /** * The encrypted property prefix */ @Parameter(property = "jasypt.plugin.encrypt.prefix", defaultValue = "ENC(") private String encryptPrefix = "ENC("; /** * The encrypted property suffix */ @Parameter(property ...
@Override public void execute() throws MojoExecutionException { Map<String, Object> defaultProperties = new HashMap<>(); defaultProperties.put("spring.config.location", "optional:file:./src/main/resources/"); ConfigurableApplicationContext context = new SpringApplicationBuilder() ...
repos\jasypt-spring-boot-master\jasypt-maven-plugin\src\main\java\com\ulisesbocchio\jasyptmavenplugin\mojo\AbstractJasyptMojo.java
1
请完成以下Java代码
public int getDepreciationType () { Integer ii = (Integer)get_Value(COLUMNNAME_DepreciationType); if (ii == null) return 0; return ii.intValue(); } /** PostingType AD_Reference_ID=125 */ public static final int POSTINGTYPE_AD_Reference_ID=125; /** Actual = A */ public static final String POSTINGTYPE_A...
} /** Set Usable Life - Months. @param UseLifeMonths Months of the usable life of the asset */ public void setUseLifeMonths (int UseLifeMonths) { set_Value (COLUMNNAME_UseLifeMonths, Integer.valueOf(UseLifeMonths)); } /** Get Usable Life - Months. @return Months of the usable life of the asset */ ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_A_Asset_Group_Acct.java
1
请完成以下Java代码
public void setEntityType (String EntityType) { set_Value (COLUMNNAME_EntityType, EntityType); } /** Get Entitaets-Art. @return Dictionary Entity Type; Determines ownership and synchronization */ public String getEntityType () { return (String)get_Value(COLUMNNAME_EntityType); } /** Set Name. @par...
{ 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() { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java-gen\org\adempiere\model\X_AD_TriggerUI.java
1
请完成以下Java代码
public TextAnnotation newInstance(ModelTypeInstanceContext context) { return new TextAnnotationImpl(context); } }); textFormatAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_TEXT_FORMAT) .defaultValue("text/plain") .build(); SequenceBuilder sequenceBuilder = typeBuil...
super(context); } public String getTextFormat() { return textFormatAttribute.getValue(this); } public void setTextFormat(String textFormat) { textFormatAttribute.setValue(this, textFormat); } public Text getText() { return textChild.getChild(this); } public void setText(Text text) { ...
repos\camunda-bpm-platform-master\model-api\bpmn-model\src\main\java\org\camunda\bpm\model\bpmn\impl\instance\TextAnnotationImpl.java
1
请完成以下Java代码
Map<String, Object> getJson() { Map<String, Object> result = new HashMap<>(); result.put("firstname", "Dave"); result.put("lastname", "Matthews"); return result; } /** * Returns the payload of {@link #getJson()} wrapped into another element to simulate a change in the representation. * * @return */...
/** * The projection interface using XPath and JSON Path expression to selectively pick elements from the payload. * * @author Oliver Gierke */ @ProjectedPayload public interface UserPayload { @XBRead("//firstname") @JsonPath("$..firstname") String getFirstname(); @XBRead("//lastname") @JsonPath("...
repos\spring-data-examples-main\web\projection\src\main\java\example\users\UserController.java
1
请完成以下Java代码
public class Decision extends DRGElement { protected String question; protected String allowedAnswers; protected InformationItem variable; protected List<InformationRequirement> requiredDecisions = new ArrayList<>(); protected List<InformationRequirement> requiredInputs = new ArrayList<>(); pro...
} public void setRequiredInputs(List<InformationRequirement> requiredInputs) { this.requiredInputs = requiredInputs; } public void addRequiredInput(InformationRequirement requiredInput) { this.requiredInputs.add(requiredInput); } public List<AuthorityRequirement> getAuthorityRequirem...
repos\flowable-engine-main\modules\flowable-dmn-model\src\main\java\org\flowable\dmn\model\Decision.java
1
请完成以下Java代码
public boolean shouldFilter() { String requestUri = RequestContext.getCurrentContext().getRequest().getRequestURI(); String contextPath = RequestContext.getCurrentContext().getRequest().getContextPath(); // If the request Uri does not start with the path of the authorized endpoints, we block th...
List<String> authorizedEndpoints = authorizedMicroservicesEndpoints.get(serviceName); // Go over the authorized endpoints to control that the request URI matches it for (String endpoint : authorizedEndpoints) { // We do a substring to remove the "**/" at the end of the route URL...
repos\tutorials-master\jhipster-modules\jhipster-uaa\gateway\src\main\java\com\baeldung\jhipster\gateway\gateway\accesscontrol\AccessControlFilter.java
1
请完成以下Java代码
protected org.compiere.model.POInfo initPO(final Properties ctx) { return org.compiere.model.POInfo.getPOInfo(Table_Name); } @Override public org.compiere.model.I_API_Request_Audit getAPI_Request_Audit() { return get_ValueAsPO(COLUMNNAME_API_Request_Audit_ID, org.compiere.model.I_API_Request_Audit.class); } ...
public void setBody (final @Nullable java.lang.String Body) { set_Value (COLUMNNAME_Body, Body); } @Override public java.lang.String getBody() { return get_ValueAsString(COLUMNNAME_Body); } @Override public void setHttpCode (final @Nullable java.lang.String HttpCode) { set_Value (COLUMNNAME_HttpCode, ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_API_Response_Audit.java
1
请完成以下Java代码
public DecisionExecutionAuditContainer executeWithAuditTrail() { return decisionService.executeWithAuditTrail(this); } @Override public DecisionExecutionAuditContainer executeDecisionWithAuditTrail() { return decisionService.executeDecisionWithAuditTrail(this); } @Override publ...
return tenantId; } public boolean isFallbackToDefaultTenant() { return this.fallbackToDefaultTenant; } public Map<String, Object> getVariables() { return variables; } @Override public ExecuteDecisionContext buildExecuteDecisionContext() { ExecuteDecisionContext exe...
repos\flowable-engine-main\modules\flowable-dmn-engine\src\main\java\org\flowable\dmn\engine\impl\ExecuteDecisionBuilderImpl.java
1
请完成以下Java代码
public int available() throws IOException { return in().available(); } @Override public boolean markSupported() { try { return in().markSupported(); } catch (IOException ex) { return false; } } @Override public synchronized void mark(int readLimit) { try { in().mark(readLimit); } catch ...
} @Override public void close() throws IOException { InputStream in = this.in; if (in != null) { synchronized (this) { in = this.in; if (in != null) { in.close(); } } } } protected abstract InputStream getDelegateInputStream() throws IOException; }
repos\spring-boot-4.0.1\loader\spring-boot-loader\src\main\java\org\springframework\boot\loader\net\protocol\jar\LazyDelegatingInputStream.java
1
请完成以下Java代码
public class GroupsClaimMapper { private final String authoritiesPrefix; private final String groupsClaim; private final Map<String, List<String>> groupToAuthorities; public GroupsClaimMapper(String authoritiesPrefix, String groupsClaim, Map<String, List<String>> groupToAuthorities) { this.au...
List<String> authNames = groupToAuthorities.get(g); if ( authNames == null ) { continue; } List<SimpleGrantedAuthority> mapped = authNames.stream() .map( s -> authoritiesPrefix + s) .map( SimpleGrantedAuthority::new) ...
repos\tutorials-master\spring-security-modules\spring-security-azuread\src\main\java\com\baeldung\security\azuread\support\GroupsClaimMapper.java
1
请完成以下Java代码
public class X_M_Package_HU extends org.compiere.model.PO implements I_M_Package_HU, org.compiere.model.I_Persistent { private static final long serialVersionUID = 576149678L; /** Standard Constructor */ public X_M_Package_HU (final Properties ctx, final int M_Package_HU_ID, @Nullable final String trxName) ...
{ set_ValueFromPO(COLUMNNAME_M_Package_ID, org.compiere.model.I_M_Package.class, M_Package); } @Override public void setM_Package_ID (final int M_Package_ID) { if (M_Package_ID < 1) set_ValueNoCheck (COLUMNNAME_M_Package_ID, null); else set_ValueNoCheck (COLUMNNAME_M_Package_ID, M_Package_ID); } @...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java-gen\de\metas\handlingunits\model\X_M_Package_HU.java
1
请完成以下Java代码
public static EngineInfo retry(String resourceUrl) { LOGGER.debug("retying initializing of resource {}", resourceUrl); try { return initDmnEngineFromResource(new URL(resourceUrl)); } catch (MalformedURLException e) { throw new FlowableException("invalid url: " + resourceU...
dmnEngineInfosByName.clear(); dmnEngineInfosByResourceUrl.clear(); dmnEngineInfos.clear(); setInitialized(false); } } public static boolean isInitialized() { return isInitialized; } public static void setInitialized(boolean isInitialized) { ...
repos\flowable-engine-main\modules\flowable-dmn-engine\src\main\java\org\flowable\dmn\engine\DmnEngines.java
1
请完成以下Java代码
public void requestUpdateFromServerPeer() { msv3ServerPeerService.requestAllUpdates(); } @PutMapping("/logLevel") public void setLoggerLevel(@RequestBody final String logLevelStr) { final Level level = toSLF4JLevel(logLevelStr); getSLF4JRootLogger().setLevel(level); } @GetMapping("/logLevel") public Str...
private ch.qos.logback.classic.Logger getSLF4JRootLogger() { return (ch.qos.logback.classic.Logger)ROOT_LOGGER; } private static Level toSLF4JLevel(final String logLevelStr) { if (logLevelStr == null) { return null; } return Level.toLevel(logLevelStr.trim()); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma.msv3.server\src\main\java\de\metas\vertical\pharma\msv3\server\MSV3ServerRestEndpoint.java
1
请在Spring Boot框架中完成以下Java代码
public EthGetTransactionCount getTransactionCount() { EthGetTransactionCount result = new EthGetTransactionCount(); try { result = this.web3j.ethGetTransactionCount(DEFAULT_ADDRESS, DefaultBlockParameter.valueOf("latest")).sendAsync().get(); } catch (Exception ex) { Syst...
return contractAddress; } @Async public String sendTx() { String transactionHash = ""; try { List inputParams = new ArrayList(); List outputParams = new ArrayList(); Function function = new Function("fuctionName", inputParams, outputParams); ...
repos\tutorials-master\ethereum\src\main\java\com\baeldung\web3j\services\Web3Service.java
2
请完成以下Java代码
public static RemoteToLocalSyncResult error(@NonNull final DataRecord datarecord, String errorMessage) { return RemoteToLocalSyncResult.builder() .synchedDataRecord(datarecord) .remoteToLocalStatus(RemoteToLocalStatus.ERROR) .errorMessage(errorMessage) .build(); } public enum RemoteToLocalStatus ...
} RemoteToLocalStatus remoteToLocalStatus; String errorMessage; DataRecord synchedDataRecord; @Builder private RemoteToLocalSyncResult( @NonNull final DataRecord synchedDataRecord, @Nullable final RemoteToLocalStatus remoteToLocalStatus, @Nullable final String errorMessage) { this.synchedDataRecord...
repos\metasfresh-new_dawn_uat\backend\de.metas.marketing\base\src\main\java\de\metas\marketing\base\model\RemoteToLocalSyncResult.java
1
请完成以下Java代码
private static ShipmentCandidateRowUserChangeRequest toUserChangeRequest(@NonNull final List<JSONDocumentChangedEvent> fieldChangeRequests) { Check.assumeNotEmpty(fieldChangeRequests, "fieldChangeRequests is not empty"); final ShipmentCandidateRowUserChangeRequestBuilder builder = ShipmentCandidateRowUserChangeRe...
throw new EntityNotFoundException(rowId.toJson()); } return mapper.apply(oldRow); }); } Optional<ShipmentScheduleUserChangeRequestsList> createShipmentScheduleUserChangeRequestsList() { final ImmutableList<ShipmentScheduleUserChangeRequest> userChanges = rowsById.values() .stream() .map(row -> ro...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\shipment_candidates_editor\ShipmentCandidateRows.java
1
请在Spring Boot框架中完成以下Java代码
private void prepareContext(@NonNull final Exchange exchange) { final JsonExternalSystemRequest request = exchange.getIn().getBody(JsonExternalSystemRequest.class); final PrintingClientContext context = PrintingClientContext.builder() .printingQueueId(request.getParameters().get(ExternalSystemConstants.PARAM_P...
} final JsonPrintingDataResponse request = (JsonPrintingDataResponse) printingDataCandidate; final PrintingClientContext context = exchange.getProperty(PrintingClientConstants.PRINTING_CLIENT_CONTEXT, PrintingClientContext.class); try { printingClientPDFFileStorer.storeInFileSystem(request, context.getTar...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\de-metas-camel-printingclient\src\main\java\de\metas\camel\externalsystems\PrintingClientCamelRoute.java
2
请完成以下Java代码
public void deleteDocTypeAccess(@NonNull final I_C_DocType docTypeRecord) { Services.get(IQueryBL.class) .createQueryBuilder(I_AD_Document_Action_Access.class) .addEqualsFilter(I_AD_Document_Action_Access.COLUMN_C_DocType_ID, docTypeRecord.getC_DocType_ID()) .create() .delete(); } @ModelChange( ...
throw new AdempiereException(MSG_INACTIVE_INVOICING_POOL) .markAsUserValidationError() .appendParametersToMessage() .setParameter("DocTypeInvoicingPool.Name", docTypeInvoicingPool.getName()) .setParameter("DocTypeId", docType.getC_DocType_ID()); } if (docTypeInvoicingPool...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\document\interceptor\C_DocType.java
1
请完成以下Java代码
public PriceAndTax calculatePriceAndTax(@NonNull final I_C_Invoice_Candidate ic) { final IInvoiceCandidateHandler handler = createInvoiceCandidateHandler(ic); return handler.calculatePriceAndTax(ic); } @Override public void setBPartnerData(@NonNull final I_C_Invoice_Candidate ic) { final IInvoiceCandidateHa...
final IInvoiceCandidateHandler handler = createInvoiceCandidateHandler(ic); handler.setShipmentSchedule(ic); final ShipmentScheduleId shipmentScheduleId = ShipmentScheduleId.ofRepoIdOrNull(ic.getM_ShipmentSchedule_ID()); if (shipmentScheduleId == null) { return; } final StockQtyAndUOMQty qtysPicked = ...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\invoicecandidate\api\impl\InvoiceCandidateHandlerBL.java
1
请完成以下Java代码
public static InstanceExchangeFilterFunction handleCookies(final PerInstanceCookieStore store) { return (instance, request, next) -> { // we need an absolute URL to be able to deal with cookies if (request.url().isAbsolute()) { return next.exchange(enrichRequestWithStoredCookies(instance.getId(), request, s...
return ClientRequest.from(request).cookies((cm) -> cm.addAll(storedCookies)).build(); } private static ClientResponse storeCookiesFromResponse(final InstanceId instId, final ClientRequest request, final ClientResponse response, final PerInstanceCookieStore store) { final HttpHeaders headers = response.headers()...
repos\spring-boot-admin-master\spring-boot-admin-server\src\main\java\de\codecentric\boot\admin\server\web\client\InstanceExchangeFilterFunctions.java
1
请完成以下Java代码
private static Map<String, Object> getConfiguration(String issuer, RestOperations rest, UriComponents... uris) { String errorMessage = "Unable to resolve the Configuration with the provided Issuer of " + "\"" + issuer + "\""; for (UriComponents uri : uris) { try { RequestEntity<Void> request = RequestEntity....
// @formatter:on } static UriComponents oidcRfc8414(String issuer) { UriComponents uri = UriComponentsBuilder.fromUriString(issuer).build(); // @formatter:off return UriComponentsBuilder.newInstance().uriComponents(uri) .replacePath(OIDC_METADATA_PATH + uri.getPath()) .build(); // @formatter:on } ...
repos\spring-security-main\oauth2\oauth2-jose\src\main\java\org\springframework\security\oauth2\jwt\JwtDecoderProviderConfigurationUtils.java
1
请在Spring Boot框架中完成以下Java代码
public String getPRICETYPE() { return pricetype; } /** * Sets the value of the pricetype property. * * @param value * allowed object is * {@link String } * */ public void setPRICETYPE(String value) { this.pricetype = value; } /** ...
* {@link String } * */ public String getPRICEMEASUREUNIT() { return pricemeasureunit; } /** * Sets the value of the pricemeasureunit property. * * @param value * allowed object is * {@link String } * */ public void setPRICEMEAS...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_stepcom_desadv\de\metas\edi\esb\jaxb\stepcom\desadv\DPRIC1.java
2
请完成以下Java代码
public boolean isDocumentTable(final String tableName) { final Class<?> clazz = TableModelClassLoader.instance.getClass(tableName); if (clazz == null) { return false; } if (!IDocument.class.isAssignableFrom(clazz)) { return false; } return true; } @Override public int getC_DocType_ID(final ...
return null; } String value = null; if (poInfo.hasColumnName(columnName)) { final String sql = "SELECT " + columnName + " FROM " + poInfo.getTableName() + " WHERE " + keyColumn + "=?"; value = DB.getSQLValueStringEx(ITrx.TRXNAME_None, sql, recordId); } return value; } @Override protected Object...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\document\engine\impl\DocumentBL.java
1
请完成以下Java代码
public class OAuth2AuthorizationCodeAuthenticationToken extends OAuth2AuthorizationGrantAuthenticationToken { private final String code; private final String redirectUri; /** * Constructs an {@code OAuth2AuthorizationCodeAuthenticationToken} using the provided * parameters. * @param code the authorization c...
* @return the authorization code */ public String getCode() { return this.code; } /** * Returns the redirect uri. * @return the redirect uri */ @Nullable public String getRedirectUri() { return this.redirectUri; } }
repos\spring-security-main\oauth2\oauth2-authorization-server\src\main\java\org\springframework\security\oauth2\server\authorization\authentication\OAuth2AuthorizationCodeAuthenticationToken.java
1
请完成以下Java代码
public class Employee { private String name; private int salary; private String department; private String sex; public Employee(String name, int salary, String department, String sex) { this.name = name; this.salary = salary; this.department = department; this.sex = ...
public void setSalary(int salary) { this.salary = salary; } public String getDepartment() { return department; } public void setDepartment(String department) { this.department = department; } @Override public String toString() { return "Employee{" + "name='...
repos\tutorials-master\core-java-modules\core-java-9-streams\src\main\java\com\baledung\streams\entity\Employee.java
1
请完成以下Java代码
public void log(@NonNull final GOClientLogEvent event) { try { createLogRecord(event); } catch (final Exception ex) { logger.warn("Failed creating GO log record: {}", event, ex); } // Also send it to SLF4J logger SLF4JGOClientLogger.instance.log(event); } private void createLogRecord(@NonNull...
{ logRecord.setGO_DeliveryOrder_ID(event.getDeliveryOrderRepoId()); } logRecord.setRequestMessage(event.getRequestAsString()); if (event.getResponseException() != null) { logRecord.setIsError(true); final AdIssueId issueId = Services.get(IErrorManager.class).createIssue(event.getResponseException())...
repos\metasfresh-new_dawn_uat\backend\de.metas.shipper.gateway.go\src\main\java\de\metas\shipper\gateway\go\DatabaseGOClientLogger.java
1
请完成以下Java代码
public SuspendedJobEntityManager getSuspendedJobEntityManager() { return processEngineConfiguration.getSuspendedJobEntityManager(); } public DeadLetterJobEntityManager getDeadLetterJobEntityManager() { return processEngineConfiguration.getDeadLetterJobEntityManager(); } public Attachme...
} public FailedJobCommandFactory getFailedJobCommandFactory() { return failedJobCommandFactory; } public ProcessEngineConfigurationImpl getProcessEngineConfiguration() { return processEngineConfiguration; } public ActivitiEventDispatcher getEventDispatcher() { return proce...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\interceptor\CommandContext.java
1
请完成以下Java代码
public void setOldValue (final java.lang.String OldValue) { set_Value (COLUMNNAME_OldValue, OldValue); } @Override public java.lang.String getOldValue() { return get_ValueAsString(COLUMNNAME_OldValue); } @Override public void setRecord_ID (final int Record_ID) { if (Record_ID < 0) set_Value (COLUM...
public static final String WFSTATE_NotStarted = "ON"; /** Running = OR */ public static final String WFSTATE_Running = "OR"; /** Suspended = OS */ public static final String WFSTATE_Suspended = "OS"; /** Completed = CC */ public static final String WFSTATE_Completed = "CC"; /** Aborted = CA */ public static fin...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_WF_EventAudit.java
1
请在Spring Boot框架中完成以下Java代码
public DeploymentBuilder activateProcessDefinitionsOn(Date date) { this.processDefinitionsActivationDate = date; return this; } @Override public Deployment deploy() { return repositoryService.deploy(this); } // getters and setters ///////////////////////////////////////////...
} public boolean isBpmn20XsdValidationEnabled() { return isBpmn20XsdValidationEnabled; } public boolean isDuplicateFilterEnabled() { return isDuplicateFilterEnabled; } public Date getProcessDefinitionsActivationDate() { return processDefinitionsActivationDate; } }
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\repository\DeploymentBuilderImpl.java
2
请完成以下Java代码
public boolean retainAll(Collection<?> collection) { throw new UnsupportedOperationException(); } @Override public boolean contains(Object object) { for (Object element : internal) { if (object.equals(element)) { return true; } } retur...
public List<E> subList(int fromIndex, int toIndex) { Object[] temp = new Object[toIndex - fromIndex]; System.arraycopy(internal, fromIndex, temp, 0, temp.length); return (List<E>) Arrays.asList(temp); } @Override public Object[] toArray() { return Arrays.copyOf(internal, int...
repos\tutorials-master\core-java-modules\core-java-collections-list-7\src\main\java\com\baeldung\list\CustomList.java
1
请完成以下Java代码
public Set<DocumentId> getChangedOrRemovedRowIds() { return Sets.union(getChangedRowIds(), getRemovedRowIds()); } // // // public static class NotRecordingAddRemoveChangedRowIdsCollector extends AddRemoveChangedRowIdsCollector { private NotRecordingAddRemoveChangedRowIdsCollector() {} @Override public...
final HashSet<DocumentId> addedRowIds = this.addedRowIds; return addedRowIds != null ? addedRowIds : ImmutableSet.of(); } @Override public boolean hasAddedRows() { final HashSet<DocumentId> addedRowIds = this.addedRowIds; return addedRowIds != null && !addedRowIds.isEmpty(); } @Override public ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\view\AddRemoveChangedRowIdsCollector.java
1
请完成以下Java代码
public java.lang.String getDescription () { return (java.lang.String)get_Value(COLUMNNAME_Description); } /** Set Name. @param Name Alphanumeric identifier of the entity */ @Override public void setName (java.lang.String Name) { set_Value (COLUMNNAME_Name, Name); } /** Get Name. @return Alphanu...
return (java.lang.String)get_Value(COLUMNNAME_Name); } /** Set Number Grouping Separator. @param NumberGroupingSeparator Number Grouping Separator */ @Override public void setNumberGroupingSeparator (java.lang.String NumberGroupingSeparator) { set_Value (COLUMNNAME_NumberGroupingSeparator, NumberGroupingSep...
repos\metasfresh-new_dawn_uat\backend\de.metas.datev\src\main\java-gen\de\metas\datev\model\X_DATEV_ExportFormat.java
1
请完成以下Java代码
public Builder addAdditionalRelatedProcessDescriptors(@NonNull final List<RelatedProcessDescriptor> relatedProcessDescriptors) { additionalRelatedProcessDescriptors.addAll(relatedProcessDescriptors); return this; } public Builder setParameter(@NonNull final String name, @Nullable final Object value) { ...
public static WrappedDocumentFilterList ofJSONFilters(final List<JSONDocumentFilter> jsonFilters) { if (jsonFilters == null || jsonFilters.isEmpty()) { return EMPTY; } final ImmutableList<JSONDocumentFilter> jsonFiltersEffective = ImmutableList.copyOf(jsonFilters); final DocumentFilterList filters...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\view\CreateViewRequest.java
1
请在Spring Boot框架中完成以下Java代码
public Result<?> saveDatarule(@RequestBody JSONObject jsonObject) { try { String permissionId = jsonObject.getString("permissionId"); String roleId = jsonObject.getString("roleId"); String dataRuleIds = jsonObject.getString("dataRuleIds"); log.info("保存数据规则>>"+"菜单ID:"+permissionId+"角色ID:"+ roleId+"数据权...
@RequestMapping(value = "/exportXls") public ModelAndView exportXls(HttpServletRequest request, SysDepartRole sysDepartRole) { return super.exportXls(request, sysDepartRole, SysDepartRole.class, "部门角色"); } /** * 通过excel导入数据 * * @param request * @param response * @return */ @RequestMappi...
repos\JeecgBoot-main\jeecg-boot\jeecg-module-system\jeecg-system-biz\src\main\java\org\jeecg\modules\system\controller\SysDepartRoleController.java
2
请完成以下Java代码
private static final class AotContribution implements BeanFactoryInitializationAotContribution { private final @Nullable ClassLoader classLoader; private final Set<Class<? extends StructuredLoggingJsonMembersCustomizer<?>>> customizers; private final @Nullable String stackTracePrinter; private AotContributi...
@Override public void applyTo(GenerationContext generationContext, BeanFactoryInitializationCode beanFactoryInitializationCode) { ReflectionHints reflection = generationContext.getRuntimeHints().reflection(); this.customizers.forEach((customizer) -> reflection.registerType(customizer, MemberCategory.IN...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\logging\structured\StructuredLoggingJsonPropertiesBeanFactoryInitializationAotProcessor.java
1
请完成以下Java代码
private static boolean hasJksTrustStoreProperties(Ssl ssl) { return Ssl.isEnabled(ssl) && (ssl.getTrustStore() != null || (ssl.getTrustStoreType() != null && ssl.getTrustStoreType().equals("PKCS11"))); } @Override public String toString() { ToStringCreator creator = new ToStringCreator(this); creator.appe...
} @Override public @Nullable KeyStore getTrustStore() { return this.trustStore; } @Override public @Nullable String getKeyStorePassword() { return this.keyStorePassword; } @Override public String toString() { ToStringCreator creator = new ToStringCreator(this); creator.append("keyStore.ty...
repos\spring-boot-4.0.1\module\spring-boot-web-server\src\main\java\org\springframework\boot\web\server\WebServerSslBundle.java
1
请完成以下Java代码
public byte[] getBinaryData () { return (byte[])get_Value(COLUMNNAME_BinaryData); } /** Set Beschreibung. @param Description Beschreibung */ @Override public void setDescription (java.lang.String Description) { set_Value (COLUMNNAME_Description, Description); } /** Get Beschreibung. @return Beschre...
/** Set Zusammenfassung. @param Summary Textual summary of this request */ @Override public void setSummary (java.lang.String Summary) { set_Value (COLUMNNAME_Summary, Summary); } /** Get Zusammenfassung. @return Textual summary of this request */ @Override public java.lang.String getSummary () ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_SchedulerLog.java
1
请完成以下Java代码
private static ProcessDescriptorType extractType(final I_AD_Process adProcess) { if (adProcess.getAD_Form_ID() > 0) { return ProcessDescriptorType.Form; } else if (adProcess.getAD_Workflow_ID() > 0) { return ProcessDescriptorType.Workflow; } else if (adProcess.isReport()) { return ProcessDescr...
final Object fieldValue = calloutField.getValue(); if (fieldValue instanceof LookupValue) { final Object idObj = ((LookupValue)fieldValue).getId(); return ProcessParams.ofValueObject(parameterName, idObj); } else if (fieldValue instanceof DateRangeValue) { final DateRangeValue dateRange = (Da...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\process\adprocess\ADProcessDescriptorsFactory.java
1
请完成以下Java代码
public final class AspectJMethodSecurityInterceptor extends MethodSecurityInterceptor { /** * Method that is suitable for user with @Aspect notation. * @param jp The AspectJ joint point being invoked which requires a security decision * @return The returned value from the method invocation * @throws Throwable...
* @return The returned value from the method invocation */ public Object invoke(JoinPoint jp, AspectJCallback advisorProceed) { InterceptorStatusToken token = super.beforeInvocation(new MethodInvocationAdapter(jp)); Object result; try { result = advisorProceed.proceedWithObject(); } finally { super.f...
repos\spring-security-main\access\src\main\java\org\springframework\security\access\intercept\aspectj\AspectJMethodSecurityInterceptor.java
1
请在Spring Boot框架中完成以下Java代码
public LongMessageProducer longMessageProducer() { return new LongMessageProducer(); } @Bean public LongMessageListener longMessageListener() { return new LongMessageListener(); } public static class LongMessageProducer { @Autowired private KafkaTemplate<String, St...
System.out.println("Long message Sent"); } } public static class LongMessageListener { @KafkaListener(topics = "${long.message.topic.name}", groupId = "longMessage", containerFactory = "longMessageKafkaListenerContainerFactory") public void listenGroupLongMessage(String message) { ...
repos\tutorials-master\spring-kafka-4\src\main\java\com\baeldung\spring\kafka\KafkaApplicationLongMessage.java
2
请完成以下Java代码
public void handleMemberSuspect(MemberSuspectEvent event) { } /** * @inheritDoc */ @Override public final void quorumLost(DistributionManager manager, Set<InternalDistributedMember> failedMembers, List<InternalDistributedMember> remainingMembers) { QuorumLostEvent event = new QuorumLostEvent(manager) ....
* @see org.apache.geode.cache.Cache */ @SuppressWarnings("unchecked") public T register(Cache peerCache) { Optional.ofNullable(peerCache) .map(Cache::getDistributedSystem) .filter(InternalDistributedSystem.class::isInstance) .map(InternalDistributedSystem.class::cast) .map(InternalDistributedSystem::...
repos\spring-boot-data-geode-main\spring-geode-project\apache-geode-extensions\src\main\java\org\springframework\geode\distributed\event\MembershipListenerAdapter.java
1
请在Spring Boot框架中完成以下Java代码
public Object remove() { // 设置查询条件参数 int age = 30; String sex = "男"; // 创建条件对象 Criteria criteria = Criteria.where("age").is(age).and("sex").is(sex); // 创建查询对象,然后将条件对象添加到其中 Query query = new Query(criteria); // 执行删除查找到的匹配的全部文档信息 DeleteResult result ...
/** * 删除【符合条件】的【全部文档】,并返回删除的文档。 * * @return 删除的全部用户信息 */ public Object findAllAndRemove() { // 设置查询条件参数 int age = 22; // 创建条件对象 Criteria criteria = Criteria.where("age").is(age); // 创建查询对象,然后将条件对象添加到其中 Query query = new Query(criteria); // ...
repos\springboot-demo-master\mongodb\src\main\java\demo\et\mongodb\service\RemoveService.java
2
请完成以下Java代码
public static Collector<Packageable, ?, PackageableList> collect() { return GuavaCollectors.collectUsingListAccumulator(PackageableList::ofCollection); } public boolean isEmpty() {return list.isEmpty();} public int size() {return list.size();} public Stream<Packageable> stream() {return list.stream();} @Ove...
if (values.isEmpty()) { return Optional.empty(); } else if (values.size() == 1) { return Optional.of(values.get(0)); } else { //throw new AdempiereException("More than one value were extracted (" + values + ") from " + list); return Optional.empty(); } } public Stream<PackageableList> gro...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\picking\api\PackageableList.java
1
请完成以下Java代码
protected void configureQuery(AbstractQuery<?,?> query, Resource resource) { getAuthorizationManager().configureQuery(query, resource); } protected void checkAuthorization(Permission permission, Resource resource, String resourceId) { getAuthorizationManager().checkAuthorization(permission, resource, resou...
public Void call() { AuthorizationManager authorizationManager = getAuthorizationManager(); for (AuthorizationEntity authorization : authorizations) { if(authorization.getId() == null) { authorizationManager.insert(authorization); } else { authori...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\AbstractManager.java
1
请完成以下Java代码
public class EventDefinitionEntityImpl extends AbstractEventRegistryNoRevisionEntity implements EventDefinitionEntity, Serializable { private static final long serialVersionUID = 1L; protected String name; protected String description; protected String key; protected int version; protected Str...
@Override public String getResourceName() { return resourceName; } @Override public void setResourceName(String resourceName) { this.resourceName = resourceName; } @Override public String getTenantId() { return tenantId; } @Override public void setTenan...
repos\flowable-engine-main\modules\flowable-event-registry\src\main\java\org\flowable\eventregistry\impl\persistence\entity\EventDefinitionEntityImpl.java
1
请在Spring Boot框架中完成以下Java代码
protected void configure(HttpSecurity http) throws Exception { // @formatter:off http.cors() // 关闭 CSRF .and().csrf().disable() // 登录行为由自己实现,参考 AuthController#login .formLogin().disable() .httpBasic().disable() ...
*/ @Override public void configure(WebSecurity web) { WebSecurity and = web.ignoring().and(); // 忽略 GET customConfig.getIgnores().getGet().forEach(url -> and.ignoring().antMatchers(HttpMethod.GET, url)); // 忽略 POST customConfig.getIgnores().getPost().forEach(url -> and....
repos\spring-boot-demo-master\demo-rbac-security\src\main\java\com\xkcoding\rbac\security\config\SecurityConfig.java
2
请完成以下Java代码
public String getId() { return id; } public String getItem() { return item; } public void setItem(String item) { this.item = item; } public String getStatus() { return status; } public void setStatus(String status) { this.status = status; }...
} public void setInStock(List<InStock> inStock) { this.inStock = inStock; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Inventory inventory = (Inventory) o; ...
repos\tutorials-master\persistence-modules\spring-data-mongodb-2\src\main\java\com\baeldung\projection\model\Inventory.java
1
请在Spring Boot框架中完成以下Java代码
public class NoopJobExecutionObservationProvider implements JobExecutionObservationProvider { @Override public JobExecutionObservation create(JobInfo job) { return JobExecutionObservation.NOOP; } static class NoopJobExecutionObservation implements JobExecutionObservation { @Override ...
return NoopScope.INSTANCE; } @Override public void executionError(Throwable exception) { // Do nothing } } static class NoopScope implements JobExecutionObservation.Scope { static final NoopScope INSTANCE = new NoopScope(); @Override public...
repos\flowable-engine-main\modules\flowable-job-service\src\main\java\org\flowable\job\service\impl\asyncexecutor\NoopJobExecutionObservationProvider.java
2
请在Spring Boot框架中完成以下Java代码
public Saml2AuthenticationToken convert(HttpServletRequest request) { AbstractSaml2AuthenticationRequest authenticationRequest = this.authenticationRequestRepository .loadAuthenticationRequest(request); String relyingPartyRegistrationId = (authenticationRequest != null) ? authenticationRequest.getRelyingPart...
* Use the given {@code shouldConvertGetRequests} to convert {@code GET} requests. * Default is {@code true}. * @param shouldConvertGetRequests the {@code shouldConvertGetRequests} to use * @since 7.0 */ public void setShouldConvertGetRequests(boolean shouldConvertGetRequests) { this.shouldConvertGetRequests ...
repos\spring-security-main\saml2\saml2-service-provider\src\main\java\org\springframework\security\saml2\provider\service\web\Saml2AuthenticationTokenConverter.java
2
请在Spring Boot框架中完成以下Java代码
public String getDetailType() { return detailType; } public void setDetailType(String detailType) { this.detailType = detailType; } @ApiModelProperty(example = "2") public Integer getRevision() { return revision; } public void setRevision(Integer revision) { ...
@ApiModelProperty(example = "null") public String getPropertyId() { return propertyId; } public void setPropertyId(String propertyId) { this.propertyId = propertyId; } @ApiModelProperty(example = "null") public String getPropertyValue() { return propertyValue; } ...
repos\flowable-engine-main\modules\flowable-rest\src\main\java\org\flowable\rest\service\api\history\HistoricDetailResponse.java
2
请完成以下Java代码
public ColorId saveFlatColorAndReturnId(@NonNull String flatColorHexString) { final Color flatColor = MFColor.ofFlatColorHexString(flatColorHexString).getFlatColor(); final I_AD_Color existingColorRecord = Services.get(IQueryBL.class) .createQueryBuilderOutOfTrx(I_AD_Color.class) .addOnlyActiveRecordsFilte...
InterfaceWrapperHelper.save(newColorRecord); return ColorId.ofRepoId(newColorRecord.getAD_Color_ID()); } @Override public ColorId getColorIdByName(final String colorName) { return colorIdByName.getOrLoad(colorName, () -> retrieveColorIdByName(colorName)); } private ColorId retrieveColorIdByName(final Str...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\util\impl\ColorRepository.java
1
请完成以下Java代码
public CompletableFuture<HttpResponse> callAsync() { CompletableFuture<HttpResponse> responseFuture = new CompletableFuture<>(); HttpClientContext context = HttpClientContext.create(); context.setRequestConfig(requestConfig); client.execute( request, ...
public void failed(Exception ex) { responseFuture.completeExceptionally(ex); } @Override public void cancelled() { responseFuture.cancel(true); } }...
repos\flowable-engine-main\modules\flowable-http-common\src\main\java\org\flowable\http\common\impl\apache\client5\ApacheHttpComponents5FlowableHttpClient.java
1
请完成以下Java代码
public void setVariableLocal(String variableName, Object value) { ExecutionEntity execution = getExecutionFromContext(); if(execution != null) { execution.setVariableLocal(variableName, value); execution.getVariableLocal(variableName); } else { getScopedAssociation().setVariableLocal(varia...
return getScopedAssociation().getCachedVariables(); } public VariableMap getCachedLocalVariables() { ensureCommandContextNotActive(); return getScopedAssociation().getCachedVariablesLocal(); } public void flushVariableCache() { ensureCommandContextNotActive(); getScopedAssociation().flushVaria...
repos\camunda-bpm-platform-master\engine-cdi\core\src\main\java\org\camunda\bpm\engine\cdi\impl\context\DefaultContextAssociationManager.java
1
请完成以下Java代码
public void setOnNew (final boolean OnNew) { set_Value (COLUMNNAME_OnNew, OnNew); } @Override public boolean isOnNew() { return get_ValueAsBoolean(COLUMNNAME_OnNew); } @Override public void setOnUpdate (final boolean OnUpdate) { set_Value (COLUMNNAME_OnUpdate, OnUpdate); } @Override public boolean...
else set_Value (COLUMNNAME_Source_Table_ID, Source_Table_ID); } @Override public int getSource_Table_ID() { return get_ValueAsInt(COLUMNNAME_Source_Table_ID); } @Override public void setTargetRecordMappingSQL (final java.lang.String TargetRecordMappingSQL) { set_Value (COLUMNNAME_TargetRecordMappingS...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_BusinessRule_Trigger.java
1
请完成以下Java代码
public void propertyChange (PropertyChangeEvent evt) { if (evt.getPropertyName().equals(org.compiere.model.GridField.PROPERTY)) setValue(evt.getNewValue()); // metas: request focus (2009_0027_G131) if (evt.getPropertyName().equals(org.compiere.model.GridField.REQUEST_FOCUS)) requestFocus(); // metas end ...
// ESC if (e.getKeyCode() == KeyEvent.VK_ESCAPE) setText(m_initialText); m_setting = true; try { fireVetoableChange(m_columnName, m_oldText, getText()); } catch (PropertyVetoException pve) {} m_setting = false; } // keyReleased /** * Set Field/WindowNo for ValuePreference (NOP) * @param mF...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\grid\ed\VText.java
1
请完成以下Java代码
public String getActiveInfo(final int AD_Table_ID, final int Record_ID) { final ImmutableList<I_AD_WF_Activity> activities = getActiveActivities(AD_Table_ID, Record_ID); if (activities.isEmpty()) { return null; } return activities.stream() .map(this::toStringX) .collect(Collectors.joining("\n"));...
.addEqualsFilter(I_AD_WF_Activity.COLUMNNAME_AD_Table_ID, AD_Table_ID) .addEqualsFilter(I_AD_WF_Activity.COLUMNNAME_AD_Table_ID, Record_ID) .addEqualsFilter(I_AD_WF_Activity.COLUMNNAME_Processed, false) .orderBy(I_AD_WF_Activity.COLUMNNAME_AD_WF_Activity_ID) .create() .listImmutable(I_AD_WF_Activity...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\workflow\execution\WFProcessRepository.java
1
请完成以下Java代码
public boolean getIsSalesDefaultOr(final boolean defaultValue) { return salesDefault.orElse(defaultValue); } public boolean getIsSalesOr(final boolean defaultValue) { return sales.orElse(defaultValue); } public boolean getIsPurchaseDefaultOr(final boolean defaultValue) { return purchaseDefault.orElse(def...
public void setBillToDefault(final boolean billToDefault) { this.billToDefault = Optional.of(billToDefault); } public void setShipToDefault(final boolean shipToDefault) { this.shipToDefault = Optional.of(shipToDefault); } public void setPurchaseDefault(final boolean purchaseDefault) { this.purchaseDefaul...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\bpartner\composite\BPartnerContactType.java
1
请完成以下Java代码
public class Meter implements IMeter { private AtomicLong invokeCount = new AtomicLong(0); private BigDecimal invokeRate = BigDecimal.ZERO; private AtomicLong millisLastInvoke = new AtomicLong(0); private AtomicLong gauge = new AtomicLong(0); private BigDecimal intervalLastInvoke = null; @Override public v...
invokeRate = BigDecimal.ZERO; } else if (intervalLastInvokeLocal.signum() == 0) { // omit division by zero invokeRate = new BigDecimal(Long.MAX_VALUE); } else { invokeRate = new BigDecimal("1000") .setScale(2, BigDecimal.ROUND_HALF_UP) .divide(intervalLastInvokeLocal, RoundingMode.HALF_UP...
repos\metasfresh-new_dawn_uat\backend\de.metas.monitoring\src\main\java\de\metas\monitoring\api\impl\Meter.java
1
请完成以下Java代码
public class FormInfo implements Serializable { private static final long serialVersionUID = 1L; protected String id; protected String name; protected String description; protected String key; protected int version; protected FormModel formModel; public String getId() { return...
this.key = key; } public int getVersion() { return version; } public void setVersion(int version) { this.version = version; } public FormModel getFormModel() { return formModel; } public void setFormModel(FormModel formModel) { this.formModel = formMod...
repos\flowable-engine-main\modules\flowable-form-api\src\main\java\org\flowable\form\api\FormInfo.java
1
请在Spring Boot框架中完成以下Java代码
public void deleteHistoricIdentityLinksByScopeDefinitionIdAndType(String scopeDefinitionId, String scopeType) { Map<String, String> parameters = new HashMap<>(); parameters.put("scopeDefinitionId", scopeDefinitionId); parameters.put("scopeType", scopeType); getDbSqlSession().delete("dele...
@Override public void deleteHistoricCaseIdentityLinksForNonExistingInstances() { getDbSqlSession().delete("bulkDeleteHistoricCaseIdentityLinks", null, HistoricIdentityLinkEntityImpl.class); } @Override public void deleteHistoricTaskIdentityLinksForNonExistingInstances() { getDbSqlSe...
repos\flowable-engine-main\modules\flowable-identitylink-service\src\main\java\org\flowable\identitylink\service\impl\persistence\entity\data\impl\MybatisHistoricIdentityLinkDataManager.java
2
请完成以下Java代码
public String getDeploymentId() { return deploymentId; } public String getName() { return name; } public String getNameLike() { return nameLike; } public String getCategory() { return category; } public String getCategoryNotEquals() { return ca...
return tenantId; } public String getTenantIdLike() { return tenantIdLike; } public boolean isWithoutTenantId() { return withoutTenantId; } public String getDecisionKey() { return decisionKey; } public String getDecisionKeyLike() { return decisionKeyLik...
repos\flowable-engine-main\modules\flowable-dmn-engine\src\main\java\org\flowable\dmn\engine\impl\DmnDeploymentQueryImpl.java
1
请完成以下Java代码
public boolean load(ByteArray byteArray) { idStringMap.clear(); stringIdMap.clear(); int size = byteArray.nextInt(); for (int i = 0; i < size; i++) { String tag = byteArray.nextUTF(); idStringMap.add(tag); stringIdMap.put(tag, i); }...
stringIdMap.put(tag, i); } lock(); } public Collection<String> tags() { return idStringMap; } public boolean contains(String tag) { return idStringMap.contains(tag); } }
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\model\perceptron\tagset\TagSet.java
1
请完成以下Java代码
public void setResponseCode (int ResponseCode) { set_Value (COLUMNNAME_ResponseCode, Integer.valueOf(ResponseCode)); } /** Get Antwort . @return Antwort */ @Override public int getResponseCode () { Integer ii = (Integer)get_Value(COLUMNNAME_ResponseCode); if (ii == null) return 0; return ii.int...
public java.lang.String getTransactionIDClient () { return (java.lang.String)get_Value(COLUMNNAME_TransactionIDClient); } /** Set TransaktionsID Server. @param TransactionIDServer TransaktionsID Server */ @Override public void setTransactionIDServer (java.lang.String TransactionIDServer) { set_ValueNoCh...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma.securpharm\src\main\java-gen\de\metas\vertical\pharma\securpharm\model\X_M_Securpharm_Log.java
1
请完成以下Java代码
public void close() { if (!hasChanges()) { return; } // // Create the summary record for our particular DateAcct final I_Fact_Acct_Summary factAcctSummary = getCreateFactAcctSummary(); final IQueryFilter<I_Fact_Acct_Summary> currentYearFilter = new EqualsQueryFilter<>(I_Fact_Acct_Summary.COL...
} private static final class FactAcctSummaryKeyBuilder implements IAggregationKeyBuilder<I_Fact_Acct_Log> { public static final FactAcctSummaryKeyBuilder instance = new FactAcctSummaryKeyBuilder(); private FactAcctSummaryKeyBuilder() { super(); } @Override public String buildKey(final I_Fact_Acct_Lo...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java\de\metas\acct\aggregation\legacy\impl\LegacyFactAcctLogProcessor.java
1
请完成以下Java代码
public int getDisplaySeqNo() { return 0; } @Override public boolean isReadonlyUI() { return false; } @Override public boolean isDisplayedUI() { return true; } @Override public boolean isMandatory() { return false; } @Override public boolean isNew() { return isGeneratedAttribute; } @Ove...
return valueDate; } @Override protected void setInternalValueDateInitial(Date value) { this.valueInitialDate = value; } @Override protected Date getInternalValueDateInitial() { return valueInitialDate; } @Override public boolean isOnlyIfInProductAttributeSet() { return false; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\attribute\impl\PlainAttributeValue.java
1
请完成以下Java代码
public HUPPOrderIssueProducer considerIssueMethodForQtyToIssueCalculation(final boolean considerIssueMethodForQtyToIssueCalculation) { this.considerIssueMethodForQtyToIssueCalculation = considerIssueMethodForQtyToIssueCalculation; return this; } public HUPPOrderIssueProducer processCandidates(@NonNull final Pro...
{ throw new AdempiereException("Unknown processCandidatesPolicy: " + processCandidatesPolicy); } } public HUPPOrderIssueProducer changeHUStatusToIssued(final boolean changeHUStatusToIssued) { this.changeHUStatusToIssued = changeHUStatusToIssued; return this; } public HUPPOrderIssueProducer generatedBy(f...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\pporder\api\HUPPOrderIssueProducer.java
1
请完成以下Java代码
public class WebEnv { /** * Base Directory links e.g. <b>http://localhost:8080/</b> * * NOTE: to configure this, check the "serverRoot" project */ private static final String DIR_BASE = ""; /** Image Sub-Directory under BASE */ private static final String DIR_IMAGE = "images"; /** Stylesheet Name */ priv...
} if (sb.length() > 0 && !entry.startsWith("/")) { sb.append("/"); } sb.append(entry); } return sb.toString(); } // getBaseDirectory /** * Get Logo Path. * * @param width optional image width * @return url to logo */ public static String getLogoURL(final int width) { String logo...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\util\WebEnv.java
1
请完成以下Java代码
public int getC_JobCategory_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_C_JobCategory_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 (...
return (String)get_Value(COLUMNNAME_Help); } /** Set Name. @param Name Alphanumeric identifier of the entity */ public void setName (String Name) { set_Value (COLUMNNAME_Name, Name); } /** Get Name. @return Alphanumeric identifier of the entity */ public String getName () { return (String)ge...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_JobCategory.java
1
请完成以下Java代码
public void run() { FlowElement currentFlowElement = getCurrentFlowElement(execution); if (currentFlowElement instanceof FlowNode) { continueThroughMultiInstanceFlowNode((FlowNode) currentFlowElement); } else { throw new RuntimeException( "Programmatic err...
if ( Context.getProcessEngineConfiguration() != null && Context.getProcessEngineConfiguration().getEventDispatcher().isEnabled() ) { Context.getProcessEngineConfiguration() .getEventDispatcher() .dispatchEvent( ...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\agenda\ContinueMultiInstanceOperation.java
1
请完成以下Java代码
public void updateQtyTU(final I_C_Invoice_Line_Alloc invoiceLineAlloc) { final IProductBL productBL = Services.get(IProductBL.class); // // Get Invoice Line if (invoiceLineAlloc.getC_InvoiceLine_ID() <= 0) { return; // shouldn't happen, but it's not really our business } final I_C_InvoiceLine invoice...
} private final BigDecimal calculateQtyTUsFromInvoiceCandidates(final I_C_InvoiceLine invoiceLine) { BigDecimal qtyEnteredTU = BigDecimal.ZERO; final IInvoiceCandDAO invoiceCandDAO = Services.get(IInvoiceCandDAO.class); final List<I_C_Invoice_Candidate> icForIl = invoiceCandDAO.retrieveIcForIl(invoiceLine); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\model\validator\C_Invoice_Line_Alloc.java
1
请完成以下Java代码
public void setIsAllowOnSales (final boolean IsAllowOnSales) { set_Value (COLUMNNAME_IsAllowOnSales, IsAllowOnSales); } @Override public boolean isAllowOnSales() { return get_ValueAsBoolean(COLUMNNAME_IsAllowOnSales); } @Override public I_M_CostElement getM_CostElement() { return get_ValueAsPO(COLUMNN...
{ return get_ValueAsInt(COLUMNNAME_M_Product_ID); } @Override public void setName (final String Name) { set_Value (COLUMNNAME_Name, Name); } @Override public String getName() { return get_ValueAsString(COLUMNNAME_Name); } @Override public void setValue (final String Value) { set_Value (COLUMNNAME...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_Cost_Type.java
1
请完成以下Java代码
public List<Object> getContent() { if (content == null) { content = new ArrayList<Object>(); } return this.content; } /** * Gets the value of the target property. * * @return * possible object is * {@link String } * */ pub...
/** * Sets the value of the id property. * * @param value * allowed object is * {@link String } * */ public void setId(String value) { this.id = value; } /** * Gets a map that contains attributes that aren't bound to any typed property on this c...
repos\metasfresh-new_dawn_uat\backend\vertical-healthcare_ch\forum_datenaustausch_ch.invoice_440_request\src\main\java-xjc\de\metas\vertical\healthcare_ch\forum_datenaustausch_ch\invoice_440\request\EncryptionPropertyType.java
1
请在Spring Boot框架中完成以下Java代码
public String getUploadDate() { return uploadDate; } public void setUploadDate(String uploadDate) { this.uploadDate = uploadDate; } public Attachment metadata(AttachmentMetadata metadata) { this.metadata = metadata; return this; } /** * Get metadata * @return metadata **/ @Sche...
return Objects.hash(_id, filename, contentType, uploadDate, metadata); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Attachment {\n"); sb.append(" _id: ").append(toIndentedString(_id)).append("\n"); sb.append(" filename: ").append(toIn...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\alberta\alberta-document-api\src\main\java\io\swagger\client\model\Attachment.java
2
请完成以下Java代码
public abstract class AbstractPrintingQueueSource implements IPrintingQueueSource { private String name; @Override public String getName() { return name; } @Override public void setName(String name) { this.name = name; }
@Override public boolean isPrinted(@NonNull final I_C_Printing_Queue item) { final boolean printed = item.isProcessed(); return printed; } @Override public void markPrinted(@NonNull final I_C_Printing_Queue item) { item.setProcessed(true); InterfaceWrapperHelper.save(item); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.printing\de.metas.printing.base\src\main\java\de\metas\printing\api\impl\AbstractPrintingQueueSource.java
1
请在Spring Boot框架中完成以下Java代码
private static <T extends Collection<InetSocketAddress>> T collect(@NonNull T collection, @NonNull Collection<InetSocketAddress> socketAddressesToCollect) { CollectionUtils.nullSafeCollection(socketAddressesToCollect).stream() .filter(Objects::nonNull) .forEach(collection::add); return collection; ...
return super.equals(that) && this.getPool().equals(that.getPool()); } /** * @inheritDoc */ @Override public int hashCode() { int hashValue = super.hashCode(); hashValue = 37 * hashValue + ObjectUtils.nullSafeHashCode(getPool()); return hashValue; } /** * @inheritDoc */ @Overr...
repos\spring-boot-data-geode-main\spring-geode-project\spring-geode\src\main\java\org\springframework\geode\config\annotation\ClusterAwareConfiguration.java
2
请完成以下Java代码
public boolean isCopyPasteActionAllowed(final CopyPasteActionType actionType) { if (activeCopyPasteSupport == null) { return false; } return activeCopyPasteSupport.isCopyPasteActionAllowed(actionType); } private class CopyPasteActionProxy extends AbstractAction { private static final long serialVersio...
{ Action action = copyPasteSupport.getCopyPasteAction(actionType); if (action == null) { action = new CopyPasteAction(copyPasteSupport, actionType); } copyPasteSupport.putCopyPasteAction(actionType, action, actionType.getKeyStroke()); return action; } private static final long serialVersionU...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\grid\ed\VLookupCopyPasteSupportEditor.java
1
请完成以下Java代码
private Object[] determineInstancedParameters(final Method mappedMethod, final Throwable exception) { final Parameter[] parameters = mappedMethod.getParameters(); final Object[] instancedParams = new Object[parameters.length]; for (int i = 0; i < parameters.length; i++) { final Cla...
throw new IllegalStateException("Parameter type of method has to be from Class, it was: " + paramType); } private Object invokeMappedMethodSafely( final Method mappedMethod, final Object instanceOfMappedMethod, final Object[] instancedParams) throws Throwable { try {...
repos\grpc-spring-master\grpc-server-spring-boot-starter\src\main\java\net\devh\boot\grpc\server\advice\GrpcAdviceExceptionHandler.java
1
请完成以下Java代码
public String getTextValue() { return text; } public void setTextValue(String textValue) { this.text = textValue; } public String getTextValue2() { return text2; } public void setTextValue2(String textValue2) { this.text2 = textValue2; } public Long getLongValue() { return longVa...
this.longValue = longValue; } public Double getDoubleValue() { return doubleValue; } public void setDoubleValue(Double doubleValue) { this.doubleValue = doubleValue; } public byte[] getByteArrayValue() { return byteArrayValue; } public void setByteArrayValue(byte[] bytes) { this.byte...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\variable\serializer\ValueFieldsImpl.java
1
请完成以下Java代码
public DateSequenceGeneratorBuilder byMonths(final int months, final int dayOfMonth) { return incrementor(CalendarIncrementors.eachNthMonth(months, dayOfMonth)); } public DateSequenceGeneratorBuilder frequency(@NonNull final Frequency frequency) { incrementor(createCalendarIncrementor(frequency)); exp...
if (frequency.isWeekly()) { if (frequency.isOnlySomeDaysOfTheWeek()) { return DaysOfWeekExploder.of(frequency.getOnlyDaysOfWeek()); } else { return DaysOfWeekExploder.ALL_DAYS_OF_WEEK; } } else if (frequency.isMonthly()) { return DaysOfMonthExploder.of(frequency.getOnly...
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\de\metas\util\time\generator\DateSequenceGenerator.java
1
请在Spring Boot框架中完成以下Java代码
public @Nullable Duration getMaxAcquireTime() { return this.maxAcquireTime; } public void setMaxAcquireTime(@Nullable Duration maxAcquireTime) { this.maxAcquireTime = maxAcquireTime; } public int getAcquireRetry() { return this.acquireRetry; } public void setAcquireRetry(int acquireRetry) { t...
public void setValidationQuery(@Nullable String validationQuery) { this.validationQuery = validationQuery; } public ValidationDepth getValidationDepth() { return this.validationDepth; } public void setValidationDepth(ValidationDepth validationDepth) { this.validationDepth = validationDepth; } pu...
repos\spring-boot-4.0.1\module\spring-boot-r2dbc\src\main\java\org\springframework\boot\r2dbc\autoconfigure\R2dbcProperties.java
2
请完成以下Java代码
public Optional<TreeNode> getTreeNode(@NonNull final ElementValueId elementValueId, @NonNull final AdTreeId chartOfAccountsTreeId) { final I_AD_TreeNode treeNodeRecord = retrieveTreeNodeRecord(elementValueId, chartOfAccountsTreeId); return treeNodeRecord != null ? Optional.of(toTreeNode(treeNodeRecord)) : ...
return CollectionUtils.singleElement(chartOfAccountsTreeIds); } private void deleteByTreeId(final AdTreeId chartOfAccountsTreeId) { queryBL.createQueryBuilder(I_AD_TreeNode.class) .addEqualsFilter(I_AD_TreeNode.COLUMNNAME_AD_Tree_ID, chartOfAccountsTreeId) .create() .deleteDirectly(); } public Immu...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java\de\metas\treenode\TreeNodeRepository.java
1
请完成以下Java代码
private @Nullable Class<?> findExistingLoadedClass(String name) { Class<?> resultClass = findLoadedClass0(name); resultClass = (resultClass != null || JreCompat.isGraalAvailable()) ? resultClass : findLoadedClass(name); return resultClass; } private @Nullable Class<?> doLoadClass(String name) { if ((this.del...
if (this.parent == null) { return null; } try { return Class.forName(name, false, this.parent); } catch (ClassNotFoundException ex) { return null; } } private @Nullable Class<?> findClassIgnoringNotFound(String name) { try { return findClass(name); } catch (ClassNotFoundException ex) { ...
repos\spring-boot-4.0.1\module\spring-boot-tomcat\src\main\java\org\springframework\boot\tomcat\TomcatEmbeddedWebappClassLoader.java
1
请完成以下Java代码
public class PurchaseCandidates2PurchaseViewFactory extends PurchaseViewFactoryTemplate { public static final String WINDOW_ID_STRING = "purchaseCandidates2po"; public static final WindowId WINDOW_ID = WindowId.fromJson(WINDOW_ID_STRING); // services private final PurchaseCandidateRepository purchaseCandidatesRepo...
private static PurchaseDemand toPurchaseDemand(@NonNull final PurchaseCandidateAggregate aggregate) { return PurchaseDemand.builder() .existingPurchaseCandidateIds(aggregate.getPurchaseCandidateIds()) // .orgId(aggregate.getOrgId()) .warehouseId(aggregate.getWarehouseId()) // .productId(aggre...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\order\sales\purchasePlanning\view\PurchaseCandidates2PurchaseViewFactory.java
1
请完成以下Java代码
private static class RowsLoader { private final BPartnerProductStatsService bpartnerProductStatsService; private final MoneyService moneyService; private final LookupDataSource bpartnerLookup; private final LookupDataSource productLookup; private final DocumentIdIntSequence nextRowIdSequence = DocumentIdInt...
return ProductsProposalRowsData.builder() .nextRowIdSequence(nextRowIdSequence) .rows(rows) .soTrx(SOTrx.SALES) .currencyId(currencyId) .build(); } private ProductsProposalRow toProductsProposalRowOrNull(@NonNull final BPartnerProductStats stats) { final LastInvoiceInfo lastSalesInvoi...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\order\products_proposal\view\OtherSalePricesProductsProposalViewFactory.java
1
请完成以下Java代码
public static MQuery getQuery( ProjectType projectType, MGoalRestriction[] restrictions, String MeasureDisplay, Timestamp date, int C_Phase_ID, final IUserRolePermissions role) { String dateColumn = "Created"; String orgColumn = "AD_Org_ID"; String bpColumn = "C_BPartner_ID"; String pColumn = null;...
else if (MGoal.MEASUREDISPLAY_Quarter.equals(MeasureDisplay)) trunc = "Q"; else if (MGoal.MEASUREDISPLAY_Month.equals(MeasureDisplay)) trunc = "MM"; else if (MGoal.MEASUREDISPLAY_Week.equals(MeasureDisplay)) trunc = "W"; // else if (MGoal.MEASUREDISPLAY_Day.equals(MeasureDisplay)) // trunc = "D...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java-legacy\org\compiere\model\MMeasure.java
1
请在Spring Boot框架中完成以下Java代码
public class OrgData { public static final OrgData ofAD_Org_ID(final Properties ctx) { final OrgId adOrgId = Env.getOrgId(ctx); return new OrgData(adOrgId); } private final OrgId adOrgId; private transient String orgName; // lazy private OrgData(final OrgId adOrgId) { this.adOrgId = adOrgId; } public ...
{ String orgName = this.orgName; if (orgName == null) { orgName = this.orgName = Services.get(IOrgDAO.class).retrieveOrgName(adOrgId); } return orgName; } public InputStream getLogo() { // TODO: refactor from de.metas.adempiere.report.jasper.OrgLogoLocalFileLoader throw new UnsupportedOperationExce...
repos\metasfresh-new_dawn_uat\backend\de.metas.report\metasfresh-report-service\src\main\java\de\metas\report\xls\engine\OrgData.java
2
请完成以下Java代码
public void setM_Inventory_ID (int M_Inventory_ID) { if (M_Inventory_ID < 1) set_Value (COLUMNNAME_M_Inventory_ID, null); else set_Value (COLUMNNAME_M_Inventory_ID, Integer.valueOf(M_Inventory_ID)); } /** Get Inventur. @return Parameters for a Physical Inventory */ @Override public int getM_Inven...
public boolean isProcessed () { Object oo = get_Value(COLUMNNAME_Processed); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Verarbeiten. @param Processing Verarbeiten */ @Override public void setProce...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_InOutConfirm.java
1
请在Spring Boot框架中完成以下Java代码
public class JsonExternalSystemRetriever { private final IOrgDAO orgDAO = Services.get(IOrgDAO.class); @NonNull public JsonExternalSystemInfo retrieveExternalSystemInfo(@NonNull final ExternalSystemParentConfig parentConfig) { final IExternalSystemChildConfig childConfig = parentConfig.getChildConfig(); final...
final ExternalSystemGRSSignumConfig grsConfig = ExternalSystemGRSSignumConfig.cast(config.getChildConfig()); return getGRSSignumParameters(grsConfig); } throw new AdempiereException("Unsupported externalSystemConfigType=" + config.getType()); } @NonNull private static Map<String, String> getGRSSignumParamete...
repos\metasfresh-new_dawn_uat\backend\de.metas.business.rest-api-impl\src\main\java\de\metas\rest_api\v2\externlasystem\JsonExternalSystemRetriever.java
2
请完成以下Java代码
public void setBackground (Color color) { m_text.setBackground(color); btnConnection.setBackground(color); } // setBackground /** * Set Editor to value * @param value value of the editor */ @Override public void setValue (final Object value) { if (value instanceof CConnection) { m_value = (C...
} } // fireActionPerformed private void actionEditConnection() { if (!isEnabled() || !m_rw) { return; } setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); try { final CConnection connection = getValue(); final CConnectionDialog dialog = new CConnectionDialog(connection); if (d...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\db\CConnectionEditor.java
1
请完成以下Java代码
private Optional<FAOpenItemTrxInfo> computeTrxInfoFromPayment(final FAOpenItemTrxInfoComputeRequest request) { final PaymentId paymentId = PaymentId.ofRepoId(request.getRecordId()); final AccountConceptualName accountConceptualName = request.getAccountConceptualName(); if (accountConceptualName == null) { ...
if (accountConceptualName == null) { return; } if (accountConceptualName.isAnyOf(V_Liability, C_Receivable)) { openItemTrxInfo.getKey().getInvoiceId().ifPresent(invoiceBL::scheduleUpdateIsPaid); } else if (accountConceptualName.isAnyOf(V_Prepayment, C_Prepayment)) { openItemTrxInfo.getKey().getP...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java\de\metas\acct\open_items\handlers\BPartnerOIHandler.java
1
请完成以下Java代码
public Integer generateRandomWithThreadLocalRandomFromZero(int max) { int randomWithThreadLocalRandomFromZero = ThreadLocalRandom.current() .nextInt(max); return randomWithThreadLocalRandomFromZero; } public Integer generateRandomWithSplittableRandom(int min, int max) { Spli...
public Integer generateRandomWithSecureRandomWithinARange(int min, int max) { SecureRandom secureRandom = new SecureRandom(); int randomWithSecureRandomWithinARange = secureRandom.nextInt(max - min) + min; return randomWithSecureRandomWithinARange; } public Integer generateRandomWithRan...
repos\tutorials-master\core-java-modules\core-java-numbers-3\src\main\java\com\baeldung\randomnumbers\RandomNumbersGenerator.java
1