instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
public class NonSingleToolFactory extends AbstractFactoryBean<Tool> { private int factoryId; private int toolId; public NonSingleToolFactory() { setSingleton(false); } @Override public Class<?> getObjectType() { return Tool.class; } @Override protected Tool cr...
public int getFactoryId() { return factoryId; } public void setFactoryId(int factoryId) { this.factoryId = factoryId; } public int getToolId() { return toolId; } public void setToolId(int toolId) { this.toolId = toolId; } }
repos\tutorials-master\spring-core-3\src\main\java\com\baeldung\factorybean\NonSingleToolFactory.java
1
请在Spring Boot框架中完成以下Java代码
public String getLocationId() { return locationId; } public void setLocationId(String locationId) { this.locationId = locationId; } public String getRemark() { return remark; } public void setRemark(String remark) { this.remark = remark; } public Map<P...
public String getProdIdCountJson() { return prodIdCountJson; } public void setProdIdCountJson(String prodIdCountJson) { this.prodIdCountJson = prodIdCountJson; } @Override public String toString() { return "OrderInsertReq{" + "userId='" + userId + '\'' + ...
repos\SpringBoot-Dubbo-Docker-Jenkins-master\Gaoxi-Common-Service-Facade\src\main\java\com\gaoxi\req\order\OrderInsertReq.java
2
请完成以下Java代码
public class RequestHeaderSizeGatewayFilterFactory extends AbstractGatewayFilterFactory<RequestHeaderSizeGatewayFilterFactory.Config> { private static String ERROR_PREFIX = "Request Header/s size is larger than permissible limit (%s)."; private static String ERROR = " Request Header/s size for '%s' is %s."; pub...
return msg.toString(); } public static class Config { private DataSize maxSize = DataSize.ofBytes(16000L); private @Nullable String errorHeaderName; public DataSize getMaxSize() { return maxSize; } public void setMaxSize(DataSize maxSize) { this.maxSize = maxSize; } public @Nullable String g...
repos\spring-cloud-gateway-main\spring-cloud-gateway-server-webflux\src\main\java\org\springframework\cloud\gateway\filter\factory\RequestHeaderSizeGatewayFilterFactory.java
1
请完成以下Java代码
public class DeviceDescriptorsList { public static final DeviceDescriptorsList EMPTY = new DeviceDescriptorsList(); public static DeviceDescriptorsList ofList(@NonNull final List<DeviceDescriptor> list) { return !list.isEmpty() ? new DeviceDescriptorsList(list) : EMPTY; } private final ImmutableList<DeviceDesc...
public boolean isEmpty() { return list.isEmpty(); } public Stream<DeviceDescriptor> stream() { return list.stream(); } public ImmutableList<DeviceDescriptor> toList() { return list; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\process\adprocess\device_providers\DeviceDescriptorsList.java
1
请完成以下Java代码
public ProcessPreconditionsResolution checkPreconditionsApplicable(final IProcessPreconditionsContext context) { if (context.isNoSelection()) { return ProcessPreconditionsResolution.rejectBecauseNoSelection(); } else if (!context.isSingleSelection()) { return ProcessPreconditionsResolution.rejectBecaus...
exportFormat .getColumns() .forEach(formatColumn -> builder.addField(formatColumn.getCsvHeaderName(), formatColumn.getColumnName())); return builder.createDataSource(); } private static String buildFilename(final I_DATEV_Export datevExport) { final DateTimeFormatter dateFormatter = DateTimeFormatter.of...
repos\metasfresh-new_dawn_uat\backend\de.metas.datev\src\main\java\de\metas\datev\process\DATEV_ExportFile.java
1
请完成以下Java代码
class RolloutVersionLoader { public static final String BUILD_INFO_FILENAME = "build-info.properties"; public static final String PROP_VERSION = "build.version"; @NonNull private final PropertiesFileLoader propertiesFileLoader; /** * Invokes our {@link PropertiesFileLoader} to load the {@link #BUILD_INFO_FILE...
} } public static final class CantGetRolloutVersionStringException extends RuntimeException { private static final long serialVersionUID = -7869876695610886103L; private CantGetRolloutVersionStringException(final CantLoadPropertiesException e) { super("Unable to get our own version.\n" + "Hint: provi...
repos\metasfresh-new_dawn_uat\backend\de.metas.migration\de.metas.migration.cli\src\main\java\de\metas\migration\cli\rollout_migrate\RolloutVersionLoader.java
1
请完成以下Java代码
public void performDataAuditForRequest(final GenericDataExportAuditRequest genericDataExportAuditRequest) { if (!isHandled(genericDataExportAuditRequest)) { return; } final ExternalSystemParentConfigId externalSystemParentConfigId = genericDataExportAuditRequest.getExternalSystemParentConfigId(); final P...
} final HuId huId = HuId.ofObject(jsonHU.getId()); final Action exportAction = parentExportAuditId != null ? Action.AlongWithParent : Action.Standalone; final DataExportAuditRequest huDataExportAuditRequest = DataExportAuditRequest.builder() .tableRecordReference(TableRecordReference.of(I_M_HU.Table_Name...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.mobileui\src\main\java\de\metas\handlingunits\rest_api\HUAuditService.java
1
请完成以下Java代码
public long updateLastUplinkTime() { this.lastUplinkTime = System.currentTimeMillis(); this.firstEdrxDownlink = true; return lastUplinkTime; } public boolean checkFirstDownlink() { boolean result = firstEdrxDownlink; firstEdrxDownlink = false; return result; ...
LwM2mPath path = ((MixedLwM2mLink) link).getPath(); // add supported objects if (path.isObject() || path.isObjectInstance()) { int objectId = path.getObjectId(); LwM2mAttribute<Version> versionParamValue = link.getAttributes().get(L...
repos\thingsboard-master\common\transport\lwm2m\src\main\java\org\thingsboard\server\transport\lwm2m\server\client\LwM2mClient.java
1
请完成以下Java代码
public static InvoiceReferenceNo parse(@NonNull final String referenceString) { final String bankAccount = referenceString.substring(0, 7); final String org = referenceString.substring(7, 10); final String bPartnerHint = removeLeftZeros(referenceString.substring(10, 18)); final String invoiceHint = removeLeftZ...
} } private static int computeCheckDigit( @NonNull final String bankAccount, @NonNull final String org, @NonNull final String bPartner, @NonNull final String invoice) { final StringBuilder sb = new StringBuilder(); sb.append(bankAccount); sb.append(org); sb.append(bPartner); sb.append(invoice)...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.esr\src\main\java\de\metas\payment\esr\api\InvoiceReferenceNos.java
1
请完成以下Java代码
private Resource loadResource(Resource asResource, String asString, String asLocation) { return Optional.ofNullable(asResource) .orElseGet(() -> Optional.ofNullable(asString) .map(pk -> (Resource) new ByteArrayResource(pk.getBytes(StandardC...
(secretKeySalt == null ? new ZeroSaltGenerator() : new FixedBase64ByteArraySaltGenerator(secretKeySalt)); } @SneakyThrows private IvGenerator instantiateIvGenerator() { return (IvGenerator)Class.forName(this.ivGeneratorClassName).newInstance(); } ...
repos\jasypt-spring-boot-master\jasypt-spring-boot\src\main\java\com\ulisesbocchio\jasyptspringboot\encryptor\SimpleGCMConfig.java
1
请完成以下Java代码
public IntentEventListenerInstanceQuery stageInstanceId(String stageInstanceId) { innerQuery.stageInstanceId(stageInstanceId); return this; } @Override public IntentEventListenerInstanceQuery stateAvailable() { innerQuery.planItemInstanceStateAvailable(); return this; } ...
return this; } @Override public long count() { return innerQuery.count(); } @Override public IntentEventListenerInstance singleResult() { PlanItemInstance instance = innerQuery.singleResult(); return IntentEventListenerInstanceImpl.fromPlanItemInstance(instance); } ...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\runtime\IntentEventListenerInstanceQueryImpl.java
1
请完成以下Java代码
public class Todo { private int id; private String message; private int priority; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getMessage() {
return message; } public void setMessage(String message) { this.message = message; } public int getPriority() { return priority; } public void setPriority(int priority) { this.priority = priority; } }
repos\tutorials-master\spring-boot-modules\spring-boot-mvc-2\src\main\java\com\baeldung\springbootmvc\jsfapplication\model\Todo.java
1
请在Spring Boot框架中完成以下Java代码
public void logLoginAction(User user, Object authenticationDetails, ActionType actionType, Exception e) { logLoginAction(user, authenticationDetails, actionType, null, e); } @Override public void logLoginAction(User user, Object authenticationDetails, ActionType actionType, String provider, Excepti...
os += " " + userAgent.os.major; if (userAgent.os.minor != null) { os += "." + userAgent.os.minor; if (userAgent.os.patch != null) { os += "." + userAgent.os.patch; if (userAgen...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\service\security\system\DefaultSystemSecurityService.java
2
请完成以下Java代码
public int calculateDurationDays(final int leadTimeDays, @NonNull final ProductPlanning productPlanningData) { Check.assume(leadTimeDays >= 0, "leadTimeDays >= 0"); final int transferTimeDays = productPlanningData.getTransferTimeDays(); Check.assume(transferTimeDays >= 0, "transferTimeDays >= 0"); return lea...
{ final int leadTimeDays = calculateLeadTimeDays(productPlanning, qty); return calculateDurationDays(leadTimeDays, productPlanning); } private int calculateLeadTimeDays( @NonNull final ProductPlanning productPlanningRecord, @NonNull final BigDecimal qty) { final int leadTimeDays = productPlanningRecord....
repos\metasfresh-new_dawn_uat\backend\de.metas.material\planning\src\main\java\de\metas\material\planning\ProductPlanningService.java
1
请完成以下Java代码
public void setGenerated(boolean generated) { this.generated = generated; } /** * Indicated whether or not the resource has been generated while deploying rather than * being actual part of the deployment. */ public boolean isGenerated() { return generated; } public String getTenantId() { ...
this.createTime = createTime; } @Override public String toString() { return this.getClass().getSimpleName() + "[id=" + id + ", name=" + name + ", deploymentId=" + deploymentId + ", generated=" + generated + ", tenantId=" + tenantId + ", type="...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\ResourceEntity.java
1
请在Spring Boot框架中完成以下Java代码
public void callback(HttpServletRequest request, HttpServletResponse response) throws IOException, IdentityVerificationException { Tokens tokens = authenticationController.handle(request, response); DecodedJWT jwt = JWT.decode(tokens.getIdToken()); TestingAuthenticationToken authToken2 = new Te...
JSONObject requestBody = new JSONObject(); requestBody.put("client_id", config.getManagementApiClientId()); requestBody.put("client_secret", config.getManagementApiClientSecret()); requestBody.put("audience", "https://dev-example.auth0.com/api/v2/"); requestBody.put("grant_type", config....
repos\tutorials-master\spring-security-modules\spring-security-auth0\src\main\java\com\baeldung\auth0\controller\AuthController.java
2
请在Spring Boot框架中完成以下Java代码
public Instant getLastModifiedDate() { return lastModifiedDate; } public void setLastModifiedDate(Instant lastModifiedDate) { this.lastModifiedDate = lastModifiedDate; } public Set<String> getAuthorities() { return authorities; } public void setAuthorities(Set<String> ...
"login='" + login + '\'' + ", firstName='" + firstName + '\'' + ", lastName='" + lastName + '\'' + ", email='" + email + '\'' + ", imageUrl='" + imageUrl + '\'' + ", activated=" + activated + ", langKey='" + langKey + '\'' + ", createdB...
repos\tutorials-master\jhipster-6\bookstore-monolith\src\main\java\com\baeldung\jhipster6\service\dto\UserDTO.java
2
请完成以下Java代码
private static ImmutableList<SqlLookupFilter> computeActiveFilters( final @NonNull ImmutableList<SqlLookupFilter> allFilters, final @Nullable LookupDescriptorProvider.LookupScope onlyScope, final @Nullable ImmutableSet<String> availableParameterNames) { final ImmutableList.Builder<SqlLookupFilter> result = ...
} final NamePairPredicates.Composer builder = NamePairPredicates.compose(); for (SqlLookupFilter filter : filters) { final INamePairPredicate postQueryPredicate = filter.getPostQueryPredicate(); if (postQueryPredicate != null) { builder.add(postQueryPredicate); } } return builder.build(); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\descriptor\sql\CompositeSqlLookupFilter.java
1
请完成以下Java代码
public Builder picture(String picture) { return this.claim(StandardClaimNames.PICTURE, picture); } /** * Use this phone number in the resulting {@link OidcUserInfo} * @param phoneNumber The phone number to use * @return the {@link Builder} for further configurations */ public Builder phoneNumber(S...
public Builder subject(String subject) { return this.claim(StandardClaimNames.SUB, subject); } /** * Use this updated-at {@link Instant} in the resulting {@link OidcUserInfo} * @param updatedAt The updated-at {@link Instant} to use * @return the {@link Builder} for further configurations */ public...
repos\spring-security-main\oauth2\oauth2-core\src\main\java\org\springframework\security\oauth2\core\oidc\OidcUserInfo.java
1
请在Spring Boot框架中完成以下Java代码
public class AttributesChangedEventHandler implements MaterialEventHandler<AttributesChangedEvent> { private final CandidateChangeService candidateChangeHandler; public AttributesChangedEventHandler( @NonNull final CandidateChangeService candidateChangeHandler) { this.candidateChangeHandler = candidateChangeHa...
else { throw new AdempiereException("Invalid type: " + type); // really shall not happen } return Candidate.builderForEventDescriptor(event.getEventDescriptor()) .type(type) .materialDescriptor(MaterialDescriptor.builder() .warehouseId(event.getWarehouseId()) .quantity(qty) .date(eve...
repos\metasfresh-new_dawn_uat\backend\de.metas.material\dispo-service\src\main\java\de\metas\material\dispo\service\event\handler\attributes\AttributesChangedEventHandler.java
2
请在Spring Boot框架中完成以下Java代码
public boolean isIgnoreContentIfUnsuccess() { return ignoreContentIfUnsuccess; } public void setIgnoreContentIfUnsuccess(boolean ignoreContentIfUnsuccess) { this.ignoreContentIfUnsuccess = ignoreContentIfUnsuccess; } public String getPostData() { return postData; } public void setPostData(String postData) {...
this.clientKeyStore = clientKeyStore; } public com.roncoo.pay.trade.utils.httpclient.TrustKeyStore getTrustKeyStore() { return TrustKeyStore; } public void setTrustKeyStore(com.roncoo.pay.trade.utils.httpclient.TrustKeyStore trustKeyStore) { TrustKeyStore = trustKeyStore; } public boolean isHostnameVerify() {...
repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\trade\utils\httpclient\SimpleHttpParam.java
2
请完成以下Java代码
public ImmutableSet<String> getFieldNames() { return values.getFieldNames(); } @Override public ViewRowFieldNameAndJsonValues getFieldNameAndJsonValues() { return values.get(this); } @Override public Map<String, ViewEditorRenderMode> getViewEditorRenderModeByFieldName() { return values.getViewEditorRen...
else { return toBuilder().lastShipmentDays(lastShipmentDays).build(); } } public boolean isChanged() { return getProductPriceId() == null || !getPrice().isPriceListPriceUsed(); } public boolean isMatching(@NonNull final ProductsProposalViewFilter filter) { return Check.isEmpty(filter.getProductNa...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\order\products_proposal\model\ProductsProposalRow.java
1
请完成以下Java代码
public void setDescription (java.lang.String Description) { set_Value (COLUMNNAME_Description, Description); } /** Get Beschreibung. @return Beschreibung */ @Override public java.lang.String getDescription () { return (java.lang.String)get_Value(COLUMNNAME_Description); } /** Set Pharma Product Categ...
/** 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 Alphanumeric identifier of the entity */ @Override public java.lang.String getName () { return (java.lang.Strin...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma\src\main\java-gen\de\metas\vertical\pharma\model\X_M_PharmaProductCategory.java
1
请完成以下Java代码
public void setF_SHAREDIREC(String f_SHAREDIREC) { F_SHAREDIREC = f_SHAREDIREC; } public String getF_HISTORYID() { return F_HISTORYID; } public void setF_HISTORYID(String f_HISTORYID) { F_HISTORYID = f_HISTORYID; } public String getF_STATUS() { return F_STATUS;...
public String getF_PLATFORM_ID() { return F_PLATFORM_ID; } public void setF_PLATFORM_ID(String f_PLATFORM_ID) { F_PLATFORM_ID = f_PLATFORM_ID; } public String getF_ISENTERPRISES() { return F_ISENTERPRISES; } public void setF_ISENTERPRISES(String f_ISENTERPRISES) { ...
repos\SpringBootBucket-master\springboot-batch\src\main\java\com\xncoding\trans\modules\common\vo\BscTollItem.java
1
请在Spring Boot框架中完成以下Java代码
public String getName() { return this.name; } public List<ValueHint> getValues() { return Collections.unmodifiableList(this.values); } public List<ValueProvider> getProviders() { return Collections.unmodifiableList(this.providers); } /** * Return an {@link ItemHint} with the given prefix applied. * @...
@Override public String toString() { return "ValueHint{value=" + this.value + ", description='" + this.description + '\'' + '}'; } } /** * A value provider. */ public static class ValueProvider { private final String name; private final Map<String, Object> parameters; public ValueProvider(Strin...
repos\spring-boot-4.0.1\configuration-metadata\spring-boot-configuration-processor\src\main\java\org\springframework\boot\configurationprocessor\metadata\ItemHint.java
2
请完成以下Java代码
private SqlDocumentFilterConvertersList buildViewFilterConverters() { return filterConverters.build(); } public Builder filterConverter(@NonNull final SqlDocumentFilterConverter converter) { filterConverters.converter(converter); return this; } public Builder filterConverters(@NonNull final List<...
this.rowCustomizer = rowCustomizer; return this; } private ViewRowCustomizer getRowCustomizer() { return rowCustomizer; } public Builder viewInvalidationAdvisor(@NonNull final IViewInvalidationAdvisor viewInvalidationAdvisor) { this.viewInvalidationAdvisor = viewInvalidationAdvisor; return thi...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\view\descriptor\SqlViewBinding.java
1
请完成以下Java代码
public String getDeploymentId() { return deploymentId; } public void setDeploymentId(String deploymentId) { this.deploymentId = deploymentId; } public int getState() { return state; } public void setState(int state) { this.state = state; } public String getTenantId() { return ten...
public boolean isFailureLog() { return state == JobState.FAILED.getStateCode(); } public boolean isSuccessLog() { return state == JobState.SUCCESSFUL.getStateCode(); } public boolean isDeletionLog() { return state == JobState.DELETED.getStateCode(); } public String getRootProcessInstanceId() ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\history\event\HistoricJobLogEvent.java
1
请完成以下Java代码
public int getAD_User_Alberta_ID() { return get_ValueAsInt(COLUMNNAME_AD_User_Alberta_ID); } @Override public void setAD_User_ID (final int AD_User_ID) { if (AD_User_ID < 0) set_ValueNoCheck (COLUMNNAME_AD_User_ID, null); else set_ValueNoCheck (COLUMNNAME_AD_User_ID, AD_User_ID); } @Override pu...
* Reference name: Title_List */ public static final int TITLE_AD_Reference_ID=541318; /** Unbekannt = 0 */ public static final String TITLE_Unbekannt = "0"; /** Dr. = 1 */ public static final String TITLE_Dr = "1"; /** Prof. Dr. = 2 */ public static final String TITLE_ProfDr = "2"; /** Dipl. Ing. = 3 */ publ...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.healthcare.alberta\src\main\java-gen\de\metas\vertical\healthcare\alberta\model\X_AD_User_Alberta.java
1
请完成以下Java代码
public class ParticipantMultiplicityImpl extends BaseElementImpl implements ParticipantMultiplicity { protected static Attribute<Integer> minimumAttribute; protected static Attribute<Integer> maximumAttribute; public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder =...
typeBuilder.build(); } public ParticipantMultiplicityImpl(ModelTypeInstanceContext instanceContext) { super(instanceContext); } public int getMinimum() { return minimumAttribute.getValue(this); } public void setMinimum(int minimum) { minimumAttribute.setValue(this, minimum); } public int...
repos\camunda-bpm-platform-master\model-api\bpmn-model\src\main\java\org\camunda\bpm\model\bpmn\impl\instance\ParticipantMultiplicityImpl.java
1
请在Spring Boot框架中完成以下Java代码
public class Inventory implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String title; @Min(value = 0) @Max(value = 100) private int quantity; @Version private short...
this.title = title; } public int getQuantity() { return quantity; } public void setQuantity(int quantity) { this.quantity = quantity; } public short getVersion() { return version; } }
repos\Hibernate-SpringBoot-master\HibernateSpringBootHTTPLongConversationDetachedEntity\src\main\java\com\bookstore\entity\Inventory.java
2
请完成以下Java代码
public boolean isYesNo() { if (m_displayType == 0) return m_value instanceof Boolean; return DisplayType.YesNo == m_displayType; } // isYesNo /** * Is Value the primary key of row * @return true if value is the PK */ public boolean isPKey() { return m_isPKey; } // isPKey /** * Column value ...
sb.append("(PK)"); return sb.toString(); } // toString /** * Value Has Key * @return true if value has a key */ public boolean hasKey() { return m_value instanceof NamePair; } // hasKey /** * String representation with key info * @return info */ public String toStringX() { if (m_value in...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\print\PrintDataElement.java
1
请完成以下Java代码
public PostingException setDocLine(final DocLine<?> docLine) { _docLine = docLine; resetMessageBuilt(); return this; } public DocLine<?> getDocLine() { return _docLine; } @SuppressWarnings("unused") public PostingException setLogLevel(@NonNull final Level logLevel) { this._logLevel = logLevel; ret...
*/ public Level getLogLevel() { return _logLevel; } @Override public PostingException setParameter( final @NonNull String parameterName, final @Nullable Object parameterValue) { super.setParameter(parameterName, parameterValue); return this; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java\de\metas\acct\doc\PostingException.java
1
请完成以下Java代码
public void setPackageDescription (final @Nullable java.lang.String PackageDescription) { set_Value (COLUMNNAME_PackageDescription, PackageDescription); } @Override public java.lang.String getPackageDescription() { return get_ValueAsString(COLUMNNAME_PackageDescription); } @Override public void setPdfLab...
{ return get_ValueAsString(COLUMNNAME_TrackingURL); } @Override public void setWeightInKg (final BigDecimal WeightInKg) { set_Value (COLUMNNAME_WeightInKg, WeightInKg); } @Override public BigDecimal getWeightInKg() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_WeightInKg); return bd != nul...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_Carrier_ShipmentOrder_Parcel.java
1
请完成以下Java代码
IQueryBuilder<I_AD_User_Record_Access> query(@NonNull final RecordAccessQuery query) { final IQueryBuilder<I_AD_User_Record_Access> queryBuilder = queryBL.createQueryBuilder(I_AD_User_Record_Access.class); // // Records final ImmutableSet<TableRecordReference> recordRefs = query.getRecordRefs(); if (!record...
throw new AdempiereException("Invalid principal: " + principal); // shall not happen } } if (!userIds.isEmpty() || !userGroupIds.isEmpty()) { final ICompositeQueryFilter<I_AD_User_Record_Access> principalsFilter = queryBuilder.addCompositeQueryFilter() .setJoinOr(); if (!userIds.isEmpty()) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\security\permissions\record_access\RecordAccessRepository.java
1
请完成以下Java代码
public int getDIM_Dimension_Type_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_DIM_Dimension_Type_ID); if (ii == null) return 0; return ii.intValue(); } /** Set DIM_Dimension_Type_InternalName. @param DIM_Dimension_Type_InternalName DIM_Dimension_Type_InternalName */ @Override public void setD...
/** Set inkl. "sonstige"-Eintrag. @param IsIncludeOtherGroup Legt fest, ob die Dimension einen dezidierten "Sonstige" Eintrag enthalten soll */ @Override public void setIsIncludeOtherGroup (boolean IsIncludeOtherGroup) { set_Value (COLUMNNAME_IsIncludeOtherGroup, Boolean.valueOf(IsIncludeOtherGroup)); } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.dimension\src\main\java-gen\de\metas\dimension\model\X_DIM_Dimension_Spec.java
1
请完成以下Java代码
private static IPricingRule createPricingRule(@Nullable final Supplier<IPricingRule> factory) { if (factory == null) { return null; } final IPricingRule pricingRule = factory.get(); if (pricingRule == null) { // shall not happen throw new AdempiereException("Got no pricing rule instance from " + ...
return; } currentPriceListVersionId = getBasePriceListVersionId(currentPriceListVersionId, date); } while (currentPriceListVersionId != null); } @Nullable private PriceListVersionId getPriceListVersionIdEffective(final IPricingContext pricingCtx, @NonNull final ZonedDateTime date) { final I_M_PriceLis...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\pricing\rules\price_list_version\PriceListVersionPricingRule.java
1
请完成以下Java代码
public class BaseAttributeKvEntry implements AttributeKvEntry { private static final long serialVersionUID = -6460767583563159407L; private final long lastUpdateTs; @Valid private final KvEntry kv; private final Long version; public BaseAttributeKvEntry(KvEntry kv, long lastUpdateTs) { ...
@Override public Optional<Long> getLongValue() { return kv.getLongValue(); } @Override public Optional<Boolean> getBooleanValue() { return kv.getBooleanValue(); } @Override public Optional<Double> getDoubleValue() { return kv.getDoubleValue(); } @Override ...
repos\thingsboard-master\common\data\src\main\java\org\thingsboard\server\common\data\kv\BaseAttributeKvEntry.java
1
请完成以下Java代码
public void setM_ReceiptSchedule_ID (int M_ReceiptSchedule_ID) { if (M_ReceiptSchedule_ID < 1) set_Value (COLUMNNAME_M_ReceiptSchedule_ID, null); else set_Value (COLUMNNAME_M_ReceiptSchedule_ID, Integer.valueOf(M_ReceiptSchedule_ID)); } @Override public int getM_ReceiptSchedule_ID() { return get_Va...
{ if (PP_Product_Planning_ID < 1) set_Value (COLUMNNAME_PP_Product_Planning_ID, null); else set_Value (COLUMNNAME_PP_Product_Planning_ID, Integer.valueOf(PP_Product_Planning_ID)); } @Override public int getPP_Product_Planning_ID() { return get_ValueAsInt(COLUMNNAME_PP_Product_Planning_ID); } @Ove...
repos\metasfresh-new_dawn_uat\backend\de.metas.material\dispo-commons\src\main\java-gen\de\metas\material\dispo\model\X_MD_Candidate_Purchase_Detail.java
1
请完成以下Java代码
public void setLengthInCm (final int LengthInCm) { set_Value (COLUMNNAME_LengthInCm, LengthInCm); } @Override public int getLengthInCm() { return get_ValueAsInt(COLUMNNAME_LengthInCm); } @Override public void setM_Package_ID (final int M_Package_ID) { if (M_Package_ID < 1) set_Value (COLUMNNAME_M_...
@Override public byte[] getPdfLabelData() { return (byte[])get_Value(COLUMNNAME_PdfLabelData); } @Override public void setTrackingURL (final @Nullable java.lang.String TrackingURL) { set_Value (COLUMNNAME_TrackingURL, TrackingURL); } @Override public java.lang.String getTrackingURL() { return get_Va...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_Carrier_ShipmentOrder_Parcel.java
1
请完成以下Java代码
public int getAD_WF_ActivityResult_ID() { return get_ValueAsInt(COLUMNNAME_AD_WF_ActivityResult_ID); } @Override public void setAttributeName (final java.lang.String AttributeName) { set_Value (COLUMNNAME_AttributeName, AttributeName); } @Override public java.lang.String getAttributeName() { return g...
@Override public void setDescription (final java.lang.String Description) { set_Value (COLUMNNAME_Description, Description); } @Override public java.lang.String getDescription() { return get_ValueAsString(COLUMNNAME_Description); } @Override public void setHelp (final java.lang.String Help) { set_Val...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_WF_ActivityResult.java
1
请完成以下Java代码
public class DefaultHUStorageFactory implements IHUStorageFactory { private final IHUStorageDAO storageDAO; public DefaultHUStorageFactory() { this(new HUStorageDAO()); } public DefaultHUStorageFactory(@NonNull final IHUStorageDAO storageDAO) { this.storageDAO = storageDAO; } @Override public IHUStorage...
return getStorage(hu).isSingleProductWithQtyEqualsTo(productId, qty); } @Override public boolean isSingleProductStorageMatching(@NonNull final I_M_HU hu, @NonNull final ProductId productId) { return getStorage(hu).isSingleProductStorageMatching(productId); } @NonNull public IHUProductStorage getSingleHUProdu...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\storage\impl\DefaultHUStorageFactory.java
1
请完成以下Java代码
private boolean isReserved() { return reservationDocRef != null; } public boolean isReservedOnlyFor(@NonNull final AllocablePackageable allocable) { return isReservedOnlyFor(allocable.getReservationRef().orElse(null)); } public boolean isReservedOnlyFor(@Nullable final HUReservationDocRef reservationDocRef)...
} private static Quantity computeEffectiveQtyToAllocate( @NonNull final Quantity requestedQtyToAllocate, @NonNull final Quantity qtyFreeToAllocate) { if (requestedQtyToAllocate.signum() <= 0) { return requestedQtyToAllocate.toZero(); } else if (qtyFreeToAllocate.signum() <= 0) { return requeste...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\picking\plan\generator\allocableHUStorages\VHUAllocableStorage.java
1
请完成以下Java代码
public class Execute { void executeSync() { GraphQlClient graphQlClient = null; String document = ""; // tag::executeSync[] ClientGraphQlResponse response = graphQlClient.document(document).executeSync(); if (!response.isValid()) { // Request failure... <1> } ClientResponseField field = response.fi...
ClientResponseField field = response.field("project"); if (field.getValue() == null) { if (field.getErrors().isEmpty()) { // Optional field set to null... <2> } else { // Field failure... <3> } } return field.toEntity(Project.class); // <4> }); // end::execute...
repos\spring-graphql-main\spring-graphql-docs\src\main\java\org\springframework\graphql\docs\client\requests\execute\Execute.java
1
请完成以下Java代码
public void setC_ReferenceNo_ID (int C_ReferenceNo_ID) { if (C_ReferenceNo_ID < 1) set_ValueNoCheck (COLUMNNAME_C_ReferenceNo_ID, null); else set_ValueNoCheck (COLUMNNAME_C_ReferenceNo_ID, Integer.valueOf(C_ReferenceNo_ID)); } /** Get Reference No. @return Reference No */ @Override public int getC...
set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); } /** Get Datensatz-ID. @return Direct internal record ID */ @Override public int getRecord_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID); if (ii == null) return 0; return ii.intValue(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.document.refid\src\main\java-gen\de\metas\document\refid\model\X_C_ReferenceNo_Doc.java
1
请完成以下Java代码
public ResponseEntity<Object> createDept(@Validated @RequestBody Dept resources){ if (resources.getId() != null) { throw new BadRequestException("A new "+ ENTITY_NAME +" cannot already have an ID"); } deptService.create(resources); return new ResponseEntity<>(HttpStatus.CREAT...
@DeleteMapping @PreAuthorize("@el.check('dept:del')") public ResponseEntity<Object> deleteDept(@RequestBody Set<Long> ids){ Set<DeptDto> deptDtos = new HashSet<>(); for (Long id : ids) { List<Dept> deptList = deptService.findByPid(id); deptDtos.add(deptService.findById(id...
repos\eladmin-master\eladmin-system\src\main\java\me\zhengjie\modules\system\rest\DeptController.java
1
请完成以下Java代码
public class BodyMassIndex { private String name; private double height; private double weight; public BodyMassIndex(String name, double height, double weight) { this.name = name; this.height = height; this.weight = weight; } public String getName() { return na...
public double getWeight() { return weight; } public void setWeight(double weight) { this.weight = weight; } public double calculate() { double bmi = weight / (height * height); String formattedBmi = String.format("%.2f", bmi); return Double.parseDouble(formatted...
repos\tutorials-master\core-java-modules\core-java-console\src\main\java\com\baeldung\consoletableoutput\BodyMassIndex.java
1
请完成以下Java代码
public ConditionRestService getConditionRestService() { return super.getConditionRestService(null); } @Path(OptimizeRestService.PATH) public OptimizeRestService getOptimizeRestService() { return super.getOptimizeRestService(null); } @Path(VersionRestService.PATH) public VersionRestService getVersi...
} @Path(EventSubscriptionRestService.PATH) public EventSubscriptionRestService getEventSubscriptionRestService() { return super.getEventSubscriptionRestService(null); } @Path(TelemetryRestService.PATH) public TelemetryRestService getTelemetryRestService() { return super.getTelemetryRestService(null)...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\impl\DefaultProcessEngineRestServiceImpl.java
1
请完成以下Java代码
public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final AuthorId other = (AuthorId) o...
return false; } if (!Objects.equals(this.name, other.name)) { return false; } return true; } @Override public String toString() { return "AuthorId{" + "name=" + name + ", age=" + age + '}'; } }
repos\Hibernate-SpringBoot-master\HibernateSpringBootCompositeKeyEmbeddable\src\main\java\com\bookstore\entity\AuthorId.java
1
请完成以下Java代码
protected List<URL> getProcessesXmlUrls(String[] deploymentDescriptors, AbstractProcessApplication processApplication) { ClassLoader processApplicationClassloader = processApplication.getProcessApplicationClassloader(); List<URL> result = new ArrayList<URL>(); // load all deployment descriptor files using...
protected boolean isEmptyFile(URL url) { InputStream inputStream = null; try { inputStream = url.openStream(); return inputStream.available() == 0; } catch (IOException e) { throw LOG.exceptionWhileReadingProcessesXml(url.toString(), e); } finally { IoUtil.closeSilentl...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\container\impl\deployment\ParseProcessesXmlStep.java
1
请完成以下Java代码
public boolean containsExpression(final Object source) { if (source == null) { return false; } else if (source instanceof String) { return containsExpressionString((String) source); } else if (source instanceof ObjectNode) { return containsExpressionMap(mapper...
if (containsExpression(entry.getValue())) { return true; } } return false; } private boolean containsExpressionList(List<?> source) { for (Object item : source) { if (containsExpression(item)) { return true; } }...
repos\Activiti-develop\activiti-core\activiti-api-impl\activiti-api-process-runtime-impl\src\main\java\org\activiti\runtime\api\impl\ExpressionResolver.java
1
请完成以下Java代码
public LockManager getLockManager(String lockName) { return new LockManagerImpl(commandExecutor, lockName, getConfiguration().getLockPollRate(), configuration.getEngineCfgKey()); } @Override public <MapperType, ResultType> ResultType executeCustomSql(CustomSqlExecution<MapperType, ResultType> custo...
} @Override public ExternalWorkerCompletionBuilder createExternalWorkerCompletionBuilder(String externalJobId, String workerId) { return new ExternalWorkerCompletionBuilderImpl(commandExecutor, externalJobId, workerId, configuration.getJobServiceConfiguration()); } @Override public voi...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\ManagementServiceImpl.java
1
请在Spring Boot框架中完成以下Java代码
public class OrderBasedAggregation { @NonNull private final OrderBasedAggregationKey key; private boolean partiallyPickedBefore = false; @NonNull private final PickingJobCandidateProductsCollector productsCollector = new PickingJobCandidateProductsCollector(); @NonNull private final HashSet<ShipmentScheduleAndJobSc...
public PickingJobCandidate toPickingJobCandidate() { return PickingJobCandidate.builder() .aggregationType(PickingJobAggregationType.SALES_ORDER) .preparationDate(key.getPreparationDate()) .salesOrderId(key.getSalesOrderId()) .salesOrderDocumentNo(key.getSalesOrderDocumentNo()) .customerName(key....
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\picking\job\service\commands\retrieve\OrderBasedAggregation.java
2
请完成以下Java代码
private boolean matches( @NonNull final IdentifierString contactIdentifier, @NonNull final BPartnerContact contact) { switch (contactIdentifier.getType()) { case EXTERNAL_ID: return contactIdentifier.asExternalId().equals(contact.getExternalId()); case GLN: throw new AdempiereException("Identif...
} switch (jsonInvoiceRule) { case AfterDelivery: return InvoiceRule.AfterDelivery; case CustomerScheduleAfterDelivery: return InvoiceRule.CustomerScheduleAfterDelivery; case Immediate: return InvoiceRule.Immediate; case OrderCompletelyDelivered: return InvoiceRule.OrderCompletelyDelivere...
repos\metasfresh-new_dawn_uat\backend\de.metas.business.rest-api-impl\src\main\java\de\metas\rest_api\v1\bpartner\bpartnercomposite\BPartnerCompositeRestUtils.java
1
请完成以下Java代码
private BPartnerBankAccountId getBPartnerBankAccountId(@NonNull final BPartnerId bPartnerId) { final I_C_BP_BankAccount sourceBPartnerBankAccount = bankAccountDAO.retrieveDefaultBankAccountInTrx(bPartnerId) .orElseThrow(() -> new AdempiereException("No BPartnerBankAccount found for BPartnerId") .appendPara...
.gln(bpartnerIdentifier.asGLN()) .build(); break; case VALUE: query = BPartnerQuery.builder() .bpartnerValue(bpartnerIdentifier.asValue()) .build(); break; default: throw new AdempiereException("Invalid bpartnerIdentifier: " + bpartnerIdentifier); } return query; } @Visibl...
repos\metasfresh-new_dawn_uat\backend\de.metas.business.rest-api-impl\src\main\java\de\metas\rest_api\remittanceadvice\impl\CreateRemittanceAdviceService.java
1
请完成以下Java代码
public class LimitedFileDownloadWebClient { private LimitedFileDownloadWebClient() { } public static long fetch(WebClient client, String destination) throws IOException { Mono<byte[]> mono = client.get() .retrieve() .bodyToMono(byte[].class) .onErrorMap(RuntimeE...
.build(); long bytes = fetch(client, destination); System.out.printf("downloaded %d bytes to %s", bytes, destination); } public static ExchangeStrategies useMaxMemory() { long totalMemory = Runtime.getRuntime() .maxMemory(); return ExchangeStrategies.builder() ...
repos\tutorials-master\spring-reactive-modules\spring-reactive-client-2\src\main\java\com\baeldung\streamlargefile\client\LimitedFileDownloadWebClient.java
1
请完成以下Java代码
protected String doIt() { final BatchProcessBOMCostCalculatorRepository bomCostCalculatorRepo = BatchProcessBOMCostCalculatorRepository.builder() .clientId(clientId) .orgId(orgId) .acctSchema(acctSchema) .costTypeId(costTypeId) .costingMethod(costingMethod) .build(); final BOMCostCalculato...
.orderBy(I_M_Product.COLUMN_M_Product_ID) // just to have a predictable order .addEqualsFilter(I_M_Product.COLUMNNAME_AD_Client_ID, clientId) .addEqualsFilter(I_M_Product.COLUMNNAME_IsBOM, true); if (productId != null) { queryBuilder.addEqualsFilter(I_M_Product.COLUMN_M_Product_ID, productId); } els...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing\src\main\java\org\eevolution\process\RollupBillOfMaterial.java
1
请完成以下Java代码
public class OrderLineProductQtyGridRowBuilder implements IGridTabRowBuilder { private static final transient Logger logger = LogManager.getLogger(OrderLineProductQtyGridRowBuilder.class); private int productId; private BigDecimal qty; public OrderLineProductQtyGridRowBuilder() { super(); } @Override publ...
{ if (!InterfaceWrapperHelper.isInstanceOf(model, I_C_OrderLine.class)) { logger.debug("Skip applying because it's not an order line: {}", model); return; } final I_C_OrderLine orderLine = InterfaceWrapperHelper.create(model, I_C_OrderLine.class); apply(orderLine); } private void apply(final I_C_Ord...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\adempiere\gui\search\OrderLineProductQtyGridRowBuilder.java
1
请完成以下Java代码
private IStatementLineWrapper buildBatchReportEntryWrapper(@NonNull final ReportEntry2 reportEntry) { return BatchReportEntry2Wrapper.builder() .currencyRepository(getCurrencyRepository()) .entry(reportEntry) .build(); } @NonNull private Optional<CashBalance3> findOPBDCashBalance() { return accoun...
} private static boolean isPRCDCashBalance(@NonNull final CashBalance3 cashBalance) { final BalanceType12Code balanceTypeCode = cashBalance.getTp().getCdOrPrtry().getCd(); return BalanceType12Code.PRCD.equals(balanceTypeCode); } private static boolean isOPBDCashBalance(@NonNull final CashBalance3 cashBalance...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.camt53\src\main\java\de\metas\banking\camt53\wrapper\v02\AccountStatement2Wrapper.java
1
请完成以下Java代码
public static List<Person> search(List<Person> people, String name, Optional<Integer> age) { // Null checks for people and name return people.stream() .filter(p -> p.getName().equals(name)) .filter(p -> p.getAge().get() >= age.orElse(0)) .collect(Collector...
return doSearch(people, name, 0); } public static List<Person> search(List<Person> people, String name, int age) { return doSearch(people, name, age); } private static List<Person> doSearch(List<Person> people, String name, int age) { // Null checks for people and name return p...
repos\tutorials-master\core-java-modules\core-java-11-2\src\main\java\com\baeldung\optional\Person.java
1
请完成以下Java代码
public double getY() { return y; } public void setY(double y) { this.y = y; } public double getHeight() { return height; } public void setHeight(double height) { this.height = height; } public double getWidth() { return width; } public...
public boolean equals(GraphicInfo ginfo) { if (this.getX() != ginfo.getX()) { return false; } if (this.getY() != ginfo.getY()) { return false; } if (this.getHeight() != ginfo.getHeight()) { return false; } if (this.getWidth() != ginfo.getWidth()) { return false...
repos\flowable-engine-main\modules\flowable-cmmn-model\src\main\java\org\flowable\cmmn\model\GraphicInfo.java
1
请完成以下Java代码
public void setIsReplicated (boolean IsReplicated) { set_ValueNoCheck (COLUMNNAME_IsReplicated, Boolean.valueOf(IsReplicated)); } /** Get Replicated. @return The data is successfully replicated */ public boolean isReplicated () { Object oo = get_Value(COLUMNNAME_IsReplicated); if (oo != null) { ...
public void setName (String Name) { set_Value (COLUMNNAME_Name, Name); } /** Get Name. @return Alphanumeric identifier of the entity */ public String getName () { return (String)get_Value(COLUMNNAME_Name); } /** Get Record ID/ColumnName @return ID/ColumnName pair */ public KeyNam...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_Replication_Run.java
1
请完成以下Java代码
public long size() { return cache.size(); } // size /** * @see java.util.Map#values() */ public Collection<V> values() { return cache.asMap().values(); } // values @Override protected final void finalize() throws Throwable { // NOTE: to avoid memory leaks we need to programatically clear our ...
return CCacheStats.builder() .cacheId(cacheId) .name(cacheName) .labels(labels) .config(config) .debugAcquireStacktrace(debugAcquireStacktrace) // .size(cache.size()) .hitCount(guavaStats.hitCount()) .missCount(guavaStats.missCount()) .build(); } private boolean isNoCache() {...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\cache\CCache.java
1
请完成以下Java代码
public ViewLayout getViewLayout( @NonNull final WindowId windowId, @NonNull final JSONViewDataType viewDataType, @Nullable final ViewProfileId profileId) { Check.errorUnless(MaterialCockpitUtil.WINDOWID_MaterialCockpitView.equals(windowId), "The parameter windowId needs to be {}, but is {} instead; view...
} private boolean retrieveIsIncludePerPlantDetailRows() { return Services.get(ISysConfigBL.class).getBooleanValue( MaterialCockpitUtil.SYSCONFIG_INCLUDE_PER_PLANT_DETAIL_ROWS, false, Env.getAD_Client_ID(), Env.getAD_Org_ID(Env.getCtx())); } private MaterialCockpitDetailsRowAggregation retrieveDe...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\material\cockpit\MaterialCockpitViewFactory.java
1
请完成以下Java代码
public final class MRole extends X_AD_Role { /** * */ private static final long serialVersionUID = -6722616714353225616L; @SuppressWarnings("unused") public MRole(final Properties ctx, final int AD_Role_ID, final String trxName) { super(ctx, AD_Role_ID, trxName); if (is_new()) { // setName (null); ...
setIsShowAcct(false); setIsAccessAllOrgs(false); setUserLevel(USERLEVEL_Organization); setPreferenceType(PREFERENCETYPE_Organization); setIsChangeLog(false); setOverwritePriceLimit(false); setIsUseUserOrgAccess(false); setMaxQueryRecords(0); setConfirmQueryRecords(0); } } @SuppressWarnings(...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\MRole.java
1
请完成以下Java代码
public String getNb() { return nb; } /** * Sets the value of the nb property. * * @param value * allowed object is * {@link String } * */ public void setNb(String value) { this.nb = value; } /** * Gets the value of the rltdDt pr...
} /** * Gets the value of the lineDtls property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.esr\src\main\java-xjc_camt054_001_06\de\metas\payment\camt054_001_06\ReferredDocumentInformation7.java
1
请在Spring Boot框架中完成以下Java代码
public class ChartOfAccountsService { private final IADTableDAO adTreeDAO = Services.get(IADTableDAO.class); private final ChartOfAccountsRepository chartOfAccountsRepository; public ChartOfAccountsService( @NonNull final ChartOfAccountsRepository chartOfAccountsRepository) { this.chartOfAccountsRepository = ...
{ final AdTreeId chartOfAccountsTreeId = createChartOfAccountsTree(request.getName(), request.getOrgId()); return chartOfAccountsRepository.createChartOfAccounts(request.getName(), request.getClientId(), request.getOrgId(), chartOfAccountsTreeId); } private AdTreeId createChartOfAccountsTree(@NonNull final Strin...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java\de\metas\elementvalue\ChartOfAccountsService.java
2
请完成以下Java代码
public static class Sbom { /** * Location to the SBOM. If null, the location will be auto-detected. */ private @Nullable String location; /** * Media type of the SBOM. If null, the media type will be auto-detected. */ private @Nullable MimeType mediaType; public @Nullable String getLocation() {...
public void setLocation(@Nullable String location) { this.location = location; } public @Nullable MimeType getMediaType() { return this.mediaType; } public void setMediaType(@Nullable MimeType mediaType) { this.mediaType = mediaType; } } }
repos\spring-boot-4.0.1\module\spring-boot-actuator\src\main\java\org\springframework\boot\actuate\sbom\SbomProperties.java
1
请完成以下Java代码
private static String extractCsvFieldDelimiter(final I_DATEV_ExportFormat formatPO) { String delimiter = formatPO.getCSVFieldDelimiter(); if (delimiter == null) { return ""; } return delimiter .replace("\\t", "\t") .replace("\\r", "\r") .replace("\\n", "\n"); } private static String extrac...
final String quote = formatPO.getCSVFieldQuote(); if (quote == null) { return ""; } else if ("-".equals(quote)) { return ""; } else { return quote; } } }
repos\metasfresh-new_dawn_uat\backend\de.metas.datev\src\main\java\de\metas\datev\DATEVExportFormatRepository.java
1
请完成以下Java代码
public DmnDecisionTableResult evaluateDecisionTableById(String decisionDefinitionId, Map<String, Object> variables) { return evaluateDecisionTableById(decisionDefinitionId) .variables(variables) .evaluate(); } public DmnDecisionTableResult evaluateDecisionTableByKey(String decisionDefinitionKey...
return DecisionTableEvaluationBuilderImpl.evaluateDecisionTableByKey(commandExecutor, decisionDefinitionKey); } public DecisionEvaluationBuilder evaluateDecisionTableById(String decisionDefinitionId) { return DecisionTableEvaluationBuilderImpl.evaluateDecisionTableById(commandExecutor, decisionDefinitionId); ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\DecisionServiceImpl.java
1
请完成以下Java代码
public String getName() { return name; } public void setName(String name) { this.name = name == null ? null : name.trim(); } public String getCountrycode() { return countrycode; } public void setCountrycode(String countrycode) { this.countrycode = countrycode =...
public String getDistrict() { return district; } public void setDistrict(String district) { this.district = district == null ? null : district.trim(); } public Integer getPopulation() { return population; } public void setPopulation(Integer population) { this.p...
repos\spring-boot-quick-master\quick-modules\dao\src\main\java\com\modules\entity\City.java
1
请在Spring Boot框架中完成以下Java代码
HazelcastPropertiesCustomizer hazelcastPropertiesCustomizer(ObjectProvider<HazelcastInstance> hazelcastInstance, CacheProperties cacheProperties) { return new HazelcastPropertiesCustomizer(hazelcastInstance.getIfUnique(), cacheProperties); } static class HazelcastPropertiesCustomizer implements JCacheProperties...
properties.setProperty("hazelcast.config.location", toUri(configLocation).toString()); } else if (this.hazelcastInstance != null) { properties.put("hazelcast.instance.itself", this.hazelcastInstance); } } private static URI toUri(Resource config) { try { return config.getURI(); } catch (I...
repos\spring-boot-4.0.1\module\spring-boot-cache\src\main\java\org\springframework\boot\cache\autoconfigure\HazelcastJCacheCustomizationConfiguration.java
2
请完成以下Java代码
public abstract class PackingHUsViewBasedProcess extends HUEditorProcessTemplate { private final transient IQueryBL queryBL = Services.get(IQueryBL.class); protected final List<I_M_HU> retrieveEligibleHUs() { final Set<HuId> huIds = streamEligibleHURows() .map(HUEditorRow::getHuId) .filter(Objects::nonNul...
.addOnlyActiveRecordsFilter() .create() .list(I_M_HU.class); Check.assumeNotEmpty(hus, "hus is not empty"); // shall not happen return hus; } protected final Stream<HUEditorRow> streamEligibleHURows() { return streamSelectedRows(HUEditorRowFilter.select(Select.ONLY_TOPLEVEL)); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\pickingslotsClearing\process\PackingHUsViewBasedProcess.java
1
请完成以下Java代码
public void delete() { Context.getCommandContext() .getDbSqlSession() .delete(this); // Also delete the job's exception and the custom values byte array exceptionByteArrayRef.delete(); customValuesByteArrayRef.delete(); // remove link to executio...
public String getLockOwner() { return lockOwner; } public void setLockOwner(String lockOwner) { this.lockOwner = lockOwner; } public Date getLockExpirationTime() { return lockExpirationTime; } public void setLockExpirationTime(Date lockExpirationTime) { this.lo...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\persistence\entity\JobEntity.java
1
请完成以下Java代码
public void stateChanged(ChangeEvent e) { if (tabbedPane.getSelectedIndex() == 1) // switch to HTML textPane.setText(textArea.getText()); } // stateChanged @Override public void keyTyped (KeyEvent e) { } @Override public void keyPressed (KeyEvent e) { } @Override public void keyReleased (KeyEvent e...
GridField field = null; if (c instanceof VEditor) { VEditor editor = (VEditor)c; field = editor.getField(); } else { try { field = (GridField)c.getClass().getMethod("getField").invoke(c); } catch (Exception e) { final AdempiereException ex = new AdempiereException("Cannot get Grid...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\grid\ed\Editor.java
1
请完成以下Java代码
public static GlobalQRCode ofNullableString(@Nullable final String string) { return StringUtils.trimBlankToNullAndMap(string, GlobalQRCode::ofString); } public static GlobalQRCode ofString(@NonNull final String string) { return parse(string).orThrow(); } public static GlobalQRCode ofBase64Encoded(@NonNull f...
.type(type) .version(version) .payloadAsJson(payloadAsJson) .build()); } public <T> T getPayloadAs(@NonNull final Class<T> type) { try { return JsonObjectMapperHolder.sharedJsonObjectMapper().readValue(payloadAsJson, type); } catch (JsonProcessingException e) { throw Check.mkEx("Failed c...
repos\metasfresh-new_dawn_uat\backend\de.metas.global_qrcode.api\src\main\java\de\metas\global_qrcodes\GlobalQRCode.java
1
请完成以下Java代码
public class SysPermission implements Serializable { private static final long serialVersionUID = 1L; /** * id */ @TableId(type = IdType.ASSIGN_ID) private String id; /** * 父id */ private String parentId; /** * 菜单名称 */ private String name; /** * 菜单权限编码,例如:“sys:schedule:list,sys:schedule:info...
* 是否隐藏路由菜单: 0否,1是(默认值0) */ private boolean hidden; /** * 是否隐藏Tab: 0否,1是(默认值0) */ private boolean hideTab; /** * 创建时间 */ private Date createTime; /** * 更新人 */ private String updateBy; /** * 更新时间 */ private Date updateTime; /**按钮权限状态(0无效1有效)*/ private java.lang.String status; /**alwa...
repos\JeecgBoot-main\jeecg-boot\jeecg-module-system\jeecg-system-biz\src\main\java\org\jeecg\modules\system\entity\SysPermission.java
1
请完成以下Java代码
public class DecisionTaskJsonConverter extends BaseBpmnJsonConverter implements DecisionTableAwareConverter { protected Map<String, String> decisionTableMap; public static void fillTypes( Map<String, Class<? extends BaseBpmnJsonConverter>> convertersToBpmnMap, Map<Class<? extends BaseElement>,...
) { String decisionTableId = decisionTableReferenceNode.get("id").asText(); if (decisionTableMap != null) { String decisionTableKey = decisionTableMap.get(decisionTableId); FieldExtension decisionTableKeyField = new FieldExtension(); decisionTable...
repos\Activiti-develop\activiti-core\activiti-json-converter\src\main\java\org\activiti\editor\language\json\converter\DecisionTaskJsonConverter.java
1
请完成以下Java代码
public class KafkaConsumerRecordInformationPayloadExtractor<T> implements InboundEventInfoAwarePayloadExtractor<T> { @Override public Collection<EventPayloadInstance> extractPayload(EventModel eventModel, FlowableEventInfo<T> event) { InboundChannelModel inboundChannel = event.getInboundChannel(); ...
addPayloadIfAvailable(inboundChannel.getPartitionOutputName(), eventModel, consumerRecord::partition, payloadInstances::add); addPayloadIfAvailable(inboundChannel.getOffsetOutputName(), eventModel, consumerRecord::offset, payloadInstances::add); return payloadInstances; } protected void addPay...
repos\flowable-engine-main\modules\flowable-event-registry-spring\src\main\java\org\flowable\eventregistry\spring\kafka\payload\KafkaConsumerRecordInformationPayloadExtractor.java
1
请完成以下Java代码
protected POInfo initPO(final Properties ctx) { return POInfo.getPOInfo(Table_Name); } @Override public void setBase_url (final String Base_url) { set_Value (COLUMNNAME_Base_url, Base_url); } @Override public String getBase_url() { return get_ValueAsString(COLUMNNAME_Base_url); } @Override public ...
@Override public void setRead_timeout (final int Read_timeout) { set_Value (COLUMNNAME_Read_timeout, Read_timeout); } @Override public int getRead_timeout() { return get_ValueAsInt(COLUMNNAME_Read_timeout); } @Override public void setS_PostgREST_Config_ID (final int S_PostgREST_Config_ID) { if (S_Pos...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_S_PostgREST_Config.java
1
请完成以下Java代码
public abstract class AbstractEntityNoRevision implements Entity { protected String id; protected boolean isInserted; protected boolean isUpdated; protected boolean isDeleted; @Override public String getId() { return id; } @Override public void setId(String id) { t...
public void setInserted(boolean isInserted) { this.isInserted = isInserted; } public boolean isUpdated() { return isUpdated; } public void setUpdated(boolean isUpdated) { this.isUpdated = isUpdated; } public boolean isDeleted() { return isDeleted; } pu...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\persistence\entity\AbstractEntityNoRevision.java
1
请完成以下Java代码
public java.lang.String getIncludeLogic () { return (java.lang.String)get_Value(COLUMNNAME_IncludeLogic); } /** * Type AD_Reference_ID=540532 * Reference name: C_AggregationItem_Type */ public static final int TYPE_AD_Reference_ID=540532; /** Column = COL */ public static final String TYPE_Column = "CO...
Type of Validation (SQL, Java Script, Java Language) */ @Override public void setType (java.lang.String Type) { set_Value (COLUMNNAME_Type, Type); } /** Get Art. @return Type of Validation (SQL, Java Script, Java Language) */ @Override public java.lang.String getType () { return (java.lang.String...
repos\metasfresh-new_dawn_uat\backend\de.metas.aggregation\src\main\java-gen\de\metas\aggregation\model\X_C_AggregationItem.java
1
请完成以下Java代码
public class X_C_ConversionRate_Rule extends org.compiere.model.PO implements I_C_ConversionRate_Rule, org.compiere.model.I_Persistent { private static final long serialVersionUID = -1651076087L; /** Standard Constructor */ public X_C_ConversionRate_Rule (final Properties ctx, final int C_ConversionRate_Rul...
@Override public int getC_Currency_To_ID() { return get_ValueAsInt(COLUMNNAME_C_Currency_To_ID); } @Override public void setMultiplyRate_Max (final @Nullable BigDecimal MultiplyRate_Max) { set_Value (COLUMNNAME_MultiplyRate_Max, MultiplyRate_Max); } @Override public BigDecimal getMultiplyRate_Max() { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_ConversionRate_Rule.java
1
请在Spring Boot框架中完成以下Java代码
public List<RestIdentityLink> getIdentityLinks(@ApiParam(name = "taskId") @PathVariable("taskId") String taskId) { Task task = getTaskFromRequestWithoutAccessCheck(taskId); if (restApiInterceptor != null) { restApiInterceptor.accessTaskIdentityLinks(task); } return restResp...
throw new FlowableIllegalArgumentException("Only one of user or group can be used to create an identity link."); } if (identityLink.getType() == null) { throw new FlowableIllegalArgumentException("The identity link type is required."); } if (restApiInterceptor != null) { ...
repos\flowable-engine-main\modules\flowable-cmmn-rest\src\main\java\org\flowable\cmmn\rest\service\api\runtime\task\TaskIdentityLinkCollectionResource.java
2
请完成以下Java代码
public String getCaseInstanceId() { return caseInstanceId; } public Map<String, Object> getVariables() { return modificationBuilder.getProcessVariables(); } public String getTenantId() { return tenantId; } public String getProcessDefinitionTenantId() { return processDefinitionTenantId; ...
public String getRestartedProcessInstanceId(){ return restartedProcessInstanceId; } public static ProcessInstantiationBuilder createProcessInstanceById(CommandExecutor commandExecutor, String processDefinitionId) { ProcessInstantiationBuilderImpl builder = new ProcessInstantiationBuilderImpl(commandExecu...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\ProcessInstantiationBuilderImpl.java
1
请完成以下Java代码
public FactLineBuilder toLocation(final Optional<LocationId> optionalLocationId) { optionalLocationId.ifPresent(locationId -> this.toLocationId = locationId); return this; } public FactLineBuilder toLocationOfBPartner(@Nullable final BPartnerLocationId bpartnerLocationId) { return toLocation(getServices().ge...
return this; } public FactLineBuilder productId(@Nullable ProductId productId) { assertNotBuild(); this.productId = Optional.ofNullable(productId); return this; } public FactLineBuilder userElementString1(@Nullable final String userElementString1) { assertNotBuild(); this.userElementString1 = StringUt...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java-legacy\org\compiere\acct\FactLineBuilder.java
1
请完成以下Java代码
public java.lang.String getServiceFeeExternalInvoiceDocumentNo() { return get_ValueAsString(COLUMNNAME_ServiceFeeExternalInvoiceDocumentNo); } @Override public void setServiceFeeInvoicedDate (final @Nullable java.sql.Timestamp ServiceFeeInvoicedDate) { set_Value (COLUMNNAME_ServiceFeeInvoicedDate, ServiceFee...
public int getSource_BP_BankAccount_ID() { return get_ValueAsInt(COLUMNNAME_Source_BP_BankAccount_ID); } @Override public void setSource_BPartner_ID (final int Source_BPartner_ID) { if (Source_BPartner_ID < 1) set_Value (COLUMNNAME_Source_BPartner_ID, null); else set_Value (COLUMNNAME_Source_BPartn...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_RemittanceAdvice.java
1
请完成以下Java代码
public void setTenantIdProvider(ParameterValueProvider tenantIdProvider) { this.tenantIdProvider = tenantIdProvider; } public String getDeploymentId() { return deploymentId; } public void setDeploymentId(String deploymentId) { this.deploymentId = deploymentId; } public String getDefinitionTen...
} /** * @return true if any of the references that specify the callable element are non-literal and need to be resolved with * potential side effects to determine the process or case definition that is to be called. */ public boolean hasDynamicReferences() { return (tenantIdProvider != null && tenantI...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\core\model\BaseCallableElement.java
1
请在Spring Boot框架中完成以下Java代码
public class CampaignId implements RepoIdAware { int repoId; @JsonCreator public static CampaignId ofRepoId(final int repoId) { return new CampaignId(repoId); } @Nullable public static CampaignId ofRepoIdOrNull(final int repoId) { return repoId > 0 ? ofRepoId(repoId) : null; }
private CampaignId(final int repoId) { this.repoId = Check.assumeGreaterThanZero(repoId, "MKTG_Campaign_ID"); } @Override @JsonValue public int getRepoId() { return repoId; } public static int toRepoId(@Nullable final de.metas.marketing.base.model.CampaignId id) { return id != null ? id.getRepoId() : -1; ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\marketing\base\model\CampaignId.java
2
请完成以下Java代码
private static void updateRecord(final I_C_Order_Cost record, final OrderCost from) { record.setIsActive(true); record.setC_Order_ID(from.getOrderId().getRepoId()); record.setIsSOTrx(from.getSoTrx().toBoolean()); record.setAD_Org_ID(from.getOrgId().getRepoId()); record.setC_BPartner_ID(BPartnerId.toRepoId(fr...
record.setQtyReceived(from.getInoutQty().toBigDecimal()); record.setCostAmountReceived(from.getInoutCostAmount().toBigDecimal()); } private static void updateRecord(final I_C_Order_Cost_Detail record, final OrderCostDetailOrderLinePart from) { record.setC_OrderLine_ID(from.getOrderLineId().getRepoId()); recor...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\order\costs\OrderCostRepositorySession.java
1
请完成以下Java代码
public <T extends BusinessCaseDetail> Candidate withBusinessCaseDetail(@NonNull final Class<T> type, @NonNull final UnaryOperator<T> mapper) { final T businessCaseDetail = getBusinessCaseDetailNotNull(type); final T businessCaseDetailChanged = mapper.apply(businessCaseDetail); if (Objects.equals(businessCaseDeta...
{ case DEMAND: return potentialStockCandidate.getParentId().equals(id); case SUPPLY: return potentialStockCandidate.getId().equals(parentId); default: return false; } } /** * The qty is always stored as an absolute value on the candidate, but we're interested if the candidate is adding or su...
repos\metasfresh-new_dawn_uat\backend\de.metas.material\dispo-commons\src\main\java\de\metas\material\dispo\commons\candidate\Candidate.java
1
请完成以下Java代码
public void setDeadLineUnit (final java.lang.String DeadLineUnit) { set_Value (COLUMNNAME_DeadLineUnit, DeadLineUnit); } @Override public java.lang.String getDeadLineUnit() { return get_ValueAsString(COLUMNNAME_DeadLineUnit); } @Override public void setDescription (final @Nullable java.lang.String Descri...
set_Value (COLUMNNAME_M_PricingSystem_ID, M_PricingSystem_ID); } @Override public int getM_PricingSystem_ID() { return get_ValueAsInt(COLUMNNAME_M_PricingSystem_ID); } @Override public void setM_Product_ID (final int M_Product_ID) { if (M_Product_ID < 1) set_Value (COLUMNNAME_M_Product_ID, null); e...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java-gen\de\metas\contracts\model\X_C_Contract_Change.java
1
请完成以下Java代码
public Optional<Quantity> toNoneOrSingleValue() { if (map.isEmpty()) { return Optional.empty(); } else if (map.size() == 1) { return map.values().stream().findFirst(); } else { throw new AdempiereException("Expected none or single value but got many: " + map.values()); } } public MixedQua...
{ if (qtyToAdd.isZero()) { return this; } return new MixedQuantity( CollectionUtils.merge(map, qtyToAdd.getUomId(), qtyToAdd, Quantity::add) ); } public Quantity getByUOM(@NonNull final UomId uomId) { final Quantity qty = map.get(uomId); return qty != null ? qty : Quantitys.zero(uomId); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\quantity\MixedQuantity.java
1
请完成以下Java代码
public boolean cancel(boolean mayInterruptIfRunning) { // unsupported return false; } public boolean isCancelled() { // unsupported return cancelled; } public boolean isDone() { return value != null; } public V get() throws InterruptedException, ExecutionException { if (!failed &&...
public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException { if (!failed && !cancelled && value == null) { synchronized (this) { if (!failed && !cancelled && value == null) { this.wait(unit.convert(timeout, TimeUnit.MILLISECONDS)); } ...
repos\camunda-bpm-platform-master\distro\wildfly\subsystem\src\main\java\org\camunda\bpm\container\impl\jboss\util\ServiceListenerFuture.java
1
请完成以下Java代码
public BPartnerId getBpartnerId() { return BPartnerId.ofRepoIdOrNull(getContextAsInt("C_BPartner_ID")); } @Override public ProductId getProductId() { return ProductId.ofRepoIdOrNull(getContextAsInt("M_Product_ID")); } @Override public boolean isSOTrx() { return SOTrx.toBoolean(getSoTrx()); } @Overri...
public WarehouseId getWarehouseId() { return WarehouseId.ofRepoIdOrNull(getContextAsInt("M_Warehouse_ID")); } @Override public int getM_Locator_ID() { return getContextAsInt("M_Locator_ID"); } @Override public DocTypeId getDocTypeId() { return DocTypeId.ofRepoIdOrNull(getContextAsInt("C_DocType_ID")); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java\org\compiere\grid\ed\VPAttributeWindowContext.java
1
请完成以下Java代码
public boolean isReceipt() { return isInboundPayment(); } public boolean isInboundPayment() { return this == INBOUND; } public boolean isOutboundPayment() { return this == OUTBOUND; }
public Amount convertPayAmtToStatementAmt(@NonNull final Amount payAmt) { return payAmt.negateIf(isOutboundPayment()); } public Money convertPayAmtToStatementAmt(@NonNull final Money payAmt) { return payAmt.negateIf(isOutboundPayment()); } public Money convertStatementAmtToPayAmt(@NonNull final Money bankSt...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\payment\PaymentDirection.java
1
请完成以下Java代码
public void failure(String taskId, String errorMessage, String errorDetails, int retries, long retryTimeout, Map<String, Object> variables, Map<String, Object> localVariables) { Map<St...
engineInteraction.postRequest(resourceUrl, payload, Void.class); } public byte[] getLocalBinaryVariable(String variableName, String executionId) { String resourcePath = getBaseUrl() + GET_BINARY_VARIABLE .replace(ID_PATH_PARAM, executionId) .replace(NAME_PATH_PARAM, variableName); ...
repos\camunda-bpm-platform-master\clients\java\client\src\main\java\org\camunda\bpm\client\impl\EngineClient.java
1
请在Spring Boot框架中完成以下Java代码
public void deleteNotificationTemplateById(@PathVariable UUID id) throws Exception { NotificationTemplateId notificationTemplateId = new NotificationTemplateId(id); NotificationTemplate notificationTemplate = checkEntityId(notificationTemplateId, notificationTemplateService::findNotificationTemplateById...
// PE: generic permission if (StringUtils.isEmpty(token)) { NotificationSettings settings = notificationSettingsService.findNotificationSettings(user.getTenantId()); SlackNotificationDeliveryMethodConfig slackConfig = (SlackNotificationDeliveryMethodConfig) settings.g...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\controller\NotificationTemplateController.java
2
请完成以下Java代码
public String getGebuehrenbetragWaehrung() { return gebuehrenbetragWaehrung; } public void setGebuehrenbetragWaehrung(String gebuehrenbetragWaehrung) { this.gebuehrenbetragWaehrung = gebuehrenbetragWaehrung; } public String getMehrzweckfeld() { return mehrzweckfeld; } public void setMehrzweckfeld(String ...
public void setVerwendungszweck(String verwendungszweck) { this.verwendungszweck = verwendungszweck; } public String getPartnerBlz() { return partnerBlz; } public void setPartnerBlz(String partnerBlz) { this.partnerBlz = partnerBlz; } public String getPartnerKtoNr() { return partnerKtoNr; } public v...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.base\src\main\java\de\schaeffer\compiere\mt940\BankstatementLine.java
1
请在Spring Boot框架中完成以下Java代码
public BigDecimal getQtyCUsPerTUInInvoiceUOM() { return qtyCUsPerTUInInvoiceUOM; } /** * Sets the value of the qtyCUsPerTUInInvoiceUOM property. * * @param value * allowed object is * {@link BigDecimal } * */ public void setQtyCUsPerTUInInvoiceUOM(Bi...
} /** * Gets the value of the mhuPackagingCodeTUText property. * * @return * possible object is * {@link String } * */ public String getMHUPackagingCodeTUText() { return mhuPackagingCodeTUText; } /** * Sets the value of the mhuPackagingCode...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_metasfreshinhousev1\de\metas\edi\esb\jaxb\metasfreshinhousev1\EDIExpDesadvPackItemType.java
2
请完成以下Java代码
public void setStmtAmt (final @Nullable BigDecimal StmtAmt) { set_Value (COLUMNNAME_StmtAmt, StmtAmt); } @Override public BigDecimal getStmtAmt() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_StmtAmt); return bd != null ? bd : BigDecimal.ZERO; } @Override public void setTrxAmt (final @Nullab...
/** Authorization = A */ public static final String TRXTYPE_Authorization = "A"; /** Void = V */ public static final String TRXTYPE_Void = "V"; /** Rückzahlung = R */ public static final String TRXTYPE_Rueckzahlung = "R"; @Override public void setTrxType (final @Nullable java.lang.String TrxType) { set_Value ...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.base\src\main\java-gen\org\compiere\model\X_I_BankStatement.java
1