instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
private static boolean validateScope(String scope) { return scope == null || scope.chars() .allMatch((c) -> withinTheRangeOf(c, 0x21, 0x21) || withinTheRangeOf(c, 0x23, 0x5B) || withinTheRangeOf(c, 0x5D, 0x7E)); } private static boolean withinTheRangeOf(int c, int min, int max) { return c >= min &&...
+ postLogoutRedirectUri + "\" is not a valid post logout redirect URI or contains fragment"); } } private static boolean validateRedirectUri(String redirectUri) { try { URI validRedirectUri = new URI(redirectUri); return validRedirectUri.getFragment() == null; } catch (URISyntaxException ex) { ...
repos\spring-security-main\oauth2\oauth2-authorization-server\src\main\java\org\springframework\security\oauth2\server\authorization\client\RegisteredClient.java
1
请完成以下Java代码
public String getDescription() { return description; } } class CreateUserMessage implements Serializable { private static final long serialVersionUID = 1L; private final User user; public CreateUserMessage(User user) { this.user = user; } public User getUser() { return ...
class GetUserMessage implements Serializable { private static final long serialVersionUID = 1L; private final Long userId; public GetUserMessage(Long userId) { this.userId = userId; } public Long getUserId() { return userId; } } }
repos\tutorials-master\akka-modules\akka-http\src\main\java\com\baeldung\akkahttp\UserMessages.java
1
请完成以下Java代码
private static String expandRedirectUri(ServerHttpRequest request, ClientRegistration clientRegistration) { Map<String, String> uriVariables = new HashMap<>(); uriVariables.put("registrationId", clientRegistration.getRegistrationId()); // @formatter:off UriComponents uriComponents = UriComponentsBuilder.fromUri...
* Creates nonce and its hash for use in OpenID Connect 1.0 Authentication Requests. * @param builder where the {@link OidcParameterNames#NONCE} and hash is stored for * the authentication request * * @since 5.2 * @see <a target="_blank" href= * "https://openid.net/specs/openid-connect-core-1_0.html#AuthRequ...
repos\spring-security-main\oauth2\oauth2-client\src\main\java\org\springframework\security\oauth2\client\web\server\DefaultServerOAuth2AuthorizationRequestResolver.java
1
请完成以下Java代码
public class TextApplication { public static void main(String[] args) throws NamingException { TextProcessorRemote textProcessor = EJBFactory.createTextProcessorBeanFromJNDI("ejb:"); System.out.print(textProcessor.processText("sample text")); } private static class EJBFactory { pr...
final String distinctName = ""; final String beanName = TextProcessorBean.class.getSimpleName(); final String viewClassName = TextProcessorRemote.class.getName(); return (TextProcessorRemote) ctx.lookup(namespace + appName + "/" + moduleName + "/" + distinctName + "/" + beanName + "!...
repos\tutorials-master\spring-ejb-modules\spring-ejb-client\src\main\java\com\baeldung\ejb\wildfly\TextApplication.java
1
请完成以下Java代码
public static Sql ofSql(@NonNull final String sql, @Nullable SqlParams sqlParamsMap) { return new Sql(sql, sqlParamsMap, null); } public static Sql ofComment(@NonNull final String comment) {return new Sql(null, null, comment);} private Sql( @Nullable final String sqlCommand, @Nullable final SqlParams sqlP...
finalSql.append(toSqlCommentLine(timestamp.toString())); final String sqlWithParams = !sqlParams.isEmpty() ? sqlParamsInliner.inline(sqlCommand2, sqlParams.toList()) : sqlCommand2; finalSql.append(sqlWithParams).append("\n;\n\n"); } return finalSql.toString(); } private static String toSqlCommen...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\migration\logger\Sql.java
1
请在Spring Boot框架中完成以下Java代码
public List<Product> getProducts(Integer pageSize, Integer pageNumber) { return PRODUCT_LIST.stream() .skip((long) pageSize * pageNumber) .limit(pageSize) .collect(Collectors.toList()); } @Override public Product getProduct(Integer id) { return PRODUCT_LIST.str...
Product product = getProduct(productId); if (product != null) { update(product, productModel); } return product; } private void update(Product product, ProductModel productModel) { if (productModel != null) { System.out.println(productModel); ...
repos\tutorials-master\spring-boot-modules\spring-boot-graphql-2\src\main\java\com\baeldung\graphqlvsrest\repository\impl\ProductRepositoryImpl.java
2
请在Spring Boot框架中完成以下Java代码
public static class ReactiveRestApiConfiguration { private final AdminServerProperties adminServerProperties; public ReactiveRestApiConfiguration(AdminServerProperties adminServerProperties) { this.adminServerProperties = adminServerProperties; } @Bean @ConditionalOnMissingBean public de.codecentric.b...
@ConditionalOnMissingBean public de.codecentric.boot.admin.server.web.servlet.InstancesProxyController instancesProxyController( InstanceRegistry instanceRegistry, InstanceWebClient.Builder instanceWebClientBuilder) { return new de.codecentric.boot.admin.server.web.servlet.InstancesProxyController( this.a...
repos\spring-boot-admin-master\spring-boot-admin-server\src\main\java\de\codecentric\boot\admin\server\config\AdminServerWebConfiguration.java
2
请完成以下Java代码
public Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response) throws AuthenticationException { if (!request.getMethod().equals("POST")) { throw new AuthenticationServiceException("Authentication method not supported: " + request.getMet...
if (username == null) { username = ""; } if (password == null) { password = ""; } if (domain == null) { domain = ""; } return new CustomAuthenticationToken(username, password, domain); } private String obtainDomain(HttpServlet...
repos\tutorials-master\spring-security-modules\spring-security-web-login-2\src\main\java\com\baeldung\loginextrafieldscustom\CustomAuthenticationFilter.java
1
请完成以下Java代码
class VTreePanelSearchSupport { // services private final transient IMsgBL msgBL = Services.get(IMsgBL.class); // UI private final CLabel treeSearchLabel = new CLabel(); private final CTextField treeSearch = new CTextField(10); private final TreeSearchAutoCompleter treeSearchAutoCompleter; public VTreePanelSea...
* @param root */ public final void setTreeNodesFromRoot(final MTreeNode root) { treeSearchAutoCompleter.setTreeNodes(root); } /** @return the search label of {@link #getSearchField()} */ public final CLabel getSearchFieldLabel() { return treeSearchLabel; } /** @return the search field (with auto-complet...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\grid\tree\VTreePanelSearchSupport.java
1
请在Spring Boot框架中完成以下Java代码
public void configure() { final CachingProvider cachingProvider = Caching.getCachingProvider(); final CacheManager cacheManager = cachingProvider.getCacheManager(); final MutableConfiguration<de.metas.camel.externalsystems.shopware6.unit.GetUnitsRequest, Object> config = new MutableConfiguration<>(); config.se...
{ throw new RuntimeException("No getUnitsRequest provided!"); } final ShopwareClient shopwareClient = ShopwareClient .of(getUnitsRequest.getClientId(), getUnitsRequest.getClientSecret(), getUnitsRequest.getBaseUrl(), PInstanceLogger.of(processLogger)); final JsonUnits units = shopwareClient.getUnits(); ...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\de-metas-camel-shopware6\src\main\java\de\metas\camel\externalsystems\shopware6\unit\GetUnitsRouteBuilder.java
2
请完成以下Java代码
public static <T> void sort(List<T> list, Comparator<T> comparator) { sort(list, 0, list.size() - 1, comparator); } public static <T> void sort(List<T> list, int low, int high, Comparator<T> comparator) { if (low < high) { int partitionIndex = partition(list, low, high, comparator); ...
i++; T swapTemp = list.get(i); list.set(i, list.get(j)); list.set(j, swapTemp); } } T swapTemp = list.get(i+1); list.set(i+1,list.get(end)); list.set(end, swapTemp); return i+1; } }
repos\tutorials-master\core-java-modules\core-java-collections-5\src\main\java\com\baeldung\collectionsvsarrays\sorting\Quicksort.java
1
请完成以下Java代码
public DbOperation addRemovalTimeToAuthorizationsByRootProcessInstanceId(String rootProcessInstanceId, Date removalTime, Integer batchSize) { Map<String, Object> parameters = new HashMap<>(); parameters.put("rootProcessInstanceId", rootProcessI...
"updateAuthorizationsByProcessInstanceId", parameters); } public DbOperation deleteAuthorizationsByRemovalTime(Date removalTime, int minuteFrom, int minuteTo, int batchSize) { Map<String, Object> parameters = new HashMap<>(); parameters.put("removalTime...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\AuthorizationManager.java
1
请完成以下Java代码
public int getAD_Modification_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_AD_Modification_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Description. @param Description Optional short description of the record */ public void setDescription (String Description) { set_Val...
/** Get Record ID/ColumnName @return ID/ColumnName pair */ public KeyNamePair getKeyNamePair() { return new KeyNamePair(get_ID(), getName()); } /** Set Sequence. @param SeqNo Method of ordering records; lowest number comes first */ public void setSeqNo (int SeqNo) { set_...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_Modification.java
1
请在Spring Boot框架中完成以下Java代码
public boolean isDeployResources() { return deployResources; } public void setDeployResources(boolean deployResources) { this.deployResources = deployResources; } public boolean isEnabled() { return enabled; } public void setEnabled(boolean enabled) { this.enab...
} public void setEventRegistryUniqueCaseInstanceCheckWithLock(boolean eventRegistryUniqueCaseInstanceCheckWithLock) { this.eventRegistryUniqueCaseInstanceCheckWithLock = eventRegistryUniqueCaseInstanceCheckWithLock; } public Duration getEventRegistryUniqueCaseInstanceStartLockTime() { retu...
repos\flowable-engine-main\modules\flowable-spring-boot\flowable-spring-boot-starters\flowable-spring-boot-autoconfigure\src\main\java\org\flowable\spring\boot\cmmn\FlowableCmmnProperties.java
2
请完成以下Java代码
protected ExecutionEntity findNextParentScopeExecutionWithAllEndedChildExecutions( ExecutionEntity executionEntity, ExecutionEntity executionEntityToIgnore ) { if (executionEntity.getParentId() != null) { ExecutionEntity scopeExecutionEntity = executionEntity.getParent(); ...
executionEntityToIgnore == null || !executionEntityToIgnore.getId().equals(childExecutionEntity.getId()) ) { if (!childExecutionEntity.isEnded()) { return false; } if (childExecutionEntity.getExecutions() != null && childExecutionEntity.get...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\agenda\TakeOutgoingSequenceFlowsOperation.java
1
请完成以下Java代码
public void deleteByCaseDefinitionId(String caseDefinitionId) { getDbSqlSession().delete("deleteHistoricPlanItemInstanceByCaseDefinitionId", caseDefinitionId, getManagedEntityClass()); } @Override public void bulkDeleteHistoricPlanItemInstancesForCaseInstanceIds(Collection<String> caseInstanceI...
} @Override public HistoricPlanItemInstanceEntity create(PlanItemInstance planItemInstance) { return new HistoricPlanItemInstanceEntityImpl(planItemInstance); } protected void setSafeInValueLists(HistoricPlanItemInstanceQueryImpl planItemInstanceQuery) { if (planItemInstanceQuery.g...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\persistence\entity\data\impl\MybatisHistoricPlanItemInstanceDataManager.java
1
请完成以下Java代码
public class Person { int age; String name; String email; public Person(int age, String name, String email) { super(); this.age = age; this.name = name; this.email = email; } public int getAge() { return age; } public String getName() { ...
builder.append("]"); return builder.toString(); } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((email == null) ? 0 : email.hashCode()); return result; } @Override public boolean equals(Object obj) { ...
repos\tutorials-master\libraries-3\src\main\java\com\baeldung\nullaway\Person.java
1
请完成以下Java代码
public class DbGroupQueryImpl extends GroupQueryImpl { private static final long serialVersionUID = 1L; public DbGroupQueryImpl() { super(); } public DbGroupQueryImpl(CommandExecutor commandExecutor) { super(commandExecutor); } //results //////////////////////////////////////////////////////// ...
checkQueryOk(); DbReadOnlyIdentityServiceProvider identityProvider = getIdentityProvider(commandContext); return identityProvider.findGroupCountByQueryCriteria(this); } public List<Group> executeList(CommandContext commandContext, Page page) { checkQueryOk(); DbReadOnlyIdentityServiceProvider ident...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\identity\db\DbGroupQueryImpl.java
1
请完成以下Java代码
public boolean waitForLoad (Image image) { long start = System.currentTimeMillis(); Thread.yield(); int count = 0; try { Toolkit toolkit = Toolkit.getDefaultToolkit(); while (!toolkit.prepareImage(image, -1, -1, this)) // ImageObserver calls imageUpdate { // Timeout if (count > 1000) // abou...
protected String getDetailInfo() { return ""; } // getDetailInfo /** * String Representation * @return info */ public String toString() { String cn = getClass().getName(); StringBuffer sb = new StringBuffer(); sb.append(cn.substring(cn.lastIndexOf('.')+1)).append("["); sb.append("Bounds=").appe...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\print\layout\PrintElement.java
1
请在Spring Boot框架中完成以下Java代码
public String getDeploymentId() { return deploymentId; } public void setDeploymentId(String deploymentId) { this.deploymentId = deploymentId; } public String getActivityId() { return activityId; } public void setActivityId(String activityId) { this.activityId =...
} public void setTenantId(String tenantId) { this.tenantId = tenantId; } public String getDecisionKey() { return decisionKey; } public void setDecisionKey(String decisionKey) { this.decisionKey = decisionKey; } public String getDecisionName() { return deci...
repos\flowable-engine-main\modules\flowable-dmn-rest\src\main\java\org\flowable\dmn\rest\service\api\history\HistoricDecisionExecutionResponse.java
2
请完成以下Java代码
public final class DWZ { /** * Ajax请求成功,statusCode 为200. */ public static final String SUCCESS = "200"; /** * Ajax请求失败,statusCode 为300. */ public static final String ERROR = "300"; /** * Ajax请求超时,statusCode 为301. */ public static final String TIMEOUT = "301"; // ////////////////////////////////////...
/** * 只有callbackType="forward"时需要forwardUrl值,以重定向到另一个URL. */ public static final String FORWARD = "forward"; public static final String AJAX_DONE = "common/ajaxDone"; public static final String SUCCESS_MSG = "操作成功"; /** * 私有构造方法,单例模式. */ private DWZ() { } }
repos\roncoo-pay-master\roncoo-pay-common-core\src\main\java\com\roncoo\pay\common\core\dwz\DWZ.java
1
请在Spring Boot框架中完成以下Java代码
public class Editor { @Id @GeneratedValue(generator = "uuid") @GenericGenerator(name = "uuid", strategy = "uuid2") private String editorId; private String editorName; @OneToMany(mappedBy = "editor", cascade = CascadeType.PERSIST) private Set<Author> assignedAuthors = new HashSet<>(); ...
return editorName; } public void setEditorName(String editorName) { this.editorName = editorName; } public Set<Author> getAssignedAuthors() { return assignedAuthors; } public void setAssignedAuthors(Set<Author> assignedAuthors) { this.assignedAuthors = assignedAuthors;...
repos\tutorials-master\persistence-modules\hibernate-ogm\src\main\java\com\baeldung\hibernate\ogm\Editor.java
2
请在Spring Boot框架中完成以下Java代码
private void init() { NotificationTemplateConfig templateConfig = notificationTemplate.getConfiguration(); templateConfig.getDeliveryMethodsTemplates().forEach((deliveryMethod, template) -> { if (template.isEnabled()) { template = processTemplate(template, null); // processin...
if (additionalTemplateContext != null) { templateContext.putAll(additionalTemplateContext); } if (templateContext.isEmpty()) return template; template = (T) template.copy(); template.getTemplatableValues().forEach(templatableValue -> { String value = templatableV...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\service\notification\NotificationProcessingContext.java
2
请在Spring Boot框架中完成以下Java代码
public List<City> searchCity(Integer pageNumber, Integer pageSize, String searchContent) { // 校验分页参数 if (pageSize == null || pageSize <= 0) { pageSize = PAGE_SIZE; } if (pageNumber == null || pageNumber < DEFAULT_PAGE_NUMBER) { pageNumber = DEFAULT_PAGE_NUMBER; ...
private SearchQuery getCitySearchQuery(Integer pageNumber, Integer pageSize,String searchContent) { // 短语匹配到的搜索词,求和模式累加权重分 // 权重分查询 https://www.elastic.co/guide/cn/elasticsearch/guide/current/function-score-query.html // - 短语匹配 https://www.elastic.co/guide/cn/elasticsearch/guide/current/phrase...
repos\springboot-learning-example-master\spring-data-elasticsearch-query\src\main\java\org\spring\springboot\service\impl\CityESServiceImpl.java
2
请完成以下Spring Boot application配置
# Spring boot application spring.application.name=dubbo-spring-boot-servlet-container-provider-sample # Base packages to scan Dubbo Component: @org.apache.dubbo.config.annotation.Service dubbo.scan.base-packages=org.apache.dubbo.spring.boot.sample.provider.service # Dubbo Application # Dubbo Protocol dubbo.protoc
ol.name=dubbo dubbo.protocol.port=23456 ## Dubbo Registry dubbo.registry.address=N/A ## DemoService version demo.service.version=1.0.0
repos\dubbo-spring-boot-project-master\dubbo-spring-boot-samples\servlet-container-samples\provider-sample\src\main\resources\application.properties
2
请完成以下Java代码
public @Nullable String getGroup() { return get("group"); } /** * Return the artifactId of the project or {@code null}. * @return the artifact */ public @Nullable String getArtifact() { return get("artifact"); } /** * Return the name of the project or {@code null}. * @return the name */ public @...
return properties; } private static void coerceDate(Properties properties, String key) { String value = properties.getProperty(key); if (value != null) { try { String updatedValue = String .valueOf(DateTimeFormatter.ISO_INSTANT.parse(value, Instant::from).toEpochMilli()); properties.setProperty(k...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\info\BuildProperties.java
1
请在Spring Boot框架中完成以下Java代码
public class BookstoreService { private final BookMultipleIdsRepository bookMultipleIdsRepository; private final BookRepository bookRepository; public BookstoreService(BookMultipleIdsRepository bookMultipleIdsRepository, BookRepository bookRepository) { this.bookMultipleIdsRepository =...
public void fetchBySessionCheckMultipleIds() { List<Book> books1 = bookMultipleIdsRepository .fetchByMultipleIds(List.of(1L, 2L, 5L)); System.out.println(books1); // loaded from Persistence Context List<Book> books2 = bookMultipleIdsRepository ...
repos\Hibernate-SpringBoot-master\HibernateSpringBootLoadMultipleIds\src\main\java\com\bookstore\service\BookstoreService.java
2
请完成以下Java代码
private static int deletePauseBeginEndRecordsAndUpdatePausedRecords(@NonNull final List<I_C_SubscriptionProgress> allPauseRecords) { int seqNoOffset = 0; for (final I_C_SubscriptionProgress pauseRecord : allPauseRecords) { final boolean pauseStartOrEnd = X_C_SubscriptionProgress.EVENTTYPE_BeginOfPause.equal...
{ Services.get(IShipmentScheduleBL.class).openShipmentSchedule(InterfaceWrapperHelper.load(pauseRecord.getM_ShipmentSchedule_ID(), I_M_ShipmentSchedule.class)); } } subtractFromSeqNoAndSave(pauseRecord, seqNoOffset); } return seqNoOffset; } private static void subtractFromSeqNoAndSave(final I_C_Su...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\subscription\impl\subscriptioncommands\RemovePauses.java
1
请完成以下Java代码
public void unregister() { if (reg != null) { reg.unregister(); } } @SuppressWarnings({"rawtypes"}) @Override public ScriptEngine resolveScriptEngine(String name) { try { String className; try (InputStre...
// getScriptEngine Thread.currentThread().setContextClassLoader(factory.getClass().getClassLoader()); engine = factory.getScriptEngine(); } finally { Thread.currentThread().setContextClassLoader(old); ...
repos\flowable-engine-main\modules\flowable-osgi\src\main\java\org\flowable\osgi\Extender.java
1
请完成以下Java代码
public void setGrade(Integer grade) { this.grade = grade; } @Override public Date getGmtCreate() { return gmtCreate; } public void setGmtCreate(Date gmtCreate) { this.gmtCreate = gmtCreate; } public Date getGmtModified() { return gmtModified; }
public void setGmtModified(Date gmtModified) { this.gmtModified = gmtModified; } @Override public DegradeRule toRule() { DegradeRule rule = new DegradeRule(); rule.setResource(resource); rule.setLimitApp(limitApp); rule.setCount(count); rule.setTimeWindow(tim...
repos\spring-boot-student-master\spring-boot-student-sentinel-dashboard\src\main\java\com\alibaba\csp\sentinel\dashboard\datasource\entity\rule\DegradeRuleEntity.java
1
请完成以下Java代码
public class DatasourceManager { /** * 默认释放时间 */ private static final Long DEFAULT_RELEASE = 10L; /** * 数据源 */ @Getter private HikariDataSource dataSource; /** * 上一次使用时间 */ private LocalDateTime lastUseTime; public DatasourceManager(HikariDataSource dataS...
* 是否已过期,如果过期则关闭数据源 * * @return 是否过期,{@code true} 过期,{@code false} 未过期 */ public boolean isExpired() { if (LocalDateTime.now().isBefore(this.lastUseTime.plusMinutes(DEFAULT_RELEASE))) { return false; } this.dataSource.close(); return true; } /** ...
repos\spring-boot-demo-master\demo-dynamic-datasource\src\main\java\com\xkcoding\dynamic\datasource\datasource\DatasourceManager.java
1
请完成以下Java代码
public final void setC_Queue_WorkPackage(final I_C_Queue_WorkPackage workpackage) { this.workpackage = workpackage; } @NonNull protected final I_C_Queue_WorkPackage getC_Queue_WorkPackage() { Check.assumeNotNull(workpackage, "workpackage not null"); return this.workpackage; } @NonNull protected final Qu...
} /** * Returns the {@link NullLatchStrategy}. */ @Override public ILatchStragegy getLatchStrategy() { return NullLatchStrategy.INSTANCE; } public final <T> List<T> retrieveItems(final Class<T> modelType) { return Services.get(IQueueDAO.class).retrieveAllItemsSkipMissing(getC_Queue_WorkPackage(), model...
repos\metasfresh-new_dawn_uat\backend\de.metas.async\src\main\java\de\metas\async\spi\WorkpackageProcessorAdapter.java
1
请完成以下Java代码
public Element setLang(String lang) { addAttribute("lang",lang); addAttribute("xml:lang",lang); return this; } /** Adds an Element to the element. @param hashcode name of element for hash table @param element Adds an Element to the element. ...
*/ public bdo addElement(Element element) { addElementToRegistry(element); return(this); } /** Adds an Element to the element. @param element Adds an Element to the element. */ public bdo addElement(String element) { addElementToRegistr...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\tools\src\main\java-legacy\org\apache\ecs\xhtml\bdo.java
1
请完成以下Java代码
public void setConnectionRequestTimeout(Duration connectionRequestTimeout) { setConnectionRequestTimeout(Math.toIntExact(connectionRequestTimeout.toMillis())); } public void setConnectTimeout(Duration connectTimeout) { setConnectTimeout(Math.toIntExact(connectTimeout.toMillis())); } pu...
} else { throw new FlowableException("Failed to determine FlowableHttpClient"); } } public boolean isDefaultParallelInSameTransaction() { return defaultParallelInSameTransaction; } public void setDefaultParallelInSameTransaction(boolean defaultParallelInSameTransact...
repos\flowable-engine-main\modules\flowable-http-common\src\main\java\org\flowable\http\common\impl\HttpClientConfig.java
1
请在Spring Boot框架中完成以下Java代码
public ImmutableList<PickingJob> execute() { initialPickingJobs.forEach(PickingJob::assertNotProcessed); final boolean isAbortAllowed = initialPickingJobs.stream().allMatch(PickingJob::isAllowAbort); if (!isAbortAllowed) { throw new AdempiereException(ABORT_IS_NOT_ALLOWED); } return trxManager.callInThr...
// .pickingJobRepository(pickingJobRepository) // .pickingCandidateService(pickingCandidateService) // .pickingJob(pickingJob) // .build() // .execute(); // } private PickingJob releasePickingSlotAndSave(PickingJob pickingJob) { final PickingJobId pickingJobId = pickingJob.getId(); final Pick...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\picking\job\service\commands\PickingJobAbortCommand.java
2
请在Spring Boot框架中完成以下Java代码
public de.metas.serviceprovider.model.I_S_Issue getS_Parent_Issue() { return get_ValueAsPO(COLUMNNAME_S_Parent_Issue_ID, de.metas.serviceprovider.model.I_S_Issue.class); } @Override public void setS_Parent_Issue(final de.metas.serviceprovider.model.I_S_Issue S_Parent_Issue) { set_ValueFromPO(COLUMNNAME_S_Pare...
set_Value (COLUMNNAME_Status, Status); } @Override public java.lang.String getStatus() { return get_ValueAsString(COLUMNNAME_Status); } @Override public void setValue (final java.lang.String Value) { set_Value (COLUMNNAME_Value, Value); } @Override public java.lang.String getValue() { return get_...
repos\metasfresh-new_dawn_uat\backend\de.metas.serviceprovider\src\main\java-gen\de\metas\serviceprovider\model\X_S_Issue.java
2
请完成以下Java代码
protected Authentication createAuthentication(HttpServletRequest request) { AnonymousAuthenticationToken token = new AnonymousAuthenticationToken(this.key, this.principal, this.authorities); token.setDetails(this.authenticationDetailsSource.buildDetails(request)); return token; } public void setAuthenticat...
* @since 5.8 */ public void setSecurityContextHolderStrategy(SecurityContextHolderStrategy securityContextHolderStrategy) { Assert.notNull(securityContextHolderStrategy, "securityContextHolderStrategy cannot be null"); this.securityContextHolderStrategy = securityContextHolderStrategy; } public Object getPrin...
repos\spring-security-main\web\src\main\java\org\springframework\security\web\authentication\AnonymousAuthenticationFilter.java
1
请完成以下Java代码
public void setFirstName(String firstName) { this.firstName = firstName; } @Column(name = "last_name", nullable = false) public String getLastName() { return lastName; } public void setLastName(String lastName) { this.lastName = lastName; } @Column(name = "email_ad...
} public void setEmailId(String emailId) { this.emailId = emailId; } @Column(name = "create_at", nullable = false) @CreatedDate public Date getCreateAt() { return createAt; } public void setCreateAt(Date createAt) { this.createAt = createAt; } }
repos\SpringBoot-Projects-FullStack-master\Part-4 Spring Boot REST API\SpringMySQL\src\main\java\spring\restapi\model\Developer.java
1
请在Spring Boot框架中完成以下Java代码
protected final List<String> filter(@Nullable Collection<String> classNames, ClassNameFilter classNameFilter, @Nullable ClassLoader classLoader) { if (CollectionUtils.isEmpty(classNames)) { return Collections.emptyList(); } List<String> matches = new ArrayList<>(classNames.size()); for (String candidate :...
@Override public boolean matches(String className, @Nullable ClassLoader classLoader) { return isPresent(className, classLoader); } }, MISSING { @Override public boolean matches(String className, @Nullable ClassLoader classLoader) { return !isPresent(className, classLoader); } }; abs...
repos\spring-boot-4.0.1\core\spring-boot-autoconfigure\src\main\java\org\springframework\boot\autoconfigure\condition\FilteringSpringBootCondition.java
2
请完成以下Java代码
protected void paintTabBorder(Graphics g, int tabIndex, int x, int y, int w, int h, boolean isSelected) { g.translate(x - 4, y); int top = 0; int right = w + 6; // Paint Border g.setColor(selectHighlight); // Paint left g.drawLine(1, h - 1, 4, top + 4); g.fillRect(5, top + 2, 1, 2); g.f...
// Break line to show visual connection to selected tab g.fillRect(x, top, selRect.x - 2 - x, 1); if (selRect.x + selRect.width < x + w - 2) { g.fillRect(selRect.x + selRect.width + 2, top, right - 2 - selRect.x - selRect.width, 1); } else { g.fillRect(x + w - 2, top, 1, 1); } }...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\plaf\AdempiereTabbedPaneUI.java
1
请完成以下Java代码
public void setName (String Name) { set_Value (COLUMNNAME_Name, Name); } /** Get Name. @return Alphanumeric identifier of the entity */ public String getName () { return (String)get_Value(COLUMNNAME_Name); } /** Set Print Text. @param PrintName The label text to be printed on a document or corre...
/** Get X Position. @return Absolute X (horizontal) position in 1/72 of an inch */ public int getXPosition () { Integer ii = (Integer)get_Value(COLUMNNAME_XPosition); if (ii == null) return 0; return ii.intValue(); } /** Set Y Position. @param YPosition Absolute Y (vertical) position in 1/72 o...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_PrintLabelLine.java
1
请完成以下Java代码
public String webGet(@CliOption(key = { "", "url" }, help = "URL whose contents will be displayed.") URL url) { return getContentsOfUrlAsString(url); } @CliCommand(value = { "web-save", "ws" }, help = "Saves the contents of a URL.") public String webSave(@CliOption(key = { "", "url" }, help = "URL ...
return adminEnableExecuted; } @CliCommand(value = "admin-enable") public String adminEnable() { adminEnableExecuted = true; return "Admin commands enabled."; } @CliCommand(value = "admin-disable") public String adminDisable() { adminEnableExecuted = false; retur...
repos\tutorials-master\spring-shell\src\main\java\com\baeldung\shell\simple\SimpleCLI.java
1
请完成以下Java代码
protected void notifyExecutionListener(DelegateExecution execution) throws Exception { ProcessApplicationReference processApp = Context.getCurrentProcessApplication(); try { ProcessApplicationInterface processApplication = processApp.getProcessApplication(); ExecutionListener executionListener = pro...
try { ProcessApplicationInterface processApplication = processApp.getProcessApplication(); TaskListener taskListener = processApplication.getTaskListener(); if(taskListener != null) { taskListener.notify(task); } else { LOG.paDoesNotProvideTaskListener(processApp.getName()); ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\application\impl\event\ProcessApplicationEventListenerDelegate.java
1
请完成以下Java代码
public String getColumnSQL () { return (String)get_Value(COLUMNNAME_ColumnSQL); } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; /** Set Entity Type. @param EntityType Dictionary Entity Type; Determines ownership and synchronization */ public void setEnti...
{ set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); } /** Get Sequence. @return Method of ordering records; lowest number comes first */ public int getSeqNo () { Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); if (ii == null) return 0; return ii.intValue(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_Index_Column.java
1
请完成以下Java代码
public void setPointsBase_Forecasted (final BigDecimal PointsBase_Forecasted) { set_Value (COLUMNNAME_PointsBase_Forecasted, PointsBase_Forecasted); } @Override public BigDecimal getPointsBase_Forecasted() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_PointsBase_Forecasted); return bd != null ? ...
@Override public BigDecimal getPointsBase_Invoiced() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_PointsBase_Invoiced); return bd != null ? bd : BigDecimal.ZERO; } @Override public void setPOReference (final @Nullable java.lang.String POReference) { set_Value (COLUMNNAME_POReference, POReferen...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java-gen\de\metas\contracts\commission\model\X_C_Commission_Instance.java
1
请完成以下Java代码
public static BooleanWithReason falseBecause(@NonNull final String reason) { return falseBecause(toTrl(reason)); } public static BooleanWithReason falseBecause(@NonNull final ITranslatableString reason) { if (TranslatableStrings.isBlank(reason)) { return FALSE; } else { return new BooleanWithReas...
public boolean toBoolean() { return value; } public boolean isTrue() { return value; } public boolean isFalse() { return !value; } public String getReasonAsString() { return reason.getDefaultValue(); } public void assertTrue() { if (isFalse()) { throw new AdempiereException(reason); } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\i18n\BooleanWithReason.java
1
请完成以下Java代码
public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } public String getLastName() { return lastName; } public void setLastName(String lastName) { this.lastName = lastName; } public...
return socialSecurityCode; } public void setSocialSecurityCode(String socialSecurityCode) { this.socialSecurityCode = socialSecurityCode; } @Override public String toString() { final StringBuffer sb = new StringBuffer("CustomerDTO{"); sb.append("firstName='").append(firstNa...
repos\springboot-demo-master\rmi\rmi-common\src\main\java\om\et\rmi\common\CustomerDTO.java
1
请完成以下Java代码
public Timestamp getDateDoc () { return (Timestamp)get_Value(COLUMNNAME_DateDoc); } /** Set Processed. @param Processed The document has been processed */ public void setProcessed (boolean Processed) { set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); } /** Get Processed. @return The...
public void setProcessing (boolean Processing) { set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); } /** Get Process Now. @return Process Now */ public boolean isProcessing () { Object oo = get_Value(COLUMNNAME_Processing); if (oo != null) { if (oo instanceof Boolean) return ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_A_Asset_Disposed.java
1
请完成以下Java代码
public SignalEventDefinition newInstance(ModelTypeInstanceContext instanceContext) { return new SignalEventDefinitionImpl(instanceContext); } }); signalRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_SIGNAL_REF) .qNameAttributeReference(Signal.class) .build(); /**...
} public Signal getSignal() { return signalRefAttribute.getReferenceTargetElement(this); } public void setSignal(Signal signal) { signalRefAttribute.setReferenceTargetElement(this, signal); } public boolean isCamundaAsync() { return camundaAsyncAttribute.getValue(this); } public void setCa...
repos\camunda-bpm-platform-master\model-api\bpmn-model\src\main\java\org\camunda\bpm\model\bpmn\impl\instance\SignalEventDefinitionImpl.java
1
请完成以下Java代码
private boolean isValidASI(final KeyNamePair asi) { if (asi == null) { return false; } if (asi.getKey() <= 0) { return false; } return true; } @Override public List<String> getDependsOnColumnNames() { return Collections.emptyList(); } @Override public Set<String> getValuePropagationKeyCo...
} @Override public String[] getWhereClauses(final List<Object> params) { return new String[0]; } @Override public String getText() { return null; } @Override public void save(final Properties ctx, final int windowNo, final IInfoWindowGridRowBuilders builders) { for (final Map.Entry<Integer, Integer>...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\adempiere\gui\search\InfoProductASIController.java
1
请在Spring Boot框架中完成以下Java代码
public JwtResponse fixedBuilder() throws UnsupportedEncodingException { String jws = Jwts.builder() .setIssuer("Stormpath") .setSubject("msilverman") .claim("name", "Micah Silverman") .claim("scope", "admins") .setIssuedAt(Date.from(Instant.ofEpochSeco...
.parseClaimsJws(jwt); return new JwtResponse(jws); } @RequestMapping(value = "/parser-enforce", method = GET) public JwtResponse parserEnforce(@RequestParam String jwt) throws UnsupportedEncodingException { Jws<Claims> jws = Jwts.parser() .requireIssuer("Stormpath") ...
repos\tutorials-master\security-modules\jjwt\src\main\java\io\jsonwebtoken\jjwtfun\controller\StaticJWTController.java
2
请在Spring Boot框架中完成以下Java代码
public final class JndiConnectionFactoryAutoConfiguration { // Keep these in sync with the condition below private static final String[] JNDI_LOCATIONS = { "java:/JmsXA", "java:/XAConnectionFactory" }; @Bean ConnectionFactory jmsConnectionFactory(JmsProperties properties) throws NamingException { JndiLocatorDel...
} @ConditionalOnJndi({ "java:/JmsXA", "java:/XAConnectionFactory" }) static class Jndi { } @ConditionalOnProperty("spring.jms.jndi-name") static class Property { } } }
repos\spring-boot-4.0.1\module\spring-boot-jms\src\main\java\org\springframework\boot\jms\autoconfigure\JndiConnectionFactoryAutoConfiguration.java
2
请完成以下Java代码
private static Map<String, Object> extractParameters(@NonNull final Throwable throwable, @NonNull final String adLanguage) { return convertParametersMapToJson(AdempiereException.extractParameters(throwable), adLanguage); } @NonNull public static Map<String, Object> convertParametersMapToJson(@Nullable final Map<...
return convertParametersMapToJson(map, adLanguage); } else { return value.toString(); // return JsonObjectMapperHolder.toJsonOrToString(value); } } @NonNull private static String convertParameterToStringJson(@Nullable final Object value, @NonNull final String adLanguage) { if (value == null || Null...
repos\metasfresh-new_dawn_uat\backend\de.metas.util.web\src\main\java\de\metas\rest_api\utils\v2\JsonErrors.java
1
请完成以下Java代码
public class MResourceAssignment extends X_S_ResourceAssignment { /** * */ private static final long serialVersionUID = 3024759545660161137L; /** * Stnadard Constructor * @param ctx * @param S_ResourceAssignment_ID */ public MResourceAssignment (Properties ctx, int S_ResourceAssignment_ID, String trx...
-- Update Order Line UPDATE C_OrderLine SET Description = v_Description, QtyOrdered = :new.Qty WHERE S_ResourceAssignment_ID = :new.S_ResourceAssignment_ID AND (Description <> v_Description OR QtyOrdered <> :new.Qty); -- Update Invoice Line UPDATE C_InvoiceLine SET Description = v_Description, QtyIn...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\MResourceAssignment.java
1
请完成以下Java代码
public GenericEventListenerInstanceQuery caseDefinitionId(String caseDefinitionId) { innerQuery.caseDefinitionId(caseDefinitionId); return this; } @Override public GenericEventListenerInstanceQuery elementId(String elementId) { innerQuery.planItemInstanceElementId(elementId); ...
innerQuery.desc(); return this; } @Override public GenericEventListenerInstanceQuery orderBy(QueryProperty property) { innerQuery.orderBy(property); return this; } @Override public GenericEventListenerInstanceQuery orderBy(QueryProperty property, NullHandlingOnOrder nul...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\runtime\GenericEventListenerInstanceQueryImpl.java
1
请完成以下Java代码
public void setValuta(Date valuta) { this.valuta = valuta; } public String getBuchungsschluessel() { return buchungsschluessel; } public void setBuchungsschluessel(String buchungsschluessel) { this.buchungsschluessel = buchungsschluessel; } public String getReferenz() { return referenz; } public voi...
} public void setPrimanotennummer(String primanotennummer) { this.primanotennummer = primanotennummer; } public String getVerwendungszweck() { return verwendungszweck; } public void setVerwendungszweck(String verwendungszweck) { this.verwendungszweck = verwendungszweck; } public String getPartnerBlz() ...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.base\src\main\java\de\schaeffer\compiere\mt940\BankstatementLine.java
1
请完成以下Java代码
public V remove(Object key) { throw new UnsupportedOperationException("双数组不支持删除"); } @Override public void putAll(Map<? extends String, ? extends V> m) { throw new UnsupportedOperationException("双数组不支持增量式插入"); } @Override public void clear() { throw new Unsu...
throw new UnsupportedOperationException("双数组不支持"); } @Override public Collection<V> values() { return Arrays.asList(valueArray); } @Override public Set<Entry<String, V>> entrySet() { throw new UnsupportedOperationException("双数组不支持"); } }
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\collection\dartsclone\DartMap.java
1
请完成以下Java代码
public class GenericEventListenerXmlConverter extends PlanItemDefinitionXmlConverter { @Override public boolean hasChildElements() { return true; } @Override public String getXMLElementName() { return CmmnXmlConstants.ELEMENT_GENERIC_EVENT_LISTENER; } @Override protect...
IntentEventListener intentEventListener = new IntentEventListener(); return convertCommonAttributes(xtr, intentEventListener); } else if ("reactivate".equals(listenerType)) { ReactivateEventListener reactivateEventListener = new ReactivateEventListener(); return convertCommo...
repos\flowable-engine-main\modules\flowable-cmmn-converter\src\main\java\org\flowable\cmmn\converter\GenericEventListenerXmlConverter.java
1
请完成以下Java代码
public abstract class NeedsActiveTaskCmd<T> implements Command<T>, Serializable { private static final long serialVersionUID = 1L; protected String taskId; public NeedsActiveTaskCmd(String taskId) { this.taskId = taskId; } @Override public T execute(CommandContext commandContext) { ...
if (task.isDeleted()) { throw new FlowableException(task + " is already deleted"); } if (task.isSuspended()) { throw new FlowableException(getSuspendedTaskExceptionPrefix() + " a suspended " + task); } return execute(commandContext, task); } /** * ...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\cmd\NeedsActiveTaskCmd.java
1
请完成以下Java代码
protected void deleteChannelDefinitionsForDeployment(String deploymentId) { getChannelDefinitionEntityManager().deleteChannelDefinitionsByDeploymentId(deploymentId); } @Override public long findDeploymentCountByQueryCriteria(EventDeploymentQueryImpl deploymentQuery) { return dataManager.fin...
return dataManager.findDeploymentCountByNativeQuery(parameterMap); } protected EventResourceEntityManager getResourceEntityManager() { return engineConfiguration.getResourceEntityManager(); } protected EventDefinitionEntityManager getEventDefinitionEntityManager() { return engineConfig...
repos\flowable-engine-main\modules\flowable-event-registry\src\main\java\org\flowable\eventregistry\impl\persistence\entity\EventDeploymentEntityManagerImpl.java
1
请完成以下Java代码
public void checkType(Object value) throws AdaptorException { if (value != null && !clazz.isAssignableFrom(value.getClass())) { String msgError = "Failed type check - " + clazz + " != " + ((value != null) ? value.getClass().toString() : "null"); log.debug(msgError); throw new...
case 24: return Int32Array; case 25: return Int64Array; case 26: return UInt8Array; case 27: return UInt16Array; case 28: return UInt32Array; case 29: return UInt64...
repos\thingsboard-master\common\transport\mqtt\src\main\java\org\thingsboard\server\transport\mqtt\util\sparkplug\MetricDataType.java
1
请完成以下Java代码
public class QualityBasedInvoicingBL implements IQualityBasedInvoicingBL { @Override public boolean isQualityInspection(final I_PP_Order ppOrder) { final IMaterialTrackingPPOrderBL materialTrackingPPOrderBL = Services.get(IMaterialTrackingPPOrderBL.class); return materialTrackingPPOrderBL.isQualityInspection(ppO...
final BigDecimal factor; if (sampleRawQty.signum() == 0) { factor = BigDecimal.ZERO; } else { factor = fullRawQty.divide(sampleRawQty, 12, RoundingMode.HALF_UP); } final BigDecimal projectedProducedQty = sampleProducedQty .multiply(factor) .setScale(sampleProducedQtyUOM.getStdPrecision(), R...
repos\metasfresh-new_dawn_uat\backend\de.metas.materialtracking\src\main\java\de\metas\materialtracking\qualityBasedInvoicing\impl\QualityBasedInvoicingBL.java
1
请完成以下Java代码
default Class<String> getValueClass() { return String.class; } default boolean requiresParameter(final String parameterName) { return getParameterNames().contains(parameterName); } @Override default boolean isNoResult(final Object result) { return result == null || Util.same(result, EMPTY_RESULT); ...
/** * Turns this expression in an expression which caches it's evaluation results. * If this expression implements {@link ICachedStringExpression} it will be returned directly without any wrapping. * * @return cached expression */ default ICachedStringExpression caching() { return CachedStringExpression....
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\expression\api\IStringExpression.java
1
请完成以下Java代码
public class CoapTransportContext extends TransportContext { @Value("${transport.sessions.report_timeout}") private long sessionReportTimeout; @Getter @Value("${transport.coap.timeout}") private Long timeout; @Getter @Value("${transport.coap.piggyback_timeout}") private Long piggyback...
private long pagingTransmissionWindow; @Autowired private JsonCoapAdaptor jsonCoapAdaptor; @Autowired private ProtoCoapAdaptor protoCoapAdaptor; @Autowired private EfentoCoapAdaptor efentoCoapAdaptor; @Autowired private CoapClientContext clientContext; private final ConcurrentMa...
repos\thingsboard-master\common\transport\coap\src\main\java\org\thingsboard\server\transport\coap\CoapTransportContext.java
1
请在Spring Boot框架中完成以下Java代码
public class GatewayRoutersConfig { /** * 路由配置方式:database,yml,nacos */ public String dataType; public String serverAddr; public String namespace; public String dataId; public String routeGroup; public String username; public String password; @Value("${jeecg.route.config.da...
return dataType; } public String getServerAddr() { return serverAddr; } public String getNamespace() { return namespace; } public String getDataId() { return dataId; } public String getRouteGroup() { return routeGroup; } public String getUsern...
repos\JeecgBoot-main\jeecg-boot\jeecg-server-cloud\jeecg-cloud-gateway\src\main\java\org\jeecg\config\GatewayRoutersConfig.java
2
请完成以下Java代码
public String getName() { return this.name; } @Override public String getContextualName(ExecutionRequestObservationContext context) { return BASE_CONTEXTUAL_NAME + operationType(context).getValue(); } @Override public KeyValues getLowCardinalityKeyValues(ExecutionRequestObservationContext context) { retur...
return KeyValue.of(ExecutionRequestLowCardinalityKeyNames.OPERATION_TYPE, operation.name().toLowerCase(Locale.ROOT)); } return OPERATION_TYPE_DEFAULT; } @Override public KeyValues getHighCardinalityKeyValues(ExecutionRequestObservationContext context) { return KeyValues.of(executionId(context), operationName(...
repos\spring-graphql-main\spring-graphql\src\main\java\org\springframework\graphql\observation\DefaultExecutionRequestObservationConvention.java
1
请在Spring Boot框架中完成以下Java代码
public class MultitenantConfiguration { @Value("${defaultTenant}") private String defaultTenant; @Bean @ConfigurationProperties(prefix = "tenants") public DataSource dataSource() { File[] files = Paths.get("allTenants").toFile().listFiles(); Map<Object, Object> resolvedDataSources ...
dataSourceBuilder.password(tenantProperties.getProperty("datasource.password")); dataSourceBuilder.url(tenantProperties.getProperty("datasource.url")); resolvedDataSources.put(tenantId, dataSourceBuilder.build()); } catch (IOException exp) { throw new RuntimeE...
repos\tutorials-master\persistence-modules\spring-jpa\src\main\java\com\baeldung\multitenant\config\MultitenantConfiguration.java
2
请在Spring Boot框架中完成以下Java代码
public class DocOutboundConfigId implements RepoIdAware { int repoId; public static DocOutboundConfigId ofRepoId(final int repoId) { return new DocOutboundConfigId(repoId); } @Nullable public static DocOutboundConfigId ofRepoIdOrNull(@Nullable final Integer repoId) { return repoId != null && repoId > 0 ? n...
} private DocOutboundConfigId(final int repoId) { this.repoId = Check.assumeGreaterThanZero(repoId, "C_Doc_Outbound_Config_ID"); } @JsonValue public int toJson() { return getRepoId(); } public static boolean equals(@Nullable final DocOutboundConfigId o1, @Nullable final DocOutboundConfigId o2) { retur...
repos\metasfresh-new_dawn_uat\backend\de.metas.document.archive\de.metas.document.archive.base\src\main\java\de\metas\document\archive\config\DocOutboundConfigId.java
2
请完成以下Java代码
public List<DataSpec> getDataInputs() { return dataInputs; } public void setDataInputs(List<DataSpec> dataInputs) { this.dataInputs = dataInputs; } public List<DataSpec> getDataOutputs() { return dataOutputs; } public void setDataOutputs(List<DataSpec> dataOutputs) { ...
public IOSpecification clone() { IOSpecification clone = new IOSpecification(); clone.setValues(this); return clone; } public void setValues(IOSpecification otherSpec) { dataInputs = new ArrayList<DataSpec>(); if (otherSpec.getDataInputs() != null && !otherSpec.getDataIn...
repos\Activiti-develop\activiti-core\activiti-bpmn-model\src\main\java\org\activiti\bpmn\model\IOSpecification.java
1
请在Spring Boot框架中完成以下Java代码
protected org.compiere.model.POInfo initPO(final Properties ctx) { return org.compiere.model.POInfo.getPOInfo(Table_Name); } @Override public void setConfig (final java.lang.String Config) { set_Value (COLUMNNAME_Config, Config); } @Override public java.lang.String getConfig() { return get_ValueAsStri...
} @Override public void setS_GithubConfig_ID (final int S_GithubConfig_ID) { if (S_GithubConfig_ID < 1) set_ValueNoCheck (COLUMNNAME_S_GithubConfig_ID, null); else set_ValueNoCheck (COLUMNNAME_S_GithubConfig_ID, S_GithubConfig_ID); } @Override public int getS_GithubConfig_ID() { return get_Value...
repos\metasfresh-new_dawn_uat\backend\de.metas.serviceprovider\src\main\java-gen\de\metas\serviceprovider\model\X_S_GithubConfig.java
2
请完成以下Java代码
public static void main(String[] args) { /* String[] testCaseArray = { "我一直很喜欢你", "你被我喜欢", "美丽又善良的你被卑微的我深深的喜欢着……", "只有自信的程序员才能把握未来", "主干识别可以提高检索系统的智能", "这个项目的作者是hankcs", "hankcs是一个无门无派的浪人", ...
"他送给了我一份礼物", "这类算法在有限的一段时间内终止", "如果大海能够带走我的哀愁", "天青色等烟雨,而我在等你", "我昨天看见了一个非常可爱的小孩" }; for (String testCase : testCaseArray) { MainPart mp = MainPartExtractor.getMainPart(testCase); System.out.printf("%s %s %s \n",...
repos\springboot-demo-master\neo4j\src\main\java\com\et\neo4j\hanlp\MainPartExtractor.java
1
请完成以下Java代码
public java.lang.String getDescription () { return (java.lang.String)get_Value(COLUMNNAME_Description); } /** * EntityType AD_Reference_ID=389 * Reference name: _EntityTypeNew */ public static final int ENTITYTYPE_AD_Reference_ID=389; /** Set Entitäts-Art. @param EntityType Dictionary Entity Type; ...
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); } /** Set Reihenfolge. @param SeqNo Zur Bestimmung der Reihenfolge der Einträge; die kleinste Zahl...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\adempiere\pricing\model\X_C_PricingRule.java
1
请完成以下Java代码
public List<String> resolveAll(DataSource dataSource, String... values) { Assert.notNull(dataSource, "'dataSource' must not be null"); return resolveAll(() -> determinePlatform(dataSource), values); } /** * Resolves the placeholders in the given {@code values}, replacing them with the * given platform. * @...
return Collections.unmodifiableList(resolved); } private String determinePlatform(DataSource dataSource) { DatabaseDriver databaseDriver = getDatabaseDriver(dataSource); Assert.state(databaseDriver != DatabaseDriver.UNKNOWN, "Unable to detect database type"); return this.driverMappings.getOrDefault(databaseDri...
repos\spring-boot-4.0.1\module\spring-boot-jdbc\src\main\java\org\springframework\boot\jdbc\init\PlatformPlaceholderDatabaseDriverResolver.java
1
请完成以下Java代码
public void setShowStatus(Integer showStatus) { this.showStatus = showStatus; } public Integer getProductCount() { return productCount; } public void setProductCount(Integer productCount) { this.productCount = productCount; } public Integer getProductCommentCount() { ...
this.bigPic = bigPic; } public String getBrandStory() { return brandStory; } public void setBrandStory(String brandStory) { this.brandStory = brandStory; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().get...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\PmsBrand.java
1
请完成以下Java代码
public class PortMapperImpl implements PortMapper { private final Map<Integer, Integer> httpsPortMappings; public PortMapperImpl() { this.httpsPortMappings = new HashMap<>(); this.httpsPortMappings.put(80, 443); this.httpsPortMappings.put(8080, 8443); } /** * Returns the translated (Integer -&gt; Integer...
* number. * @throws IllegalArgumentException if input map does not consist of String keys and * values, each representing an integer port number in the range 1-65535 for that * mapping. */ public void setPortMappings(Map<String, String> newMappings) { Assert.notNull(newMappings, "A valid list of HTTPS port m...
repos\spring-security-main\web\src\main\java\org\springframework\security\web\PortMapperImpl.java
1
请在Spring Boot框架中完成以下Java代码
static class OpaqueTokenIntrospectionClientConfiguration { @Bean @ConditionalOnProperty(name = "spring.security.oauth2.resourceserver.opaquetoken.introspection-uri") SpringReactiveOpaqueTokenIntrospector opaqueTokenIntrospector(OAuth2ResourceServerProperties properties) { OAuth2ResourceServerProperties.Opaque...
} @Configuration(proxyBeanMethods = false) @ConditionalOnMissingBean(SecurityWebFilterChain.class) static class WebSecurityConfiguration { @Bean @ConditionalOnBean(ReactiveOpaqueTokenIntrospector.class) SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http) { http.authorizeExchange((exc...
repos\spring-boot-4.0.1\module\spring-boot-security-oauth2-resource-server\src\main\java\org\springframework\boot\security\oauth2\server\resource\autoconfigure\reactive\ReactiveOAuth2ResourceServerOpaqueTokenConfiguration.java
2
请完成以下Java代码
public String getQuestion() { return question; } public void setQuestion(String question) { this.question = question; } public String getAllowedAnswers() { return allowedAnswers; } public void setAllowedAnswers(String allowedAnswers) { this.allowedAnswers = all...
public void setAuthorityRequirements(List<AuthorityRequirement> authorityRequirements) { this.authorityRequirements = authorityRequirements; } public void addAuthorityRequirement(AuthorityRequirement authorityRequirement) { this.authorityRequirements.add(authorityRequirement); } public...
repos\flowable-engine-main\modules\flowable-dmn-model\src\main\java\org\flowable\dmn\model\Decision.java
1
请在Spring Boot框架中完成以下Java代码
public class MscExecutorService implements Service<MscExecutorService>, ExecutorService { private static Logger log = Logger.getLogger(MscExecutorService.class.getName()); private final InjectedValue<ManagedQueueExecutorService> managedQueueInjector = new InjectedValue<ManagedQueueExecutorService>(); priva...
// wait for 2 seconds for the job to be accepted by the pool. managedQueueExecutorService.executeBlocking(runnable, 2, TimeUnit.SECONDS); } catch (InterruptedException e) { // the acquisition thread is interrupted, this probably means the app server is turning the lights off -> ignore ...
repos\camunda-bpm-platform-master\distro\wildfly26\subsystem\src\main\java\org\camunda\bpm\container\impl\jboss\service\MscExecutorService.java
2
请完成以下Java代码
public class JsonBeanEncoder implements IBeanEnconder { private final ObjectMapper mapper = JsonObjectMapperHolder.sharedJsonObjectMapper(); @Override public <T> T decodeString(final String text, final Class<T> clazz) { try { return mapper.readValue(text, clazz); } catch (final Exception e) { throw...
} catch (final Exception e) { throw new RuntimeException("Cannot parse bytes: " + data, e); } } @Override public <T> byte[] encode(final T object) { try { return mapper.writeValueAsBytes(object); } catch (final Exception e) { throw new RuntimeException(e); } } @Override public String...
repos\metasfresh-new_dawn_uat\backend\de.metas.document.archive\de.metas.document.archive.base\src\main\java\org\adempiere\util\beans\JsonBeanEncoder.java
1
请在Spring Boot框架中完成以下Java代码
protected org.compiere.model.POInfo initPO(final Properties ctx) { return org.compiere.model.POInfo.getPOInfo(Table_Name); } @Override public void setC_Project_ID (final int C_Project_ID) { if (C_Project_ID < 1) set_ValueNoCheck (COLUMNNAME_C_Project_ID, null); else set_ValueNoCheck (COLUMNNAME_C_Pr...
@Override public void setM_Product_ID (final int M_Product_ID) { if (M_Product_ID < 1) set_Value (COLUMNNAME_M_Product_ID, null); else set_Value (COLUMNNAME_M_Product_ID, M_Product_ID); } @Override public int getM_Product_ID() { return get_ValueAsInt(COLUMNNAME_M_Product_ID); } @Override publi...
repos\metasfresh-new_dawn_uat\backend\de.metas.servicerepair.base\src\main\java-gen\de\metas\servicerepair\repository\model\X_C_Project_Repair_Consumption_Summary.java
2
请完成以下Java代码
public RequestTypeId retrieveVendorRequestTypeId() { return retrieveRequestTypeIdByInternalName(InternalName_VendorComplaint); } @Override public RequestTypeId retrieveCustomerRequestTypeId() { return retrieveRequestTypeIdByInternalName(InternalName_CustomerComplaint); } @Override public RequestTypeId ret...
final RequestTypeId requestTypeId = queryBL.createQueryBuilderOutOfTrx(I_R_RequestType.class) .addOnlyActiveRecordsFilter() .addEqualsFilter(I_R_RequestType.COLUMNNAME_IsDefault, true) .create() .firstIdOnly(RequestTypeId::ofRepoIdOrNull); return Optional.ofNullable(requestTypeId); } private Optio...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\request\api\impl\RequestTypeDAO.java
1
请在Spring Boot框架中完成以下Java代码
public Queue demo08Queue() { return QueueBuilder.durable(Demo08Message.QUEUE) // durable: 是否持久化 .exclusive() // exclusive: 是否排它 .autoDelete() // autoDelete: 是否自动删除 .ttl(10 * 1000) // 设置队列里的默认过期时间为 10 秒 .deadLetterExchange(Demo08...
return BindingBuilder.bind(demo08Queue()).to(demo08Exchange()).with(Demo08Message.ROUTING_KEY); } // 创建 Delay Binding // Exchange:Demo08Message.EXCHANGE // Routing key:Demo08Message.DELAY_ROUTING_KEY // Queue:Demo08Message.DELAY_QUEUE @Bean public Binding demo08D...
repos\SpringBoot-Labs-master\lab-04-rabbitmq\lab-04-rabbitmq-demo-delay\src\main\java\cn\iocoder\springboot\lab04\rabbitmqdemo\config\RabbitConfig.java
2
请在Spring Boot框架中完成以下Java代码
public class PPRoutingActivity { @NonNull PPRoutingActivityId id; @NonNull PPRoutingActivityType type; @NonNull String code; @NonNull String name; @NonNull @Default Range<Instant> validDates = Range.all(); @NonNull ResourceId resourceId; @NonNull WFDurationUnit durationUnit; @NonNull Duration queuingTime;...
BPartnerId subcontractingVendorId; boolean milestone; @NonNull PPAlwaysAvailableToUser alwaysAvailableToUser; @Nullable UserInstructions userInstructions; @NonNull @Default ImmutableSet<PPRoutingActivityId> nextActivityIds = ImmutableSet.of(); @Nullable PPRoutingActivityTemplateId activityTemplateId; @Nullable...
repos\metasfresh-new_dawn_uat\backend\de.metas.material\planning\src\main\java\de\metas\material\planning\pporder\PPRoutingActivity.java
2
请完成以下Java代码
public String getTitle() { return getTitle(email, firstName, lastName); } public static String getTitle(String email, String firstName, String lastName) { String title = ""; if (isNotEmpty(firstName)) { title += firstName; } if (isNotEmpty(lastName)) { ...
builder.append(id); builder.append("]"); return builder.toString(); } @JsonIgnore public boolean isSystemAdmin() { return tenantId == null || EntityId.NULL_UUID.equals(tenantId.getId()); } @JsonIgnore public boolean isTenantAdmin() { return !isSystemAdmin() && (...
repos\thingsboard-master\common\data\src\main\java\org\thingsboard\server\common\data\User.java
1
请完成以下Java代码
public boolean isNumericKey() { return delegate.isNumericKey(); } @Override public LookupDataSourceContext.Builder newContextForFetchingById(final Object id) { return delegate.newContextForFetchingById(id); } @Override public LookupValue retrieveLookupValueById(final @NonNull LookupDataSourceContext evalC...
.stream() .collect(ImmutableMap.toImmutableMap( lookupValue -> multipleIdsCtx.withIdToFilter(IdsToFilter.ofSingleValue(lookupValue.getId())), lookupValue -> lookupValue)); } ); return LookupDataSourceFetcher.super.retrieveLookupValueByIdsInOrder(evalCtx); } @Override public Builder ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\model\lookup\CachedLookupDataSourceFetcherAdapter.java
1
请完成以下Java代码
private ImmutableSet<HuId> resolveHuIdsByLocator(@NonNull final LocatorQRCode locatorQRCode, @NonNull final HUQRCodeAssignment targetQrCodeAssignment) { return handlingUnitsDAO.createHUQueryBuilder() .addOnlyHUIds(targetQrCodeAssignment.getHuIds()) .addOnlyInLocatorId(locatorQRCode.getLocatorId()) .setOn...
@Nullable private String extractTopLevelParentHUIdValue(@NonNull final I_M_HU hu) { return Optional.ofNullable(handlingUnitsBL.getTopLevelParent(hu)) .map(I_M_HU::getM_HU_ID) .filter(parentHUId -> parentHUId != hu.getM_HU_ID()) .map(String::valueOf) .orElse(null); } private static @NonNull Respon...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.mobileui\src\main\java\de\metas\handlingunits\rest_api\HandlingUnitsService.java
1
请完成以下Java代码
public class UpdateProcessPayload implements Payload { private String id; private String processInstanceId; private String name; private String description; private String businessKey; public UpdateProcessPayload() { this.id = UUID.randomUUID().toString(); } public UpdateProce...
} public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Stri...
repos\Activiti-develop\activiti-api\activiti-api-process-model\src\main\java\org\activiti\api\process\model\payloads\UpdateProcessPayload.java
1
请在Spring Boot框架中完成以下Java代码
public static class Correlation { /** * Whether to enable correlation of the baggage context with logging contexts. */ private boolean enabled = true; /** * List of fields that should be correlated with the logging context. That * means that these fields would end up as key-value pairs in e.g...
} public void setProduce(List<PropagationType> produce) { this.produce = produce; } public void setConsume(List<PropagationType> consume) { this.consume = consume; } public @Nullable List<PropagationType> getType() { return this.type; } public List<PropagationType> getProduce() { return th...
repos\spring-boot-4.0.1\module\spring-boot-micrometer-tracing\src\main\java\org\springframework\boot\micrometer\tracing\autoconfigure\TracingProperties.java
2
请完成以下Java代码
public java.math.BigDecimal getPricingSystemSurchargeAmt () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PricingSystemSurchargeAmt); if (bd == null) return BigDecimal.ZERO; return bd; } /** Set Verarbeitet. @param Processed Checkbox sagt aus, ob der Beleg verarbeitet wurde. */ @Override ...
@param ProductValue Schlüssel des Produktes */ @Override public void setProductValue (java.lang.String ProductValue) { set_Value (COLUMNNAME_ProductValue, ProductValue); } /** Get Produktschlüssel. @return Schlüssel des Produktes */ @Override public java.lang.String getProductValue () { return ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_I_DiscountSchema.java
1
请完成以下Java代码
public void setElementIndexVariableName(String elementIndexVariableName) { this.elementIndexVariableName = elementIndexVariableName; } public boolean hasLimitedInstanceCount() { return maxInstanceCount != null && maxInstanceCount > 0; } public Integer getMaxInstanceCount() { re...
} this.aggregations.getAggregations().add(aggregation); } @Override public String toString() { return "RepetitionRule{" + " maxInstanceCount='" + (hasLimitedInstanceCount() ? maxInstanceCount : "unlimited") + "'" + " repetitionCounterVariableName='" + repeti...
repos\flowable-engine-main\modules\flowable-cmmn-model\src\main\java\org\flowable\cmmn\model\RepetitionRule.java
1
请完成以下Java代码
static @Nullable PemSslStore load(@Nullable PemSslStoreDetails details) { return load(details, ApplicationResourceLoader.get()); } /** * Return a {@link PemSslStore} instance loaded using the given * {@link PemSslStoreDetails}. * @param details the PEM store details * @param resourceLoader the resource loa...
* setting key entries} in the {@link KeyStore} * @param certificates the certificates for this store * @param privateKey the private key * @return a new {@link PemSslStore} instance */ static PemSslStore of(@Nullable String type, @Nullable String alias, @Nullable String password, List<X509Certificate> certi...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\ssl\pem\PemSslStore.java
1
请完成以下Java代码
public RfQReportType getRfQReportType(final RfQResponsePublisherRequest request) { final I_C_RfQResponse rfqResponse = request.getC_RfQResponse(); final PublishingType publishingType = request.getPublishingType(); if (publishingType == PublishingType.Invitation) { if (rfqDAO.hasQtyRequiered(rfqResponse)) ...
else if (rfqReportType == RfQReportType.Lost) { return PrintFormatId.ofRepoIdOrNull(rfqTopic.getRfQ_Lost_PrintFormat_ID()); } else { throw new AdempiereException("@Invalid@ @Type@: " + rfqReportType); } } private MailTextBuilder createMailTextBuilder(final I_C_RfQResponse rfqResponse, final RfQReport...
repos\metasfresh-new_dawn_uat\backend\de.metas.rfq\src\main\java\de\metas\rfq\impl\MailRfqResponsePublisherInstance.java
1
请完成以下Java代码
protected final String doIt() { final I_C_Flatrate_DataEntry entryRecord = ProcessUtil.extractEntryOrNull(getProcessInfo()); if (entryRecord == null) { addLog("Currently there is no C_Flatrate_DataEntry selected; nothing to do"); return MSG_OK; } if (entryRecord.isProcessed()) { // it would be nic...
final ViewId viewId = view.getViewId(); getResult().setWebuiViewToOpen(ProcessExecutionResult.WebuiViewToOpen.builder() .viewId(viewId.toJson()) .target(ProcessExecutionResult.ViewOpenTarget.ModalOverlay) .build()); return MSG_OK; } private CreateViewRequest createView...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\contract\flatrate\process\WEBUI_C_Flatrate_DataEntry_Detail_Launcher.java
1
请在Spring Boot框架中完成以下Java代码
protected DataResponse<VariableInstanceResponse> getQueryResponse(VariableInstanceQueryRequest queryRequest, Map<String, String> allRequestParams) { VariableInstanceQuery query = runtimeService.createVariableInstanceQuery(); // Populate query based on request if (Boolean.TRUE.equals(queryReques...
restResponseFactory::createVariableInstanceResponseList); } protected void addVariables(VariableInstanceQuery variableInstanceQuery, List<QueryVariable> variables) { for (QueryVariable variable : variables) { if (variable.getVariableOperation() == null) { throw new FlowableI...
repos\flowable-engine-main\modules\flowable-rest\src\main\java\org\flowable\rest\service\api\runtime\VariableInstanceBaseResource.java
2
请完成以下Java代码
private void initDisjointSets(int totalNodes) { nodes = new ArrayList<>(totalNodes); for (int i = 0; i < totalNodes; i++) { nodes.add(new DisjointSetInfo(i)); } } private Integer find(Integer node) { Integer parent = nodes.get(node).getParentNode(); if (paren...
DisjointSetInfo setInfoU = nodes.get(rootU); DisjointSetInfo setInfoV = nodes.get(rootV); int rankU = setInfoU.getRank(); int rankV = setInfoV.getRank(); if (rankU < rankV) { setInfoU.setParentNode(rootV); } else { setInfoV.setParentNode(rootU); ...
repos\tutorials-master\algorithms-modules\algorithms-miscellaneous-6\src\main\java\com\baeldung\algorithms\kruskal\CycleDetector.java
1
请在Spring Boot框架中完成以下Java代码
public class MarketDataRestController { private final Random random = new Random(); private final RSocketRequester rSocketRequester; public MarketDataRestController(RSocketRequester rSocketRequester) { this.rSocketRequester = rSocketRequester; } @GetMapping(value = "/current/{stock}") ...
return rSocketRequester.route("feedMarketData") .data(new MarketDataRequest(stock)) .retrieveFlux(MarketData.class); } @GetMapping(value = "/collect") public Publisher<Void> collect() { return rSocketRequester.route("collectMarketData") ...
repos\tutorials-master\spring-reactive-modules\spring-webflux-2\src\main\java\com\baeldung\webflux\rsocket\client\MarketDataRestController.java
2
请完成以下Java代码
public int getThreadNum_() { return threadNum_; } public void setThreadNum_(int threadNum_) { this.threadNum_ = threadNum_; } public List<String> getUnigramTempls_() { return unigramTempls_; } public void setUnigramTempls_(List<String> unigramTempls_) {...
public void setY_(List<String> y_) { this.y_ = y_; } public List<List<Path>> getPathList_() { return pathList_; } public void setPathList_(List<List<Path>> pathList_) { this.pathList_ = pathList_; } public List<List<Node>> getNodeList_() { retur...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\model\crf\crfpp\FeatureIndex.java
1
请完成以下Java代码
public ClientSoftwareId getClientSoftwareId() { return config.getClientSoftwareId(); } /** * @param expectedResponseClass if the response is not an instance of this class, the method throws an exception. */ public <T> T sendAndReceive( @NonNull final JAXBElement<?> messagePayload, @NonNull final Class<...
.setParameter("config", config) .setParameter("response", responseValue); } } @VisibleForTesting public WebServiceTemplate getWebServiceTemplate() { return webServiceTemplate; } @FunctionalInterface public static interface FaultInfoExtractor { FaultInfo extractFaultInfoOrNull(Object value); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma.vendor.gateway.msv3\src\main\java\de\metas\vertical\pharma\vendor\gateway\msv3\MSV3Client.java
1
请完成以下Java代码
public Boolean isTransient(Object entity) { // TODO Auto-generated method stub return null; } @Override public int[] findDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, Type[] types) { // TODO Auto-generated method stub ...
// TODO Auto-generated method stub } @Override public void beforeTransactionCompletion(Transaction tx) { // TODO Auto-generated method stub } @Override public void afterTransactionCompletion(Transaction tx) { // TODO Auto-generated method stub } @Override public...
repos\tutorials-master\persistence-modules\hibernate5\src\main\java\com\baeldung\hibernate\interceptors\CustomInterceptorImpl.java
1
请完成以下Java代码
public Mono<Void> writeHttpHeaders(ServerWebExchange exchange) { return this.delegate.writeHttpHeaders(exchange); } /** * Set the policy to be used in the response header. * @param policy the policy * @throws IllegalArgumentException if policy is {@code null} */ public void setPolicy(ReferrerPolicy policy...
ORIGIN_WHEN_CROSS_ORIGIN("origin-when-cross-origin"), STRICT_ORIGIN_WHEN_CROSS_ORIGIN("strict-origin-when-cross-origin"), UNSAFE_URL("unsafe-url"); private static final Map<String, ReferrerPolicy> REFERRER_POLICIES; static { Map<String, ReferrerPolicy> referrerPolicies = new HashMap<>(); for (Referrer...
repos\spring-security-main\web\src\main\java\org\springframework\security\web\server\header\ReferrerPolicyServerHttpHeadersWriter.java
1