instruction
string
input
string
output
string
source_file
string
priority
int64
请在Spring Boot框架中完成以下Java代码
public BooleanWithReason getEnabled() { return esSystem.getEnabled(); } public RestHighLevelClient elasticsearchClient() { return esSystem.elasticsearchClient(); } public void addListener(@NonNull final FTSConfigChangedListener listener) { ftsConfigRepository.addListener(listener); } public FTSConfig getC...
return ftsFilterDescriptorRepository.getByTargetTableName(targetTableName); } public FTSFilterDescriptor getFilterById(@NonNull final FTSFilterDescriptorId id) { return ftsFilterDescriptorRepository.getById(id); } public void updateConfigFields(@NonNull final I_ES_FTS_Config record) { final FTSConfigId conf...
repos\metasfresh-new_dawn_uat\backend\de.metas.elasticsearch\src\main\java\de\metas\fulltextsearch\config\FTSConfigService.java
2
请完成以下Java代码
public class PeakElementFinder { public List<Integer> findPeakElements(int[] arr) { int n = arr.length; List<Integer> peaks = new ArrayList<>(); if (n == 0) { return peaks; } for (int i = 0; i < n; i++) { if (isPeak(arr, i, n)) { peak...
private boolean isPeak(int[] arr, int index, int n) { if (index == 0) { return n > 1 ? arr[index] >= arr[index + 1] : true; } else if (index == n - 1) { return arr[index] >= arr[index - 1]; } else if (arr[index] == arr[index + 1] && arr[index] > arr[index - 1]) { ...
repos\tutorials-master\core-java-modules\core-java-collections-array-list-2\src\main\java\com\baeldung\peakelements\PeakElementFinder.java
1
请完成以下Java代码
private StockDataAggregateItem viewRowToStockDataItem(@NonNull final I_MD_Stock_WarehouseAndProduct_v record) { return StockDataAggregateItem.builder() .productCategoryId(record.getM_Product_Category_ID()) .productId(record.getM_Product_ID()) .productValue(record.getProductValue()) .warehouseId(recor...
private IQuery<I_MD_Stock> createStockDataItemQuery(@NonNull final StockDataQuery query) { final IQueryBuilder<I_MD_Stock> queryBuilder = queryBL.createQueryBuilder(I_MD_Stock.class); queryBuilder.addEqualsFilter(I_MD_Stock.COLUMNNAME_M_Product_ID, query.getProductId()); if (!query.getWarehouseIds().isEmpty())...
repos\metasfresh-new_dawn_uat\backend\de.metas.material\cockpit\src\main\java\de\metas\material\cockpit\stock\StockRepository.java
1
请完成以下Java代码
public class CdiResolver extends ELResolver { protected BeanManager getBeanManager() { return BeanManagerLookup.getBeanManager(); } protected javax.el.ELResolver getWrappedResolver() { BeanManager beanManager = getBeanManager(); javax.el.ELResolver resolver = beanManager.getELResolver(); return ...
if (base == null) { Object result = ProgrammaticBeanLookup.lookup(property.toString(), getBeanManager()); if (result != null) { context.setPropertyResolved(true); } return result; } else { return null; } } @Override public boolean isReadOnly(ELContext context, Object...
repos\camunda-bpm-platform-master\engine-cdi\core\src\main\java\org\camunda\bpm\engine\cdi\impl\el\CdiResolver.java
1
请在Spring Boot框架中完成以下Java代码
public void setProjectType (final java.lang.String ProjectType) { set_Value (COLUMNNAME_ProjectType, ProjectType); } @Override public java.lang.String getProjectType() { return get_ValueAsString(COLUMNNAME_ProjectType); } @Override public void setSeqNo (final int SeqNo) { set_Value (COLUMNNAME_SeqNo, ...
return get_ValueAsInt(COLUMNNAME_SeqNo); } @Override public void setS_ExternalProjectReference_ID (final int S_ExternalProjectReference_ID) { if (S_ExternalProjectReference_ID < 1) set_ValueNoCheck (COLUMNNAME_S_ExternalProjectReference_ID, null); else set_ValueNoCheck (COLUMNNAME_S_ExternalProjectRefe...
repos\metasfresh-new_dawn_uat\backend\de.metas.serviceprovider\src\main\java-gen\de\metas\serviceprovider\model\X_S_ExternalProjectReference.java
2
请在Spring Boot框架中完成以下Java代码
public String getSuperExecutionUrl() { return superExecutionUrl; } public void setSuperExecutionUrl(String superExecutionUrl) { this.superExecutionUrl = superExecutionUrl; } @ApiModelProperty(example = "5") public String getProcessInstanceId() { return processInstanceId; ...
return suspended; } public void setSuspended(boolean suspended) { this.suspended = suspended; } @ApiModelProperty(example = "null") public String getActivityId() { return activityId; } public void setActivityId(String activityId) { this.activityId = activityId; ...
repos\flowable-engine-main\modules\flowable-rest\src\main\java\org\flowable\rest\service\api\runtime\process\ExecutionResponse.java
2
请完成以下Java代码
public IdentityLinkQueryObject getInvolvedUserIdentityLink() { return involvedUserIdentityLink; } public IdentityLinkQueryObject getInvolvedGroupIdentityLink() { return involvedGroupIdentityLink; } public boolean isWithJobException() { return withJobException; } public...
return hasOrderByForColumn(HistoricProcessInstanceQueryProperty.PROCESS_DEFINITION_KEY.getName()); } public List<List<String>> getSafeProcessInstanceIds() { return safeProcessInstanceIds; } public void setSafeProcessInstanceIds(List<List<String>> safeProcessInstanceIds) { this.safeProc...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\HistoricProcessInstanceQueryImpl.java
1
请完成以下Java代码
public Builder setJoinAnd(final boolean joinAnd) { this.joinAnd = joinAnd; return this; } public Builder setFieldName(final String fieldName) { this.fieldName = fieldName; return this; } public Builder setOperator(@NonNull final Operator operator) { this.operator = operator; return thi...
{ operator = valueTo != null ? Operator.BETWEEN : Operator.EQUAL; return this; } public Builder setValue(@Nullable final Object value) { this.value = value; return this; } public Builder setValueTo(@Nullable final Object valueTo) { this.valueTo = valueTo; return this; } } }
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\document\filter\DocumentFilterParam.java
1
请完成以下Spring Boot application配置
spring.jpa.hibernate.ddl-auto=none spring.jpa.database=mysql spring.jpa.open-in-view=true spring.jpa.show-sql=true server.port=8088 #logging.level.org.hibernate=DEBUG logging.level.org.hibernate.SQL=DEBUG spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl sp...
ring.datasource.url=jdbc:mysql://127.0.0.1:3306/demo?useUnicode=true&characterEncoding=utf-8&useSSL=false spring.datasource.username=root spring.datasource.password=root
repos\springboot-demo-master\GraphQL\src\main\resources\application.properties
2
请完成以下Java代码
protected void sortResolvedResources(List<HalResource<?>> resolvedResources) { Comparator<HalResource<?>> comparator = getResourceComparator(); if (comparator != null) { Collections.sort(resolvedResources, comparator); } } /** * @return the cache for this resolver */ protected Cache getCa...
} } /** * @return the class of the entity which is resolved */ protected abstract Class<?> getHalResourceClass(); /** * @return a comparator for this HAL resource if not overridden sorting is skipped */ protected Comparator<HalResource<?>> getResourceComparator() { return null; } /** ...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\hal\cache\HalCachingLinkResolver.java
1
请在Spring Boot框架中完成以下Java代码
protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token) throws AuthenticationException { System.out.println("MyShiroRealm.doGetAuthenticationInfo()"); String username = (String)token.getPrincipal(); System.out.println(token.getCredentials()); //query u...
//authority controller @Override protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) { System.out.println("authority config-->MyShiroRealm.doGetAuthorizationInfo()"); SimpleAuthorizationInfo authorizationInfo = new SimpleAuthorizationInfo(); UserInfo userIn...
repos\springboot-demo-master\shiro\src\main\java\com\et\shiro\config\MyShiroRealm.java
2
请完成以下Java代码
public Class<? extends BaseElement> getHandledType() { return SequenceFlow.class; } @Override protected void executeParse(BpmnParse bpmnParse, SequenceFlow sequenceFlow) { ScopeImpl scope = bpmnParse.getCurrentScope(); ActivityImpl sourceActivity = scope.findActivity(sequenceFlow....
} TransitionImpl transition = sourceActivity.createOutgoingTransition(sequenceFlow.getId(), skipExpression); bpmnParse.getSequenceFlows().put(sequenceFlow.getId(), transition); transition.setProperty("name", sequenceFlow.getName()); transition.setProperty("documentation", sequenceFlow.g...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\bpmn\parser\handler\SequenceFlowParseHandler.java
1
请完成以下Java代码
public void customize(MutableProjectDescription description) { if (!StringUtils.hasText(description.getApplicationName())) { description .setApplicationName(this.metadata.getConfiguration().generateApplicationName(description.getName())); } String targetArtifactId = determineValue(description.getArtifactId...
if (shouldAppendDelimiter(element, builder)) { builder.append(delimiter); } builder.append(element); } return builder.toString(); } private boolean shouldAppendDelimiter(String element, StringBuilder builder) { if (builder.isEmpty()) { return false; } for (char c : VALID_MAVEN_SPECIAL_CHARACTE...
repos\initializr-main\initializr-web\src\main\java\io\spring\initializr\web\project\MetadataProjectDescriptionCustomizer.java
1
请完成以下Java代码
public String toString() { return MoreObjects.toStringHelper(this) .add("adLanguage", adLanguage) .addValue(userRolePermissionsKey) .toString(); } @Override public int hashCode() { return Objects.hash(userRolePermissionsKey, adLanguage); } @Override public boolean equals(final Obj...
menuIds.addAll(builder.menuIds); } public UserId getAdUserId() { return adUserId; } public boolean isFavorite(final MenuNode menuNode) { return menuIds.contains(menuNode.getAD_Menu_ID()); } public void setFavorite(final int adMenuId, final boolean favorite) { if (favorite) { menuIds...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\menu\MenuTreeRepository.java
1
请完成以下Java代码
public BigDecimal getIntegrationAmount() { return integrationAmount; } public void setIntegrationAmount(BigDecimal integrationAmount) { this.integrationAmount = integrationAmount; } public BigDecimal getRealAmount() { return realAmount; } public void setRealAmount(BigD...
sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", orderId=").append(orderId); sb.append(", orderSn=").append(orderSn); sb.append(", productId=").append(productId); sb.append(", productPic=").append(productPic); sb.append(", productName="...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\OmsOrderItem.java
1
请完成以下Java代码
public void setup() { switch (type) { case "array-list": collection = new ArrayList<String>(); break; case "tree-set": collection = new TreeSet<String>(); break; default: throw new UnsupportedOperationException(); } ...
@Benchmark public String[] pre_sized() { return collection.toArray(new String[collection.size()]); } public static void main(String[] args) { try { org.openjdk.jmh.Main.main(args); } catch (IOException e) { e.printStackTrace(); } } }
repos\tutorials-master\core-java-modules\core-java-collections-4\src\main\java\com\baeldung\collections\toarraycomparison\ToArrayBenchmark.java
1
请完成以下Java代码
public void setCaffeine(CacheProperties.Caffeine caffeine) { this.caffeine = caffeine; } public boolean isEnabled() { return enabled; } public void setEnabled(boolean enabled) { this.enabled = enabled; } } public static class Caffein...
public boolean isUseSystemScheduler() { return useSystemScheduler; } public void setUseSystemScheduler(boolean useSystemScheduler) { this.useSystemScheduler = useSystemScheduler; } } public static class SimpleCacheProviderProperties { private boolean al...
repos\Activiti-develop\activiti-core-common\activiti-spring-cache-manager\src\main\java\org\activiti\spring\cache\ActivitiSpringCacheManagerProperties.java
1
请完成以下Java代码
String buildAddress2(@NonNull final I_I_Pharma_BPartner importRecord) { final StringBuilder sb = new StringBuilder(); if (!Check.isEmpty(importRecord.getb00hnrb())) { sb.append(importRecord.getb00hnrb()); } if (!Check.isEmpty(importRecord.getb00hnrbz())) { if (sb.length() > 0) { sb.append(" ")...
{ bpartnerLocation.setPhone(importRecord.getb00tel1()); } if (!Check.isEmpty(importRecord.getb00tel2())) { bpartnerLocation.setPhone2(importRecord.getb00tel2()); } if (!Check.isEmpty(importRecord.getb00fax1())) { bpartnerLocation.setFax(importRecord.getb00fax1()); } if (!Check.isEmpty(importRec...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma\src\main\java\de\metas\impexp\bpartner\IFABPartnerLocationImportHelper.java
1
请在Spring Boot框架中完成以下Java代码
public String login(// @ApiParam("Username") @RequestParam String username, // @ApiParam("Password") @RequestParam String password) { return userService.signin(username, password); } @PostMapping("/signup") @ApiOperation(value = "${UserController.signup}") @ApiResponses(value = {// @ApiResponse(code = 4...
@GetMapping(value = "/{username}") @PreAuthorize("hasRole('ROLE_ADMIN')") @ApiOperation(value = "${UserController.search}", response = UserResponseDTO.class) @ApiResponses(value = {// @ApiResponse(code = 400, message = "Something went wrong"), // @ApiResponse(code = 403, message = "Access denied"), // @ApiR...
repos\spring-boot-quick-master\quick-jwt\src\main\java\com\quick\jwt\controller\UserController.java
2
请在Spring Boot框架中完成以下Java代码
private String makeToken(XxlJobUser xxlJobUser){ String tokenJson = JacksonUtil.writeValueAsString(xxlJobUser); String tokenHex = new BigInteger(tokenJson.getBytes()).toString(16); return tokenHex; } private XxlJobUser parseToken(String tokenHex){ XxlJobUser xxlJobUser = null; ...
* logout * * @param request * @param response */ public ReturnT<String> logout(HttpServletRequest request, HttpServletResponse response){ CookieUtil.remove(request, response, LOGIN_IDENTITY_KEY); return ReturnT.SUCCESS; } /** * logout * * @param request ...
repos\JeecgBoot-main\jeecg-boot\jeecg-server-cloud\jeecg-visual\jeecg-cloud-xxljob\src\main\java\com\xxl\job\admin\service\LoginService.java
2
请完成以下Java代码
public ExtendedResponse createExtendedResponse(String id, byte[] berValue, int offset, int length) { return null; } /** * Only minimal support for <a target="_blank" href= * "https://www.itu.int/ITU-T/studygroups/com17/languages/X.690-0207.pdf"> BER * encoding </a>; just what is necessary for the Passw...
} else if ((length & 0x00FF_FFFF) == length) { dest.write((byte) 0x83); dest.write((byte) ((length >> 16) & 0xFF)); dest.write((byte) ((length >> 8) & 0xFF)); dest.write((byte) (length & 0xFF)); } else { dest.write((byte) 0x84); dest.write((byte) ((length >> 24) & 0xFF)); dest.write...
repos\spring-security-main\ldap\src\main\java\org\springframework\security\ldap\userdetails\LdapUserDetailsManager.java
1
请完成以下Java代码
public int getMSV3_BestellungAntwort_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_MSV3_BestellungAntwort_ID); if (ii == null) return 0; return ii.intValue(); } /** Set MSV3_BestellungAntwortAuftrag. @param MSV3_BestellungAntwortAuftrag_ID MSV3_BestellungAntwortAuftrag */ @Override public void...
{ return (java.lang.String)get_Value(COLUMNNAME_MSV3_GebindeId); } /** Set Id. @param MSV3_Id Id */ @Override public void setMSV3_Id (java.lang.String MSV3_Id) { set_Value (COLUMNNAME_MSV3_Id, MSV3_Id); } /** Get Id. @return Id */ @Override public java.lang.String getMSV3_Id () { return (java...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma.vendor.gateway.msv3\src\main\java-gen\de\metas\vertical\pharma\vendor\gateway\msv3\model\X_MSV3_BestellungAntwortAuftrag.java
1
请完成以下Java代码
public Optional<String> getJsonValue() { return kv.getJsonValue(); } @Override public Object getValue() { return kv.getValue(); } @Override public String getValueAsString() { return kv.getValueAsString(); } @Override public int getDataPoints() {
int length; switch (getDataType()) { case STRING: length = getStrValue().get().length(); break; case JSON: length = getJsonValue().get().length(); break; default: return 1; } retur...
repos\thingsboard-master\common\data\src\main\java\org\thingsboard\server\common\data\kv\BasicTsKvEntry.java
1
请完成以下Java代码
public CompletionCondition getCompletionCondition() { return completionConditionChild.getChild(this); } public void setCompletionCondition(CompletionCondition completionCondition) { completionConditionChild.setChild(this, completionCondition); } public boolean isSequential() { return isSequentialA...
public boolean isCamundaAsyncAfter() { return camundaAsyncAfter.getValue(this); } public void setCamundaAsyncAfter(boolean isCamundaAsyncAfter) { camundaAsyncAfter.setValue(this, isCamundaAsyncAfter); } public boolean isCamundaExclusive() { return camundaExclusive.getValue(this); } public voi...
repos\camunda-bpm-platform-master\model-api\bpmn-model\src\main\java\org\camunda\bpm\model\bpmn\impl\instance\MultiInstanceLoopCharacteristicsImpl.java
1
请在Spring Boot框架中完成以下Java代码
public class MultipleVendorDocumentsException extends PaymentAllocationException { private static final AdMessageKey MSG = AdMessageKey.of("PaymentAllocation.CannotAllocateMultipleDocumentsException"); private final ImmutableList<IPaymentDocument> payments; MultipleVendorDocumentsException( final Collection<? e...
return TranslatableStrings.builder() .appendADMessage(MSG) .append(toCommaSeparatedDocumentNos(payments)) .build(); } private static String toCommaSeparatedDocumentNos(final List<IPaymentDocument> payments) { final Stream<String> paymentDocumentNos = payments.stream() .map(IPaymentDocument::getDoc...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.base\src\main\java\de\metas\banking\payment\paymentallocation\service\MultipleVendorDocumentsException.java
2
请完成以下Java代码
public class DBRes extends ListResourceBundle { /** Data */ static final Object[][] contents = new String[][]{ { "CConnectionDialog", "Server Connection" }, { "Name", "Name" }, { "AppsHost", "Application Host" }, { "AppsPort", "Application Port" }, { "TestApps", "Test Application Server" }, ...
{ "LAN", "LAN" }, { "TerminalServer", "Terminal Server" }, { "VPN", "VPN" }, { "WAN", "WAN" }, { "ConnectionError", "Connection Error" }, { "ServerNotActive", "Server Not Active" } }; /** * Get Contsnts * @return contents */ public Object[][] getContents() { return contents; } // ge...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\db\connectiondialog\i18n\DBRes.java
1
请在Spring Boot框架中完成以下Java代码
public final class SystemTime { private static final TimeSource defaultTimeSource = new TimeSource() { @Override public long millis() { return System.currentTimeMillis(); } }; private static TimeSource timeSource; private SystemTime() { } public static long millis() { return SystemTime.getTime...
return new Timestamp(SystemTime.millis()); } private static TimeSource getTimeSource() { return SystemTime.timeSource == null ? SystemTime.defaultTimeSource : SystemTime.timeSource; } /** * After invocation of this method, the time returned will be the system time again. */ public static void resetTimeSou...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java\de\metas\edi\esb\commons\SystemTime.java
2
请完成以下Java代码
protected static class OutputStreamWrapper extends OutputStream { private final ByteArrayOutputStream buffer = new ByteArrayOutputStream(); private final OutputStream output; private OutputStreamWrapper(OutputStream output) { this.output = output; } @Override ...
@Override public void flush() throws IOException { output.flush(); } @Override public void close() throws IOException { output.close(); } public byte[] getBytes() { return buffer.toByteArray(); } } }
repos\springBoot-master\springboot-dubbo\abel-user-provider\src\main\java\cn\abel\user\filter\RestInterceptor.java
1
请在Spring Boot框架中完成以下Java代码
public class CamundaBpmRunConfiguration { @Bean @ConditionalOnProperty(name = "enabled", havingValue = "true", prefix = CamundaBpmRunLdapProperties.PREFIX) public LdapIdentityProviderPlugin ldapIdentityProviderPlugin(CamundaBpmRunProperties properties) { return properties.getLdap(); } @Bean @Condition...
CamundaBpmRunDeploymentConfiguration deploymentConfig) { String normalizedDeploymentDir = deploymentConfig.getNormalizedDeploymentDir(); boolean deployChangedOnly = properties.getDeployment().isDeployChangedOnly(); var processEnginePluginsFromYaml = properties.getProcessEnginePlugins(); return new Camu...
repos\camunda-bpm-platform-master\distro\run\core\src\main\java\org\camunda\bpm\run\CamundaBpmRunConfiguration.java
2
请完成以下Java代码
public Object execute(CommandContext commandContext) { if (executionId == null) { throw new FlowableIllegalArgumentException("executionId is null"); } if (variableName == null) { throw new FlowableIllegalArgumentException("variableName is null"); } Execut...
Flowable5CompatibilityHandler compatibilityHandler = Flowable5Util.getFlowable5CompatibilityHandler(); return compatibilityHandler.getExecutionVariable(executionId, variableName, isLocal); } Object value; if (isLocal) { value = execution.getVariableLocal(variableName, f...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\cmd\GetExecutionVariableCmd.java
1
请完成以下Java代码
public class SwingUserInterface implements IUserInterface { private final transient Logger log = Logger.getLogger(getClass().getName()); private final Component parent; public SwingUserInterface(final Component parent) { if (parent == null) { throw new IllegalArgumentException("parent is null"); } this...
} final Throwable cause = ex.getCause(); if (cause != null) { if (msg.length() > 0) { msg.append(": "); } msg.append(cause.toString()); } return msg.toString(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.printing.client\src\main\java\de\metas\printing\client\ui\SwingUserInterface.java
1
请完成以下Java代码
public class NavProcessor extends AbstractElementTagProcessor { private static final String TAG_NAME = "shownav"; private static final String DEFAULT_FRAGMENT_NAME = "~{temporalwebdialect :: shownav}"; private static final int PRECEDENCE = 10000; private final ApplicationContext ctx; private Workfl...
@Override protected void doProcess(ITemplateContext templateContext, IProcessableElementTag processInstancesTag, IElementTagStructureHandler structureHandler) { final IEngineConfiguration configuration = templateContext.getConfiguration(); IStandardExpressionParser pars...
repos\spring-boot-demo-main\src\main\java\com\temporal\demos\temporalspringbootdemo\webui\processor\NavProcessor.java
1
请在Spring Boot框架中完成以下Java代码
SecurityFilterChain defaultSecurityFilterChain(HttpSecurity http) throws Exception { http.authorizeHttpRequests((authorize) -> authorize.anyRequest() .authenticated()) .formLogin(Customizer.withDefaults()); return http.cors(Customizer.withDefaults()) .build(); } ...
} @Bean CorsConfigurationSource corsConfigurationSource() { UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource(); CorsConfiguration config = new CorsConfiguration(); config.addAllowedHeader("*"); config.addAllowedMethod("*"); config.addAllowedOr...
repos\tutorials-master\spring-security-modules\spring-security-pkce-spa\pkce-spa-auth-server\src\main\java\com\baeldung\SecurityConfiguration.java
2
请完成以下Java代码
protected String getActivityIdExceptionMessage(VariableScope variableScope) { String activityId = null; String definitionIdMessage = ""; if (variableScope instanceof DelegateExecution) { activityId = ((DelegateExecution) variableScope).getCurrentActivityId(); definitionIdMessage = " in the proc...
} else if (variableScope instanceof DelegateCaseExecution) { activityId = ((DelegateCaseExecution) variableScope).getActivityId(); definitionIdMessage = " in the case definition with id '" + ((DelegateCaseExecution) variableScope).getCaseDefinitionId() + "'"; } if (activityId == null) { retur...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\scripting\ExecutableScript.java
1
请完成以下Java代码
public static boolean isDay(final I_C_UOM uom) { final X12DE355 x12de355 = X12DE355.ofNullableCode(uom.getX12DE355()); return X12DE355.DAY.equals(x12de355); } public static boolean isWorkDay(final I_C_UOM uom) { final X12DE355 x12de355 = X12DE355.ofNullableCode(uom.getX12DE355()); return X12DE355.DAY_WORK....
public static boolean isYear(final I_C_UOM uom) { final X12DE355 x12de355 = X12DE355.ofNullableCode(uom.getX12DE355()); return X12DE355.YEAR.equals(x12de355); } /** * @return true if is time UOM */ public static boolean isTime(final I_C_UOM uom) { final X12DE355 x12de355 = X12DE355.ofCode(uom.getX12DE35...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\uom\UOMUtil.java
1
请完成以下Java代码
public List<EventSubscriptionEntity> findEventSubscriptionsByTypeAndProcessDefinitionId(String type, String processDefinitionId, String tenantId) { final String query = "selectEventSubscriptionsByTypeAndProcessDefinitionId"; Map<String, String> params = new HashMap<>(); if (type != null) { ...
final String query = "selectEventSubscriptionsByNameAndExecution"; Map<String, String> params = new HashMap<>(); params.put("eventType", type); params.put("eventName", eventName); params.put("executionId", executionId); return getDbSqlSession().selectList(query, params); } ...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\persistence\entity\EventSubscriptionEntityManager.java
1
请完成以下Java代码
public class X_MSV3_VerfuegbarkeitsanfrageEinzelne extends org.compiere.model.PO implements I_MSV3_VerfuegbarkeitsanfrageEinzelne, org.compiere.model.I_Persistent { /** * */ private static final long serialVersionUID = -1006750286L; /** Standard Constructor */ public X_MSV3_VerfuegbarkeitsanfrageEinzel...
@return Id */ @Override public java.lang.String getMSV3_Id () { return (java.lang.String)get_Value(COLUMNNAME_MSV3_Id); } /** Set MSV3_VerfuegbarkeitsanfrageEinzelne. @param MSV3_VerfuegbarkeitsanfrageEinzelne_ID MSV3_VerfuegbarkeitsanfrageEinzelne */ @Override public void setMSV3_Verfuegbarkeitsanfrag...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma.vendor.gateway.msv3\src\main\java-gen\de\metas\vertical\pharma\vendor\gateway\msv3\model\X_MSV3_VerfuegbarkeitsanfrageEinzelne.java
1
请完成以下Java代码
public abstract class TbAbstractAlarmNodeConfiguration { static final String ALARM_DETAILS_BUILD_JS_TEMPLATE = "" + "var details = {};\n" + "if (metadata.prevAlarmDetails) {\n" + " details = JSON.parse(metadata.prevAlarmDetails);\n" + " //remove prevAlarmDetail...
" metadata.remove('prevAlarmDetails');\n" + " //now metadata is the same as it comes IN this rule node\n" + "}\n" + "\n" + "\n" + "return details;"; @NoXss private String alarmType; private ScriptLanguage scriptLang; private String alar...
repos\thingsboard-master\rule-engine\rule-engine-components\src\main\java\org\thingsboard\rule\engine\action\TbAbstractAlarmNodeConfiguration.java
1
请完成以下Java代码
public class CombiningSets { public static Set<Object> usingNativeJava(Set<Object> first, Set<Object> second) { Set<Object> combined = new HashSet<>(); combined.addAll(first); combined.addAll(second); return combined; } public static Set<Object> usingJava8ObjectStre...
Set<Object> combined = Stream.of(first, second).flatMap(Collection::stream).collect(Collectors.toSet()); return combined; } public static Set<Object> usingApacheCommons(Set<Object> first, Set<Object> second) { Set<Object> combined = SetUtils.union(first, second); return combined; ...
repos\tutorials-master\core-java-modules\core-java-collections\src\main\java\com\baeldung\collections\combiningcollections\CombiningSets.java
1
请完成以下Java代码
public String getCategory() { return category; } public String getCategoryNotEquals() { return categoryNotEquals; } public String getTenantId() { return tenantId; } public String getTenantIdLike() { return tenantIdLike; }
public boolean isWithoutTenantId() { return withoutTenantId; } public String getProcessDefinitionKey() { return processDefinitionKey; } public String getProcessDefinitionKeyLike() { return processDefinitionKeyLike; } public boolean isLatestVersion() { return la...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\DeploymentQueryImpl.java
1
请完成以下Java代码
public static int getByteSize(String content) { int size = 0; if (null != content) { try { // 汉字采用utf-8编码时占3个字节 size = content.getBytes("utf-8").length; } catch (UnsupportedEncodingException e) { LOG.error(e); } ...
if (flag) { list = Arrays.asList(param.split(",")); } else { list.add(param); } return list; } /** * 判断对象是否为空 * * @param obj * @return */ public static boolean isNotNull(Object obj) { if (obj != null && obj.toString() != null ...
repos\roncoo-pay-master\roncoo-pay-common-core\src\main\java\com\roncoo\pay\common\core\utils\StringUtil.java
1
请完成以下Java代码
public static String getTableNameByTableSql(String tableSql) { if(oConvertUtils.isEmpty(tableSql)){ return null; } if (tableSql.toLowerCase().indexOf(DataBaseConstant.SQL_WHERE) > 0) { String[] arr = tableSql.split(" (?i)where "); return arr[0].trim()...
return true; } } } return false; } /** * 输出info日志,会捕获异常,防止因为日志问题导致程序异常 * * @param msg * @param objects */ public static void logInfo(String msg, Object... objects) { try { log.info(msg, objects); } catch (Excep...
repos\JeecgBoot-main\jeecg-boot\jeecg-boot-base-core\src\main\java\org\jeecg\common\util\CommonUtils.java
1
请完成以下Java代码
public String getCreationDate() { return creationDate; } public void setCreationDate(String creationDate) { this.creationDate = creationDate; } public String getLastModifiedBy() { return lastModifiedBy; } public void setLastModifiedBy(String lastModifiedBy) { t...
public void setName(String name) { this.name = name; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getVersion() { return version; } public void ...
repos\Activiti-develop\activiti-core-common\activiti-project-model\src\main\java\org\activiti\core\common\project\model\ProjectManifest.java
1
请完成以下Java代码
public Integer getCamundaHistoryTimeToLive() { String ttl = getCamundaHistoryTimeToLiveString(); if (ttl != null) { return Integer.parseInt(ttl); } return null; } @Override public void setCamundaHistoryTimeToLive(Integer historyTimeToLive) { var value = historyTimeToLive == null ? null ...
return camundaIsStartableInTasklistAttribute.getValue(this); } @Override public void setCamundaIsStartableInTasklist(Boolean isStartableInTasklist) { camundaIsStartableInTasklistAttribute.setValue(this, isStartableInTasklist); } @Override public String getCamundaVersionTag() { return camundaVersio...
repos\camunda-bpm-platform-master\model-api\bpmn-model\src\main\java\org\camunda\bpm\model\bpmn\impl\instance\ProcessImpl.java
1
请完成以下Java代码
public ResponseEntity<String> returnPage(HttpServletRequest request, HttpServletResponse response) { AlipayConfig alipay = alipayService.find(); response.setContentType("text/html;charset=" + alipay.getCharset()); //内容验签,防止黑客篡改参数 if (alipayUtils.rsaCheck(request, alipay)) { /...
if (alipayUtils.rsaCheck(request, alipay)) { //交易状态 String tradeStatus = new String(request.getParameter("trade_status").getBytes(StandardCharsets.ISO_8859_1), StandardCharsets.UTF_8); // 商户订单号 String outTradeNo = new String(request.getParameter("out_trade_no").getBytes(S...
repos\eladmin-master\eladmin-tools\src\main\java\me\zhengjie\rest\AliPayController.java
1
请在Spring Boot框架中完成以下Java代码
public String getPortHeader() { return this.portHeader; } public void setPortHeader(String portHeader) { this.portHeader = portHeader; } public @Nullable String getRemoteIpHeader() { return this.remoteIpHeader; } public void setRemoteIpHeader(@Nullable String remoteIpHeader) { this.remoteIpHe...
/** * Always use APR and fail if it's not available. */ ALWAYS, /** * Use APR if it is available. */ WHEN_AVAILABLE, /** * Never use APR. */ NEVER } }
repos\spring-boot-4.0.1\module\spring-boot-tomcat\src\main\java\org\springframework\boot\tomcat\autoconfigure\TomcatServerProperties.java
2
请完成以下Java代码
public PaymentString parse(@NonNull final String qrCode) { final List<String> lines = SPLITTER.splitToList(qrCode); Check.assumeEquals(lines.get(0), "SPC"); // QR Type Check.assumeEquals(lines.get(1), "0200"); // Version Check.assumeEquals(lines.get(2), "1"); // Coding final String iban = lines.get(3);...
.collectedErrors(collectedErrors) .rawPaymentString(qrCode) .IBAN(iban) .amount(amount) .referenceNoComplete(reference) .paymentDate(paymentDate) .accountDate(accountDate) .build(); final IPaymentStringDataProvider dataProvider = new QRPaymentStringDataProvider(paymentString); paymentSt...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.esr\src\main\java\de\metas\payment\spi\impl\QRCodeStringParser.java
1
请完成以下Java代码
protected ProcessPreconditionsResolution checkPreconditionsApplicable() { if (getSelectedRowIds().isEmpty()) { return ProcessPreconditionsResolution.rejectBecauseNoSelection().toInternal(); } return ProcessPreconditionsResolution.accept(); } @Override protected String doIt() { final ImmutableSet<Res...
final Set<DocumentId> rowIdsEffective; if (rowIds.isEmpty()) { return ImmutableSet.of(); } else if (rowIds.isAll()) { rowIdsEffective = view.streamByIds(DocumentIdsSelection.ALL) .map(IViewRow::getId) .collect(ImmutableSet.toImmutableSet()); } else { rowIdsEffective = rowIds.toSet(); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\resource\process\S_Resource_PrintQRCodes.java
1
请在Spring Boot框架中完成以下Java代码
private @NonNull ImmutableSet<HuId> getPPOrderSourceHUIds() { if (_ppOrderSourceHUIds == null) { _ppOrderSourceHUIds = ppOrderSourceHUService.getSourceHUIds(ppOrderId); } return _ppOrderSourceHUIds; } @NonNull private SourceHUsCollection retrieveActiveSourceHusFromWarehouse(@NonNull final ProductId prod...
.addOnlyWithProductId(productId) .createQuery() .listImmutable(I_M_HU.class); final ImmutableList<I_M_Source_HU> sourceHUs = sourceHUsService.retrieveSourceHuMarkers(extractHUIdsFromHUs(activeHUsMatchingProduct)); return SourceHUsCollection.builder() .husThatAreFlaggedAsSource(activeHUsMatchingProduct...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing.rest-api\src\main\java\de\metas\manufacturing\job\service\commands\issue_what_was_received\SourceHUsCollectionProvider.java
2
请完成以下Java代码
public Set<String> getVariableNames() { return Collections.EMPTY_SET; } public Set<String> getVariableNamesLocal() { return null; } public void setVariable(String variableName, Object value) { throw new UnsupportedOperationException("No execution active, no variables can be set"); } public vo...
public void removeVariableLocal(String variableName) { throw new UnsupportedOperationException("No execution active, no variables can be removed"); } public void removeVariables() { throw new UnsupportedOperationException("No execution active, no variables can be removed"); } public void removeVariabl...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\el\StartProcessVariableScope.java
1
请完成以下Java代码
public final class JSONNotificationEvent implements Serializable { public static final JSONNotificationEvent eventNew(final JSONNotification notification, final int unreadCount) { String notificationId = notification.getId(); return new JSONNotificationEvent(EventType.New, notificationId, notification, unreadCoun...
@JsonProperty("notificationId") private final String notificationId; @JsonProperty("notification") @JsonInclude(JsonInclude.Include.NON_ABSENT) private final JSONNotification notification; @JsonProperty("unreadCount") @JsonInclude(JsonInclude.Include.NON_ABSENT) private final Integer unreadCount; private JSO...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\notification\json\JSONNotificationEvent.java
1
请在Spring Boot框架中完成以下Java代码
public HttpResponse<String> endpoint3(@Nullable @Header("skip-error") String isErrorSkipped) { log.info("endpoint3"); if (isErrorSkipped == null) { throw new CustomException("something else went wrong"); } return HttpResponse.ok("Endpoint 3"); } @Get("/custom-child-...
@Error(exception = UnsupportedOperationException.class) public HttpResponse<JsonError> unsupportedOperationExceptions(HttpRequest<?> request) { log.info("Unsupported Operation Exception handled"); JsonError error = new JsonError("Unsupported Operation").link(Link.SELF, Link.of(request.getUri())); ...
repos\tutorials-master\microservices-modules\micronaut-configuration\src\main\java\com\baeldung\micronaut\globalexceptionhandler\controller\ErroneousController.java
2
请在Spring Boot框架中完成以下Java代码
public List<ValueHint> getKeyHints() { return this.keyHints; } /** * The value providers that are applicable to the keys of this item. Only applicable * if the type of the related item is a {@link java.util.Map}. Only one * {@link ValueProvider} is enabled for a key: the first in the list that is supported ...
* @return the value hints */ public List<ValueHint> getValueHints() { return this.valueHints; } /** * The value providers that are applicable to this item. Only one * {@link ValueProvider} is enabled for an item: the first in the list that is * supported should be used. * @return the value providers *...
repos\spring-boot-4.0.1\configuration-metadata\spring-boot-configuration-metadata\src\main\java\org\springframework\boot\configurationmetadata\Hints.java
2
请完成以下Java代码
default boolean hasAttributes() { return false; } default IViewRowAttributes getAttributes() { throw new EntityNotFoundException("Row does not support attributes"); } // @formatter:on // // IncludedView // @formatter:off default ViewId getIncludedViewId() { return null; } // @formatter:on // // Single column...
/** @return text to be displayed if {@link #isSingleColumn()} */ default ITranslatableString getSingleColumnCaption() { return TranslatableStrings.empty(); } // @formatter:on /** * @return a stream of given row and all it's included rows recursively */ default Stream<IViewRow> streamRecursive() { return thi...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\view\IViewRow.java
1
请完成以下Java代码
public void setCause(String cause) { this.cause = cause; } /** * @return the cause. * @since 1.4 */ public @Nullable String getCause() { return this.cause; } /** * True if a returned message has been received. * @return true if there is a return. * @since 2.2.10 */ public boolean isReturned() ...
public boolean waitForReturnIfNeeded() throws InterruptedException { return !this.returned || this.latch.await(RETURN_CALLBACK_TIMEOUT, TimeUnit.SECONDS); } /** * Count down the returned message latch; call after the listener has been called. * @since 2.2.10 */ public void countDown() { this.latch.countDo...
repos\spring-amqp-main\spring-rabbit\src\main\java\org\springframework\amqp\rabbit\connection\PendingConfirm.java
1
请在Spring Boot框架中完成以下Java代码
public ByteArrayRef getExceptionByteArrayRef() { return exceptionByteArrayRef; } @Override public void setExceptionByteArrayRef(ByteArrayRef exceptionByteArrayRef) { this.exceptionByteArrayRef = exceptionByteArrayRef; } private String getJobByteArrayRefAsString(ByteArrayRef jobByte...
sb.append(", elementId=").append(elementId); } if (correlationId != null) { sb.append(", correlationId=").append(correlationId); } if (executionId != null) { sb.append(", processInstanceId=").append(processInstanceId) .append(", executionId="...
repos\flowable-engine-main\modules\flowable-job-service\src\main\java\org\flowable\job\service\impl\persistence\entity\AbstractJobEntityImpl.java
2
请完成以下Java代码
public Job findOldestByTenantIdAndTypeAndStatusForUpdate(TenantId tenantId, JobType type, JobStatus status) { return DaoUtil.getData(jobRepository.findOldestByTenantIdAndTypeAndStatusForUpdate(tenantId.getId(), type.name(), status.name())); } @Override public void removeByTenantId(TenantId tenantId...
public EntityType getEntityType() { return EntityType.JOB; } @Override protected Class<JobEntity> getEntityClass() { return JobEntity.class; } @Override protected JpaRepository<JobEntity, UUID> getRepository() { return jobRepository; } }
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\sql\job\JpaJobDao.java
1
请完成以下Java代码
public void setTrackingURL (final @Nullable java.lang.String TrackingURL) { set_Value (COLUMNNAME_TrackingURL, TrackingURL); } @Override public java.lang.String getTrackingURL() { return get_ValueAsString(COLUMNNAME_TrackingURL); } @Override public void setWeightInKg (final BigDecimal WeightInKg) { se...
public BigDecimal getWeightInKg() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_WeightInKg); return bd != null ? bd : BigDecimal.ZERO; } @Override public void setWidthInCm (final int WidthInCm) { set_Value (COLUMNNAME_WidthInCm, WidthInCm); } @Override public int getWidthInCm() { return ...
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 String getVrsnNb() { return vrsnNb; } /** * Sets the value of the vrsnNb property. * * @param value * allowed object is * {@link String } * */ public void setVrsnNb(String value) { this.vrsnNb = value; } /** * Gets the va...
* * <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> method for the apprvlNb property. * * <p> * Fo...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.camt53\src\main\java-xjc\de\metas\banking\camt53\jaxb\camt053_001_04\PointOfInteractionComponent1.java
1
请完成以下Java代码
public Mono<List<Map<String, Object>>> routes() { Mono<Map<String, RouteDefinition>> routeDefs = this.routeDefinitionLocator.getRouteDefinitions() .collectMap(RouteDefinition::getId); Mono<List<Route>> routes = this.routeLocator.getRoutes().collectList(); return Mono.zip(routeDefs, routes).map(tuple -> { Ma...
r.put("route_object", obj); } } allRoutes.add(r); }); return allRoutes; }); } @GetMapping("/routes/{id}") public Mono<ResponseEntity<RouteDefinition>> route(@PathVariable String id) { // TODO: missing RouteLocator return this.routeDefinitionLocator.getRouteDefinitions() .filter(route ->...
repos\spring-cloud-gateway-main\spring-cloud-gateway-server-webflux\src\main\java\org\springframework\cloud\gateway\actuate\GatewayLegacyControllerEndpoint.java
1
请完成以下Java代码
private static String readResponse(HttpResponse response) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(response.getEntity().getContent())); String result = new String(); String line; while ((line = in.readLine()) != null) { result += line;...
public void checkServerTrusted(X509Certificate[] certs, String authType) { // don't check } } }; SSLContext ctx = SSLContext.getInstance("TLS"); ctx.init(null, trustAllCerts, null); LayeredConnectionSocketFactory sslSocketFacto...
repos\JeecgBoot-main\jeecg-boot\jeecg-module-system\jeecg-system-biz\src\main\java\org\jeecg\modules\cas\util\CasServiceUtil.java
1
请完成以下Java代码
protected void prepare() { } // prepare /** * Perform process. * (see also MSequenve.validate) * * @return Message to be translated * @throws Exception */ @Override protected String doIt() throws java.lang.Exception { log.info(""); // checkSequences(Env.getCtx()); return "Sequence Check"; } ...
checkSequences(ctx); } catch (final Exception e) { s_log.error("validate", e); } } // validate /** * Check/Initialize DocumentNo/Value Sequences for all Clients * * @param ctx context * @param sp server process or null */ private static void checkClientSequences(final Properties ctx) { final...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\process\SequenceCheck.java
1
请完成以下Java代码
public class HTMLEditorPane extends JEditorPane { /** * */ private static final long serialVersionUID = -3894172494918474160L; boolean antiAlias = true; public HTMLEditorPane(String text) { super("text/html", text); } public boolean isAntialiasOn() { return antiAlias; } public void setAntiAlias(b...
public void paint(Graphics g) { if (antiAlias) { Graphics2D g2 = (Graphics2D) g; g2.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY); g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2.setRenderingHint(RenderingHints.KEY...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\net\sf\memoranda\ui\htmleditor\HTMLEditorPane.java
1
请完成以下Java代码
<T extends Converter<?>> void conversionRule(String conversionWord, Class<T> converterClass, Supplier<T> converterSupplier) { info("Adding conversion rule of type '" + converterClass.getName() + "' for word '" + conversionWord + "'"); super.conversionRule(conversionWord, converterClass, converterSupplier); } ...
} super.logger(name, level, additive, appender); } @Override void start(LifeCycle lifeCycle) { info("Starting '" + lifeCycle + "'"); super.start(lifeCycle); } private void info(String message) { getContext().getStatusManager().add(new InfoStatus(message, this)); } }
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\logging\logback\DebugLogbackConfigurator.java
1
请完成以下Java代码
private void removeGroup(final FavoritesGroup group) { if (group == null) { return; } for (final Iterator<FavoritesGroup> it = topNodeId2group.values().iterator(); it.hasNext();) { final FavoritesGroup g = it.next(); if (Objects.equals(group, g)) { it.remove(); } } panel.remove(group....
{ return; } comp.setVisible(visible); // // If this group just became visible if (visible) { updateParentSplitPaneDividerLocation(); } } private final void updateParentSplitPaneDividerLocation() { final JComponent comp = getComponent(); if (!comp.isVisible()) { return; // nothing to u...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\grid\tree\FavoritesGroupContainer.java
1
请完成以下Java代码
public BigDecimal getPastDue8_30 () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PastDue8_30); if (bd == null) return Env.ZERO; return bd; } /** Set Past Due > 91. @param PastDue91_Plus Past Due > 91 */ public void setPastDue91_Plus (BigDecimal PastDue91_Plus) { set_Value (COLUMNNAME_PastDu...
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PastDueAmt); if (bd == null) return Env.ZERO; return bd; } /** Set Statement date. @param StatementDate Date of the statement */ public void setStatementDate (Timestamp StatementDate) { set_Value (COLUMNNAME_StatementDate, StatementDate); } /** ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_T_Aging.java
1
请完成以下Java代码
public static WFState ofCode(@NonNull final String code) { return typesByCode.ofCode(code); } /** * @return true if open (running, not started, suspended) */ public boolean isOpen() { return Running.equals(this) || NotStarted.equals(this) || Suspended.equals(this); } /** * State is Not Runnin...
} /** * Is the new State valid based on current state * * @param newState new state * @return true valid new state */ public boolean isValidNewState(final WFState newState) { final WFState[] options = getNewStateOptions(); for (final WFState option : options) { if (option.equals(newState)) re...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\workflow\WFState.java
1
请完成以下Java代码
public void setPaymentRule (String PaymentRule) { set_Value (COLUMNNAME_PaymentRule, PaymentRule); } /** Get Payment Rule. @return How you pay the invoice */ @Override public String getPaymentRule () { return (String)get_Value(COLUMNNAME_PaymentRule); } /** Set Processed. @param Processed The ...
} /** Get Process Now. @return Process Now */ @Override public boolean isProcessing () { Object oo = get_Value(COLUMNNAME_Processing); if (oo != null) { if (oo instanceof Boolean) { return ((Boolean)oo).booleanValue(); } return "Y".equals(oo); } return false; } /** Set Search K...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\eevolution\model\X_HR_Payroll.java
1
请完成以下Java代码
public final class WebsocketSubscriptionId { public static WebsocketSubscriptionId of( @NonNull final WebsocketSessionId sessionId, @NonNull final String subscriptionId) { return new WebsocketSubscriptionId(sessionId, subscriptionId); } @Getter private final WebsocketSessionId sessionId; private final St...
/** * @deprecated please use {@link #getAsString()} */ @Override @Deprecated public String toString() { return getAsString(); } @JsonValue public String getAsString() { return sessionId.getAsString() + "/" + subscriptionId; } public boolean isMatchingSessionId(final WebsocketSessionId sessionId) { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.util.web\src\main\java\de\metas\websocket\WebsocketSubscriptionId.java
1
请完成以下Java代码
public String toString() { return MoreObjects.toStringHelper(this) .add("uiSubClassID", uiSubClassID) .toString(); } public final Color getColor(final String name, final Color defaultColor) { Color color = UIManager.getColor(buildUIDefaultsKey(name)); if (color == null && uiSubClassID != null) { ...
{ Object value = UIManager.getDefaults().get(buildUIDefaultsKey(name)); if (value instanceof Boolean) { return (boolean)value; } if (uiSubClassID != null) { value = UIManager.getDefaults().get(name); if (value instanceof Boolean) { return (boolean)value; } } return defaultValue; } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\plaf\UISubClassIDHelper.java
1
请完成以下Java代码
public KeyNamePair getKeyNamePair() { return new KeyNamePair(get_ID(), String.valueOf(getA_Depreciation_Method_ID())); } /** Set DepreciationType. @param DepreciationType DepreciationType */ public void setDepreciationType (String DepreciationType) { set_Value (COLUMNNAME_DepreciationType, De...
/** Get Processed. @return The document has been processed */ 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 Text. @param...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_A_Depreciation_Method.java
1
请完成以下Java代码
public int getExecutorTimeout() { return executorTimeout; } public void setExecutorTimeout(int executorTimeout) { this.executorTimeout = executorTimeout; } public int getExecutorFailRetryCount() { return executorFailRetryCount; } public void setExecutorFailRetryCount(int executorFailRetryCount) { this....
public Date getGlueUpdatetime() { return glueUpdatetime; } public void setGlueUpdatetime(Date glueUpdatetime) { this.glueUpdatetime = glueUpdatetime; } public String getChildJobId() { return childJobId; } public void setChildJobId(String childJobId) { this.childJobId = childJobId; } public int getTr...
repos\JeecgBoot-main\jeecg-boot\jeecg-server-cloud\jeecg-visual\jeecg-cloud-xxljob\src\main\java\com\xxl\job\admin\core\model\XxlJobInfo.java
1
请完成以下Java代码
public void setIsPayFrom (final boolean IsPayFrom) { set_Value (COLUMNNAME_IsPayFrom, IsPayFrom); } @Override public boolean isPayFrom() { return get_ValueAsBoolean(COLUMNNAME_IsPayFrom); } @Override public void setIsRemitTo (final boolean IsRemitTo) { set_Value (COLUMNNAME_IsRemitTo, IsRemitTo); } ...
* Role AD_Reference_ID=541254 * Reference name: Role */ public static final int ROLE_AD_Reference_ID=541254; /** Main Producer = MP */ public static final String ROLE_MainProducer = "MP"; /** Hostpital = HO */ public static final String ROLE_Hostpital = "HO"; /** Physician Doctor = PD */ public static final...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_BP_Relation.java
1
请完成以下Java代码
public IWeightable wrap(@NonNull final IAttributeStorage attributeStorage) { return new AttributeStorageWeightableWrapper(attributeStorage); } public PlainWeightable plainOf(@NonNull final IAttributeStorage attributeStorage) { return PlainWeightable.copyOf(wrap(attributeStorage)); } public static void updat...
{ weightNetActual = weightNet; // propagate net value below normally weightable.setWeightNet(weightNetActual); } else { weightNetActual = weightNet.add(weightable.getWeightTareInitial()); // only subtract seed value (the container's weight) weightable.setWeightNet(weightNetActual); weightable.set...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\attribute\weightable\Weightables.java
1
请在Spring Boot框架中完成以下Java代码
public Builder setConsiderNullStringAsNull(final boolean considerNullStringAsNull) { this.considerNullStringAsNull = considerNullStringAsNull; return this; } public Builder setConsiderEmptyStringAsNull(final boolean considerEmptyStringAsNull) { this.considerEmptyStringAsNull = considerEmptyStringAsNul...
*/ public Builder setDiscardRepeatingHeaders(final boolean discardRepeatingHeaders) { this.discardRepeatingHeaders = discardRepeatingHeaders; return this; } /** * If enabled, the XLS converter will look for first not null column and it will expect to have one of the codes from {@link RowType}. * If...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java\de\metas\edi\esb\excelimport\ExcelToMapListConverter.java
2
请完成以下Java代码
public IQualityInspectionLine getByType(final QualityInspectionLineType type) { final List<IQualityInspectionLine> linesFound = getAllByType(type); if (linesFound.isEmpty()) { throw new AdempiereException("No line found for type: " + type); } else if (linesFound.size() > 1) { throw new AdempiereExcep...
final List<IQualityInspectionLine> linesFound = new ArrayList<>(); for (final IQualityInspectionLine line : lines) { final QualityInspectionLineType lineType = line.getQualityInspectionLineType(); if (typesList.contains(lineType)) { linesFound.add(line); } } return linesFound; } @Override p...
repos\metasfresh-new_dawn_uat\backend\de.metas.materialtracking\src\main\java\de\metas\materialtracking\qualityBasedInvoicing\impl\QualityInspectionLinesCollection.java
1
请在Spring Boot框架中完成以下Java代码
public class ExternalReferenceAuditService implements IMasterDataExportAuditService { //dev-note: meant to capture any rest calls made against `EXTERNAL_REFERENCE_RESOURCE` private final static String EXTERNAL_REFERENCE_RESOURCE = ExternalReferenceRestController.EXTERNAL_REFERENCE_REST_CONTROLLER_PATH_V2 + "/**"; p...
@Override public boolean isHandled(final GenericDataExportAuditRequest genericDataExportAuditRequest) { final AntPathMatcher antPathMatcher = new AntPathMatcher(); return antPathMatcher.match(EXTERNAL_REFERENCE_RESOURCE, genericDataExportAuditRequest.getRequestURI()); } private void auditExternalReference( ...
repos\metasfresh-new_dawn_uat\backend\de.metas.externalreference\src\main\java\de\metas\externalreference\rest\audit\ExternalReferenceAuditService.java
2
请完成以下Spring Boot application配置
spring: profiles: active: dev output: ansi: enabled: always logging: # level: # root: INFO # org.springframework: WARN # file: # name: ./logs/javastack.log # logback: # rollingpolicy: # max-file-size: 100MB structured: format: console: cn.javastack.sprin...
add: encrypt: false # stacktrace: # root: first # max-length: 1024 # include-common-frames: true # include-hashes: true charset: console: UTF-8 file: UTF-8 register-shutdown-hook: true
repos\spring-boot-best-practice-master\spring-boot-logging\src\main\resources\application.yml
2
请完成以下Java代码
public class ResourceAccessAPI { private static final Logger LOGGER = LoggerFactory.getLogger(ResourceAccessAPI.class); @GET @Path("/default") @Produces(MediaType.TEXT_PLAIN) public Response getDefaultResource() throws IOException { return Response.ok(readResource("default-resource.txt"))....
@Produces(MediaType.APPLICATION_JSON) public Response getJsonResource() throws IOException { return Response.ok(readResource("resources.json")).build(); } private String readResource(String resourcePath) throws IOException { LOGGER.info("Reading resource from path: {}", resourcePath); ...
repos\tutorials-master\quarkus-modules\quarkus-resources\src\main\java\com\baeldung\quarkus\resources\ResourceAccessAPI.java
1
请完成以下Java代码
public class Entity implements Serializable{ private static final long serialVersionUID = -763638353551774166L; public static final String INDEX_NAME = "index_entity"; public static final String TYPE = "tstype"; private Long id; private String name; public Entity() { super(); }...
public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } }
repos\Spring-Boot-In-Action-master\springboot_es_demo\src\main\java\com\hansonwang99\springboot_es_demo\entity\Entity.java
1
请完成以下Java代码
private TbResultSetFuture executeAsync(TbContext ctx, Statement statement, ConsistencyLevel level) { if (log.isDebugEnabled()) { log.debug("Execute cassandra async statement {}", statementToString(statement)); } if (statement.getConsistencyLevel() == null) { statement.set...
@Override public TbPair<Boolean, JsonNode> upgrade(int fromVersion, JsonNode oldConfiguration) throws TbNodeException { boolean hasChanges = false; switch (fromVersion) { case 0: if (!oldConfiguration.has("defaultTtl")) { hasChanges = true; ...
repos\thingsboard-master\rule-engine\rule-engine-components\src\main\java\org\thingsboard\rule\engine\action\TbSaveToCustomCassandraTableNode.java
1
请完成以下Java代码
public Set<String> keySet() { return this.session.getAttributeNames(); } @Override public Collection<Object> values() { return this.values; } @Override public Set<Entry<String, Object>> entrySet() { Set<String> attrNames = keySet(); Set<Entry<String, Object>> entries = new HashSet<>(attrNames....
} }; } @Override public int size() { return SpringSessionMap.this.size(); } @Override public boolean isEmpty() { return SpringSessionMap.this.isEmpty(); } @Override public void clear() { SpringSessionMap.this.clear(); } @Override public boolean contains(Object v)...
repos\spring-session-main\spring-session-core\src\main\java\org\springframework\session\web\server\session\SpringSessionWebSessionStore.java
1
请完成以下Java代码
public String getHelp () { 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 get...
/** Set Benchmark. @param PA_Benchmark_ID Performance Benchmark */ public void setPA_Benchmark_ID (int PA_Benchmark_ID) { if (PA_Benchmark_ID < 1) set_ValueNoCheck (COLUMNNAME_PA_Benchmark_ID, null); else set_ValueNoCheck (COLUMNNAME_PA_Benchmark_ID, Integer.valueOf(PA_Benchmark_ID)); } /** Get...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_PA_Benchmark.java
1
请完成以下Java代码
public void setS_ResourceType_ID (final int S_ResourceType_ID) { if (S_ResourceType_ID < 1) set_Value (COLUMNNAME_S_ResourceType_ID, null); else set_Value (COLUMNNAME_S_ResourceType_ID, S_ResourceType_ID); } @Override public int getS_ResourceType_ID() { return get_ValueAsInt(COLUMNNAME_S_ResourceTy...
return get_ValueAsString(COLUMNNAME_Value); } @Override public void setWaitingTime (final @Nullable BigDecimal WaitingTime) { set_Value (COLUMNNAME_WaitingTime, WaitingTime); } @Override public BigDecimal getWaitingTime() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_WaitingTime); return bd ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_S_Resource.java
1
请完成以下Java代码
private static void loadUOMs(Properties ctx) { List<MUOM> list = new Query(ctx, Table_Name, "IsActive='Y'", null) .setRequiredAccess(Access.READ) .list(MUOM.class); // for (MUOM uom : list) { s_cache.put(uom.get_ID(), uom); } } // loadUOMs public MUOM(Properties ctx, int C_UOM_ID, String trxNam...
if (is_new()) { // setName (null); // setX12DE355 (null); setIsDefault(false); setStdPrecision(2); setCostingPrecision(6); } } // UOM public MUOM(Properties ctx, ResultSet rs, String trxName) { super(ctx, rs, trxName); } // UOM } // MUOM
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java-legacy\org\compiere\model\MUOM.java
1
请完成以下Java代码
private BigDecimal pick(final BigDecimal qtyToPickTarget) { if (qtyToPickTarget.signum() <= 0) { return BigDecimal.ZERO; } if (pickingBOM == null) { return BigDecimal.ZERO; } final BigDecimal qtyAvailableToPick = computeQtyAvailableToPick().toBigDecimal(); final BigDecimal qtyToPickEffective =...
} BigDecimal qtyToRemoveRemaining = qtyToRemove.toBigDecimal(); for (final ShipmentScheduleAvailableStockDetail componentStockDetail : stockDetails) { if (qtyToRemoveRemaining.signum() == 0) { break; } final BigDecimal componentQtyToRemoveEffective = qtyToRemoveRemaining.min(componentStockDetail...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\org\adempiere\inout\util\ShipmentScheduleAvailableStockDetail.java
1
请完成以下Java代码
class ProductPriceImporter { private final ProductPriceCreateRequest request; public ProductPriceImporter(@NonNull final ProductPriceCreateRequest request) { this.request = request; } public void createProductPrice_And_PriceListVersionIfNeeded() { if (!isValidPriceRecord()) { throw new AdempiereExcept...
{ final I_M_PriceList_Version plv = Services.get(IPriceListDAO.class).getCreatePriceListVersion(request); ProductPrices.createProductPriceOrUpdateExistentOne(request, plv); } } } private boolean isValidPriceRecord() { return request.getProductId() > 0 && request.getPriceListId() > 0 && re...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma\src\main\java\de\metas\impexp\product\ProductPriceImporter.java
1
请完成以下Java代码
protected void configureExecutionQuery(ProcessInstanceQueryDto query) { configureAuthorizationCheck(query); configureTenantCheck(query); addPermissionCheck(query, PROCESS_INSTANCE, "RES.PROC_INST_ID_", READ); addPermissionCheck(query, PROCESS_DEFINITION, "P.KEY_", READ_INSTANCE); } protected void i...
protected class QueryProcessInstancesCountCmd implements Command<CountResultDto> { protected ProcessInstanceQueryDto queryParameter; public QueryProcessInstancesCountCmd(ProcessInstanceQueryDto queryParameter) { this.queryParameter = queryParameter; } @Override public CountResultDto execute...
repos\camunda-bpm-platform-master\webapps\assembly\src\main\java\org\camunda\bpm\cockpit\impl\plugin\resources\ProcessInstanceRestService.java
1
请完成以下Java代码
private static class OneTimeTokenParametersMapper implements Function<OneTimeToken, List<SqlParameterValue>> { @Override public List<SqlParameterValue> apply(OneTimeToken oneTimeToken) { List<SqlParameterValue> parameters = new ArrayList<>(); parameters.add(new SqlParameterValue(Types.VARCHAR, oneTimeToken.g...
* @since 6.4 */ private static class OneTimeTokenRowMapper implements RowMapper<OneTimeToken> { @Override public OneTimeToken mapRow(ResultSet rs, int rowNum) throws SQLException { String tokenValue = rs.getString("token_value"); String userName = rs.getString("username"); Instant expiresAt = rs.getTim...
repos\spring-security-main\core\src\main\java\org\springframework\security\authentication\ott\JdbcOneTimeTokenService.java
1
请完成以下Java代码
public void setM_IolCandHandler_ID (final int M_IolCandHandler_ID) { if (M_IolCandHandler_ID < 1) set_ValueNoCheck (COLUMNNAME_M_IolCandHandler_ID, null); else set_ValueNoCheck (COLUMNNAME_M_IolCandHandler_ID, M_IolCandHandler_ID); } @Override public int getM_IolCandHandler_ID() { return get_ValueA...
@Override public int getM_ShipmentSchedule_AttributeConfig_ID() { return get_ValueAsInt(COLUMNNAME_M_ShipmentSchedule_AttributeConfig_ID); } @Override public void setOnlyIfInReferencedASI (final boolean OnlyIfInReferencedASI) { set_Value (COLUMNNAME_OnlyIfInReferencedASI, OnlyIfInReferencedASI); } @Overr...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java-gen\de\metas\inoutcandidate\model\X_M_ShipmentSchedule_AttributeConfig.java
1
请完成以下Java代码
private void enqueueForInvoicing(final Set<InvoiceCandidateId> invoiceCandIds, final @NonNull I_C_Async_Batch asyncBatch) { trxManager.assertThreadInheritedTrxNotExists(); invoiceCandBL.enqueueForInvoicing() .setContext(getCtx()) .setAsyncBatchId(AsyncBatchId.ofRepoId(asyncBatch.getC_Async_Batch_ID())) ...
.contentADMessage(MSG_SKIPPED_INVOICE_DUE_TO_COMMISSION) .contentADMessageParam(inv.getDocumentNo()) .recipientUserId(Env.getLoggedUserId()) .build(); notificationBL.send(userNotificationRequest); return false; } return true; } @NonNull private IInvoicingParams getIInvoicingParams() { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\invoicecandidate\async\spi\impl\RecreateInvoiceWorkpackageProcessor.java
1
请完成以下Spring Boot application配置
spring: # 对应 RedisProperties 类 redis: host: 127.0.0.1 port: 6379 password: # Redis 服务器密码,默认为空。生产中,一定要设置 Redis 密码! database: 0 # Redis 数据库号,默认为 0 。 timeout: 0 # Redis 连接超时时间,单位:毫秒。 # 对应 RedisProperties.Jedis 内部类 jedis: pool: max-active: 8 # 连接池最大连接数,默认为 8 。使用负数表示没有限制。 ...
默认连接数最小空闲的连接数,默认为 8 。使用负数表示没有限制。 min-idle: 0 # 默认连接池最小空闲的连接数,默认为 0 。允许设置 0 和 正数。 max-wait: -1 # 连接池最大阻塞等待时间,单位:毫秒。默认为 -1 ,表示不限制。
repos\SpringBoot-Labs-master\lab-11-spring-data-redis\lab-07-spring-data-redis-with-jedis\src\main\resources\application.yml
2
请完成以下Java代码
public Collection<Artifact> getArtifacts() { return artifactList; } @Override public Map<String, Artifact> getArtifactMap() { return artifactMap; } @Override public void addArtifact(Artifact artifact) { artifactList.add(artifact); addArtifactToMap(artifact);...
for (ValuedDataObject thisObject : getDataObjects()) { boolean exists = false; for (ValuedDataObject otherObject : otherElement.getDataObjects()) { if (thisObject.getId().equals(otherObject.getId())) { exists = true; break; ...
repos\flowable-engine-main\modules\flowable-bpmn-model\src\main\java\org\flowable\bpmn\model\SubProcess.java
1
请在Spring Boot框架中完成以下Java代码
public class TbAlarmStatusSubscription extends TbSubscription<AlarmSubscriptionUpdate> { @Getter private final Set<UUID> alarmIds = new HashSet<>(); @Getter @Setter private boolean hasMoreAlarmsInDB; @Getter private final List<String> typeList; @Getter private final List<AlarmSeveri...
List<String> typeList, List<AlarmSeverity> severityList) { super(serviceId, sessionId, subscriptionId, tenantId, entityId, TbSubscriptionType.ALARMS, updateProcessor); this.typeList = typeList; this.severityList = severityList; } public boolean matches(AlarmInfo alarm) { return ...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\service\subscription\TbAlarmStatusSubscription.java
2
请完成以下Java代码
public final CommissionShare addFact(@NonNull final CommissionFact fact) { facts.add(fact); switch (fact.getState()) { case FORECASTED: forecastedPointsSum = forecastedPointsSum.add(fact.getPoints()); break; case INVOICEABLE: invoiceablePointsSum = invoiceablePointsSum.add(fact.getPoints()); ...
return ImmutableList.copyOf(facts); } public CommissionContract getContract() { return soTrx.isSales() ? config.getContractFor(payer.getBPartnerId()) : config.getContractFor(beneficiary.getBPartnerId()); } public ProductId getCommissionProductId() { return config.getCommissionProductId(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\commission\commissioninstance\businesslogic\sales\CommissionShare.java
1
请在Spring Boot框架中完成以下Java代码
public class ResilientAppController { private final ExternalAPICaller externalAPICaller; @Autowired public ResilientAppController(ExternalAPICaller externalApi) { this.externalAPICaller = externalApi; } @GetMapping("/circuit-breaker") @CircuitBreaker(name = "CircuitBreakerService") ...
public CompletableFuture<String> timeLimiterApi() { return CompletableFuture.supplyAsync(externalAPICaller::callApiWithDelay); } @GetMapping("/bulkhead") @Bulkhead(name = "bulkheadApi") public String bulkheadApi() { return externalAPICaller.callApi(); } @GetMapping("/rate-limit...
repos\tutorials-master\spring-boot-modules\spring-boot-libraries\src\main\java\com\baeldung\resilientapp\ResilientAppController.java
2
请完成以下Java代码
public class DocumentType { @XmlElement(required = true) protected byte[] base64; @XmlAttribute(name = "title", required = true) protected String title; @XmlAttribute(name = "filename", required = true) protected String filename; @XmlAttribute(name = "mimeType", required = true) protect...
public String getFilename() { return filename; } /** * Sets the value of the filename property. * * @param value * allowed object is * {@link String } * */ public void setFilename(String value) { this.filename = value; } /** * G...
repos\metasfresh-new_dawn_uat\backend\vertical-healthcare_ch\forum_datenaustausch_ch.invoice_450_response\src\main\java-xjc\de\metas\vertical\healthcare_ch\forum_datenaustausch_ch\invoice_450\response\DocumentType.java
1
请在Spring Boot框架中完成以下Java代码
private ShipmentScheduleInfo getShipmentScheduleInfo() { return shipmentSchedulesCache.computeIfAbsent(getScheduleId().getShipmentScheduleId(), shipmentScheduleService::getById); } private HUInfo getSingleTUInfo(@NonNull final TU tu) { tu.assertSingleTU(); return getHUInfo(tu.getId()); } private HUInfo ge...
continue; } huIdsToAdd.add(lu.getId()); } for (final TU tu : packedHUs.getTopLevelTUs()) { // do not add it if is current picking target, we will add it when closing the picking target. if (currentPickingTarget.matches(tu.getId())) { continue; } huIdsToAdd.add(tu.getId()); } if (...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\picking\job\service\commands\pick\PickingJobPickCommand.java
2
请完成以下Java代码
public java.lang.String getDescription () { return (java.lang.String)get_Value(COLUMNNAME_Description); } /** Set Indication. @param M_Indication_ID Indication */ @Override public void setM_Indication_ID (int M_Indication_ID) { if (M_Indication_ID < 1) set_ValueNoCheck (COLUMNNAME_M_Indication_ID, n...
@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.String)get_Value(COLUMNNAME_Name); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma\src\main\java-gen\de\metas\vertical\pharma\model\X_M_Indication.java
1
请在Spring Boot框架中完成以下Java代码
public class PP_Order { private static final AdMessageKey ERROR_MSG_MANUFACTURING_WITH_UNPROCESSED_CANDIDATES = AdMessageKey.of("ManufacturingOrderUnprocessedCandidates"); private final IHUPPOrderBL ppOrderBL = Services.get(IHUPPOrderBL.class); private final IHUPPOrderQtyDAO huPPOrderQtyDAO = Services.get(IHUPPOrde...
final PPOrderId ppOrderId = PPOrderId.ofRepoId(order.getPP_Order_ID()); reverseIssueSchedules(ppOrderId); } @DocValidate(timings = ModelValidator.TIMING_AFTER_COMPLETE) public void onAfterComplete(@NonNull final I_PP_Order order) { final PPOrderId ppOrderId = PPOrderId.ofRepoId(order.getPP_Order_ID()); final...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\pporder\interceptor\PP_Order.java
2