instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
public synchronized void run() { log.info("{} starting to reset expired jobs"); Thread.currentThread().setName("activiti-reset-expired-jobs"); while (!isInterrupted) { try { List<JobEntity> expiredJobs = asyncExecutor .getProcessEngineConfiguratio...
} catch (InterruptedException e) { if (log.isDebugEnabled()) { log.debug("async reset expired jobs wait interrupted"); } } finally { isWaiting.set(false); } } log.info("{} stopped resetting expired jobs"); }...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\asyncexecutor\ResetExpiredJobsRunnable.java
1
请在Spring Boot框架中完成以下Java代码
public static class SecurityPermitAllConfig { private final String adminContextPath; public SecurityPermitAllConfig(AdminServerProperties adminServerProperties) { this.adminContextPath = adminServerProperties.getContextPath(); } @Bean protected SecurityFilterChain filterChain(HttpSecurity http) throws E...
@Bean protected SecurityFilterChain filterChain(HttpSecurity http) throws Exception { SavedRequestAwareAuthenticationSuccessHandler successHandler = new SavedRequestAwareAuthenticationSuccessHandler(); successHandler.setTargetUrlParameter("redirectTo"); successHandler.setDefaultTargetUrl(this.adminContextPat...
repos\spring-boot-admin-master\spring-boot-admin-samples\spring-boot-admin-sample-consul\src\main\java\de\codecentric\boot\admin\sample\SpringBootAdminConsulApplication.java
2
请完成以下Java代码
public BigDecimal getBalance() { return BigDecimal.ZERO; } /** * Create Facts (the accounting logic) for * MMI. * * <pre> * Inventory * Inventory DR CR * InventoryDiff DR CR (or Charge) * </pre> * * @param as account schema * @return Fact */ @Override publi...
// // Inventory DR/CR fact.createLine() .setDocLine(line) .setAccount(line.getAccount(ProductAcctType.P_Asset_Acct, as)) .setAmtSourceDrOrCr(costs.toMoney()) .setQty(line.getQty()) .locatorId(line.getM_Locator_ID()) .buildAndAdd(); // // Charge/InventoryDiff CR/DR final Account invDif...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java-legacy\org\compiere\acct\Doc_Inventory.java
1
请完成以下Java代码
public int getEventSubscriptionCount() { return eventSubscriptionCount; } public void setEventSubscriptionCount(int eventSubscriptionCount) { this.eventSubscriptionCount = eventSubscriptionCount; } public int getTaskCount() { return taskCount; } public void setTaskCoun...
public void setIdentityLinkCount(int identityLinkCount) { this.identityLinkCount = identityLinkCount; } @Override public void setAppVersion(Integer appVersion) { this.appVersion = appVersion; } @Override public Integer getAppVersion() { return appVersion; } //t...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\persistence\entity\ExecutionEntityImpl.java
1
请完成以下Java代码
public static void closeMigrationScriptFiles() { getWriter().close(); } public static void setMigrationScriptDirectory(@NonNull final Path path) { MigrationScriptFileLogger.setMigrationScriptDirectory(path); } public static Path getMigrationScriptDirectory() { return MigrationScriptFileLogger.getMigratio...
return true; } // // Check that INSERT/UPDATE/DELETE statements are about our ignored tables final ImmutableSet<String> exceptionTablesUC = Services.get(IMigrationLogger.class).getTablesToIgnoreUC(Env.getClientIdOrSystem()); for (final String tableNameUC : exceptionTablesUC) { if (sqlCommandUC.startsWit...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\migration\logger\MigrationScriptFileLoggerHolder.java
1
请完成以下Java代码
public class IntermediateConditionalEventBehavior extends IntermediateCatchEventActivityBehavior implements ConditionalEventBehavior { protected final ConditionalEventDefinition conditionalEvent; public IntermediateConditionalEventBehavior(ConditionalEventDefinition conditionalEvent, boolean isAfterEventBasedGate...
@Override public void leaveOnSatisfiedCondition(final EventSubscriptionEntity eventSubscription, final VariableEvent variableEvent) { PvmExecutionImpl execution = eventSubscription.getExecution(); if (execution != null && !execution.isEnded() && variableEvent != null && conditionalEvent.tryEvalua...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\bpmn\behavior\IntermediateConditionalEventBehavior.java
1
请完成以下Java代码
@Nullable PreFilterExpressionAttribute resolveAttribute(Method method, @Nullable Class<?> targetClass) { PreFilter preFilter = findPreFilterAnnotation(method, targetClass); if (preFilter == null) { return null; } Expression preFilterExpression = getExpressionHandler().getExpressionParser() .parseExpressio...
} static final class PreFilterExpressionAttribute extends ExpressionAttribute { private final String filterTarget; private PreFilterExpressionAttribute(Expression expression, String filterTarget) { super(expression); this.filterTarget = filterTarget; } String getFilterTarget() { return this.filter...
repos\spring-security-main\core\src\main\java\org\springframework\security\authorization\method\PreFilterExpressionAttributeRegistry.java
1
请完成以下Java代码
private ITranslatableString extractPlant(final @NotNull DDOrderReference ddOrderReference) { final ResourceId plantId = ddOrderReference.getPlantId(); return plantId != null ? TranslatableStrings.anyLanguage(sourceDocService.getPlantName(plantId)) : TranslatableStrings.empty(); } private static ITransla...
} else if (ddOrderReference.getPpOrderId() != null) { documentTypeAndNo = sourceDocService.getDocumentTypeAndName(ddOrderReference.getPpOrderId()); } else { return TranslatableStrings.empty(); } return TranslatableStrings.builder() .append(documentTypeAndNo.getLeft()) .append(" ") .appe...
repos\metasfresh-new_dawn_uat\backend\de.metas.distribution.rest-api\src\main\java\de\metas\distribution\mobileui\launchers\DistributionLauncherCaptionProvider.java
1
请完成以下Java代码
public I_R_Request createRequestFromDDOrderLine(@NonNull final I_DD_OrderLine ddOrderLine) { final I_DD_Order ddOrder = ddOrderLine.getDD_Order(); final RequestTypeId requestTypeId = getRequestTypeId(SOTrx.ofBoolean(ddOrder.isSOTrx())); final RequestCandidate requestCandidate = RequestCandidate.builder() ....
.confidentialType(RequestConfidentialType.Internal) .orgId(OrgId.ofRepoId(order.getAD_Org_ID())) .recordRef(TableRecordReference.of(order)) .requestTypeId(requestType.orElseGet(() -> getRequestTypeId(SOTrx.ofBoolean(order.isSOTrx())))) .partnerId(BPartnerId.ofRepoId(order.getC_BPartner_ID())) .userI...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\request\api\impl\RequestBL.java
1
请在Spring Boot框架中完成以下Java代码
public String getPaymentReference() { return paymentReference; } /** * Sets the value of the paymentReference property. * * @param value * allowed object is * {@link String } * */ public void setPaymentReference(String value) { this.paymentRe...
* */ public Boolean isConsolidatorPayable() { return consolidatorPayable; } /** * Sets the value of the consolidatorPayable property. * * @param value * allowed object is * {@link Boolean } * */ public void setConsolidatorPayable(Boolea...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_ecosio_remadv\at\erpel\schemas\_1p0\documents\UniversalBankTransactionType.java
2
请完成以下Java代码
public class TbSplitArrayMsgNode implements TbNode { @Override public void init(TbContext ctx, TbNodeConfiguration configuration) {} @Override public void onMsg(TbContext ctx, TbMsg msg) throws ExecutionException, InterruptedException, TbNodeException { JsonNode jsonNode = JacksonUtil.toJsonNo...
@Override public void onFailure(RuleEngineException e) { ctx.tellFailure(msg, e); } }); data.forEach(msgNode -> { TbMsg outMsg = msg.transform() .data(JacksonUtil.toString(msgN...
repos\thingsboard-master\rule-engine\rule-engine-components\src\main\java\org\thingsboard\rule\engine\transform\TbSplitArrayMsgNode.java
1
请完成以下Java代码
protected void deleteCachedEntities(DbSqlSession dbSqlSession, Collection<CachedEntity> cachedObjects, CachedEntityMatcher<EntityImpl> cachedEntityMatcher, Object parameter) { if (cachedObjects != null && cachedEntityMatcher != null) { for (CachedEntity cachedObject : cachedObjects) { ...
getDbSqlSession().delete(statement, entitiesParameter, getManagedEntityClass()); }); } protected void bulkUpdateEntities(String statement, Map<String, Object> parameters, String collectionNameInSqlStatement, List<EntityImpl> entities) { executeChangeWithInClause(entities, entitiesParameter -> {...
repos\flowable-engine-main\modules\flowable-engine-common\src\main\java\org\flowable\common\engine\impl\db\AbstractDataManager.java
1
请完成以下Java代码
public String toString() { String name = config.getName(); return filterToStringCreator(DedupeResponseHeaderGatewayFilterFactory.this) .append(name != null ? name : "", config.getStrategy()) .toString(); } }; } public enum Strategy { /** * Default: Retain the first value only. */ RE...
return; } switch (strategy) { case RETAIN_FIRST: headers.set(name, values.get(0)); break; case RETAIN_LAST: headers.set(name, values.get(values.size() - 1)); break; case RETAIN_UNIQUE: headers.put(name, new ArrayList<>(new LinkedHashSet<>(values))); break; default: break; }...
repos\spring-cloud-gateway-main\spring-cloud-gateway-server-webflux\src\main\java\org\springframework\cloud\gateway\filter\factory\DedupeResponseHeaderGatewayFilterFactory.java
1
请完成以下Java代码
public String getResourceName() { return resourceName; } public String getResourceNameLike() { return resourceNameLike; } public SuspensionState getSuspensionState() { return suspensionState; } public void setSuspensionState(SuspensionState suspensionState) { this.suspensionState = suspen...
public boolean isShouldJoinDeploymentTable() { return shouldJoinDeploymentTable; } public void addProcessDefinitionCreatePermissionCheck(CompositePermissionCheck processDefinitionCreatePermissionCheck) { processDefinitionCreatePermissionChecks.addAll(processDefinitionCreatePermissionCheck.getAllPermissionC...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\ProcessDefinitionQueryImpl.java
1
请在Spring Boot框架中完成以下Java代码
public class HistoricTaskLogEntryResponse { protected Long logNumber; protected String type; protected String taskId; @JsonSerialize(using = DateToStringSerializer.class, as = Date.class) protected Date timeStamp; protected String userId; protected String data; protected String executio...
public String getExecutionId() { return executionId; } public void setExecutionId(String executionId) { this.executionId = executionId; } public String getProcessInstanceId() { return processInstanceId; } public void setProcessInstanceId(String processInstanceId) { ...
repos\flowable-engine-main\modules\flowable-rest\src\main\java\org\flowable\rest\service\api\history\HistoricTaskLogEntryResponse.java
2
请完成以下Java代码
public static LocalToRemoteSyncResult upserted(@NonNull final DataRecord datarecord) { return LocalToRemoteSyncResult.builder() .synchedDataRecord(datarecord) .localToRemoteStatus(LocalToRemoteStatus.UPSERTED_ON_REMOTE) .build(); } public static LocalToRemoteSyncResult inserted(@NonNull final DataReco...
UPSERTED_ON_REMOTE, DELETED_ON_REMOTE, UNCHANGED, ERROR; } LocalToRemoteStatus localToRemoteStatus; String errorMessage; DataRecord synchedDataRecord; @Builder private LocalToRemoteSyncResult( @NonNull final DataRecord synchedDataRecord, @Nullable final LocalToRemoteStatus localToRemoteStatus, @Nul...
repos\metasfresh-new_dawn_uat\backend\de.metas.marketing\base\src\main\java\de\metas\marketing\base\model\LocalToRemoteSyncResult.java
1
请完成以下Java代码
public void setPointsSum_ToSettle (final @Nullable BigDecimal PointsSum_ToSettle) { set_ValueNoCheck (COLUMNNAME_PointsSum_ToSettle, PointsSum_ToSettle); } @Override public BigDecimal getPointsSum_ToSettle() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_PointsSum_ToSettle); return bd != null ? b...
{ return get_ValueAsString(COLUMNNAME_POReference); } @Override public void setQtyEntered (final @Nullable BigDecimal QtyEntered) { set_ValueNoCheck (COLUMNNAME_QtyEntered, QtyEntered); } @Override public BigDecimal getQtyEntered() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_QtyEntered); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java-gen\de\metas\contracts\commission\model\X_C_Commission_Overview_V.java
1
请完成以下Java代码
public class DummyNode<T> implements LinkedListNode<T> { private DoublyLinkedList<T> list; public DummyNode(DoublyLinkedList<T> list) { this.list = list; } @Override public boolean hasElement() { return false; } @Override public boolean isEmpty() { return true;...
public DoublyLinkedList<T> getListReference() { return list; } @Override public LinkedListNode<T> setPrev(LinkedListNode<T> next) { return next; } @Override public LinkedListNode<T> setNext(LinkedListNode<T> prev) { return prev; } @Override public LinkedLis...
repos\tutorials-master\data-structures\src\main\java\com\baeldung\lrucache\DummyNode.java
1
请完成以下Java代码
public class SchedulerUtils { private static final ConcurrentMap<String, ZoneId> tzMap = new ConcurrentHashMap<>(); public static ZoneId getZoneId(String tz) { return tzMap.computeIfAbsent(tz == null || tz.isEmpty() ? "UTC" : tz, ZoneId::of); } public static long getStartOfCurrentHour() { ...
} public static long getStartOfCurrentMonth(ZoneId zoneId) { return LocalDate.now(UTC).withDayOfMonth(1).atStartOfDay(zoneId).toInstant().toEpochMilli(); } public static long getStartOfNextMonth() { return getStartOfNextMonth(UTC); } public static long getStartOfNextMonth(ZoneId z...
repos\thingsboard-master\common\message\src\main\java\org\thingsboard\server\common\msg\tools\SchedulerUtils.java
1
请完成以下Java代码
public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; }
public String getPassportNumber() { return passportNumber; } public void setPassportNumber(String passportNumber) { this.passportNumber = passportNumber; } @Override public String toString() { return String.format("Student [id=%s, name=%s, passportNumber=%s]", id, name, passportNumber); } }
repos\Spring-Boot-Advanced-Projects-main\spring-boot jpa-with-hibernate-and-h2\src\main\java\com\alanbinu\springboot\jpa\hibernate\h2\example\student\Student.java
1
请完成以下Java代码
public static void setTimeSource(@NonNull final TimeSource newTimeSource) { timeSource = newTimeSource; } public static void setFixedTimeSource(@NonNull final ZonedDateTime date) { setTimeSource(FixedTimeSource.ofZonedDateTime(date)); } /** * @param zonedDateTime ISO 8601 date time format (see {@link Zone...
{ return Instant.ofEpochMilli(millis()); } public static LocalDateTime asLocalDateTime() { return asZonedDateTime().toLocalDateTime(); } @NonNull public static LocalDate asLocalDate() { return asLocalDate(zoneId()); } @NonNull public static LocalDate asLocalDate(@NonNull final ZoneId zoneId) { ret...
repos\metasfresh-new_dawn_uat\misc\de-metas-common\de-metas-common-util\src\main\java\de\metas\common\util\time\SystemTime.java
1
请完成以下Java代码
private HttpServer customizeSslConfiguration(HttpServer httpServer, Ssl ssl) { SslServerCustomizer customizer = new SslServerCustomizer(getHttp2(), ssl.getClientAuth(), getSslBundle(), getServerNameSslBundles()); addBundleUpdateHandler(null, ssl.getBundle(), customizer); ssl.getServerNameBundles() .forEach...
protocols.add(HttpProtocol.H2C); } } return protocols.toArray(new HttpProtocol[0]); } private InetSocketAddress getListenAddress() { if (getAddress() != null) { return new InetSocketAddress(getAddress().getHostAddress(), getPort()); } return new InetSocketAddress(getPort()); } private HttpServer a...
repos\spring-boot-4.0.1\module\spring-boot-reactor-netty\src\main\java\org\springframework\boot\reactor\netty\NettyReactiveWebServerFactory.java
1
请在Spring Boot框架中完成以下Java代码
class DeliveryLocationBasedAggregation { @NonNull private final DeliveryLocationBasedAggregationKey key; private boolean partiallyPickedBefore = false; @NonNull private final PickingJobCandidateProductsCollector productsCollector = new PickingJobCandidateProductsCollector(); @NonNull private final HashSet<ShipmentS...
public PickingJobCandidate toPickingJobCandidate() { return PickingJobCandidate.builder() .aggregationType(PickingJobAggregationType.DELIVERY_LOCATION) .preparationDate(key.getPreparationDate()) .customerName(key.getCustomerName()) .deliveryBPLocationId(key.getDeliveryBPLocationId()) .warehouseTy...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\picking\job\service\commands\retrieve\DeliveryLocationBasedAggregation.java
2
请完成以下Java代码
public Map<String, Feature> features() { return features; } @ReadOperation public Feature feature(@Selector String name) { return features.get(name); } @WriteOperation public void configureFeature(@Selector String name, Feature feature) { features.put(name, feature); ...
} public static class Feature { private Boolean enabled; public Boolean getEnabled() { return enabled; } public void setEnabled(Boolean enabled) { this.enabled = enabled; } } }
repos\tutorials-master\spring-boot-modules\spring-boot-core\src\main\java\com\baeldung\actuator\FeaturesEndpoint.java
1
请完成以下Java代码
public class QualityInvoiceLineGroup implements IQualityInvoiceLineGroup { private IQualityInvoiceLine invoiceableLine; private IQualityInvoiceLine invoiceableLineOverride; private final QualityInvoiceLineGroupType qualityInvoiceLineGroupType; private final List<IQualityInvoiceLine> detailsBefore = new ArrayList<...
} private void setThisAsParentIfPossible(IQualityInvoiceLine invoiceableLineOverride) { if (invoiceableLineOverride instanceof QualityInvoiceLine) { ((QualityInvoiceLine)invoiceableLineOverride).setGroup(this); } } @Override public IQualityInvoiceLine getInvoiceableLineOverride() { return invoiceable...
repos\metasfresh-new_dawn_uat\backend\de.metas.materialtracking\src\main\java\de\metas\materialtracking\qualityBasedInvoicing\invoicing\impl\QualityInvoiceLineGroup.java
1
请在Spring Boot框架中完成以下Java代码
public class BaseCommonServiceImpl implements BaseCommonService { @Resource private BaseCommonMapper baseCommonMapper; @Override public void addLog(LogDTO logDTO) { if(oConvertUtils.isEmpty(logDTO.getId())){ logDTO.setId(String.valueOf(IdWorker.getId())); } //保存日志(异...
sysLog.setClientType(ClientTerminalTypeEnum.APP.getKey()); } } catch (Exception e) { //e.printStackTrace(); } } catch (Exception e) { sysLog.setIp("127.0.0.1"); } //获取登录用户信息 if(user==null){ try { ...
repos\JeecgBoot-main\jeecg-boot\jeecg-boot-base-core\src\main\java\org\jeecg\modules\base\service\impl\BaseCommonServiceImpl.java
2
请完成以下Java代码
public abstract class HistoryTaskListener implements TaskListener { protected final HistoryEventProducer eventProducer; protected HistoryLevel historyLevel; public HistoryTaskListener(HistoryEventProducer historyEventProducer) { this.eventProducer = historyEventProducer; } public void notify(DelegateTa...
// pass the event to the handler historyEventHandler.handleEvent(historyEvent); } } } protected void ensureHistoryLevelInitialized() { if (historyLevel == null) { historyLevel = Context.getProcessEngineConfiguration().getHistoryLevel(); } } protected abstract HistoryEvent c...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\history\parser\HistoryTaskListener.java
1
请完成以下Java代码
private String getExceptionTypeAndMessage(Throwable ex) { String message = ex.getMessage(); return ex.getClass().getName() + (StringUtils.hasText(message) ? ": " + message : ""); } private FailureAnalysis getFailureAnalysis(String description, BindException cause, @Nullable FailureAnalysis missingParametersAn...
} return new FailureAnalysis(description, action.toString(), cause); } private Collection<String> findValidValues(BindException ex) { ConversionFailedException conversionFailure = findCause(ex, ConversionFailedException.class); if (conversionFailure != null) { Object[] enumConstants = conversionFailure.getT...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\diagnostics\analyzer\BindFailureAnalyzer.java
1
请完成以下Java代码
public static TextEncryptor delux(CharSequence password, CharSequence salt) { return new HexEncodingTextEncryptor(stronger(password, salt)); } /** * Creates a text encryptor that uses "standard" password-based encryption. Encrypted * text is hex-encoded. * @param password the password used to generate the en...
private static final class NoOpTextEncryptor implements TextEncryptor { static final TextEncryptor INSTANCE = new NoOpTextEncryptor(); @Override public String encrypt(String text) { return text; } @Override public String decrypt(String encryptedText) { return encryptedText; } } }
repos\spring-security-main\crypto\src\main\java\org\springframework\security\crypto\encrypt\Encryptors.java
1
请完成以下Java代码
public void setServers(List<String> servers) { this.servers = servers; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getEnvironment() { return environment; } public void setEnvironment(S...
public void setUrl(String url) { this.url = url; } public String getUser() { return user; } public void setUser(String user) { this.user = user; } public String getPassword() { return password; } ...
repos\tutorials-master\spring-boot-modules\spring-boot-properties\src\main\java\com\baeldung\yaml\YAMLConfig.java
1
请完成以下Java代码
public ESRImportEnqueuer loggable(@NonNull final ILoggable loggable) { this.loggable = loggable; return this; } private void addLog(final String msg, final Object... msgParameters) { loggable.addLog(msg, msgParameters); } private static class ZipFileResource extends AbstractResource { private final byt...
return filename; } @Override public String getDescription() { return null; } @Override public InputStream getInputStream() { return new ByteArrayInputStream(data); } public byte[] getData() { return data; } } }
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.esr\src\main\java\de\metas\payment\esr\dataimporter\ESRImportEnqueuer.java
1
请完成以下Java代码
private static RequestMatcher createRequestMatcher() { final RequestMatcher defaultRequestMatcher = PathPatternRequestMatcher.withDefaults() .matcher(HttpMethod.GET, DEFAULT_OIDC_PROVIDER_CONFIGURATION_ENDPOINT_URI); final RequestMatcher multipleIssuersRequestMatcher = PathPatternRequestMatcher.withDefaults() ...
return (algs) -> { algs.add(JwsAlgorithms.RS256); algs.add(JwsAlgorithms.RS384); algs.add(JwsAlgorithms.RS512); algs.add(JwsAlgorithms.PS256); algs.add(JwsAlgorithms.PS384); algs.add(JwsAlgorithms.PS512); algs.add(JwsAlgorithms.ES256); algs.add(JwsAlgorithms.ES384); algs.add(JwsAlgorithms.ES5...
repos\spring-security-main\oauth2\oauth2-authorization-server\src\main\java\org\springframework\security\oauth2\server\authorization\oidc\web\OidcProviderConfigurationEndpointFilter.java
1
请完成以下Java代码
public void setDecisionDefinitionVersion(int decisionDefinitionVersion) { this.decisionDefinitionVersion = decisionDefinitionVersion; } public Integer getHistoryTimeToLive() { return historyTimeToLive; } public void setHistoryTimeToLive(Integer historyTimeToLive) { this.historyTimeToLive = history...
public String toString() { return this.getClass().getSimpleName() + "[decisionDefinitionId = " + decisionDefinitionId + ", decisionDefinitionKey = " + decisionDefinitionKey + ", decisionDefinitionName = " + decisionDefinitionName + ", decisionDefinitionVersion = " + decisionDefinitio...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\CleanableHistoricDecisionInstanceReportResultEntity.java
1
请完成以下Java代码
public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { HttpServletRequest request = (HttpServletRequest) req; HttpServletResponse response = (HttpServletResponse) res; FilterInvocation filterInvocation = new FilterInvocation(request, response, ch...
return this.channelDecisionManager; } protected FilterInvocationSecurityMetadataSource getSecurityMetadataSource() { return this.securityMetadataSource; } public void setChannelDecisionManager(ChannelDecisionManager channelDecisionManager) { this.channelDecisionManager = channelDecisionManager; } public vo...
repos\spring-security-main\access\src\main\java\org\springframework\security\web\access\channel\ChannelProcessingFilter.java
1
请完成以下Java代码
public class UserRegistrationDto { @NotEmpty private String firstName; @NotEmpty private String lastName; @NotEmpty private String password; @Email @NotEmpty private String confirmPassword; @Email @NotEmpty private String email; @AssertTrue private String co...
public void setPassword(String password) { this.password = password; } public String getConfirmPassword() { return confirmPassword; } public void setConfirmPassword(String confirmPassword) { this.confirmPassword = confirmPassword; } public String getEmail() { r...
repos\Spring-Boot-Advanced-Projects-main\Springboot-Registration-Page\src\main\java\aspera\registration\web\dto\UserRegistrationDto.java
1
请在Spring Boot框架中完成以下Java代码
public class WebApplicationSecurity { public static void main(String... args) { Config config = Config.create(); Map<String, MyUser> users = new HashMap<>(); users.put("user", new MyUser("user", "user".toCharArray(), Collections.singletonList("ROLE_USER"))); users.put("admin", new...
.build(); //Security security = Security.create(config); //2. WebSecurity from Security or from Config // WebSecurity webSecurity = WebSecurity.create(security).securityDefaults(WebSecurity.authenticate()); WebSecurity webSecurity = WebSecurity.create(config); Routing routing ...
repos\tutorials-master\microservices-modules\helidon\helidon-se\src\main\java\com\baeldung\helidon\se\security\WebApplicationSecurity.java
2
请完成以下Java代码
protected ColorUIResource getPrimary1() { return LOGO_TEXT_COLOR; } @Override protected ColorUIResource getPrimary3() { // used for: // * standard scrollbar thumb's background color - NOTE: we replace it with our scrollbarUI // * panel backgrounds // return new ColorUIResource(247, 255, 238); // very v...
* */ public static class TableHeaderBorder extends javax.swing.border.AbstractBorder { private static final long serialVersionUID = 1L; private final Insets editorBorderInsets = new Insets(2, 2, 2, 2); private final Color borderColor; public TableHeaderBorder(final Color borderColor) { super(); thi...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\plaf\MetasFreshTheme.java
1
请在Spring Boot框架中完成以下Java代码
public Result<List<SysDataLog>> queryCompareList(HttpServletRequest req) { Result<List<SysDataLog>> result = new Result<>(); String dataId1 = req.getParameter("dataId1"); String dataId2 = req.getParameter("dataId2"); List<String> idList = new ArrayList<String>(); idList.add(dataId1); idList.add(dataId2); ...
queryWrapper.eq("data_id", dataId); // 代码逻辑说明: 新增查询条件-type String type = req.getParameter("type"); if (oConvertUtils.isNotEmpty(type)) { queryWrapper.eq("type", type); } // 按时间倒序排 queryWrapper.orderByDesc("create_time"); List<SysDataLog> list = service.list(queryWrapper); if(list==null||list.size()<...
repos\JeecgBoot-main\jeecg-boot\jeecg-module-system\jeecg-system-biz\src\main\java\org\jeecg\modules\system\controller\SysDataLogController.java
2
请完成以下Java代码
protected String getAccessToken(String clientId, String subject, String approvedScope) throws Exception { //4. Signing JWSSigner jwsSigner = getJwsSigner(); Instant now = Instant.now(); //Long expiresInMin = 30L; Date expirationTime = Date.from(now.plus(expiresInMin, ChronoUnit....
protected String getRefreshToken(String clientId, String subject, String approvedScope) throws Exception { JWSSigner jwsSigner = getJwsSigner(); Instant now = Instant.now(); //6.Build refresh token JWTClaimsSet refreshTokenClaims = new JWTClaimsSet.Builder() .subject(subj...
repos\tutorials-master\security-modules\oauth2-framework-impl\oauth2-authorization-server\src\main\java\com\baeldung\oauth2\authorization\server\handler\AbstractGrantTypeHandler.java
1
请完成以下Java代码
public String getWorkflowId() { return workflowId; } public void setWorkflowId(String workflowId) { this.workflowId = workflowId; } public String getWorkflowRunId() { return workflowRunId; } public void setWorkflowRunId(String workflowRunId) { this.workflowRunI...
return queryName; } public void setQueryName(String queryName) { this.queryName = queryName; } public String getResult() { return result; } public void setResult(String result) { this.result = result; } }
repos\spring-boot-demo-main\src\main\java\com\temporal\demos\temporalspringbootdemo\webui\model\QueryInfo.java
1
请完成以下Java代码
public void eventCancelledByEventGateway(DelegateExecution execution) { deleteMessageEventSubScription(execution); Context.getCommandContext() .getExecutionEntityManager() .deleteExecutionAndRelatedData((ExecutionEntity) execution, DeleteReason.EVENT_BASED_GATEWAY_CANCEL); } ...
) { eventSubscriptionEntityManager.delete(eventSubscription); } } return executionEntity; } public MessageEventDefinition getMessageEventDefinition() { return messageEventDefinition; } public MessageExecutionContext getMessageExecutionContext() { ...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\IntermediateCatchMessageEventActivityBehavior.java
1
请完成以下Java代码
public void plusOne() { gauge.addAndGet(1); onInvoke(); } @Override public void minusOne() { gauge.addAndGet(-1); onInvoke(); } private void onInvoke() { final long millisNow = SystemTime.millis(); intervalLastInvoke = new BigDecimal(millisNow - millisLastInvoke.get()); millisLastInvoke.set(mil...
} else if (intervalLastInvokeLocal.signum() == 0) { // omit division by zero invokeRate = new BigDecimal(Long.MAX_VALUE); } else { invokeRate = new BigDecimal("1000") .setScale(2, BigDecimal.ROUND_HALF_UP) .divide(intervalLastInvokeLocal, RoundingMode.HALF_UP) .abs(); // be tolerant ag...
repos\metasfresh-new_dawn_uat\backend\de.metas.monitoring\src\main\java\de\metas\monitoring\api\impl\Meter.java
1
请完成以下Java代码
public WindowId getWindowId(@NonNull final DocumentZoomIntoInfo zoomIntoInfo) { if (zoomIntoInfo.getWindowId() != null) { return zoomIntoInfo.getWindowId(); } final AdWindowId zoomInto_adWindowId; if (zoomIntoInfo.isRecordIdPresent()) { zoomInto_adWindowId = RecordWindowFinder.newInstance(zoomIntoIn...
zoomInto_adWindowId = RecordWindowFinder.findAdWindowId(zoomIntoInfo.getTableName()).orElse(null); } if (zoomInto_adWindowId == null) { throw new EntityNotFoundException("No windowId found") .setParameter("zoomIntoInfo", zoomIntoInfo); } return WindowId.of(zoomInto_adWindowId); } private Document...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\model\lookup\zoom_into\DocumentZoomIntoService.java
1
请在Spring Boot框架中完成以下Java代码
public String getDesc() { return desc; } public void setDesc(String desc) { this.desc = desc; } public static Map<String, Map<String, Object>> toMap() { BankAccountTypeEnum[] ary = BankAccountTypeEnum.values(); Map<String, Map<String, Object>> enumMap = new HashMap<Stri...
for (int i = 0; i < ary.length; i++) { Map<String, String> map = new HashMap<String, String>(); map.put("desc", ary[i].getDesc()); map.put("name", ary[i].name()); list.add(map); } return list; } public static BankAccountTypeEnum getEnum(Strin...
repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\user\enums\BankAccountTypeEnum.java
2
请完成以下Java代码
public class InvoicesTableModel extends AbstractAllocableDocTableModel<IInvoiceRow> { private static final long serialVersionUID = 1L; // NOTE: order is important because some BL wants to apply the types in the same order they were enabled! private final LinkedHashSet<InvoiceWriteOffAmountType> allowedWriteOffTypes...
allowedWriteOffTypes.remove(type); } // // Update column's editable status final String columnName = type.columnName(); getTableColumnInfo(columnName).setEditable(allowed); fireTableColumnChanged(columnName); } public final boolean isAllowWriteOffAmountOfType(final InvoiceWriteOffAmountType type) { r...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.swingui\src\main\java\de\metas\banking\payment\paymentallocation\model\InvoicesTableModel.java
1
请在Spring Boot框架中完成以下Java代码
public Duration getShutdownTimeout() { return this.shutdownTimeout; } public void setShutdownTimeout(Duration shutdownTimeout) { this.shutdownTimeout = shutdownTimeout; } public @Nullable String getReadFrom() { return this.readFrom; } public void setReadFrom(@Nullable String readFrom) { this....
*/ private @Nullable Duration period; /** * Whether adaptive topology refreshing using all available refresh * triggers should be used. */ private boolean adaptive; public boolean isDynamicRefreshSources() { return this.dynamicRefreshSources; } public void setDynamicRefres...
repos\spring-boot-4.0.1\module\spring-boot-data-redis\src\main\java\org\springframework\boot\data\redis\autoconfigure\DataRedisProperties.java
2
请完成以下Java代码
public void setOwner(String taskId, String userId) { commandExecutor.execute(new AddIdentityLinkCmd(taskId, userId, AddIdentityLinkCmd.IDENTITY_USER, IdentityLinkType.OWNER)); } @Override public void addUserIdentityLink(String taskId, String userId, String identityLinkType) { ...
@Override public void deleteUserIdentityLink(String taskId, String userId, String identityLinkType) { commandExecutor.execute(new DeleteIdentityLinkCmd(taskId, userId, null, identityLinkType)); } @Override public List<IdentityLink> getIdentityLinksForTask(String taskId) { return command...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\CmmnTaskServiceImpl.java
1
请完成以下Java代码
private CSVWriter createWriter() { final File outputFile; try { outputFile = File.createTempFile("Report_", ".csv"); } catch (final IOException ex) { throw new AdempiereException("Failed creating temporary CSV file", ex); } return CSVWriter.builder() .outputFile(outputFile) .header(getCo...
public boolean isNoDataAddedYet() { return writer == null || writer.getLinesWrote() <= 0; } @Nullable public File getResultFile() { final File resultFile = writer != null ? writer.getOutputFile() : null; if (resultFile == null) { // shall not happen throw new AdempiereException(MSG_NoData); } re...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\impexp\spreadsheet\csv\JdbcCSVExporter.java
1
请在Spring Boot框架中完成以下Java代码
public Integer getId() { return id; } public OrderDO setId(Integer id) { this.id = id; return this; } public Long getUserId() { return userId; } public OrderDO setUserId(Long userId) { this.userId = userId; return this; } public Long ge...
public OrderDO setProductId(Long productId) { this.productId = productId; return this; } public Integer getPayAmount() { return payAmount; } public OrderDO setPayAmount(Integer payAmount) { this.payAmount = payAmount; return this; } }
repos\SpringBoot-Labs-master\lab-52\lab-52-seata-at-httpclient-demo\lab-52-seata-at-httpclient-demo-order-service\src\main\java\cn\iocoder\springboot\lab52\orderservice\entity\OrderDO.java
2
请在Spring Boot框架中完成以下Java代码
public @Nullable DeliveryMode getDeliveryMode() { return this.deliveryMode; } public void setDeliveryMode(@Nullable DeliveryMode deliveryMode) { this.deliveryMode = deliveryMode; } public @Nullable Integer getPriority() { return this.priority; } public void setPriority(@Nullable Integer priority...
public boolean isTransacted() { return this.transacted; } public void setTransacted(boolean transacted) { this.transacted = transacted; } } } public enum DeliveryMode { /** * Does not require that the message be logged to stable storage. This is the * lowest-overhead delivery mode but ...
repos\spring-boot-4.0.1\module\spring-boot-jms\src\main\java\org\springframework\boot\jms\autoconfigure\JmsProperties.java
2
请完成以下Java代码
public static void setParameters(final PreparedStatement stmt, final List<?> params) throws SQLException { if (params == null || params.isEmpty()) { return; } for (int i = 0; i < params.size(); i++) { setParameter(stmt, i + 1, params.get(i)); } } public void close(final ResultSet rs) { if (r...
ResultSet rs = null; try { final ImmutableSet.Builder<String> result = ImmutableSet.builder(); // // Fetch database functions close(rs); rs = database.getConnection() .getMetaData() .getFunctions(database.getDbName(), null, functionNamePattern); while (rs.next()) { final String f...
repos\metasfresh-new_dawn_uat\backend\de.metas.migration\de.metas.migration.base\src\main\java\de\metas\migration\impl\SQLHelper.java
1
请完成以下Java代码
public void unpick(@NonNull final DDOrderMoveScheduleId scheduleId, @Nullable final HUQRCode unpickToTargetQRCode) { DDOrderUnpickCommand.builder() .ddOrderMoveScheduleRepository(ddOrderMoveScheduleRepository) .huqrCodesService(huqrCodesService) .scheduleId(scheduleId) .unpickToTargetQRCode(unpickToT...
public boolean hasInTransitSchedules(@NonNull final LocatorId inTransitLocatorId) { return ddOrderMoveScheduleRepository.queryInTransitSchedules(inTransitLocatorId).anyMatch(); } public void printMaterialInTransitReport( @NonNull final LocatorId inTransitLocatorId, @NonNull String adLanguage) { MaterialI...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\distribution\ddorder\movement\schedule\DDOrderMoveScheduleService.java
1
请在Spring Boot框架中完成以下Java代码
public BigDecimal getTaxAmount() { return taxAmount; } /** * Sets the value of the taxAmount property. * * @param value * allowed object is * {@link BigDecimal } * */ public void setTaxAmount(BigDecimal value) { this.taxAmount = value; } ...
* {@link BigDecimal } * */ public BigDecimal getInvoiceAmount() { return invoiceAmount; } /** * Sets the value of the invoiceAmount property. * * @param value * allowed object is * {@link BigDecimal } * */ public void setInvoic...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_ecosio_remadv\at\erpel\schemas\_1p0\documents\extensions\edifact\InvoiceFooterType.java
2
请在Spring Boot框架中完成以下Java代码
public class TransactionService { private static final Logger logger = LoggerFactory.getLogger(TransactionService.class); private final ConcurrentHashMap<UUID, List<Transaction>> processedTransactions = new ConcurrentHashMap<>(); private final Set<UUID> failedTransactions = ConcurrentHashMap.newKeySet(); ...
logger.info("Transaction processing completed: {}:{} for account {}", transaction.type(), transaction.amount(), transaction.accountId()); } catch (InterruptedException e) { Thread.currentThread() .interrupt(); throw new RuntimeException(e); } } public voi...
repos\tutorials-master\spring-cloud-modules\spring-cloud-aws-v3\src\main\java\com\baeldung\spring\cloud\aws\sqs\fifo\service\TransactionService.java
2
请完成以下Java代码
public boolean isReceiptLineWithWrongLength(@NonNull final String v11LineStr) { if (!isReceiptLine(v11LineStr)) { return false; } return v11LineStr.length() != 87; } /** * If there is a problem extracting the amount, it logs an error message to {@link Loggables#get()}. * * @param esrImportLineTex...
* If there is a problem extracting the qty, it logs an error message to {@link Loggables#get()}. * * @param esrImportLineText * @return */ public BigDecimal extractCtrlQty(@NonNull final String esrImportLineText) { final String trxQtysStr = esrImportLineText.substring(51, 63); try { final BigDecimal...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.esr\src\main\java\de\metas\payment\esr\dataimporter\impl\v11\ESRReceiptLineMatcherUtil.java
1
请在Spring Boot框架中完成以下Java代码
public class CostSegmentAndElement { public static CostSegmentAndElement of( @NonNull final CostSegment costSegment, @NonNull final CostElementId costElementId) { return new CostSegmentAndElement(costSegment, costElementId); } @Getter(AccessLevel.PRIVATE) CostSegment costSegment; CostElementId costElemen...
{ return getCostSegment(); } public AcctSchemaId getAcctSchemaId() { return getCostSegment().getAcctSchemaId(); } public CostTypeId getCostTypeId() { return getCostSegment().getCostTypeId(); } public CostingLevel getCostingLevel() {return getCostSegment().getCostingLevel();} public ClientId getClient...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\costing\CostSegmentAndElement.java
2
请在Spring Boot框架中完成以下Java代码
public List<Job> findJobsByQueryCriteria(SuspendedJobQueryImpl jobQuery) { String query = "selectSuspendedJobByQueryCriteria"; return getDbSqlSession().selectList(query, jobQuery); } @Override public long findJobCountByQueryCriteria(SuspendedJobQueryImpl jobQuery) { return (Long) ge...
@Override @SuppressWarnings("unchecked") public List<SuspendedJobEntity> findJobsByProcessInstanceId(final String processInstanceId) { return getDbSqlSession().selectList("selectSuspendedJobsByProcessInstanceId", processInstanceId); } @Override public void updateJobTenantIdForDeployment(Str...
repos\flowable-engine-main\modules\flowable-job-service\src\main\java\org\flowable\job\service\impl\persistence\entity\data\impl\MybatisSuspendedJobDataManager.java
2
请在Spring Boot框架中完成以下Java代码
public String getExecutionId() { return executionId; } public void setExecutionId(String executionId) { this.executionId = executionId; } @ApiModelProperty(example = "10") public String getActivityInstanceId() { return activityInstanceId; } public void setActivityI...
this.detailType = detailType; } @ApiModelProperty(example = "2") public Integer getRevision() { return revision; } public void setRevision(Integer revision) { this.revision = revision; } public RestVariable getVariable() { return variable; } public void se...
repos\flowable-engine-main\modules\flowable-rest\src\main\java\org\flowable\rest\service\api\history\HistoricDetailResponse.java
2
请在Spring Boot框架中完成以下Java代码
public final class GraphQlRSocketAutoConfiguration { @Bean @ConditionalOnMissingBean GraphQlRSocketHandler graphQlRSocketHandler(ExecutionGraphQlService graphQlService, ObjectProvider<RSocketGraphQlInterceptor> interceptors, JsonEncoderSupplier jsonEncoderSupplier) { return new GraphQlRSocketHandler(graphQlSer...
JsonEncoderSupplier jackson2JsonEncoderSupplier(ObjectMapper objectMapper) { return () -> new org.springframework.http.codec.json.Jackson2JsonEncoder(objectMapper); } } static class NoJacksonOrJackson2Preferred extends AnyNestedCondition { NoJacksonOrJackson2Preferred() { super(ConfigurationPhase.PARSE_C...
repos\spring-boot-4.0.1\module\spring-boot-graphql\src\main\java\org\springframework\boot\graphql\autoconfigure\rsocket\GraphQlRSocketAutoConfiguration.java
2
请在Spring Boot框架中完成以下Java代码
public class SpringBoot2JdbcWithH2Application implements CommandLineRunner { private final Logger LOGGER = LoggerFactory.getLogger(this.getClass()); private final StudentJdbcTemplateRepository repository; private final StudentJdbcClientRepository jdbcClientRepository; public SpringBoot2JdbcWithH2App...
LOGGER.info("All users -> {}", repository.findAll()); LOGGER.info("With Json format users -> {}", repository.findAll()); // repository.findAll().forEach(student -> System.out.println(student.toJSON())); LOGGER.info("WITH JDBC CLIENT APPROACH..."); LOGGER.info("Student id 10001 -> {}", ...
repos\spring-boot-examples-master\spring-boot-2-jdbc-with-h2\src\main\java\com\in28minutes\springboot\jdbc\h2\example\SpringBoot2JdbcWithH2Application.java
2
请完成以下Java代码
public boolean addEvent(@NonNull final HUTraceEvent huTraceEvent) { final HUTraceEventQuery query = huTraceEvent.asQueryBuilder().build(); final List<HUTraceEvent> existingDbRecords = RetrieveDbRecordsUtil.query(query); final boolean inserted = existingDbRecords.isEmpty(); if (inserted) { final I_M_HU_T...
* <p> * <b>Important:</b> if the specification is "empty", i.e. if it specifies no conditions, then return an empty list to prevent an {@code OutOfMemoryError}. */ public List<HUTraceEvent> query(@NonNull final HUTraceEventQuery query) { return RetrieveDbRecordsUtil.query(query); } /** * Similar to {@link ...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\trace\HUTraceRepository.java
1
请在Spring Boot框架中完成以下Java代码
public String getTransportDocumentNumber() { return transportDocumentNumber; } /** * Sets the value of the transportDocumentNumber property. * * @param value * allowed object is * {@link String } * */ public void setTransportDocumentNumber(String val...
* * @return * possible object is * {@link String } * */ public String getSCAC() { return scac; } /** * Sets the value of the scac property. * * @param value * allowed object is * {@link String } * */ public ...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_ecosio_remadv\at\erpel\schemas\_1p0\documents\extensions\edifact\ShipperExtensionType.java
2
请完成以下Java代码
public void setM_HU_PI(final de.metas.handlingunits.model.I_M_HU_PI M_HU_PI) { set_ValueFromPO(COLUMNNAME_M_HU_PI_ID, de.metas.handlingunits.model.I_M_HU_PI.class, M_HU_PI); } @Override public void setM_HU_PI_ID (final int M_HU_PI_ID) { if (M_HU_PI_ID < 1) set_ValueNoCheck (COLUMNNAME_M_HU_PI_ID, null); ...
return get_ValueAsInt(COLUMNNAME_M_HU_PI_Version_ID); } @Override public void setName (final java.lang.String Name) { set_Value (COLUMNNAME_Name, Name); } @Override public java.lang.String getName() { return get_ValueAsString(COLUMNNAME_Name); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java-gen\de\metas\handlingunits\model\X_M_HU_PI_Version.java
1
请完成以下Java代码
public static long convertString2Id(String idString) { long id; id = (idString.charAt(0) - 'A') * 26L * 10 * 10 * 26 * 10 * 10 + (idString.charAt(1) - 'a') * 10 * 10 * 26 * 10 * 10 + (idString.charAt(2) - '0') * 10 * 26 * 10 * 10 + (idString.charAt(...
return id; } public static long convertString2IdWithIndex(String idString, int index) { return convertString2IdWithIndex(idString, (long) index); } public static String convertId2StringWithIndex(long id) { String idString = convertId2String(id / MAX_WORDS); long index =...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\corpus\synonym\SynonymHelper.java
1
请在Spring Boot框架中完成以下Java代码
public @Nullable Integer getPort() { return this.port; } /** * Sets the port of the management server, use {@code null} if the * {@link ServerProperties#getPort() server port} should be used. Set to 0 to use a * random port or set to -1 to disable. * @param port the port */ public void setPort(@Nullable...
@Contract("!null -> !null") private @Nullable String cleanBasePath(@Nullable String basePath) { String candidate = null; if (StringUtils.hasLength(basePath)) { candidate = basePath.strip(); } if (StringUtils.hasText(candidate)) { if (!candidate.startsWith("/")) { candidate = "/" + candidate; } ...
repos\spring-boot-4.0.1\module\spring-boot-actuator-autoconfigure\src\main\java\org\springframework\boot\actuate\autoconfigure\web\server\ManagementServerProperties.java
2
请在Spring Boot框架中完成以下Java代码
public String getLINENUMBER() { return linenumber; } /** * Sets the value of the linenumber property. * * @param value * allowed object is * {@link String } * */ public void setLINENUMBER(String value) { this.linenumber = value; } /*...
* */ public String getADDINFO() { return addinfo; } /** * Sets the value of the addinfo property. * * @param value * allowed object is * {@link String } * */ public void setADDINFO(String value) { this.addinfo = value; } }
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_stepcom_desadv\de\metas\edi\esb\jaxb\stepcom\desadv\DADDI1.java
2
请完成以下Java代码
public final class OAuth2ClientAuthenticationContext implements OAuth2AuthenticationContext { private final Map<Object, Object> context; private OAuth2ClientAuthenticationContext(Map<Object, Object> context) { this.context = Collections.unmodifiableMap(new HashMap<>(context)); } @SuppressWarnings("unchecked") ...
* Sets the {@link RegisteredClient registered client}. * @param registeredClient the {@link RegisteredClient} * @return the {@link Builder} for further configuration */ public Builder registeredClient(RegisteredClient registeredClient) { return put(RegisteredClient.class, registeredClient); } /** ...
repos\spring-security-main\oauth2\oauth2-authorization-server\src\main\java\org\springframework\security\oauth2\server\authorization\authentication\OAuth2ClientAuthenticationContext.java
1
请完成以下Java代码
protected void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2 = (Graphics2D) g.create(); try { g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHi...
g2.draw(circle); } finally { g2.dispose(); } } public static void main(String[] args) { SwingUtilities.invokeLater(() -> { JFrame f = new JFrame("Circle"); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.add(new DrawCircle()); ...
repos\tutorials-master\image-processing\src\main\java\com\baeldung\drawcircle\DrawCircle.java
1
请完成以下Java代码
public TypedValueSerializer<?> getSerializer() { return typedValueField.getSerializer(); } public String getErrorMessage() { return typedValueField.getErrorMessage(); } @Override public void setByteArrayId(String id) { byteArrayField.setByteArrayId(id); } @Override public String getSerial...
public String getTypeName() { return typedValueField.getTypeName(); } public String getVariableTypeName() { return getTypeName(); } public Date getTime() { return timestamp; } @Override public String toString() { return this.getClass().getSimpleName() + "[variableName=" + var...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\HistoricDetailVariableInstanceUpdateEntity.java
1
请完成以下Java代码
public void checkCycles(final ProductId productId) { try { assertNoCycles(productId); } catch (final BOMCycleException e) { final I_M_Product product = Services.get(IProductBL.class).getById(productId); throw new AdempiereException(ERR_PRODUCT_BOM_CYCLE, product.getValue()); } } private Default...
// Check Child = Parent error final ProductId productId = ProductId.ofRepoId(bomLine.getM_Product_ID()); final ProductId parentProductId = ProductId.ofRepoId(bom.getM_Product_ID()); if (productId.equals(parentProductId)) { throw new BOMCycleException(bom, productId); } // Check BOM Loop Error if (!mar...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\org\eevolution\api\impl\ProductBOMCycleDetection.java
1
请完成以下Java代码
public void addQtyOrderedAndResetQtyToOrder(final I_PMM_PurchaseCandidate candidate, final BigDecimal qtyOrdered, final BigDecimal qtyOrderedTU) { candidate.setQtyOrdered(candidate.getQtyOrdered().add(qtyOrdered)); candidate.setQtyOrdered_TU(candidate.getQtyOrdered_TU().add(qtyOrderedTU)); resetQtyToOrder(candi...
public IPMMPricingAware asPMMPricingAware(final I_PMM_PurchaseCandidate candidate) { return PMMPricingAware_PurchaseCandidate.of(candidate); } @Override public I_M_HU_PI_Item_Product getM_HU_PI_Item_Product_Effective(final I_PMM_PurchaseCandidate candidate) { final I_M_HU_PI_Item_Product hupipOverride = candi...
repos\metasfresh-new_dawn_uat\backend\de.metas.procurement.base\src\main\java\de\metas\procurement\base\order\impl\PMMPurchaseCandidateBL.java
1
请在Spring Boot框架中完成以下Java代码
public String getMHUPackagingCodeText() { return mhuPackagingCodeText; } /** * Sets the value of the mhuPackagingCodeText property. * * @param value * allowed object is * {@link String } * */ public void setMHUPackagingCodeText(String value) { ...
* * <p> * For example, to add a new item, do as follows: * <pre> * getEDIExpDesadvPackItem().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link EDIExpDesadvPackItemType } * * */ public List<EDI...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_metasfreshinhousev1\de\metas\edi\esb\jaxb\metasfreshinhousev1\EDIExpDesadvPackType.java
2
请完成以下Java代码
public class CallCenterValidator implements ModelValidator { public static final String ENTITYTYPE="de.metas.callcenter"; // private final Logger log = CLogMgt.getLogger(getClass()); private int m_AD_Client_ID = -1; //@Override public int getAD_Client_ID() { return m_AD_Client_ID; } //@Override public v...
} //@Override public String modelChange(PO po, int type) throws Exception { if (po instanceof X_R_Request && type == TYPE_AFTER_NEW) { X_R_Request r = (X_R_Request)po; MRGroupProspect.linkRequest(r.getCtx(), r, r.get_TrxName()); } else if (po instanceof X_R_Group && (type == TYPE_AFTER_NEW || type == ...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\callcenter\model\CallCenterValidator.java
1
请完成以下Java代码
public Set<String> getAllowedTrxNamePrefixes() { return allowedTrxNamePrefixesRO; } @Override public boolean isAllowTrxAfterThreadEnd() { return allowTrxAfterThreadEnd; } @Override public void reset() { setActive(DEFAULT_ACTIVE); setAllowTrxAfterThreadEnd(DEFAULT_ALLOW_TRX_AFTER_TREAD_END); setMaxS...
{ final StringBuilder sb = new StringBuilder(); sb.append("TrxConstraints["); sb.append("active=" + this.active); sb.append(", allowedTrxNamePrefixes=" + getAllowedTrxNamePrefixes()); sb.append(", allowTrxAfterThreadEnd=" + isAllowTrxAfterThreadEnd()); sb.append(", maxSavepoints=" + getMaxSavepoints()); s...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\util\trxConstraints\api\impl\TrxConstraints.java
1
请在Spring Boot框架中完成以下Java代码
public CasAuthenticationFilter casAuthenticationFilter( AuthenticationManager authenticationManager, ServiceProperties serviceProperties) throws Exception { CasAuthenticationFilter filter = new CasAuthenticationFilter(); filter.setAuthenticationManager(authenticationManager); filter....
return provider; } @Bean public SecurityContextLogoutHandler securityContextLogoutHandler() { return new SecurityContextLogoutHandler(); } @Bean public LogoutFilter logoutFilter() { LogoutFilter logoutFilter = new LogoutFilter("https://localhost:8443/cas/logout", securityConte...
repos\tutorials-master\security-modules\cas\cas-secured-app\src\main\java\com\baeldung\cassecuredapp\CasSecuredApplication.java
2
请完成以下Java代码
public String getProcessInstanceId() { return processInstanceId; } @Override public void setProcessInstanceId(String processInstanceId) { this.processInstanceId = processInstanceId; } @Override public String getType() { return type; } @Override public void ...
return fullMessage; } @Override public void setFullMessage(String fullMessage) { this.fullMessage = fullMessage; } @Override public String getAction() { return action; } @Override public void setAction(String action) { this.action = action; } }
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\persistence\entity\CommentEntityImpl.java
1
请完成以下Java代码
public static Server createBaseServer() { Server server = new Server(); // Adds a connector for port 80 with a timeout of 30 seconds. ServerConnector connector = new ServerConnector(server); connector.setPort(SERVER_PORT); connector.setHost("127.0.0.1"); connector.setIdl...
* handler and to a web application, in this order. * * @return a server */ public static Server createMultiHandlerServer() { Server server = createBaseServer(); // Creates the handlers and adds them to the server. HandlerCollection handlers = new HandlerCollection(); ...
repos\tutorials-master\libraries-server-2\src\main\java\com\baeldung\jetty\programmatic\JettyServerFactory.java
1
请完成以下Java代码
public ResponseEntity<Page<EmployeeDto>> getEmployeeData(Pageable pageable) { Page<EmployeeDto> employeeData = organisationService.getEmployeeData(pageable); return ResponseEntity.ok(employeeData); } @GetMapping("/data") public ResponseEntity<Page<EmployeeDto>> getData(@RequestParam(default...
Page<EmployeeDto> employeeDtos = new PageImpl<>(pageContent, PageRequest.of(page, size), totalSize); return ResponseEntity.ok() .body(employeeDtos); } private static List<EmployeeDto> listImplementation() { List<EmployeeDto> empList = new ArrayList<>(); empList.add(new Employ...
repos\tutorials-master\persistence-modules\spring-data-rest\src\main\java\com\baeldung\pageentityresponse\EmployeeController.java
1
请完成以下Java代码
public class TeamsAdaptiveCard { private String type = "message"; private List<Attachment> attachments; @Data @NoArgsConstructor @AllArgsConstructor public static class Attachment { private String contentType = "application/vnd.microsoft.card.adaptive"; private AdaptiveCard cont...
// This is the only one way how to specify color the custom color for the card url = ImageUtils.getEmbeddedBase64EncodedImg(color); } } @Data @NoArgsConstructor @AllArgsConstructor public static class TextBlock { private final String type = "TextBlock"; private ...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\service\notification\channels\TeamsAdaptiveCard.java
1
请在Spring Boot框架中完成以下Java代码
public Optional<ToDo> findById(Long aLong) { return Optional.empty(); } @Override public boolean existsById(Long aLong) { return false; } @Override public void flush() { } @Override public <S extends ToDo> S saveAndFlush(S s) { return null; } @Ove...
} @Override public <S extends ToDo> List<S> findAll(Example<S> example) { return null; } @Override public <S extends ToDo> List<S> findAll(Example<S> example, Sort sort) { return null; } @Override public <S extends ToDo> Page<S> findAll(Example<S> example, Pageable pag...
repos\SpringBoot-Projects-FullStack-master\Part-8 Spring Boot Real Projects\3.TodoProjectDB\src\main\java\spring\project\repository\LogicRepository.java
2
请完成以下Java代码
public void deleteDomainById(TenantId tenantId, DomainId domainId) { log.trace("Executing deleteDomainById [{}]", domainId.getId()); domainDao.removeById(tenantId, domainId.getId()); eventPublisher.publishEvent(DeleteEntityEvent.builder().tenantId(tenantId).entityId(domainId).build()); } ...
deleteDomainsByTenantId(tenantId); } @Override public Optional<HasId<?>> findEntity(TenantId tenantId, EntityId entityId) { return Optional.ofNullable(findDomainById(tenantId, new DomainId(entityId.getId()))); } @Override public FluentFuture<Optional<HasId<?>>> findEntityAsync(TenantId...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\domain\DomainServiceImpl.java
1
请完成以下Java代码
public class GenConfig implements Serializable { public GenConfig(String tableName) { this.tableName = tableName; } @Id @Column(name = "config_id") @ApiModelProperty(value = "ID", hidden = true) @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @NotBlank ...
@NotBlank @ApiModelProperty(value = "模块名") private String moduleName; @NotBlank @ApiModelProperty(value = "前端文件路径") private String path; @ApiModelProperty(value = "前端文件路径") private String apiPath; @ApiModelProperty(value = "作者") private String author; @ApiModelProperty(value ...
repos\eladmin-master\eladmin-generator\src\main\java\me\zhengjie\domain\GenConfig.java
1
请完成以下Java代码
public boolean isProcessing() { return get_ValueAsBoolean(COLUMNNAME_Processing); } @Override public void setReferenceNo (final @Nullable java.lang.String ReferenceNo) { set_Value (COLUMNNAME_ReferenceNo, ReferenceNo); } @Override public java.lang.String getReferenceNo() { return get_ValueAsString(CO...
@Override public void setTrxAmt (final @Nullable BigDecimal TrxAmt) { set_Value (COLUMNNAME_TrxAmt, TrxAmt); } @Override public BigDecimal getTrxAmt() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_TrxAmt); return bd != null ? bd : BigDecimal.ZERO; } /** * TrxType AD_Reference_ID=215 * R...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.base\src\main\java-gen\org\compiere\model\X_I_BankStatement.java
1
请在Spring Boot框架中完成以下Java代码
protected EventSubscriptionServiceConfiguration getService() { return this; } // init // ///////////////////////////////////////////////////////////////////// public void init() { configuratorsBeforeInit(); initDataManagers(); initEntityManagers(); configurato...
public EventSubscriptionEntityManager getEventSubscriptionEntityManager() { return eventSubscriptionEntityManager; } public EventSubscriptionServiceConfiguration setEventSubscriptionEntityManager(EventSubscriptionEntityManager eventSubscriptionEntityManager) { this.eventSubscriptionEntityManage...
repos\flowable-engine-main\modules\flowable-eventsubscription-service\src\main\java\org\flowable\eventsubscription\service\EventSubscriptionServiceConfiguration.java
2
请完成以下Java代码
public class DepartmentResource { @Context private Configuration config; @GET public DataResponse<Department> getAll(@Context UriInfo uriInfo) { return LinkRest.select(Department.class, config).uri(uriInfo).get(); } @GET @Path("{id}") public DataResponse<Department> getOne(@Pa...
} @PUT public SimpleResponse createOrUpdate(String data) { return LinkRest.createOrUpdate(Department.class, config).sync(data); } @Path("{id}/employees") public EmployeeSubResource getEmployees(@PathParam("id") int id, @Context UriInfo uriInfo) { return new EmployeeSubResource(id, ...
repos\tutorials-master\web-modules\linkrest\src\main\java\com\baeldung\linkrest\apis\DepartmentResource.java
1
请完成以下Java代码
public boolean isRequireTrolley() { return get_ValueAsBoolean(COLUMNNAME_IsRequireTrolley); } @Override public void setMaxLaunchers (final int MaxLaunchers) { set_Value (COLUMNNAME_MaxLaunchers, MaxLaunchers); } @Override public int getMaxLaunchers() { return get_ValueAsInt(COLUMNNAME_MaxLaunchers); ...
@Override public int getMaxStartedLaunchers() { return get_ValueAsInt(COLUMNNAME_MaxStartedLaunchers); } @Override public void setMobileUI_UserProfile_DD_ID (final int MobileUI_UserProfile_DD_ID) { if (MobileUI_UserProfile_DD_ID < 1) set_ValueNoCheck (COLUMNNAME_MobileUI_UserProfile_DD_ID, null); else...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_MobileUI_UserProfile_DD.java
1
请完成以下Java代码
public DisplayMode getDisplayMode(final JSONViewDataType viewType) { final ClassViewColumnLayoutDescriptor layout = layoutsByViewType.get(viewType); return layout != null ? layout.getDisplayMode() : DisplayMode.HIDDEN; } public int getSeqNo(final JSONViewDataType viewType) { final ClassViewColumnLayou...
{ DISPLAYED(true, false), HIDDEN(false, false), DISPLAYED_BY_SYSCONFIG(true, true), HIDDEN_BY_SYSCONFIG(false, true), ; private final boolean displayed; private final boolean configuredBySysConfig; DisplayMode(final boolean displayed, final boolean configuredBySysConfig) { this.displayed = displa...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\view\descriptor\annotation\ViewColumnHelper.java
1
请在Spring Boot框架中完成以下Java代码
public List<FieldInfo> processJsonObjectToFieldList(JSONObject jsonObject) { // field List List<FieldInfo> fieldList = new ArrayList<FieldInfo>(); for (String jsonField : jsonObject.keySet()) { FieldInfo fieldInfo = new FieldInfo(); fieldInfo.setFieldName(jsonField); ...
FieldInfo fieldInfo2 = new FieldInfo(); fieldInfo2.setFieldName(arrayObject.toString()); fieldInfo2.setColumnName(arrayObject.toString()); fieldInfo2.setFieldClass(String.class.getSimpleName()); fieldInfo2.setFieldComment("children:" + arra...
repos\SpringBootCodeGenerator-master\src\main\java\com\softdev\system\generator\service\impl\parser\JsonParserServiceImpl.java
2
请完成以下Java代码
public int getC_CurrencyTo_ID() { if (m_C_CurrencyTo_ID == 0) { m_C_CurrencyTo_ID = getParent().getC_Currency_ID(); } return m_C_CurrencyTo_ID; } // getC_CurrencyTo_ID /** * Before Save * * @param newRecord new * @return true */ @Override protected boolean beforeSave(boolean newRecord) { ...
@Override protected boolean afterSave(boolean newRecord, boolean success) { updateEntry(); return success; } // afterSave /** * After Delete * * @param success success * @return success */ @Override protected boolean afterDelete(boolean success) { updateEntry(); return success; } // afterDel...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java-legacy\org\compiere\model\MDunningRunLine.java
1
请完成以下Java代码
public static Consumer<Map<String, Object>> principal(Authentication principal) { Assert.notNull(principal, "principal cannot be null"); return (attributes) -> attributes.put(PRINCIPAL_ATTR_NAME, principal); } /** * Modifies the {@link ClientHttpRequest#getAttributes() attributes} to include the * {@link Aut...
private static Authentication createAuthentication(String principalName) { return new AbstractAuthenticationToken(Collections.emptySet()) { @Override public Object getPrincipal() { return principalName; } @Override public Object getCredentials() { return null; } }; } }
repos\spring-security-main\oauth2\oauth2-client\src\main\java\org\springframework\security\oauth2\client\web\client\RequestAttributePrincipalResolver.java
1
请完成以下Java代码
public int getAD_Scheduler_ID() { return get_ValueAsInt(COLUMNNAME_AD_Scheduler_ID); } @Override public void setAD_Table_ID (final int AD_Table_ID) { if (AD_Table_ID < 1) set_Value (COLUMNNAME_AD_Table_ID, null); else set_Value (COLUMNNAME_AD_Table_ID, AD_Table_ID); } @Override public int getAD...
public java.lang.String getErrorMsg() { return get_ValueAsString(COLUMNNAME_ErrorMsg); } @Override public void setIsProcessing (final boolean IsProcessing) { set_Value (COLUMNNAME_IsProcessing, IsProcessing); } @Override public boolean isProcessing() { return get_ValueAsBoolean(COLUMNNAME_IsProcessin...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_PInstance.java
1
请完成以下Java代码
default byte[] getListenerInfo() { throw new UnsupportedOperationException("This container does not support retrieving the listener info"); } /** * If this container has child containers, return true if at least one child is running. If there are not * child containers, returns {@link #isRunning()}. * @retur...
* @param topic the topic. * @param partition the partition. * @return the container. */ default MessageListenerContainer getContainerFor(String topic, int partition) { return this; } /** * Notify a parent container that a child container has stopped. * @param child the container. * @param reason the r...
repos\spring-kafka-main\spring-kafka\src\main\java\org\springframework\kafka\listener\MessageListenerContainer.java
1
请在Spring Boot框架中完成以下Java代码
public class JSONPatchEvent<PathType> { @Schema(description = "operation") public static enum JSONOperation { replace; } @JsonProperty("op") private final JSONOperation op; @JsonProperty("path") private final PathType path; @JsonProperty("value") private final Object value; private JSONPatchEvent( @Js...
@SuppressWarnings("unchecked") final List<Integer> intList = (List<Integer>)value; return intList; } else if (value instanceof String) { return ImmutableList.copyOf(DocumentIdsSelection.ofCommaSeparatedString(value.toString()).toIntSet()); } else { throw new AdempiereException("Cannot convert va...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\datatypes\json\JSONPatchEvent.java
2
请完成以下Java代码
public final class ElementPermissions extends AbstractPermissions<ElementPermission> { public static Builder builder() { return new Builder(); } private final String elementTableName; public ElementPermissions(final Builder builder) { super(builder); this.elementTableName = builder.getElementTableName(); ...
private String elementTableName; @Override protected ElementPermissions createPermissionsInstance() { return new ElementPermissions(this); } public Builder setElementTableName(final String elementTableName) { this.elementTableName = elementTableName; return this; } public String getElementTa...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\security\permissions\ElementPermissions.java
1
请完成以下Java代码
public class ADProcessADValidator extends AbstractADValidator<I_AD_Process> { @Override public void validate(@NonNull final I_AD_Process process) { String classname = process.getClassname(); if (Check.isBlank(classname)) { return; } classname = classname.trim(); // Skip @script references if (clas...
message.append("Error on ").append(process).append(" (IsActive=").append(process.isActive()).append("): "); } catch (final Exception e) { message.append("Error (InterfaceWrapperHelper exception: ").append(e.getLocalizedMessage()).append(") on ").append(violation.getItem()).append(": "); } message.append(v...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\appdict\validation\spi\impl\ADProcessADValidator.java
1
请完成以下Java代码
public String getDescription() { return this.description; } public String getTelephoneNumber() { return this.telephoneNumber; } protected void populateContext(DirContextAdapter adapter) { adapter.setAttributeValue("givenName", this.givenName); adapter.setAttributeValue("sn", this.sn); adapter.setAttribu...
public void setCn(String[] cn) { ((Person) this.instance).cn = Arrays.asList(cn); } public void addCn(String value) { ((Person) this.instance).cn.add(value); } public void setTelephoneNumber(String tel) { ((Person) this.instance).telephoneNumber = tel; } public void setDescription(String desc) {...
repos\spring-security-main\ldap\src\main\java\org\springframework\security\ldap\userdetails\Person.java
1
请在Spring Boot框架中完成以下Java代码
public class FilterServiceImpl extends ServiceImpl implements FilterService { public Filter newTaskFilter() { return commandExecutor.execute(new CreateFilterCmd(EntityTypes.TASK)); } public Filter newTaskFilter(String filterName) { return newTaskFilter().setName(filterName); } public FilterQuery cr...
public <T, Q extends Query<?, T>> List<T> listPage(String filterId, Q extendingQuery, int firstResult, int maxResults) { return (List<T>) commandExecutor.execute(new ExecuteFilterListPageCmd(filterId, extendingQuery, firstResult, maxResults)); } @SuppressWarnings("unchecked") public <T> T singleResult(String...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\FilterServiceImpl.java
2
请完成以下Java代码
public de.metas.inoutcandidate.model.I_M_ShipmentSchedule_ExportAudit getM_ShipmentSchedule_ExportAudit() { return get_ValueAsPO(COLUMNNAME_M_ShipmentSchedule_ExportAudit_ID, de.metas.inoutcandidate.model.I_M_ShipmentSchedule_ExportAudit.class); } @Override public void setM_ShipmentSchedule_ExportAudit(final de....
return get_ValueAsPO(COLUMNNAME_M_ShipmentSchedule_ID, de.metas.inoutcandidate.model.I_M_ShipmentSchedule.class); } @Override public void setM_ShipmentSchedule(final de.metas.inoutcandidate.model.I_M_ShipmentSchedule M_ShipmentSchedule) { set_ValueFromPO(COLUMNNAME_M_ShipmentSchedule_ID, de.metas.inoutcandidate....
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java-gen\de\metas\inoutcandidate\model\X_M_ShipmentSchedule_ExportAudit_Item.java
1
请完成以下Java代码
public String getProcessDefinitionId() { return processDefinitionId; } public void setProcessDefinitionId(String processDefinitionId) { this.processDefinitionId = processDefinitionId; } public String getActivityId() { return activityId; } public void setActivityId(String activityId) { thi...
this.tenantId = tenantId; } public String getJobDefinitionId() { return jobDefinitionId; } public void setJobDefinitionId(String jobDefinitionId) { this.jobDefinitionId = jobDefinitionId; } public String getHistoryConfiguration() { return historyConfiguration; } public void setHistoryCon...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\incident\IncidentContext.java
1
请完成以下Java代码
public void setA_Period_9 (BigDecimal A_Period_9) { set_Value (COLUMNNAME_A_Period_9, A_Period_9); } /** Get A_Period_9. @return A_Period_9 */ public BigDecimal getA_Period_9 () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_A_Period_9); if (bd == null) return Env.ZERO; return bd; } /** Se...
Optional short description of the record */ public void setDescription (String Description) { set_Value (COLUMNNAME_Description, Description); } /** Get Description. @return Optional short description of the record */ public String getDescription () { return (String)get_Value(COLUMNNAME_Description)...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_A_Asset_Spread.java
1