instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
public BigDecimal getQtyPicked() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_QtyPicked); return bd != null ? bd : BigDecimal.ZERO; } @Override public void setQtyToPick (final BigDecimal QtyToPick) { set_ValueNoCheck (COLUMNNAME_QtyToPick, QtyToPick); } @Override public BigDecimal getQtyToP...
{ return get_ValueAsString(COLUMNNAME_RejectReason); } /** * Status AD_Reference_ID=541435 * Reference name: DD_OrderLine_Schedule_Status */ public static final int STATUS_AD_Reference_ID=541435; /** NotStarted = NS */ public static final String STATUS_NotStarted = "NS"; /** InProgress = IP */ public s...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java-gen\de\metas\handlingunits\model\X_DD_Order_MoveSchedule.java
1
请在Spring Boot框架中完成以下Java代码
public PageBean queryAccountHistoryListPage(PageParam pageParam, String accountNo){ Map<String, Object> params = new HashMap<String, Object>(); params.put("accountNo", accountNo); return rpAccountDao.listPage(pageParam, params); } /** * 分页查询账户历史单角色 */ public PageBean queryAccountHistoryListPageByRole(Page...
* 根据参数分页查询账户. * * @param pageParam * 分页参数. * @param params * 查询参数,可以为null. * @return AccountList. * @throws BizException */ public PageBean queryAccountListPage(PageParam pageParam, Map<String, Object> params) { return rpAccountDao.listPage(pageParam, params); } /** * 根据参...
repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\account\service\impl\RpAccountQueryServiceImpl.java
2
请完成以下Java代码
public void cacheReset() { viewActionInstancesByViewId.reset(); } @ToString private static final class ViewActionInstancesList { private final String viewId; private final AtomicInteger nextIdSupplier = new AtomicInteger(1); private final ConcurrentHashMap<DocumentId, ViewActionInstance> instances = new C...
final int nextId = nextIdSupplier.incrementAndGet(); return DocumentId.ofString(viewId + "_" + nextId); } public static String extractViewId(@NonNull final DocumentId pinstanceId) { final String pinstanceIdStr = pinstanceId.toJson(); final int idx = pinstanceIdStr.indexOf("_"); return pinstanceIdStr....
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\process\view\ViewProcessInstancesRepository.java
1
请完成以下Java代码
public Optional<Document> getDocumentById(final DocumentId documentId) { final Document document = DocumentQuery.builder(entityDescriptor) .setParentDocument(parentDocument) .setRecordId(documentId) .retriveDocumentOrNull(); if (document == null) { return Optional.empty(); } return Optional.o...
public DocumentValidStatus checkAndGetValidStatus(final OnValidStatusChanged onValidStatusChanged) { return DocumentValidStatus.documentValid(); } @Override public boolean hasChangesRecursivelly() { return false; } @Override public void saveIfHasChanges() { } @Override public void markStaleAll() { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\model\HighVolumeReadonlyIncludedDocumentsCollection.java
1
请完成以下Java代码
public JXTaskPane getComponent() { return panel; } public int getTopNodeId() { return topNodeId; } public void removeAllItems() { toolbar.removeAll(); } public void addFavorite(final MTreeNode node) { if (node2item.get(node) != null) { // already added return; } final FavoriteItem item...
} public boolean isEmpty() { return node2item.isEmpty(); } public void removeItem(final FavoriteItem item) { Check.assumeNotNull(item, "item not null"); final MTreeNode node = item.getNode(); final JComponent itemComp = item.getComponent(); node2item.remove(node); component2item.remove(itemComp); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\grid\tree\FavoritesGroup.java
1
请完成以下Java代码
default CountryId getDefaultCountryId() { return CountryId.ofRepoId(getDefault(Env.getCtx()).getC_Country_ID()); } @Deprecated I_C_Country get(Properties ctx, int C_Country_ID); /** * Return Countries as Array * * @param ctx * context * @return countries */ List<I_C_Country> getCountrie...
I_C_Country retrieveCountryByCountryCode(String countryCode); CountryId getCountryIdByCountryCode(String countryCode); CountryId getCountryIdByCountryCode(@NonNull CountryCode countryCode); CountryId getCountryIdByCountryCodeOrNull(String countryCode); String retrieveCountryCode2ByCountryId(CountryId countryId)...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\location\ICountryDAO.java
1
请完成以下Java代码
public static <S, T> void addToMapOfSets(Map<S, Set<T>> map, S key, T value) { Set<T> set = map.get(key); if (set == null) { set = new HashSet<>(); map.put(key, set); } set.add(value); } public static <S, T> void addCollectionToMapOfSets(Map<S, Set<T>> map, S key, Collection<T> values) ...
return result; } public static <T> T getLastElement(final Iterable<T> elements) { T lastElement = null; if (elements instanceof List) { return ((List<T>) elements).get(((List<T>) elements).size() - 1); } for (T element : elements) { lastElement = element; } return lastElement...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\util\CollectionUtil.java
1
请在Spring Boot框架中完成以下Java代码
public class MealWithMultipleEntities { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "id") private Long id; @Column(name = "name") private String name; @Column(name = "description") private String description; @Column(name = "price") private BigDecim...
public void setDescription(String description) { this.description = description; } public BigDecimal getPrice() { return price; } public void setPrice(BigDecimal price) { this.price = price; } public AllergensAsEntity getAllergens() { return allergens; } ...
repos\tutorials-master\persistence-modules\java-jpa-2\src\main\java\com\baeldung\jpa\multipletables\multipleentities\MealWithMultipleEntities.java
2
请在Spring Boot框架中完成以下Java代码
public class ButtonEventHandlerController { private static final Logger logger = LoggerFactory.getLogger(ButtonEventHandlerController.class); @FXML private Button button; @FXML private Label label; @FXML private void initialize() { button.setText("Click me"); handleClick...
button.setOnAction(event -> logger.info("OnAction2 {}", event)); } private void handleHoverEffect() { Effect shadow = new DropShadow(); button.setOnMouseEntered(e -> button.setEffect(shadow)); button.setOnMouseExited(e -> button.setEffect(null)); } private void reuseRightClickE...
repos\tutorials-master\javafx\src\main\java\com\baeldung\button\eventhandler\ButtonEventHandlerController.java
2
请完成以下Java代码
public class ClassDelegateExecutionListener extends ClassDelegate implements ExecutionListener { protected static final BpmnBehaviorLogger LOG = ProcessEngineLogger.BPMN_BEHAVIOR_LOGGER; public ClassDelegateExecutionListener(String className, List<FieldDeclaration> fieldDeclarations) { super(className, fieldD...
} protected ExecutionListener getExecutionListenerInstance() { Object delegateInstance = instantiateDelegate(className, fieldDeclarations); if (delegateInstance instanceof ExecutionListener) { return (ExecutionListener) delegateInstance; } else if (delegateInstance instanceof JavaDelegate) { ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\bpmn\listener\ClassDelegateExecutionListener.java
1
请完成以下Java代码
public Builder setFromPreviousResult(@Nullable final KPIDataResult previousResult) { if (previousResult == null) { builtDatasets(ImmutableList.of()); range(null); } else { builtDatasets(previousResult.getDatasets()); range(previousResult.getRange()); datasetsComputedTime(previousRes...
{ this.datasetsComputeDuration = datasetsComputeDuration; return this; } public void putValue( @NonNull final String dataSetName, @NonNull final KPIDataSetValuesAggregationKey dataSetValueKey, @NonNull final String fieldName, @NonNull final KPIDataValue value) { dataSet(dataSetName).putV...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\kpi\data\KPIDataResult.java
1
请完成以下Java代码
public class JaxbParser { private File file; public JaxbParser(File file) { this.file = file; } public Tutorials getFullDocument() { try { JAXBContext jaxbContext = JAXBContext.newInstance(Tutorials.class); Unmarshaller jaxbUnmarshaller = jaxbContext.createUnma...
tut.setAuthor("Jaxb author"); tutorials.getTutorial().add(tut); try { JAXBContext jaxbContext = JAXBContext.newInstance(Tutorials.class); Marshaller jaxbMarshaller = jaxbContext.createMarshaller(); jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); ...
repos\tutorials-master\xml-modules\xml\src\main\java\com\baeldung\xml\JaxbParser.java
1
请完成以下Java代码
public String getTransitionInstanceId() { return transitionInstanceId; } public void setTransitionInstanceId(String transitionInstanceId) { this.transitionInstanceId = transitionInstanceId; } public String getAncestorActivityInstanceId() { return ancestorActivityInstanceId; } public void setAnce...
ProcessEngine engine, ObjectMapper mapper) { if (variables != null) { for (Map.Entry<String, TriggerVariableValueDto> variableValue : variables.entrySet()) { TriggerVariableValueDto value = variableValue.getValue(); if (value.isLocal()) { builder.setVariableLocal(variableValue.getK...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\runtime\modification\ProcessInstanceModificationInstructionDto.java
1
请完成以下Java代码
public Integer getAdminCount() { return adminCount; } public void setAdminCount(Integer adminCount) { this.adminCount = adminCount; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; ...
} public void setSort(Integer sort) { this.sort = sort; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").app...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\UmsRole.java
1
请完成以下Java代码
private final void reportAD_Issue(final ILoggingEvent event) { // Skip creating the issue if database connection is not available or if the system was not configured to AutoReportError if (!DB.isConnected()) { return; } final IErrorManager errorManager = Services.get(IErrorManager.class); errorManager....
} return callerData[0].getMethodName(); } private static final Throwable extractThrowable(final ILoggingEvent event) { if (event == null) { return null; } final IThrowableProxy throwableProxy = event.getThrowableProxy(); if (throwableProxy instanceof ThrowableProxy) { return ((ThrowableProxy)th...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\logging\MetasfreshIssueAppender.java
1
请完成以下Java代码
public Result processWorkPackage(@NonNull final I_C_Queue_WorkPackage workpackage, final String localTrxName) { trxManager.assertTrxNameNull(localTrxName); final Properties ctx = InterfaceWrapperHelper.getCtx(workpackage); final int adClientId = workpackage.getAD_Client_ID(); Check.assume(adClientId > 0, "No ...
{ final AsyncBatchId asyncBatchId = AsyncBatchId.ofRepoIdOrNull(getC_Queue_WorkPackage().getC_Async_Batch_ID()); final IInvoiceCandUpdateSchedulerRequest request = InvoiceCandUpdateSchedulerRequest.of(ctx, localTrxName, asyncBatchId); schedule(request); Loggables.addLog("Scheduled another workpackage ...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\invoicecandidate\async\spi\impl\UpdateInvalidInvoiceCandidatesWorkpackageProcessor.java
1
请完成以下Java代码
private IExternalSystemChildConfigId getExternalSystemChildConfigId(@NonNull final GlobalQRCode scannedQRCode) { if (ResourceQRCode.isTypeMatching(scannedQRCode)) { return getExternalSystemChildConfigId(ResourceQRCode.ofGlobalQRCode(scannedQRCode)); } else if (ExternalSystemConfigQRCode.isTypeMatching(scann...
@NonNull private IExternalSystemChildConfigId getExternalSystemChildConfigId(@NonNull final ResourceQRCode resourceQRCode) { final Resource externalSystemResource = resourceService.getById(resourceQRCode.getResourceId()); if (!externalSystemResource.isExternalSystem()) { throw new AdempiereException(NOT_AN_E...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing.rest-api\src\main\java\de\metas\manufacturing\workflows_api\activity_handlers\callExternalSystem\CallExternalSystemActivityHandler.java
1
请完成以下Java代码
public String getName() { return name; } public TenantProfileData getProfileData() { if (profileData != null) { return profileData; } else { if (profileDataBytes != null) { try { profileData = mapper.readValue(new ByteArrayInpu...
} @JsonIgnore public DefaultTenantProfileConfiguration getDefaultProfileConfiguration() { return getProfileConfiguration().orElse(null); } public TenantProfileData createDefaultTenantProfileData() { TenantProfileData tpd = new TenantProfileData(); tpd.setConfiguration(new Defau...
repos\thingsboard-master\common\data\src\main\java\org\thingsboard\server\common\data\TenantProfile.java
1
请完成以下Java代码
public I_M_AttributeSetInstance getM_AttributeSetInstance() { return olCand.getM_AttributeSetInstance(); } @Override public int getM_AttributeSetInstance_ID() { return olCand.getM_AttributeSetInstance_ID(); } @Override public void setM_AttributeSetInstance(final I_M_AttributeSetInstanc...
@Override public String toString() { return "IAttributeSetInstanceAware[" + olCand.toString() + "]"; } @Override public void setM_AttributeSetInstance_ID(final int M_AttributeSetInstance_ID) { olCand.setM_AttributeSetInstance_ID(M_AttributeSetInstance_ID); } }; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.salescandidate.base\src\main\java\de\metas\ordercandidate\spi\impl\OLCandASIAwareFactory.java
1
请完成以下Java代码
public TenantId getTenantId() { return TenantId.SYS_TENANT_ID; } @Override public EntityId getOriginatorEntityId() { return TenantId.SYS_TENANT_ID; } @Override public DeduplicationStrategy getDeduplicationStrategy() { return DeduplicationStrategy.ONLY_MATCHING; } ...
} @Override public long getDefaultDeduplicationDuration() { return TimeUnit.HOURS.toMillis(1); } @Override public NotificationRuleTriggerType getType() { return NotificationRuleTriggerType.RESOURCES_SHORTAGE; } public enum Resource { CPU, RAM, STORAGE } }
repos\thingsboard-master\common\data\src\main\java\org\thingsboard\server\common\data\notification\rule\trigger\ResourcesShortageTrigger.java
1
请完成以下Java代码
public void setC_UOM_ID (final int C_UOM_ID) { if (C_UOM_ID < 1) set_Value (COLUMNNAME_C_UOM_ID, null); else set_Value (COLUMNNAME_C_UOM_ID, C_UOM_ID); } @Override public int getC_UOM_ID() { return get_ValueAsInt(COLUMNNAME_C_UOM_ID); } @Override public void setC_Workplace_ID (final int C_Workp...
} @Override public void setProcessed (final boolean Processed) { set_Value (COLUMNNAME_Processed, Processed); } @Override public boolean isProcessed() { return get_ValueAsBoolean(COLUMNNAME_Processed); } @Override public void setQtyToPick (final BigDecimal QtyToPick) { set_Value (COLUMNNAME_QtyToPi...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java-gen\de\metas\inoutcandidate\model\X_M_Picking_Job_Schedule.java
1
请完成以下Java代码
public void setPage_Size (int Page_Size) { set_ValueNoCheck (COLUMNNAME_Page_Size, Integer.valueOf(Page_Size)); } /** Get Page_Size. @return Page_Size */ @Override public int getPage_Size () { Integer ii = (Integer)get_Value(COLUMNNAME_Page_Size); if (ii == null) return 0; return ii.intValue(); ...
@Override public void setTotal_Size (int Total_Size) { set_ValueNoCheck (COLUMNNAME_Total_Size, Integer.valueOf(Total_Size)); } /** Get Total_Size. @return Total_Size */ @Override public int getTotal_Size () { Integer ii = (Integer)get_Value(COLUMNNAME_Total_Size); if (ii == null) return 0; ret...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\de\metas\dao\selection\model\X_T_Query_Selection_Pagination.java
1
请在Spring Boot框架中完成以下Java代码
private AnnotationAttributes resolveAnnotationAttributes(List<AnnotationAttributes> annotationAttributesList, int index) { if (index < annotationAttributesList.size()) { return annotationAttributesList.get(index); } else { AnnotationAttributes newAnnotationAttributes = new AnnotationAttributes(); ann...
// TODO remove; not needed when using @AliasFor. /* Assert.isTrue(names.length * values.length == 0, String.format("The name and value attributes of @%s are exclusive", ConditionalOnMissingProperty.class.getSimpleName())); */ return names.length > 0 ? names : values; } private String getPrefix(Annota...
repos\spring-boot-data-geode-main\spring-geode-project\spring-geode-autoconfigure\src\main\java\org\springframework\geode\boot\autoconfigure\condition\OnMissingPropertyCondition.java
2
请完成以下Java代码
public List<CaseSentryPartEntity> executeList(CommandContext commandContext, Page page) { checkQueryOk(); List<CaseSentryPartEntity> result = commandContext .getCaseSentryPartManager() .findCaseSentryPartByQueryCriteria(this, page); return result; } // getters /////////////////////////////...
public String getSourceCaseExecutionId() { return sourceCaseExecutionId; } public String getStandardEvent() { return standardEvent; } public String getVariableEvent() { return variableEvent; } public String getVariableName() { return variableName; } public boolean isSatisfied() { ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cmmn\entity\runtime\CaseSentryPartQueryImpl.java
1
请完成以下Java代码
public void setTechnicalNote (final @Nullable java.lang.String TechnicalNote) { set_Value (COLUMNNAME_TechnicalNote, TechnicalNote); } @Override public java.lang.String getTechnicalNote() { return get_ValueAsString(COLUMNNAME_TechnicalNote); } @Override public void setValueMax (final @Nullable java.lang....
{ return get_ValueAsString(COLUMNNAME_ValueMin); } @Override public void setVersion (final BigDecimal Version) { set_Value (COLUMNNAME_Version, Version); } @Override public BigDecimal getVersion() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_Version); return bd != null ? bd : BigDecimal.Z...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_Column.java
1
请完成以下Java代码
private void assertLastHUTrxWasThisInventoryLine(@NonNull final InventoryLine line, @NonNull final InventoryLineHU lineHU) { final HuId huId = Objects.requireNonNull(lineHU.getHuId()); final InventoryLineId lineId = Objects.requireNonNull(line.getId()); if (!huTransactionBL.isLatestHUTrx(huId, TableRecordReferen...
.setDateTrx(inventory.getMovementDate()) .addModelIds(topLevelHUIds) .setReferencedModel(inventory) .restoreFromSnapshot(); } private void reverseEmptiesMovements(final I_M_Inventory inventory) { final InventoryId inventoryId = InventoryId.ofRepoId(inventory.getM_Inventory_ID()); movementDAO.retrie...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\inventory\interceptor\M_Inventory.java
1
请完成以下Java代码
public boolean isLastAppendedIsSeparator() { return lastAppendedIsSeparator; } public String getSeparator() { return separator; } public TokenizedStringBuilder append(final Object obj) { if (autoAppendSeparator) { appendSeparatorIfNeeded(); } sb.append(obj); lastAppendedIsSeparator = false;
return this; } public TokenizedStringBuilder appendSeparatorIfNeeded() { if (lastAppendedIsSeparator) { return this; } if (sb.length() <= 0) { return this; } sb.append(separator); lastAppendedIsSeparator = true; return this; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\org\adempiere\util\text\TokenizedStringBuilder.java
1
请完成以下Java代码
private void appendForwarded(URI uri) { String forwarded = headers.getFirst("forwarded"); if (forwarded != null) { forwarded = forwarded + ","; } else { forwarded = ""; } forwarded = forwarded + forwarded(uri, exchange.getRequest().getHeaders().getFirst("host")); headers.set("forwarded", forwarded);...
*/ private @Nullable Mono<Object> getRequestBody() { for (String key : bindingContext.getModel().asMap().keySet()) { if (key.startsWith(BindingResult.MODEL_KEY_PREFIX)) { BindingResult result = (BindingResult) bindingContext.getModel().asMap().get(key); Object target = result.getTarget(); if (target !...
repos\spring-cloud-gateway-main\spring-cloud-gateway-proxyexchange-webflux\src\main\java\org\springframework\cloud\gateway\webflux\ProxyExchange.java
1
请完成以下Java代码
protected List<ExecutionEntity> fetchExecutionsForProcessInstance(ExecutionEntity execution) { List<ExecutionEntity> executions = new ArrayList<ExecutionEntity>(); executions.addAll(execution.getExecutions()); for (ExecutionEntity child : execution.getExecutions()) { executions.addAll(fetchExecutionsF...
return leaves; } /** * event-scope executions are not considered in this mapping and must be ignored */ protected boolean isLeaf(ExecutionEntity execution) { if (CompensationBehavior.isCompensationThrowing(execution)) { return true; } else { return !execution.isEventScope() && execu...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\ActivityExecutionTreeMapping.java
1
请在Spring Boot框架中完成以下Java代码
class ChatbotService { private static final Logger logger = LoggerFactory.getLogger(ChatbotService.class); private final ChatClient primaryChatClient; private final ChatClient secondaryChatClient; private final ChatClient tertiaryChatClient; ChatbotService( ChatClient primaryChatClient, ...
try { return secondaryChatClient .prompt(prompt) .call() .content(); } catch (Exception e) { logger.warn("Secondary LLM failure: {}", e.getMessage()); logger.debug("Attempting to process prompt '{}' with tertiary LLM", prompt); ...
repos\tutorials-master\spring-ai-modules\spring-ai-multiple-llms\src\main\java\com\baeldung\multillm\ChatbotService.java
2
请完成以下Java代码
public boolean isMethodRequiresTiming() { return methodTimingParameterType != null; } public Object convertToMethodTimingParameterType(final int timing) { if (methodTimingParameterType == null) { // shall not happen throw new AdempiereException("Method does not required timing parameter: " + getMethod(...
/** * Compares this instance with the given {@link Pointcut} by comparing their. * <ul> * <li>TableName</li> * <li>Method's name</li> * <li>Method's declaring class name</li> * </ul> * * @task https://metasfresh.atlassian.net/browse/FRESH-318 */ @Override public int compareTo(final Pointcut o) { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\modelvalidator\Pointcut.java
1
请完成以下Java代码
public ProcessPreconditionsResolution checkPreconditionsApplicable(final @NonNull IProcessPreconditionsContext context) { if (context.isNoSelection()) { return ProcessPreconditionsResolution.rejectBecauseNoSelection(); } if (!context.isSingleSelection()) { return ProcessPreconditionsResolution.rejectB...
} @Override @Nullable public Object getParameterDefaultValue(final IProcessDefaultParameter parameter) { final I_C_Doc_Outbound_Log docOutboundLog = ediDocOutBoundLogService.retreiveById(DocOutboundLogId.ofRepoId(getRecord_ID())); final EDIExportStatus fromExportStatus = EDIExportStatus.ofCode(docOutboundLog....
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\edi_desadv\ChangeEDI_ExportStatus_C_Doc_Outbound_Log_SingleView.java
1
请完成以下Java代码
public boolean isEnabled() { return true; } public void setUsername(String username) { this.username = username; } @JsonIgnore public Collection<? extends GrantedAuthority> getAuthorities() { return authorities; } public void setGrantedAuthorities(List<? extends Gr...
public void setRePassword(String rePassword) { this.rePassword = rePassword; } public String getHistoryPassword() { return historyPassword; } public void setHistoryPassword(String historyPassword) { this.historyPassword = historyPassword; } public Role getRole() { ...
repos\springBoot-master\springboot-springSecurity4\src\main\java\com\yy\example\bean\User.java
1
请完成以下Java代码
public MethodInfo getMethodInfo(ELContext context) { return new MethodInfo(method.getName(), method.getReturnType(), method.getParameterTypes()); } }; } else if (value instanceof MethodExpression) { return (MethodExpression) value; } th...
b.append(bindings != null && bindings.isVariableBound(index) ? "<var>" : name); } public int getIndex() { return index; } public String getName() { return name; } public int getCardinality() { return 0; } public AstNode getChild(int i) { return null; ...
repos\Activiti-develop\activiti-core-common\activiti-juel-jakarta\src\main\java\org\activiti\core\el\juel\tree\impl\ast\AstIdentifier.java
1
请完成以下Java代码
public IHUPackingMaterialsCollector<IHUPackingMaterialCollectorSource> getHUPackingMaterialsCollector() { return _huPackingMaterialsCollector; } @Override public IMutableHUContext setHUPackingMaterialsCollector(@NonNull final IHUPackingMaterialsCollector<IHUPackingMaterialCollectorSource> huPackingMaterialsColl...
public List<EmptyHUListener> getEmptyHUListeners() { return ImmutableList.copyOf(emptyHUListeners); } @Override public void flush() { final IAttributeStorageFactory attributesStorageFactory = _attributesStorageFactory; if(attributesStorageFactory != null) { attributesStorageFactory.flush(); } } @O...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\impl\MutableHUContext.java
1
请完成以下Java代码
protected ComponentDescription getProcessApplicationComponent(DeploymentUnit deploymentUnit) { return ProcessApplicationAttachments.getProcessApplicationComponent(deploymentUnit); } protected ServiceName getProcessEngineServiceName(ProcessArchiveXml processArchive) { ServiceName serviceName = null; if(...
// scan for process definitions if(PropertyHelper.getBooleanProperty(processArchive.getProperties(), ProcessArchiveXml.PROP_IS_SCAN_FOR_PROCESS_DEFINITIONS, process.isEmpty())) { //always use VFS scanner on JBoss final VfsProcessApplicationScanner scanner = new VfsProcessApplicationScanner(); St...
repos\camunda-bpm-platform-master\distro\wildfly\subsystem\src\main\java\org\camunda\bpm\container\impl\jboss\deployment\processor\ProcessApplicationDeploymentProcessor.java
1
请完成以下Java代码
public static boolean isEnablePackingInstructionsField() { return Services.get(ISysConfigBL.class).getBooleanValue(SYSCONFIG_EnablePackingInstructionsField, true); } public static boolean isLUFieldsEnabled(@NonNull final SOTrx soTrx) { return soTrx.isPurchase() && Services.get(ISysConfigBL.class).getBooleanVal...
public static boolean isEnableVatCodeField() { return Services.get(ISysConfigBL.class).getBooleanValue(SYSCONFIG_EnableVatCodeField, false); } public static boolean isEnableContractConditionsField() { return Services.get(ISysConfigBL.class).getBooleanValue(SYSCONFIG_EnableContractConditionsField, false); } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\quickinput\QuickInputConstants.java
1
请完成以下Java代码
public List<String> shortcutFieldOrder() { return Arrays.asList(PARTS_KEY); } @Override public GatewayFilter apply(Config config) { return new GatewayFilter() { @Override public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) { ServerHttpRequest request = exchange.getRequest();...
@Override public String toString() { return filterToStringCreator(StripPrefixGatewayFilterFactory.this).append("parts", config.getParts()) .toString(); } }; } public static class Config { private int parts = 1; public int getParts() { return parts; } public void setParts(int parts) { ...
repos\spring-cloud-gateway-main\spring-cloud-gateway-server-webflux\src\main\java\org\springframework\cloud\gateway\filter\factory\StripPrefixGatewayFilterFactory.java
1
请在Spring Boot框架中完成以下Java代码
public class JsonOrder { @NonNull @JsonProperty("id") String id; @NonNull @JsonProperty("billingAddressId") String billingAddressId; @NonNull @JsonProperty("orderCustomer") JsonOrderCustomer orderCustomer; @NonNull @JsonProperty("currencyId") String currencyId; @Nullable @JsonProperty("orderNumber") ...
JsonStateMachine stateMachine; @NonNull @JsonProperty("createdAt") ZonedDateTime createdAt; @Nullable @JsonProperty("updatedAt") ZonedDateTime updatedAt; @JsonIgnoreProperties(ignoreUnknown = true) @JsonPOJOBuilder(withPrefix = "") static class JsonOrderBuilder { } }
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\de-metas-camel-shopware6\src\main\java\de\metas\camel\externalsystems\shopware6\api\model\order\JsonOrder.java
2
请完成以下Java代码
public DbOperation deleteTaskMetricsByRemovalTime(Date currentTimestamp, Integer timeToLive, int minuteFrom, int minuteTo, int batchSize) { Map<String, Object> parameters = new HashMap<>(); // data inserted prior to now minus timeToLive-days can be removed Date removalTime = Date.from(currentTimestamp.toIns...
public List<String> findTaskMetricsForCleanup(int batchSize, Integer timeToLive, int minuteFrom, int minuteTo) { Map<String, Object> queryParameters = new HashMap<>(); queryParameters.put("currentTimestamp", ClockUtil.getCurrentTime()); queryParameters.put("timeToLive", timeToLive); if (minuteTo - minut...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\MeterLogManager.java
1
请完成以下Java代码
public class MoveCostsResult { private final AggregatedCostAmount outboundCosts; private final AggregatedCostAmount inboundCosts; @Builder(toBuilder = true) private MoveCostsResult( @NonNull final AggregatedCostAmount outboundCosts, @NonNull final AggregatedCostAmount inboundCosts) { this.outboundCosts = ...
} public CostAmount getInboundAmountToPost(@NonNull final AcctSchema as) { return inboundCosts.getTotalAmountToPost(as).getMainAmt(); } public MoveCostsResult add(@NonNull final MoveCostsResult partialResult) { return toBuilder() .outboundCosts(outboundCosts.add(partialResult.outboundCosts)) .inbound...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\costing\MoveCostsResult.java
1
请在Spring Boot框架中完成以下Java代码
public class PrivilegeResource { @Autowired protected IdmRestResponseFactory restResponseFactory; @Autowired protected IdmIdentityService identityService; @Autowired(required=false) protected IdmRestApiInterceptor restApiInterceptor; @ApiOperation(value = "Get a single privilege"...
if (privilege == null) { throw new FlowableObjectNotFoundException("Could not find privilege with id " + privilegeId, Privilege.class); } if (restApiInterceptor != null) { restApiInterceptor.accessPrivilegeInfoById(privilege); } List<User> users ...
repos\flowable-engine-main\modules\flowable-idm-rest\src\main\java\org\flowable\idm\rest\service\api\privilege\PrivilegeResource.java
2
请完成以下Java代码
protected final String doIt() { newImportProcess().run(); return MSG_OK; } private IImportProcess<ImportRecordType> newImportProcess() { final IImportProcess<ImportRecordType> importProcess = importProcessFactory.newImportProcess(importRecordClass) .async(false) .setCtx(getCtx()) .setLoggable(th...
.notifyUserId(getUserId()); customizeImportProcess(importProcess); return importProcess; } protected void customizeImportProcess(@NonNull final IImportProcess<ImportRecordType> importProcess) {} protected final QueryLimit getBatchSize() { int batchSize = sysConfigBL.getIntValue(SYSCONFIG_BatchSize, -1, ge...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\process\AbstractImportJavaProcess.java
1
请完成以下Java代码
public class MaxAllowedLengthVariableVerifier implements VariableLengthVerifier { protected final int maxAllowedLength; public MaxAllowedLengthVariableVerifier(int maxAllowedLength) { if (maxAllowedLength <= 0) { throw new FlowableIllegalArgumentException("The maximum allowed length must b...
scopeType = ScopeTypes.TASK; } else if (StringUtils.isNotEmpty(valueFields.getProcessInstanceId())) { scopeId = valueFields.getProcessInstanceId(); scopeType = ScopeTypes.BPMN; } else { scopeId = valueFields.getScopeId(); scopeType ...
repos\flowable-engine-main\modules\flowable-engine-common\src\main\java\org\flowable\common\engine\impl\variable\MaxAllowedLengthVariableVerifier.java
1
请完成以下Java代码
public String pingPong() { return "PONG"; } @GetMapping("/") public String home() { return String.format("%s is running!", environment.getProperty("spring.application.name", "UNKNOWN")); } public static class CustomerHolder { public static CustomerHolder from(Customer customer) { return new Custome...
this.cacheMiss = cacheMiss; return this; } public boolean isCacheMiss() { return this.cacheMiss; } public Customer getCustomer() { return customer; } } } // end::class[]
repos\spring-boot-data-geode-main\spring-geode-samples\caching\multi-site\src\main\java\example\app\caching\multisite\client\web\CustomerController.java
1
请完成以下Java代码
public class FallbackSpinObjectValueSerializer extends AbstractObjectValueSerializer { private final static SpinPluginLogger LOG = SpinPluginLogger.LOGGER; public static final String DESERIALIZED_OBJECTS_EXCEPTION_MESSAGE = "Fallback serializer cannot handle deserialized objects"; protected String serializatio...
@Override protected byte[] serializeToByteArray(Object deserializedObject) throws Exception { throw LOG.fallbackSerializerCannotDeserializeObjects(); } @Override protected Object deserializeFromByteArray(byte[] object, String objectTypeName) throws Exception { throw LOG.fallbackSerializerCannotDeserial...
repos\camunda-bpm-platform-master\engine-plugins\spin-plugin\src\main\java\org\camunda\spin\plugin\impl\FallbackSpinObjectValueSerializer.java
1
请完成以下Java代码
public class SetRemovalTimeToHistoricBatchesBuilderImpl implements SetRemovalTimeSelectModeForHistoricBatchesBuilder { protected HistoricBatchQuery query; protected List<String> ids; protected Mode mode; protected Date removalTime; protected CommandExecutor commandExecutor; public SetRemovalTimeToHistori...
mode = Mode.CLEARED_REMOVAL_TIME; return this; } public Batch executeAsync() { return commandExecutor.execute(new SetRemovalTimeToHistoricBatchesCmd(this)); } public HistoricBatchQuery getQuery() { return query; } public List<String> getIds() { return ids; } public Date getRemovalTim...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\history\SetRemovalTimeToHistoricBatchesBuilderImpl.java
1
请完成以下Java代码
public boolean hasNext() { return index < size; } @Override public KeyValuePair next() { if (index >= size) { throw new NoSuchElementException(); } else if (index == 0) { } ...
{ int startChar = charPoint + 1; int baseParent = getBase(parent); int from = parent; for (int i = startChar; i < charMap.getCharsetSize(); i++) { int to = baseParent + i; if (check.size() > to && check.get(to) == from) ...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\collection\trie\datrie\MutableDoubleArrayTrieInteger.java
1
请完成以下Java代码
public void setImportedBPartnerLanguage (final @Nullable java.lang.String ImportedBPartnerLanguage) { set_Value (COLUMNNAME_ImportedBPartnerLanguage, ImportedBPartnerLanguage); } @Override public java.lang.String getImportedBPartnerLanguage() { return get_ValueAsString(COLUMNNAME_ImportedBPartnerLanguage); ...
if (ImportedPartientBP_Group_ID < 1) set_Value (COLUMNNAME_ImportedPartientBP_Group_ID, null); else set_Value (COLUMNNAME_ImportedPartientBP_Group_ID, ImportedPartientBP_Group_ID); } @Override public int getImportedPartientBP_Group_ID() { return get_ValueAsInt(COLUMNNAME_ImportedPartientBP_Group_ID); ...
repos\metasfresh-new_dawn_uat\backend\vertical-healthcare_ch\forum_datenaustausch_ch.invoice_base\src\main\java-gen\de\metas\vertical\healthcare\forum_datenaustausch_ch\commons\model\X_HC_Forum_Datenaustausch_Config.java
1
请完成以下Java代码
public String getIsbn() { return isbn; } public void setIsbn(String isbn) { this.isbn = isbn; } public List<AuthorList> getAuthors() { return authors; } public void setAuthors(List<AuthorList> authors) { this.authors = authors; } @Override public b...
} return id != null && id.equals(((BookList) obj).id); } @Override public int hashCode() { return 2021; } @Override public String toString() { return "Book{" + "id=" + id + ", title=" + title + ", isbn=" + isbn + '}'; } }
repos\Hibernate-SpringBoot-master\HibernateSpringBootManyToManyBidirectionalListVsSet\src\main\java\com\bookstore\entity\BookList.java
1
请完成以下Java代码
protected ProcessPreconditionsResolution checkPreconditionsApplicable() { if (getSelectedRowIds().isEmpty()) { return ProcessPreconditionsResolution.rejectBecauseNoSelection().toInternal(); } return ProcessPreconditionsResolution.accept(); } @Override @RunOutOfTrx protected String doIt() { final Se...
if (selectedRowIds.isEmpty()) { return ImmutableSet.of(); } else if (selectedRowIds.isAll()) { return getView().streamByIds(selectedRowIds) .map(row -> row.getId().toId(SumUpTransactionId::ofRepoId)) .collect(ImmutableSet.toImmutableSet()); } else { return selectedRowIds.toIds(SumUpTran...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.sumup.webui\src\main\java\de\metas\payment\sumup\webui\process\SUMUP_Transaction_UpdateSelectedRows.java
1
请完成以下Java代码
public void endpointDeactivation(MessageEndpointFactory endpointFactory, ActivationSpec spec) { try { if(jobHandlerActivation != null) { jobHandlerActivation.stop(); } } finally { jobHandlerActivation = null; } } // unsupported (No TX Support) /////////////////////////////////...
@Override public int hashCode() { return 17; } @Override public boolean equals(Object other) { if (other == null) { return false; } if (other == this) { return true; } if (!(other instanceof JcaExecutorServiceConnector)) { return false; } return true; } }
repos\camunda-bpm-platform-master\javaee\jobexecutor-ra\src\main\java\org\camunda\bpm\container\impl\threading\ra\JcaExecutorServiceConnector.java
1
请完成以下Java代码
public class C_Printing_Queue_RecipientHandler extends PrintingQueueHandlerAdapter { public static C_Printing_Queue_RecipientHandler INSTANCE = new C_Printing_Queue_RecipientHandler(); private C_Printing_Queue_RecipientHandler() { } /** * Returns {@code true} if the given {@code item} has an {@code AD_User_ID ...
} } private void resetToUserPrintingQueueRecipient(final I_C_Printing_Queue queueItem) { final I_AD_User itemUser = Services.get(IUserDAO.class).getByIdInTrx(UserId.ofRepoId(queueItem.getAD_User_ID()), I_AD_User.class); final int userToPrintId = getEffectiveUserToPrint(itemUser, new HashSet<>()).getAD_User_ID...
repos\metasfresh-new_dawn_uat\backend\de.metas.printing\de.metas.printing.base\src\main\java\de\metas\printing\spi\impl\C_Printing_Queue_RecipientHandler.java
1
请完成以下Java代码
public E set(int index, E element) { E oldElement = (E) internal[index]; internal[index] = element; return oldElement; } @Override public void clear() { internal = new Object[0]; } @Override public int indexOf(Object object) { for (int i = 0; i < interna...
return new CustomIterator(); } @Override public ListIterator<E> listIterator() { return null; } @Override public ListIterator<E> listIterator(int index) { // ignored for brevity return null; } private class CustomIterator implements Iterator<E> { int in...
repos\tutorials-master\core-java-modules\core-java-collections-list-7\src\main\java\com\baeldung\list\CustomList.java
1
请完成以下Java代码
public Publisher<Boolean> apply(ServerWebExchange exchange) { Class inClass = config.getInClass(); Object cachedBody = exchange.getAttribute(CACHE_REQUEST_BODY_OBJECT_KEY); Mono<?> modifiedBody; // We can only read the body from the request once, once that happens if // we try to read the body agai...
private @Nullable Class inClass; private @Nullable Predicate predicate; private @Nullable Map<String, Object> hints; public @Nullable Class getInClass() { return inClass; } public Config setInClass(Class inClass) { this.inClass = inClass; return this; } public @Nullable Predicate getPredicat...
repos\spring-cloud-gateway-main\spring-cloud-gateway-server-webflux\src\main\java\org\springframework\cloud\gateway\handler\predicate\ReadBodyRoutePredicateFactory.java
1
请完成以下Java代码
public void actionPerformed(ActionEvent e) { showPopup(); } }); } private CColumnControlButton getCColumnControlButton() { final GridController currentGridController = this.parent.getCurrentGridController(); if (currentGridController == null) { return null; } final VTable table = currentGr...
final CColumnControlButton columnControlButton = table.getColumnControl(); return columnControlButton; } public void showPopup() { final CColumnControlButton columnControlButton = getCColumnControlButton(); if (columnControlButton == null) { return; } final AbstractButton button = action.getButton()...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java\org\compiere\apps\AGridColumnsToggle.java
1
请在Spring Boot框架中完成以下Java代码
public class AdWindowId implements RepoIdAware { @NonNull @JsonCreator public static AdWindowId ofRepoId(final int repoId) { return new AdWindowId(repoId); } @Nullable public static AdWindowId ofRepoIdOrNull(final int repoId) { return repoId > 0 ? new AdWindowId(repoId) : null; } public static Optional<Ad...
int repoId; private AdWindowId(final int repoId) { this.repoId = Check.assumeGreaterThanZero(repoId, "AD_Window_ID"); } @Override @JsonValue public int getRepoId() { return repoId; } public static boolean equals(@Nullable final AdWindowId id1, @Nullable final AdWindowId id2) { return Objects.equals(i...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\element\api\AdWindowId.java
2
请完成以下Java代码
protected void updateStatementDifferenceAndEndingBalance(final BankStatementId bankStatementId) { // StatementDifference { final String sql = "UPDATE C_BankStatement bs" + " SET StatementDifference=(SELECT COALESCE(SUM(StmtAmt),0) FROM C_BankStatementLine bsl " + "WHERE bsl.C_BankStatement_ID=bs.C_Ban...
@VisibleForTesting protected void updateBankStatementIsReconciledFlag(final BankStatementId bankStatementId) { final String sql = "UPDATE C_BankStatement bs" + " SET IsReconciled=(CASE WHEN (SELECT COUNT(1) FROM C_BankStatementLine bsl WHERE bsl.C_BankStatement_ID = bs.C_BankStatement_ID AND bsl.IsReconciled = ...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.base\src\main\java\de\metas\banking\model\validator\C_BankStatementLine.java
1
请完成以下Java代码
public ELContextBuilder withVariables(Map<String, Object> variables) { this.variables = variables; return this; } public ELContext build() { CompositeELResolver elResolver = createCompositeResolver(); return new ActivitiElContext(elResolver); } public ELContext buildWit...
} private void addResolvers(CompositeELResolver compositeResolver) { Stream.ofNullable(resolvers).flatMap(Collection::stream).forEach(compositeResolver::add); } private CompositeELResolver createCompositeResolver() { CompositeELResolver elResolver = new CompositeELResolver(); elRes...
repos\Activiti-develop\activiti-core-common\activiti-expression-language\src\main\java\org\activiti\core\el\ELContextBuilder.java
1
请在Spring Boot框架中完成以下Java代码
public class SecretService { private Map<String, String> secrets = new HashMap<>(); private SigningKeyResolver signingKeyResolver = new SigningKeyResolverAdapter() { @Override public byte[] resolveSigningKeyBytes(JwsHeader header, Claims claims) { return TextCodec.BASE64.decode(sec...
} public byte[] getHS256SecretBytes() { return TextCodec.BASE64.decode(secrets.get(SignatureAlgorithm.HS256.getJcaName())); } public byte[] getHS384SecretBytes() { return TextCodec.BASE64.decode(secrets.get(SignatureAlgorithm.HS384.getJcaName())); } public byte[] getHS512SecretByt...
repos\tutorials-master\security-modules\jjwt\src\main\java\io\jsonwebtoken\jjwtfun\service\SecretService.java
2
请完成以下Java代码
public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public Strin...
public void setCaptcha(String captcha) { this.captcha = captcha; } public String getCheckKey() { return checkKey; } public void setCheckKey(String checkKey) { this.checkKey = checkKey; } public String getLoginOrgCode() { return loginOrgCode; } public void setLoginOrgCode(Stri...
repos\JeecgBoot-main\jeecg-boot\jeecg-module-system\jeecg-system-biz\src\main\java\org\jeecg\modules\system\model\SysLoginModel.java
1
请完成以下Java代码
private static class Result { public static Result ofMap(@NonNull final Map<UserDashboardItemId, UserDashboardItemDataResponse> map) { return !map.isEmpty() ? new Result(map) : EMPTY; } public static Result ofCollection(@NonNull final Collection<UserDashboardItemDataResponse> itemDataList) { return of...
for (final Map.Entry<UserDashboardItemId, UserDashboardItemDataResponse> e : map.entrySet()) { final UserDashboardItemId itemId = e.getKey(); final UserDashboardItemDataResponse newValue = e.getValue(); final UserDashboardItemDataResponse oldValue = oldResult.get(itemId); if (oldValue == null || !new...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\dashboard\websocket\UserDashboardWebsocketProducer.java
1
请完成以下Java代码
public String getExecutorHandler() { return executorHandler; } public void setExecutorHandler(String executorHandler) { this.executorHandler = executorHandler; } public String getExecutorParam() { return executorParam; } public void setExecutorParam(String executorParam) { this.executorParam = executor...
this.glueRemark = glueRemark; } public Date getGlueUpdatetime() { return glueUpdatetime; } public void setGlueUpdatetime(Date glueUpdatetime) { this.glueUpdatetime = glueUpdatetime; } public String getChildJobId() { return childJobId; } public void setChildJobId(String childJobId) { this.childJobId ...
repos\JeecgBoot-main\jeecg-boot\jeecg-server-cloud\jeecg-visual\jeecg-cloud-xxljob\src\main\java\com\xxl\job\admin\core\model\XxlJobInfo.java
1
请完成以下Java代码
private String convertToDateTimeString(final ZonedDateTime dateTime) { if (dateTime == null) { return ""; } return dateTimeFormat.format(TimeUtil.asDate(dateTime)); } private String buildSummaryInfo(final RecordChangeLog changeLog) { final StringBuilder info = new StringBuilder(); // // Created ...
.append(": ").append(getUserName(lastChangedBy)) .append(" - ").append(convertToDateTimeString(lastChangedTS)).append("\n"); } // // TableName / RecordId(s) info.append(changeLog.getTableName()) .append(" (").append(changeLog.getRecordId().toInfoString()).append(")"); return info.toString(); } p...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\apps\RecordInfo.java
1
请在Spring Boot框架中完成以下Java代码
public class DemoController { Logger logger = LoggerFactory.getLogger(MachineRegistryController.class); @RequestMapping("/greeting") public String greeting() { return "index"; } @RequestMapping("/link") @ResponseBody public String link() throws BlockException { Entry entr...
} @Override public void run() { long startTime = System.currentTimeMillis(); ContextUtil.enter(String.valueOf(startTime)); while (!stop) { long now = System.currentTimeMillis(); if (now - startTime > time * 1000) { ...
repos\spring-boot-student-master\spring-boot-student-sentinel-dashboard\src\main\java\com\alibaba\csp\sentinel\dashboard\controller\DemoController.java
2
请完成以下Java代码
private JScrollPane getParentScrollPane(final JScrollPane scrollPane) { if (scrollPane == null) { return null; } Component parent = scrollPane.getParent(); while (parent != null) { if (parent instanceof JScrollPane) { return (JScrollPane)parent; } parent = parent.getParent(...
, event.getID() , event.getWhen() , event.getModifiers() , event.getX() , event.getY() , event.getClickCount() , event.isPopupTrigger() , event.getScrollType() , event.getScrollAmount() , event.getWheelRotation()); } } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\plaf\AdempiereScrollPaneUI.java
1
请完成以下Java代码
protected String doIt() { final String importTableName = getTableName(); final ImportDataDeleteMode deleteMode = getDeleteMode(); final String viewSqlWhereClause = getViewSqlWhereClause(DocumentIdsSelection.ALL) .map(SqlViewRowsWhereClause::toSqlString) .orElse(null); final String selectionSqlWhereClau...
if (rowIds.isEmpty()) { throw new AdempiereException("@NoSelection@"); } return getViewSqlWhereClause(rowIds); } private Optional<SqlViewRowsWhereClause> getViewSqlWhereClause(@NonNull final DocumentIdsSelection rowIds) { final IView view = getView(); final String importTableName = getTableName(); f...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\impexp\DeleteImportDataProcess.java
1
请完成以下Java代码
private final String getProductName(final IProductStorage productStorage) { if (productStorage == null) { return ""; } return Services.get(IProductBL.class).getProductName(productStorage.getProductId()); } }; ProductId getProductId(); I_C_UOM getC_UOM(); BigDecimal getQtyFree(); Quantity g...
/** * Gets storage Qty, converted to given UOM. * * @return Qty converted to given UOM. */ Quantity getQty(I_C_UOM uom); /** * @return storage capacity */ BigDecimal getQtyCapacity(); IAllocationRequest removeQty(IAllocationRequest request); IAllocationRequest addQty(IAllocationRequest request); v...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\storage\IProductStorage.java
1
请完成以下Java代码
void setKeyEntry(String alias, PrivateKey privateKey, String keyPassword, Certificate[] certificateChain) throws KeyStoreException { keyStore.setKeyEntry(alias, privateKey, keyPassword.toCharArray(), certificateChain); } void setCertificateEntry(String alias, Certificate certificate) throws KeyStoreExc...
Enumeration<String> aliases = keyStore.aliases(); while (aliases.hasMoreElements()) { String alias = aliases.nextElement(); keyStore.deleteEntry(alias); } keyStore = null; Path keyStoreFile = Paths.get(keyStoreName); Files.delete(keyStoreFile); ...
repos\tutorials-master\core-java-modules\core-java-security\src\main\java\com\baeldung\keystore\JavaKeyStore.java
1
请完成以下Java代码
public <V extends ModelElementInstance> ElementReferenceCollectionBuilder<V, T> idElementReferenceCollection(Class<V> referenceTargetType) { ChildElementCollectionImpl<T> collection = (ChildElementCollectionImpl<T>) build(); ElementReferenceCollectionBuilder<V,T> builder = new ElementReferenceCollectionBuilderI...
} this.referenceBuilder = referenceBuilder; modelBuildOperations.add(referenceBuilder); } public void performModelBuild(Model model) { ModelElementType elementType = model.getType(childElementType); if(elementType == null) { throw new ModelException(parentElementType +" declares undefined chi...
repos\camunda-bpm-platform-master\model-api\xml-model\src\main\java\org\camunda\bpm\model\xml\impl\type\child\ChildElementCollectionBuilderImpl.java
1
请完成以下Java代码
public String getStyleValue() { return null; } @Override public String getDValue() { return null; } @Override public void drawIcon(int imageX, int imageY, int iconPadding, ProcessDiagramSVGGraphics2D svgGenerator) { Element gTag = svgGenerator.getDOMFactory().createElem...
polygonTag2.setAttributeNS(null, "stroke-miterlimit", "10"); gTag.appendChild(polygonTag2); svgGenerator.getExtendDOMGroupManager().addElement(gTag); } @Override public String getStrokeValue() { return "#585858"; } @Override public String getStrokeWidth() { ret...
repos\Activiti-develop\activiti-core\activiti-image-generator\src\main\java\org\activiti\image\impl\icon\CompensateIconType.java
1
请完成以下Java代码
public class DDOrderUnpickCommand { @NonNull private final ITrxManager trxManager = Services.get(ITrxManager.class); @NonNull private final IWarehouseBL warehouseBL = Services.get(IWarehouseBL.class); @NonNull private final DDOrderMoveScheduleRepository ddOrderMoveScheduleRepository; @NonNull private final HUQRCode...
private void validateState() { if (!schedule.isPickedFrom()) { throw new AdempiereException("Not picked"); } if (schedule.isDropTo()) { throw new AdempiereException("Already dropped!"); } } private void deleteSchedule() { schedule.removePickedHUs(); ddOrderMoveScheduleRepository.save(schedul...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\distribution\ddorder\movement\schedule\commands\unpick\DDOrderUnpickCommand.java
1
请完成以下Java代码
public int getXmlColumnNumber() { return xmlColumnNumber; } public void setXmlColumnNumber(int xmlColumnNumber) { this.xmlColumnNumber = xmlColumnNumber; } public boolean equals(GraphicInfo ginfo) { if (this.getX() != ginfo.getX()) { return false; } ...
} // check for zero value in case we are comparing model value to BPMN DI value // model values do not have xml location information if (0 != this.getXmlColumnNumber() && 0 != ginfo.getXmlColumnNumber() && this.getXmlColumnNumber() != ginfo.getXmlColumnNumber()) { return false; ...
repos\flowable-engine-main\modules\flowable-dmn-model\src\main\java\org\flowable\dmn\model\GraphicInfo.java
1
请完成以下Java代码
public String getTypeName(String paramName) { return params.get(paramName).name; } @Override public String[] getParameterNames() { return params.keySet().toArray(new String[]{}); } public void addUuidParameter(String name, UUID value) { addParameter(name, value, UUID_TYPE.g...
private final String name; public Parameter(Object value, int type, String name) { this.value = value; this.type = type; this.name = name; } } public TenantId getTenantId() { return securityCtx.getTenantId(); } public CustomerId getCustomerI...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\sql\query\SqlQueryContext.java
1
请完成以下Java代码
public Authorization authorize(String requestMethod, String requestUri) { boolean secured = false; for (RequestMatcher pattern : deniedPaths) { Match match = pattern.match(requestMethod, requestUri); if (match != null) { secured = true; break; } } if (!secured) { ...
return match.authorize(); } } return null; } public List<RequestMatcher> getAllowedPaths() { return allowedPaths; } public List<RequestMatcher> getDeniedPaths() { return deniedPaths; } }
repos\camunda-bpm-platform-master\webapps\assembly\src\main\java\org\camunda\bpm\webapp\impl\security\filter\PathFilterRule.java
1
请在Spring Boot框架中完成以下Java代码
public String qrcodeBase64(String orderNo) { String message = ""; try { message = QRCodeGenerator.writeToStream(orderNo, 350, 350); } catch (Exception e) { e.printStackTrace(); } return message; } @RequestMapping("/hblog/qrcode/image1") publi...
e.printStackTrace(); } return message; } @RequestMapping("/hblog/qrcode/image2") public String hblogImages2() { String message = ""; try { QrCodeUtil.generate(// "http://www.liuhiahua.cn/", //content QrConfig.create().setIm...
repos\springboot-demo-master\qrcode\src\main\java\com\et\qrcode\controller\QRCodeController.java
2
请完成以下Java代码
public String getProcessDefinitionKey() { return processDefinitionKey; } public String getProcessDefinitionId() { return processDefinitionId; } public String getActivityId() { return activityId; } public String getProcessInstanceId() { return processInstanceId; } public String getPro...
public void setEventSubscriptions(List<EventSubscriptionQueryValue> eventSubscriptions) { this.eventSubscriptions = eventSubscriptions; } public String getIncidentId() { return incidentId; } public String getIncidentType() { return incidentType; } public String getIncidentMessage() { retu...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\ExecutionQueryImpl.java
1
请完成以下Java代码
public Object execute(CommandContext commandContext) { ProcessEngineConfigurationImpl processEngineConfiguration = CommandContextUtil.getProcessEngineConfiguration(commandContext); AttachmentEntity attachment = processEngineConfiguration.getAttachmentEntityManager().findById(attachmentId); Stri...
if (attachment.getTaskId() != null) { task = processEngineConfiguration.getTaskServiceConfiguration().getTaskService().getTask(attachment.getTaskId()); } if (attachment.getTaskId() != null) { processEngineConfiguration.getHistoryManager().createAttachmentComment(task, processIns...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\cmd\DeleteAttachmentCmd.java
1
请完成以下Java代码
private HttpStatus parseHttpStatus(@Nullable final String httpCode) { try { if (Check.isBlank(httpCode)) { throw new AdempiereException("HTTP Code is blank") .appendParametersToMessage() .setParameter("HttpCode", httpCode); } final int statusCode = Integer.parseInt(httpCode.trim()); ...
private HttpHeaders reconstructHeaders(@Nullable final String httpHeadersJson) { final HttpHeaders headers = new HttpHeaders(); if (Check.isNotBlank(httpHeadersJson)) { final HttpHeadersWrapper headersWrapper = HttpHeadersWrapper .fromJson(httpHeadersJson, JsonObjectMapperHolder.sharedJsonObjectMapper()...
repos\metasfresh-new_dawn_uat\backend\de.metas.business.rest-api-impl\src\main\java\de\metas\rest_api\v2\audit\ApiAuditController.java
1
请完成以下Java代码
public class KafkaMessageHeaders { private static Logger logger = LoggerFactory.getLogger(KafkaMessageHeaders.class); private static String TOPIC = "baeldung"; private static String MESSAGE_KEY = "message"; private static String MESSAGE_VALUE = "Hello World"; private static String HEADER_KEY = "we...
List<Header> headers = new ArrayList<>(); headers.add(new RecordHeader(HEADER_KEY, HEADER_VALUE.getBytes())); ProducerRecord<String, String> record1 = new ProducerRecord<>(TOPIC, null, MESSAGE_KEY, MESSAGE_VALUE, headers); producer.send(record1); ProducerRecord<String, String> record2 ...
repos\tutorials-master\apache-kafka\src\main\java\com\baeldung\kafka\headers\KafkaMessageHeaders.java
1
请在Spring Boot框架中完成以下Java代码
public final class ArtemisAutoConfiguration { @Bean @ConditionalOnMissingBean ArtemisConnectionDetails artemisConnectionDetails(ArtemisProperties properties) { return new PropertiesArtemisConnectionDetails(properties); } /** * Adapts {@link ArtemisProperties} to {@link ArtemisConnectionDetails}. */ static...
} @Override public @Nullable String getBrokerUrl() { return this.properties.getBrokerUrl(); } @Override public @Nullable String getUser() { return this.properties.getUser(); } @Override public @Nullable String getPassword() { return this.properties.getPassword(); } } }
repos\spring-boot-4.0.1\module\spring-boot-artemis\src\main\java\org\springframework\boot\artemis\autoconfigure\ArtemisAutoConfiguration.java
2
请完成以下Java代码
public boolean isTenantIdSet() { return isTenantIdSet; } protected <T> T execute(Command<T> command) { return commandExecutor.execute(command); } @Override public ConditionEvaluationBuilder processInstanceBusinessKey(String businessKey) { ensureNotNull("businessKey", businessKey); this.busin...
@Override public ConditionEvaluationBuilder tenantId(String tenantId) { ensureNotNull( "The tenant-id cannot be null. Use 'withoutTenantId()' if you want to evaluate conditional start event with a process definition which has no tenant-id.", "tenantId", tenantId); isTenantIdSet = true; th...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\ConditionEvaluationBuilderImpl.java
1
请完成以下Java代码
public SqlDocumentQueryBuilder noSorting(final boolean noSorting) { this.noSorting = noSorting; if (noSorting) { orderBys = DocumentQueryOrderByList.EMPTY; } return this; } public boolean isSorting() { return !isNoSorting(); } public SqlDocumentQueryBuilder setOrderBys(final DocumentQueryOrderByL...
} public static SqlComposedKey extractComposedKey( final DocumentId recordId, final List<? extends SqlEntityFieldBinding> keyFields) { final int count = keyFields.size(); if (count < 1) { throw new AdempiereException("Invalid composed key: " + keyFields); } final List<Object> composedKeyParts = r...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\model\sql\SqlDocumentQueryBuilder.java
1
请完成以下Java代码
public Path createDistributionFile(Path dir, String extension) { Path download = dir.resolveSibling(dir.getFileName() + extension); addTempFile(dir, download); return download; } private void addTempFile(Path group, Path file) { this.temporaryFiles.compute(group, (path, paths) -> { List<Path> newPaths = (...
ProjectDescription description = context.getBean(ProjectDescription.class); StringWriter out = new StringWriter(); BuildWriter buildWriter = context.getBeanProvider(BuildWriter.class).getIfAvailable(); if (buildWriter != null) { buildWriter.writeBuild(out); return out.toString().getBytes(); } else { ...
repos\initializr-main\initializr-web\src\main\java\io\spring\initializr\web\project\ProjectGenerationInvoker.java
1
请完成以下Java代码
public boolean isUpdate() { return updateMerge || updateRemove; } public boolean isAttemptUpdate() { return updateMerge || updateRemove || assertUnchanged; } } @JsonInclude(Include.NON_NULL) IfNotExists ifNotExists; @JsonInclude(Include.NON_NULL) IfExists ifExists; @Builder @JsonCreator priv...
@JsonProperty("ifExists") @Nullable final IfExists ifExists) { this.ifNotExists = CoalesceUtil.coalesce(ifNotExists, IfNotExists.FAIL); this.ifExists = CoalesceUtil.coalesce(ifExists, IfExists.DONT_UPDATE); } @JsonIgnore public boolean isFailIfNotExists() { return IfNotExists.FAIL.equals(ifNotExists); } ...
repos\metasfresh-new_dawn_uat\misc\de-metas-common\de-metas-common-rest_api\src\main\java\de\metas\common\rest_api\v1\SyncAdvise.java
1
请完成以下Java代码
public class ESRPaymentStringDataProvider extends AbstractPaymentStringDataProvider { public ESRPaymentStringDataProvider(final PaymentString paymentString) { super(paymentString); } @Override public List<org.compiere.model.I_C_BP_BankAccount> getC_BP_BankAccounts() { final PaymentString paymentString = getP...
final I_C_BP_BankAccount bpBankAccount = InterfaceWrapperHelper.newInstance(I_C_BP_BankAccount.class, contextProvider); Check.assume(bpartnerId > 0, "We assume the bPartnerId to be greater than 0. This={}", this); bpBankAccount.setC_BPartner_ID(bpartnerId); // bpBankAccount.setC_Bank_ID(C_Bank_ID); // introduce...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.esr\src\main\java\de\metas\payment\api\impl\ESRPaymentStringDataProvider.java
1
请完成以下Java代码
public void setIsOnDistinctICTypes (final boolean IsOnDistinctICTypes) { set_Value (COLUMNNAME_IsOnDistinctICTypes, IsOnDistinctICTypes); } @Override public boolean isOnDistinctICTypes() { return get_ValueAsBoolean(COLUMNNAME_IsOnDistinctICTypes); } @Override public void setIsSOTrx (final boolean IsSOTrx...
@Override public void setNegative_Amt_C_DocType_ID (final int Negative_Amt_C_DocType_ID) { if (Negative_Amt_C_DocType_ID < 1) set_Value (COLUMNNAME_Negative_Amt_C_DocType_ID, null); else set_Value (COLUMNNAME_Negative_Amt_C_DocType_ID, Negative_Amt_C_DocType_ID); } @Override public int getNegative_Amt...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_DocType_Invoicing_Pool.java
1
请完成以下Java代码
public org.compiere.model.I_C_Country getC_Country() { return get_ValueAsPO(COLUMNNAME_C_Country_ID, org.compiere.model.I_C_Country.class); } @Override public void setC_Country(final org.compiere.model.I_C_Country C_Country) { set_ValueFromPO(COLUMNNAME_C_Country_ID, org.compiere.model.I_C_Country.class, C_Co...
@Override public org.adempiere.model.I_M_FreightCostShipper getM_FreightCostShipper() { return get_ValueAsPO(COLUMNNAME_M_FreightCostShipper_ID, org.adempiere.model.I_M_FreightCostShipper.class); } @Override public void setM_FreightCostShipper(final org.adempiere.model.I_M_FreightCostShipper M_FreightCostShippe...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\adempiere\model\X_M_FreightCostDetail.java
1
请完成以下Spring Boot application配置
server: port: 8888 spring: application: name: gateway-application # Zipkin 配置项,对应 ZipkinProperties 类 zipkin: base-url: http://127.0.0.1:9411 # Zipkin 服务的地址 # Spring Cloud Sleuth 配置项 sleuth: # Spring Cloud Sleuth 针对 Web 组件的配置项,例如说 SpringMVC web: enabled: true # 是否开启,默认为 true cloud...
: # 路由配置项,对应 RouteDefinition 数组 routes: - id: feign-service-route uri: http://127.0.0.1:8081 predicates: - Path=/**
repos\SpringBoot-Labs-master\labx-13\labx-13-sc-sleuth-springcloudgateway\src\main\resources\application.yaml
2
请完成以下Java代码
public ResponseEntity<SalesInvoicePaymentStatusResponse> retrievePaymentStatus( @ApiParam(required = true, value = "Organisation for which we retrieve the payment status.<br>Either `AD_Org.Value` or the GLN of a location of the org's business partner.") // @PathVariable("orgCode") final String orgCode, @ApiPa...
@RequestParam("startDateIncl") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) final LocalDate startDate, @ApiParam(required = true, example = "2019-03-01", value = "Return the status for invoices that have `C_Invoice.DateInvoiced` less than the given date at 00:00") // @RequestParam("endDateExcl") @DateTimeForma...
repos\metasfresh-new_dawn_uat\backend\de.metas.business.rest-api-impl\src\main\java\de\metas\rest_api\v1\invoice\impl\SalesInvoicePaymentStatusRestController.java
1
请在Spring Boot框架中完成以下Java代码
public class XmlFileItemReaderDemo { @Autowired private JobBuilderFactory jobBuilderFactory; @Autowired private StepBuilderFactory stepBuilderFactory; @Bean public Job xmlFileItemReaderJob() { return jobBuilderFactory.get("xmlFileItemReaderJob") .start(step()) ...
private ItemReader<TestData> xmlFileItemReader() { StaxEventItemReader<TestData> reader = new StaxEventItemReader<>(); reader.setResource(new ClassPathResource("file.xml")); // 设置xml文件源 reader.setFragmentRootElementName("test"); // 指定xml文件的根标签 // 将xml数据转换为TestData对象 XStreamMarsha...
repos\SpringAll-master\68.spring-batch-itemreader\src\main\java\cc\mrbird\batch\job\XmlFileItemReaderDemo.java
2
请在Spring Boot框架中完成以下Java代码
public BigInteger getValue() { return value; } /** * Sets the value of the value property. * * @param value * allowed object is * {@link BigInteger } * */ public void setValue(BigInteger value) { this.value = value; } /** * Gets...
* possible object is * {@link CountryCodeType } * */ public CountryCodeType getBankCodeType() { return bankCodeType; } /** * Sets the value of the bankCodeType property. * * @param value * allowed object is * {@link CountryCodeType } ...
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\BankCodeCType.java
2
请完成以下Java代码
public class SendToAllRequest implements Message { public static final String TYPE = "SEND_TO_ALL_REQUEST"; /** * 消息编号 */ private String msgId; /** * 内容 */ private String content; public String getContent() { return content; }
public SendToAllRequest setContent(String content) { this.content = content; return this; } public String getMsgId() { return msgId; } public SendToAllRequest setMsgId(String msgId) { this.msgId = msgId; return this; } }
repos\SpringBoot-Labs-master\lab-25\lab-websocket-25-01\src\main\java\cn\iocoder\springboot\lab25\springwebsocket\message\SendToAllRequest.java
1
请完成以下Java代码
protected void prepare() { // nothing to do } @Override protected String doIt() throws Exception { final I_C_Order order = getRecord(I_C_Order.class); orderCheckupBL.generateReportsIfEligible(order); return "@Success@"; } @Override public ProcessPreconditionsResolution checkPreconditionsApplicable(f...
// Only completed/closed orders if (!docActionBL.isDocumentCompletedOrClosed(order)) { logger.debug("{} has DocStatus={}; nothing to do", new Object[] { order, order.getDocStatus() }); return ProcessPreconditionsResolution.reject("only completed/closed orders are allowed"); } // Only eligible orders if...
repos\metasfresh-new_dawn_uat\backend\de.metas.fresh\de.metas.fresh.base\src\main\java\de\metas\fresh\ordercheckup\process\C_Order_MFGWarehouse_Report_Generate.java
1
请完成以下Java代码
public java.lang.String getInvoiceWeekDayCutoff () { return (java.lang.String)get_Value(COLUMNNAME_InvoiceWeekDayCutoff); } /** Set Betragsgrenze. @param IsAmount Send invoices only if the amount exceeds the limit IMPORTANT: currently not used; */ @Override public void setIsAmount (boolean IsAmount) {...
return "Y".equals(oo); } return false; } /** Set Name. @param Name Alphanumeric identifier of the entity */ @Override public void setName (java.lang.String Name) { set_Value (COLUMNNAME_Name, Name); } /** Get Name. @return Alphanumeric identifier of the entity */ @Override public java.lang...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_InvoiceSchedule.java
1
请在Spring Boot框架中完成以下Java代码
protected Map<String, Object> extractVariables(List<EngineRestVariable> restVariables) { if (restVariables != null && !restVariables.isEmpty()) { Map<String, Object> variables = new HashMap<>(); for (EngineRestVariable restVariable : restVariables) { if (restVariable.get...
} else { throw new FlowableException("Cannot acquire external jobs. There is no BPMN or CMMN engine available"); } } protected ExternalWorkerJobFailureBuilder createExternalWorkerJobFailureBuilder(String jobId, String workerId) { if (managementService != null) { return m...
repos\flowable-engine-main\modules\flowable-external-job-rest\src\main\java\org\flowable\external\job\rest\service\api\acquire\ExternalWorkerAcquireJobResource.java
2
请在Spring Boot框架中完成以下Java代码
public String getAnnotation() { return annotation; } public void setAnnotation(String annotation) { this.annotation = annotation; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return fal...
sb.append(" frequency: ").append(toIndentedString(frequency)).append("\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" timePeriod: ").append(toIndentedString(timePeriod)).append("\n"); sb.append(" annotation: ").append(toIndentedString(annotation)).append("...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\alberta\alberta-article-api\src\main\java\io\swagger\client\model\InsuranceContractVisitInterval.java
2
请完成以下Java代码
public int getLag(String topic) { return Optional.ofNullable(storage.get(topic)).map(Collection::size).orElse(0); } @Override public boolean put(String topic, TbQueueMsg msg) { return storage.computeIfAbsent(topic, (t) -> new LinkedBlockingQueue<>()).add(msg); } @SuppressWarnings("...
if (firstMsg != null) { final int queueSize = queue.size(); if (queueSize > 0) { final List<TbQueueMsg> entities = new ArrayList<>(Math.min(queueSize, 999) + 1); entities.add(firstMsg); queue.drainTo(entities, 999); ...
repos\thingsboard-master\common\queue\src\main\java\org\thingsboard\server\queue\memory\DefaultInMemoryStorage.java
1
请完成以下Java代码
public void save(OAuth2AuthorizationConsent authorizationConsent) { Assert.notNull(authorizationConsent, "authorizationConsent cannot be null"); int id = getId(authorizationConsent); this.authorizationConsents.put(id, authorizationConsent); } @Override public void remove(OAuth2AuthorizationConsent authorizati...
public OAuth2AuthorizationConsent findById(String registeredClientId, String principalName) { Assert.hasText(registeredClientId, "registeredClientId cannot be empty"); Assert.hasText(principalName, "principalName cannot be empty"); int id = getId(registeredClientId, principalName); return this.authorizationCons...
repos\spring-security-main\oauth2\oauth2-authorization-server\src\main\java\org\springframework\security\oauth2\server\authorization\InMemoryOAuth2AuthorizationConsentService.java
1
请完成以下Java代码
public void setParentElementValue_ID (final int ParentElementValue_ID) { if (ParentElementValue_ID < 1) set_Value (COLUMNNAME_ParentElementValue_ID, null); else set_Value (COLUMNNAME_ParentElementValue_ID, ParentElementValue_ID); } @Override public int getParentElementValue_ID() { return get_ValueA...
@Override public void setProcessed (final boolean Processed) { set_Value (COLUMNNAME_Processed, Processed); } @Override public boolean isProcessed() { return get_ValueAsBoolean(COLUMNNAME_Processed); } @Override public void setProcessing (final boolean Processing) { set_Value (COLUMNNAME_Processing, ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_I_ElementValue.java
1