instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) { // copied from java.awt.component m_imageNotLoaded = (infoflags & (ALLBITS|ABORT)) == 0; if (LogManager.isLevelFinest()) log.trace("Flags=" + infoflags + ", x=" + x + ", y=" + y + ", width=" + width + ", height=" +...
} count++; } } catch (Exception e) // java.lang.SecurityException { log.error("", e); return false; } if (count > 0) log.debug((System.currentTimeMillis()-start) + "ms - #" + count); return true; } // waitForLoad /** * Get Detail Info from Sub-Class * @return detail info */ prote...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\print\layout\PrintElement.java
1
请完成以下Java代码
public TableDataManager getTableDataManager() { return processEngineConfiguration.getTableDataManager(); } public CommentEntityManager getCommentEntityManager() { return processEngineConfiguration.getCommentEntityManager(); } public PropertyEntityManager getPropertyEntityManager() { ...
return exception; } public FailedJobCommandFactory getFailedJobCommandFactory() { return failedJobCommandFactory; } public ProcessEngineConfigurationImpl getProcessEngineConfiguration() { return processEngineConfiguration; } public ActivitiEventDispatcher getEventDispatcher() ...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\interceptor\CommandContext.java
1
请完成以下Java代码
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Extension.class, BPMN_ELEMENT_EXTENSION) .namespaceUri(BPMN20_NS) .instanceProvider(new ModelTypeInstanceProvider<Extension>() { public Extension newInstance(ModelTypeInstan...
public String getDefinition() { return definitionAttribute.getValue(this); } public void setDefinition(String Definition) { definitionAttribute.setValue(this, Definition); } public boolean mustUnderstand() { return mustUnderstandAttribute.getValue(this); } public void setMustUnderstand(boolea...
repos\camunda-bpm-platform-master\model-api\bpmn-model\src\main\java\org\camunda\bpm\model\bpmn\impl\instance\ExtensionImpl.java
1
请完成以下Java代码
public static String toCodeOrNull(final BOMComponentType componentType) { return componentType != null ? componentType.getCode() : null; } @NonNull public static BOMComponentType ofCode(@NonNull final String code) { return index.ofCode(code); } @NonNull public static BOMComponentType ofNullableCodeOrCompo...
{ return this == Variant; } public boolean isPhantom() { return this == Phantom; } public boolean isTools() { return this == Tools; } // public boolean isReceipt() { return isByOrCoProduct(); } public boolean isIssue() { return !isReceipt(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\org\eevolution\api\BOMComponentType.java
1
请完成以下Java代码
public class BpmnParseHandlers { private static final Logger LOGGER = org.slf4j.LoggerFactory.getLogger(BpmnParseHandlers.class); protected Map<Class<? extends BaseElement>, List<BpmnParseHandler>> parseHandlers; public BpmnParseHandlers() { this.parseHandlers = new HashMap<Class<? extends BaseEl...
} if (element instanceof FlowElement) { bpmnParse.setCurrentFlowElement((FlowElement) element); } // Execute parse handlers List<BpmnParseHandler> handlers = parseHandlers.get(element.getClass()); if (handlers == null) { LOGGER.warn("Could not find matc...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\parser\BpmnParseHandlers.java
1
请在Spring Boot框架中完成以下Java代码
public UserVO get(@PathVariable("id") Integer id) { // 查询并返回用户 return new UserVO().setId(id).setUsername("username:" + id); } /** * 获得指定用户编号的用户 * * @param id 用户编号 * @return 用户 */ @GetMapping("/v2/{id}") public UserVO get2(@PathVariable("id") Integer id) { ...
updateDTO.setId(id); // 更新用户记录 Boolean success = true; // 返回更新是否成功 return success; } /** * 删除指定用户编号的用户 * * @param id 用户编号 * @return 是否删除成功 */ @DeleteMapping("/{id}") public Boolean delete(@PathVariable("id") Integer id) { // 删除用户记录 ...
repos\SpringBoot-Labs-master\lab-23\lab-springmvc-23-01\src\main\java\cn\iocoder\springboot\lab23\springmvc\controller\UserController.java
2
请完成以下Java代码
public boolean isShowFromAllBundles() { return fShowFromAllBundles.isSelected(); } public boolean isShowOnlyDue() { return fShowOnlyDue.isSelected(); } public boolean isShowOnlyOpen() { return fShowOnlyOpen.isSelected(); } private void updateFieldsStatus() { final boolean selected = m_model.isConta...
// @Override @Override public void windowStateChanged(WindowEvent e) { // The Customize Window was closed if (e.getID() == WindowEvent.WINDOW_CLOSED && e.getSource() == m_requestFrame && m_model != null // sometimes we get NPE ) { final I_RV_R_Group_Prospect contact = m_model.getRV_R_Group_Prospect(fa...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\callcenter\form\CallCenterForm.java
1
请在Spring Boot框架中完成以下Java代码
Environment rabbitStreamEnvironment(RabbitProperties properties, RabbitConnectionDetails connectionDetails, ObjectProvider<EnvironmentBuilderCustomizer> customizers) { EnvironmentBuilder builder = configure(Environment.builder(), properties, connectionDetails); customizers.orderedStream().forEach((customizer) ->...
static EnvironmentBuilder configure(EnvironmentBuilder builder, RabbitProperties properties, RabbitConnectionDetails connectionDetails) { return configure(builder, properties.getStream(), connectionDetails); } private static EnvironmentBuilder configure(EnvironmentBuilder builder, RabbitProperties.Stream stream...
repos\spring-boot-4.0.1\module\spring-boot-amqp\src\main\java\org\springframework\boot\amqp\autoconfigure\RabbitStreamConfiguration.java
2
请完成以下Java代码
public CostAmountAndQtyDetailed negate() { return builder() .main(main.negate()) .costAdjustment(costAdjustment.negate()) .alreadyShipped(alreadyShipped.negate()) .build(); } public CostAmountAndQty getAmtAndQty(final CostAmountType type) { final CostAmountAndQty costAmountAndQty; switch (typ...
default: throw new IllegalArgumentException(); } return costAmountAndQty; } public CostAmountDetailed getAmt() { return CostAmountDetailed.builder() .mainAmt(main.getAmt()) .costAdjustmentAmt(costAdjustment.getAmt()) .alreadyShippedAmt(alreadyShipped.getAmt()) .build(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\costing\methods\CostAmountAndQtyDetailed.java
1
请完成以下Java代码
public void setM_Product_ID (int M_Product_ID) { if (M_Product_ID < 1) set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); else set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Produkt. @return Produkt, Leistung, Artikel */ @Override public int getM_Product_ID ()...
/** Get Verarbeitet. @return Checkbox sagt aus, ob der Beleg verarbeitet wurde. */ @Override public boolean isProcessed () { Object oo = get_Value(COLUMNNAME_Processed); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return f...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_MatchPO.java
1
请完成以下Java代码
static void setZeroesInCols(int[][] matrix, int rows, int cols) { for (int j = 1; j < cols; j++) { if (matrix[0][j] == 0) { for (int i = 1; i < rows; i++) { matrix[i][j] = 0; } } } } static void setZeroesInFirstRow(int[...
static void setZeroesByOptimalApproach(int[][] matrix) { int rows = matrix.length; int cols = matrix[0].length; boolean firstRowZero = hasZeroInFirstRow(matrix, cols); boolean firstColZero = hasZeroInFirstCol(matrix, rows); markZeroesInMatrix(matrix, rows, cols)...
repos\tutorials-master\core-java-modules\core-java-arrays-operations-advanced-2\src\main\java\com\baeldung\matrixtozero\SetMatrixToZero.java
1
请完成以下Java代码
protected void checkCreateAndReadDeployments(CommandContext commandContext, Set<String> deploymentIds) { for(CommandChecker checker : commandContext.getProcessEngineConfiguration().getCommandCheckers()) { checker.checkCreateDeployment(); for (String deploymentId : deploymentIds) { checker.checkR...
protected void ensureResourcesWithIdsExist(String deploymentId, Set<String> expectedIds, List<ResourceEntity> actual) { Map<String, ResourceEntity> resources = new HashMap<>(); for (ResourceEntity resource : actual) { resources.put(resource.getId(), resource); } ensureResourcesWithKeysExist(deploy...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cmd\DeployCmd.java
1
请完成以下Java代码
public void execute(DelegateExecution execution) { ThrowMessage throwMessage = getThrowMessage(execution); boolean isSent = send(execution, throwMessage); if (isSent) { dispatchEvent(execution, throwMessage); } super.execute(execution); } public MessageEve...
commandContext .getProcessEngineConfiguration() .getEventDispatcher() .dispatchEvent( ActivitiEventBuilder.createMessageSentEvent(execution, messageName, correlationKey, payload) ); }); } public ...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\AbstractThrowMessageEventActivityBehavior.java
1
请完成以下Spring Boot application配置
logging.level.org.springframework.web=INFO logging.level.org.hibernate=ERROR logging.level.net.guides=DEBUG logging.file=myapp.log jdbc.driver=com.mysql.jdbc.Driver jdbc.u
rl=jdbc:mysql://localhost:3306/dev_db jdbc.username=root jdbc.password=root
repos\Spring-Boot-Advanced-Projects-main\springboot2-externalizing-conf-properties\src\main\resources\application.properties
2
请在Spring Boot框架中完成以下Java代码
private de.metas.edi.esb.jaxb.metasfreshinhousev1.EDICctop119VType getEDICctop119VType(@NonNull final EDICctop119VType source) { final de.metas.edi.esb.jaxb.metasfreshinhousev1.EDICctop119VType target = DESADV_objectFactory.createEDICctop119VType(); target.setAddress1(source.getAddress1()); target.setAddress2(s...
@NonNull private de.metas.edi.esb.jaxb.metasfreshinhousev1.EDICctop111VType getEDICctop111VType(@NonNull final EDICctop111VType source) { final de.metas.edi.esb.jaxb.metasfreshinhousev1.EDICctop111VType target = DESADV_objectFactory.createEDICctop111VType(); target.setCOrderID(source.getCOrderID()); target.set...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java\de\metas\edi\esb\invoicexport\metasfreshinhousev1\MetasfreshInHouseV1XMLInvoicBean.java
2
请完成以下Java代码
public class AddressDisplaySequence { public static final AddressDisplaySequence EMPTY = new AddressDisplaySequence(""); private static final AdMessageKey MSG_AddressBuilder_WrongDisplaySequence = AdMessageKey.of("MSG_AddressBuilder_WrongDisplaySequence"); @NonNull private final String pattern; private AddressDis...
} public boolean hasToken(@NonNull final Addressvars token) { // TODO: optimize it! this is just some crap refactored code final Scanner scan = new Scanner(pattern); scan.useDelimiter("@"); while (scan.hasNext()) { if (scan.next().equals(token.getName())) { scan.close(); return true; } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\location\AddressDisplaySequence.java
1
请完成以下Java代码
public static BooleanWithReason falseBecause(@NonNull final Exception exception) { return falseBecause(AdempiereException.extractMessageTrl(exception)); } public static BooleanWithReason falseIf(final boolean condition, @NonNull final String falseReason) { return condition ? falseBecause(falseReason) : TRUE; ...
public String getReasonAsString() { return reason.getDefaultValue(); } public void assertTrue() { if (isFalse()) { throw new AdempiereException(reason); } } public BooleanWithReason and(@NonNull final Supplier<BooleanWithReason> otherSupplier) { return isFalse() ? this : Check.assumeNotNul...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\i18n\BooleanWithReason.java
1
请完成以下Java代码
private static void combinationsInternal( List<Integer> inputSet, int k, List<List<Integer>> results, ArrayList<Integer> accumulator, int index) { int leftToAccumulate = k - accumulator.size(); int possibleToAcculumate = inputSet.size() - index; if (accumulator.size() == k) { ...
powerSetInternal(sequence, results, new ArrayList<>(), 0); return results; } private static void powerSetInternal( List<Character> set, List<List<Character>> powerSet, List<Character> accumulator, int index) { if (index == set.size()) { powerSet.add(new ArrayList<>(accumulator...
repos\tutorials-master\algorithms-modules\algorithms-miscellaneous-5\src\main\java\com\baeldung\algorithms\combinatorics\Combinatorics.java
1
请完成以下Java代码
public SqlLookupDescriptorFactory setCtxColumnName(@Nullable final String ctxColumnName) { this.ctxColumnName = ctxColumnName; this.filtersBuilder.setCtxColumnName(this.ctxColumnName); return this; } public SqlLookupDescriptorFactory setCtxTableName(@Nullable final String ctxTableName) { this.ctxTableName ...
/** * Advice the lookup to show all records on which current user has at least read only access */ public SqlLookupDescriptorFactory setReadOnlyAccess() { this.requiredAccess = Access.READ; return this; } private Access getRequiredAccess(@NonNull final TableName tableName) { if (requiredAccess != null) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\descriptor\sql\SqlLookupDescriptorFactory.java
1
请完成以下Java代码
public java.math.BigDecimal getQualityAdj_Amt_Per_UOM () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QualityAdj_Amt_Per_UOM); if (bd == null) return Env.ZERO; return bd; } /** * QualityAdjustmentMonth AD_Reference_ID=540507 * Reference name: QualityAdjustmentMonth */ public static final in...
/** Sep = Sep */ public static final String QUALITYADJUSTMENTMONTH_Sep = "Sep"; /** Oct = Oct */ public static final String QUALITYADJUSTMENTMONTH_Oct = "Oct"; /** Nov = Nov */ public static final String QUALITYADJUSTMENTMONTH_Nov = "Nov"; /** Dec = Dec */ public static final String QUALITYADJUSTMENTMONTH_Dec = ...
repos\metasfresh-new_dawn_uat\backend\de.metas.materialtracking\src\main\java-gen\de\metas\materialtracking\ch\lagerkonf\model\X_M_QualityInsp_LagerKonf_Month_Adj.java
1
请完成以下Java代码
protected void additionalBeans(BuildProducer<AdditionalBeanBuildItem> additionalBeansProducer) { additionalBeansProducer.produce( AdditionalBeanBuildItem.builder() .setDefaultScope(DotName.createSimple(Dependent.class.getName())) .addBeanClasses( DefaultContextAssocia...
@Record(RUNTIME_INIT) protected void processEngine(CamundaEngineRecorder recorder, ProcessEngineConfigurationBuildItem processEngineConfigurationBuildItem, BuildProducer<ProcessEngineBuildItem> processEngineProducer) { RuntimeValue<ProcessEngineConfig...
repos\camunda-bpm-platform-master\quarkus-extension\engine\deployment\src\main\java\org\camunda\bpm\quarkus\engine\extension\deployment\impl\CamundaEngineProcessor.java
1
请完成以下Java代码
public int getSequenceBits() { return sequenceBits; } public long getMaxDeltaSeconds() { return maxDeltaSeconds; } public long getMaxWorkerId() { return maxWorkerId; } public long getMaxSequence() { return maxSequence; }
public int getTimestampShift() { return timestampShift; } public int getWorkerIdShift() { return workerIdShift; } @Override public String toString() { return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE); } }
repos\Spring-Boot-In-Action-master\id-spring-boot-starter\src\main\java\com\baidu\fsg\uid\BitsAllocator.java
1
请完成以下Java代码
public void setPP_Order_ID (final int PP_Order_ID) { if (PP_Order_ID < 1) set_ValueNoCheck (COLUMNNAME_PP_Order_ID, null); else set_ValueNoCheck (COLUMNNAME_PP_Order_ID, PP_Order_ID); } @Override public int getPP_Order_ID() { return get_ValueAsInt(COLUMNNAME_PP_Order_ID); } @Override public voi...
if (SerialNo_Sequence_ID < 1) set_Value (COLUMNNAME_SerialNo_Sequence_ID, null); else set_Value (COLUMNNAME_SerialNo_Sequence_ID, SerialNo_Sequence_ID); } @Override public int getSerialNo_Sequence_ID() { return get_ValueAsInt(COLUMNNAME_SerialNo_Sequence_ID); } @Override public void setValidFrom (...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\eevolution\model\X_PP_Order_BOM.java
1
请完成以下Java代码
public Quantity getTotalQtyBooked( @NonNull final IUOMConversionBL uomConversionBL, @NonNull final I_C_UOM uom) { return huForInventoryLineList.stream() .map(HuForInventoryLine::getQuantityBooked) .map(qty -> uomConversionBL.convertQuantityTo(qty, productId, UomId.ofRepoId(uom.getC_UOM_ID()))) .red...
.filter(Objects::nonNull) .collect(ImmutableSet.toImmutableSet()); } @NonNull private <K> Map<K, ProductHUInventory> mapByKey(final Function<HuForInventoryLine, K> keyProvider) { final Map<K, List<HuForInventoryLine>> key2Hus = new HashMap<>(); huForInventoryLineList.forEach(hu -> { final ArrayList<HuF...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\inventory\draftlinescreator\ProductHUInventory.java
1
请完成以下Java代码
public class ValidateTaskRelatedEntityCountCfgCmd implements Command<Void> { private static final Logger LOGGER = LoggerFactory.getLogger(ValidateTaskRelatedEntityCountCfgCmd.class); public static final String PROPERTY_TASK_RELATED_ENTITY_COUNT = "cfg.task-related-entities-count"; @Override public Vo...
if (!configProperty && propertyValue) { if (LOGGER.isInfoEnabled()) { LOGGER.info("Configuration change: task related entity counting feature was enabled before, but now disabled. " + "Updating all task entities."); } proces...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\cmd\ValidateTaskRelatedEntityCountCfgCmd.java
1
请完成以下Java代码
protected ProcessInstanceBatchMigrationResult convertFromBatch(Batch batch, ObjectMapper objectMapper) { ProcessInstanceBatchMigrationResult result = new ProcessInstanceBatchMigrationResult(); result.setBatchId(batch.getId()); result.setSourceProcessDefinitionId(batch.getBatchSearchKey()); ...
partResult.setResult(batchPart.getStatus()); ProcessEngineConfigurationImpl processEngineConfiguration = CommandContextUtil.getProcessEngineConfiguration(); if (ProcessInstanceBatchMigrationResult.RESULT_FAIL.equals(batchPart.getStatus()) && batchPart.getResultDocumentJson(processEngine...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\cmd\GetProcessInstanceMigrationBatchResultCmd.java
1
请完成以下Java代码
private static Set<MADBoilerPlateVar> getVars(final PO po, final int timing) { final int AD_Client_ID = Env.getAD_Client_ID(po.getCtx()); final int AD_Org_ID = Env.getAD_Org_ID(po.getCtx()); final String tableName = po.get_TableName(); final int C_DocType_ID = getC_DocType_ID(po); final String evalTime = get...
} else { replacement = m.group(); } if (replacement == null) { continue; } m.appendReplacement(sb, replacement); } m.appendTail(sb); final String textParsed = sb.toString(); po.set_ValueOfColumn(columnName, textParsed); } private static void setDunningRunEntryNote(final I_C_Dun...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\letters\model\LettersValidator.java
1
请在Spring Boot框架中完成以下Java代码
public class AuthorList implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String name; private String genre; private int age; @ManyToMany(cascade = {CascadeType.PERSIST, CascadeT...
public String getGenre() { return genre; } public void setGenre(String genre) { this.genre = genre; } public int getAge() { return age; } public void setAge(int age) { this.age = age; } public List<BookList> getBooks() { return books; } ...
repos\Hibernate-SpringBoot-master\HibernateSpringBootManyToManyBidirectionalListVsSet\src\main\java\com\bookstore\entity\AuthorList.java
2
请完成以下Java代码
public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public Long getPersonNumber() ...
public void setScode(String scode) { this.securityNumber = scode; } public String getDcode() { return departmentCode; } public void setDcode(String dcode) { this.departmentCode = dcode; } public Address getAddress() { return address; } public void setA...
repos\tutorials-master\persistence-modules\java-jpa\src\main\java\com\baeldung\jpa\uniqueconstraints\Person.java
1
请在Spring Boot框架中完成以下Java代码
public ServerDeployDto findById(Long id) { ServerDeploy server = serverDeployRepository.findById(id).orElseGet(ServerDeploy::new); ValidationUtil.isNull(server.getId(),"ServerDeploy","id",id); return serverDeployMapper.toDto(server); } @Override public ServerDeployDto findByIp(Strin...
@Override @Transactional(rollbackFor = Exception.class) public void update(ServerDeploy resources) { ServerDeploy serverDeploy = serverDeployRepository.findById(resources.getId()).orElseGet(ServerDeploy::new); ValidationUtil.isNull( serverDeploy.getId(),"ServerDeploy","id",resources.getId()); ...
repos\eladmin-master\eladmin-system\src\main\java\me\zhengjie\modules\maint\service\impl\ServerDeployServiceImpl.java
2
请完成以下Java代码
public String getCaseId() { return caseId; } /** * Sets the value of the caseId property. * * @param value * allowed object is * {@link String } * */ public void setCaseId(String value) { this.caseId = value; } /** * Gets the va...
public XMLGregorianCalendar getCaseDate() { return caseDate; } /** * Sets the value of the caseDate property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setCaseDate(XMLGregorianCalendar value) { this...
repos\metasfresh-new_dawn_uat\backend\vertical-healthcare_ch\forum_datenaustausch_ch.invoice_450_request\src\main\java-xjc\de\metas\vertical\healthcare_ch\forum_datenaustausch_ch\invoice_450\request\KvgLawType.java
1
请在Spring Boot框架中完成以下Java代码
public class SqlAcctDocLockService implements AcctDocLockService { @Override public boolean lock(final AcctDocModel docModel, final boolean force, final boolean repost) { final String tableName = docModel.getTableName(); final int recordId = docModel.getId(); final StringBuilder sql = new StringBuilder("UPDAT...
// // Posted if (newPostingStatus != null) { sql.append(", Posted=").append(DB.TO_STRING(newPostingStatus)); } // // PostingError_Issue_ID final String COLUMNNAME_PostingError_Issue_ID = "PostingError_Issue_ID"; final boolean hasPostingIssueColumn = poInfo.hasColumnName(COLUMNNAME_PostingError_Issue...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java\de\metas\acct\doc\SqlAcctDocLockService.java
2
请完成以下Java代码
public void setM_Shipment_Declaration_Correction(org.compiere.model.I_M_Shipment_Declaration M_Shipment_Declaration_Correction) { set_ValueFromPO(COLUMNNAME_M_Shipment_Declaration_Correction_ID, org.compiere.model.I_M_Shipment_Declaration.class, M_Shipment_Declaration_Correction); } /** Set M_Shipment_Declaration...
{ if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Process Now. @param Processing Process Now */ @Override public void setProcessing (boolean Processing) { set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); } /...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_Shipment_Declaration.java
1
请在Spring Boot框架中完成以下Java代码
public class Employee { private Long id; private String name; private int age; private String position; public Employee() { } public Employee(String name, int age, String position) { this.name = name; this.age = age; this.position = position; } public Long getId() { return id; } public void se...
public void setAge(int age) { this.age = age; } public String getPosition() { return position; } public void setPosition(String position) { this.position = position; } @Override public String toString() { return "Employee [id=" + id + ", name=" + name + ", position=" + position + "]"; } }
repos\sample-spring-microservices-new-master\department-service\src\main\java\pl\piomin\services\department\model\Employee.java
2
请完成以下Java代码
public int size() { return pipeList.size(); } @Override public boolean isEmpty() { return pipeList.isEmpty(); } @Override public boolean contains(Object o) { return pipeList.contains(o); } @Override public Iterator<Pipe<List<IWord>, List<IWord>>...
pipeList.clear(); } @Override public boolean equals(Object o) { return pipeList.equals(o); } @Override public int hashCode() { return pipeList.hashCode(); } @Override public Pipe<List<IWord>, List<IWord>> get(int index) { return pipeList.get(ind...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\seg\SegmentPipeline.java
1
请完成以下Java代码
public CipherDataType getCipherData() { return cipherData; } /** * Sets the value of the cipherData property. * * @param value * allowed object is * {@link CipherDataType } * */ public void setCipherData(CipherDataType value) { this.cipherDat...
* {@link String } * */ public void setType(String value) { this.type = value; } /** * Gets the value of the mimeType property. * * @return * possible object is * {@link String } * */ public String getMimeType() { return...
repos\metasfresh-new_dawn_uat\backend\vertical-healthcare_ch\forum_datenaustausch_ch.invoice_440_request\src\main\java-xjc\de\metas\vertical\healthcare_ch\forum_datenaustausch_ch\invoice_440\request\EncryptedType.java
1
请完成以下Java代码
public String getHtmlText() { try { StringWriter sw = new StringWriter(); new AltHTMLWriter(sw, this.document).write(); // new HTMLWriter(sw, editor.document).write(); String html = sw.toString(); return html; } catch (Exception e) { e.printStackTrace(); } return null; } public HTMLD...
public void setText(String html) { this.editor.setText(html); } public void setCaretPosition(int position) { this.editor.setCaretPosition(position); } public ActionMap getEditorActionMap() { return this.editor.getActionMap(); } public InputMap getEditorInputMap(int condition) {...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\net\sf\memoranda\ui\htmleditor\HTMLEditor.java
1
请完成以下Java代码
public String getMetaInfo() { return metaInfo; } public void setMetaInfo(String metaInfo) { this.metaInfo = metaInfo; } public String getDeploymentId() { return deploymentId; } public void setDeploymentId(String deploymentId) { this.deploymentId = deploymentId;...
public void setEditorSourceExtraValueId(String editorSourceExtraValueId) { this.editorSourceExtraValueId = editorSourceExtraValueId; } public String getTenantId() { return tenantId; } public void setTenantId(String tenantId) { this.tenantId = tenantId; } public boolean...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\persistence\entity\ModelEntityImpl.java
1
请完成以下Java代码
protected WarehouseId findOrderWarehouseId(@NonNull final I_C_Order order) { final IOrgDAO orgsRepo = Services.get(IOrgDAO.class); final OrgId adOrgId = OrgId.ofRepoId(order.getAD_Org_ID()); final boolean isSOTrx = order.isSOTrx(); // task 07014: for a dropship purchase order, we take the org info's dropship...
return null; } final BPartnerId bpartnerId = BPartnerId.ofRepoIdOrNull(order.getC_BPartner_ID()); if (bpartnerId == null) { return null; } final IBPartnerDAO bpartnersRepo = Services.get(IBPartnerDAO.class); final I_C_BPartner bp = bpartnersRepo.getById(bpartnerId); if (!bp.isCustomer()) { ret...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\org\adempiere\warehouse\spi\impl\WarehouseAdvisor.java
1
请完成以下Java代码
private boolean isDisconnected(){ for (Vertex vertex : graph){ if (!vertex.isVisited()){ return true; } } return false; } public String originalGraphToString(){ StringBuilder sb = new StringBuilder(); for (Vertex vertex : graph){ ...
for (Vertex vertex : graph){ Iterator<Map.Entry<Vertex,Edge>> it = vertex.getEdges().entrySet().iterator(); while (it.hasNext()) { Map.Entry<Vertex,Edge> pair = it.next(); pair.getValue().setPrinted(false); } } } public String minimumS...
repos\tutorials-master\algorithms-modules\algorithms-miscellaneous-5\src\main\java\com\baeldung\algorithms\prim\Prim.java
1
请完成以下Java代码
public class GeodeLoggingApplicationListener implements GenericApplicationListener { private static final Class<?>[] EVENT_TYPES = { ApplicationEnvironmentPreparedEvent.class }; private static final Class<?>[] SOURCE_TYPES = { ApplicationContext.class, SpringApplication.class }; public static final String SPRING_B...
return !isSystemPropertySet(propertyName); } protected void setSystemProperty(@NonNull String propertyName, @Nullable String propertyValue) { Assert.hasText(propertyName, () -> String.format("PropertyName [%s] is required", propertyName)); if (StringUtils.hasText(propertyValue)) { System.setProperty(propert...
repos\spring-boot-data-geode-main\spring-geode-project\spring-geode\src\main\java\org\springframework\geode\context\logging\GeodeLoggingApplicationListener.java
1
请完成以下Java代码
public long getCountAll() { return getMeter(METERNAME_All).getGauge(); } @Override public void incrementCountAll() { getMeter(METERNAME_All).plusOne(); } @Override public long getCountProcessed() { return getMeter(METERNAME_Processed).getGauge(); } @Override public void incrementCountProcessed() {...
} @Override public void decrementQueueSize() { getMeter(METERNAME_QueueSize).minusOne(); } @Override public long getCountSkipped() { return getMeter(METERNAME_Skipped).getGauge(); } @Override public void incrementCountSkipped() { getMeter(METERNAME_Skipped).plusOne(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.async\src\main\java\de\metas\async\processor\impl\MonitorableQueueProcessorStatistics.java
1
请在Spring Boot框架中完成以下Java代码
public class JsonProduct { @NonNull @JsonProperty("id") String id; @Nullable @JsonProperty("parentId") String parentId; @Nullable @JsonProperty("name") String name; @NonNull @JsonProperty("productNumber") String productNumber; @Nullable @JsonProperty("ean") String ean; @Nullable @JsonProperty("uni...
@JsonProperty("updatedAt") ZonedDateTime updatedAt; @Nullable @JsonProperty("price") List<JsonPrice> prices; @JsonIgnoreProperties(ignoreUnknown = true) @JsonPOJOBuilder(withPrefix = "") static class JsonProductBuilder { } @JsonIgnore @NonNull public ZonedDateTime getUpdatedAtNonNull() { if (updatedAt...
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\product\JsonProduct.java
2
请完成以下Java代码
public Booking createBooking(String hotelId, String checkIn, int nights, int guests, String guestName) { Objects.requireNonNull(hotelId, "hotelId"); Objects.requireNonNull(checkIn, "checkIn"); Objects.requireNonNull(guestName, "guestName"); LocalDate.parse(checkIn); Hotel hotel...
public record Hotel(String id, String name, String city, int basePricePerNight, int maxGuests) { } public record HotelOffer( String hotelId, String hotelName, String city, int pricePerNight, int totalPrice, int maxGuests ) { } public record Booking( ...
repos\tutorials-master\libraries-ai\src\main\java\com\baeldung\simpleopenai\HotelService.java
1
请完成以下Java代码
public void evict(Object key) { // 删除的时候要先删除二级缓存再删除一级缓存,否则有并发问题 redisCache.evict(key); if (usedFirstCache) { // 删除一级缓存需要用到redis的Pub/Sub(订阅/发布)模式,否则集群中其他服服务器节点的一级缓存数据无法删除 Map<String, Object> message = new HashMap<>(); message.put("cacheName", name); ...
} return value; } /** * 查询二级缓存 * * @param key * @param valueLoader * @return */ private <T> Object getForSecondaryCache(Object key, Callable<T> valueLoader) { T value = redisCache.get(key, valueLoader); logger.debug("查询二级缓存 key:{},返回值是:{}", key, JSON.to...
repos\spring-boot-student-master\spring-boot-student-cache-redis-caffeine\src\main\java\com\xiaolyuh\cache\layering\LayeringCache.java
1
请完成以下Java代码
public void setMemo (final @Nullable java.lang.String Memo) { set_Value (COLUMNNAME_Memo, Memo); } @Override public java.lang.String getMemo() { return get_ValueAsString(COLUMNNAME_Memo); } @Override public void setProcessed (final boolean Processed) { set_Value (COLUMNNAME_Processed, Processed); } ...
@Override public void setStmtAmt (final BigDecimal StmtAmt) { set_Value (COLUMNNAME_StmtAmt, StmtAmt); } @Override public BigDecimal getStmtAmt() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_StmtAmt); return bd != null ? bd : BigDecimal.ZERO; } @Override public void setTrxAmt (final BigDec...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.base\src\main\java-gen\org\compiere\model\X_C_BankStatementLine.java
1
请完成以下Java代码
public class TasklistContainerBootstrap implements ServletContextListener { protected TasklistEnvironment environment; @Override public void contextInitialized(ServletContextEvent sce) { environment = createTasklistEnvironment(); environment.setup(); WebApplicationUtil.setApplicationServer(sce.get...
public void tearDown() { Tasklist.setTasklistRuntimeDelegate(null); } public void setup() { Tasklist.setTasklistRuntimeDelegate(new DefaultTasklistRuntimeDelegate()); } protected RuntimeContainerDelegate getContainerRuntimeDelegate() { return RuntimeContainerDelegate.INSTANCE.get(); ...
repos\camunda-bpm-platform-master\webapps\assembly\src\main\java\org\camunda\bpm\tasklist\impl\web\bootstrap\TasklistContainerBootstrap.java
1
请完成以下Java代码
public BigDecimal getValueAsBigDecimal(final BigDecimal defaultValueIfNull) { return value != null ? toBigDecimal(value) : defaultValueIfNull; } @SuppressWarnings("unused") public Optional<BigDecimal> getValueAsBigDecimalOptional() { return Optional.ofNullable(getValueAsBigDecimal(null)); } @Nullable priv...
} else { throw new AdempiereException("Cannot convert value '" + value + "' (" + value.getClass() + ") to " + IntegerLookupValue.class); } } @Nullable public <T extends ReferenceListAwareEnum> T getValueAsEnum(@NonNull final Class<T> enumType) { if (value == null) { return null; } else if (enum...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\datatypes\json\JSONDocumentChangedEvent.java
1
请完成以下Java代码
public class WebAuthnAuthenticationRequestToken extends AbstractAuthenticationToken { @Serial private static final long serialVersionUID = -1682693433877522403L; private final RelyingPartyAuthenticationRequest webAuthnRequest; /** * Creates a new instance. * @param webAuthnRequest the {@link RelyingPartyAuth...
@Override public void setAuthenticated(boolean authenticated) { Assert.isTrue(!authenticated, "Cannot set this token to trusted"); super.setAuthenticated(authenticated); } @Override public Object getCredentials() { return this.webAuthnRequest.getPublicKey(); } @Override public @Nullable Object getPrincip...
repos\spring-security-main\webauthn\src\main\java\org\springframework\security\web\webauthn\authentication\WebAuthnAuthenticationRequestToken.java
1
请完成以下Java代码
public TaxCategoryId computeTaxCategoryId() { final IPricingContext pricingCtx = createPricingContext() .setDisallowDiscount(true); // don't bother computing discounts; we know that the tax category is not related to them. final IPricingResult pricingResult = pricingBL.calculatePrice(pricingCtx); if (!prici...
{ final IEditablePricingContext pricingCtx = createPricingContext(); return pricingBL.calculatePrice(pricingCtx); } public PriceLimitRuleResult computePriceLimit() { final I_C_OrderLine orderLine = request.getOrderLine(); return pricingBL.computePriceLimit(PriceLimitRuleContext.builder() .pricingContex...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\order\impl\OrderLinePriceCalculator.java
1
请在Spring Boot框架中完成以下Java代码
public BigDecimal getNumberOfPackages() { return numberOfPackages; } /** * Sets the value of the numberOfPackages property. * * @param value * allowed object is * {@link BigDecimal } * */ public void setNumberOfPackages(BigDecimal value) { th...
/** * Sets the value of the suppliersPackagingNumber property. * * @param value * allowed object is * {@link String } * */ public void setSuppliersPackagingNumber(String value) { this.suppliersPackagingNumber = value; } /** * Gets the value of t...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_ecosio_remadv\at\erpel\schemas\_1p0\documents\PackagingDetailsType.java
2
请完成以下Java代码
public Long getAverageRt() { return averageRt; } public void setAverageRt(Long averageRt) { this.averageRt = averageRt; } public Long getSuccessQps() { return successQps; } public void setSuccessQps(Long successQps) { this.successQps = successQps; } pu...
return oneMinuteException; } public void setOneMinuteException(Long oneMinuteException) { this.oneMinuteException = oneMinuteException; } public Long getOneMinuteTotal() { return oneMinuteTotal; } public void setOneMinuteTotal(Long oneMinuteTotal) { this.oneMinuteTotal...
repos\spring-boot-student-master\spring-boot-student-sentinel-dashboard\src\main\java\com\alibaba\csp\sentinel\dashboard\domain\ResourceTreeNode.java
1
请完成以下Spring Boot application配置
server.port=9999 # Mysql 数据源配置 spring.datasource.url=jdbc:mysql://xxx.xxx.xxx.xxx:3306/demo?useUnicode=true&characterEncoding=utf-8&useSSL=false spring.datasource.username=root spring.datasource.password=xxxxxx spring.datasource.driver-class-name=com.mysql.jdbc.Driver # 初始化时建立物理连接的个数 spring.datasource.druid.initial-s...
ilters=stat,wall # 通过connectProperties属性来打开mergeSql功能;慢SQL记录 spring.datasource.druid.connection-properties=druid.stat.mergeSql=true;druid.stat.slowSqlMillis=500 # 合并多个DruidDataSource的监控数据 spring.datasource.druid.use-global-data-source-stat=true # 关于Druid可视化界面登录的权限控制 spring.datasource.druid.stat-view-servlet.login-u...
repos\Spring-Boot-In-Action-master\springbt_uid_generator\uid-consumer\src\main\resources\application.properties
2
请在Spring Boot框架中完成以下Java代码
private static Collection<? extends OrderByField> createOrderByFields(Table table, Sort sortToUse) { List<OrderByField> fields = new ArrayList<>(); for (Sort.Order order : sortToUse) { String propertyName = order.getProperty(); OrderByField orderByField = !propertyName.contains(...
// Use a composite alias of "tableName_columnName" String.format("%s_%s", tableName, columnName) ) ); } /** * Converts a camel case string to snake case. * * @param input The camel case string to be converted to snake case. * @return The input string conv...
repos\tutorials-master\jhipster-8-modules\jhipster-8-microservice\gateway-app\src\main\java\com\gateway\repository\EntityManager.java
2
请完成以下Java代码
public String getIcon() { return "InfoBPartner16"; } @Override public boolean isAvailable() { final int adClientId = Env.getAD_Client_ID(Env.getCtx()); if (!Services.get(ISysConfigBL.class).getBooleanValue("UI_EnableBPartnerContextMenu", true, adClientId)) { return false; } final VEditor editor = ...
final VEditor editor = getEditor(); final GridField gridField = editor.getField(); final Lookup lookup = gridField.getLookup(); final int windowNo = gridField.getWindowNo(); final VBPartner vbp = new VBPartner(Env.getWindow(windowNo), windowNo); int BPartner_ID = 0; // if update, get current value if (!c...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java\org\compiere\grid\ed\menu\BPartnerNewUpdateContextEditorAction.java
1
请在Spring Boot框架中完成以下Java代码
public class Employee { @ApiModelProperty(notes = "The database generated employee ID") private long id; @ApiModelProperty(notes = "The employee first name") private String firstName; @ApiModelProperty(notes = "The employee last name") private String lastName; @ApiModelProperty(notes = "The employee email id...
public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } @Column(name = "last_name", nullable = false) public String getLastName() { return lastName; } public void setLastName(String lastName) { this.lastName = lastName; } @Column...
repos\Spring-Boot-Advanced-Projects-main\springboot2-jpa-swagger2\src\main\java\net\alanbinu\springboot2\springboot2swagger2\model\Employee.java
2
请完成以下Java代码
public class SessionFixationProtectionEvent extends AbstractAuthenticationEvent { @Serial private static final long serialVersionUID = -2554621992006921150L; private final String oldSessionId; private final String newSessionId; /** * Constructs a new session fixation protection event. * @param authenticati...
* @return the old session ID. */ public String getOldSessionId() { return this.oldSessionId; } /** * Getter for the session ID after it was changed. * @return the new session ID. */ public String getNewSessionId() { return this.newSessionId; } }
repos\spring-security-main\web\src\main\java\org\springframework\security\web\authentication\session\SessionFixationProtectionEvent.java
1
请完成以下Java代码
public class SerializeOptionalTypeExample { public static void main(String[] args) { User user1 = new User(); user1.setUserId(1l); user1.setFirstName("baeldung"); serializeObject(user1, "user1.ser"); UserOptionalField user2 = new UserOptionalField(); user2.setUserId...
try { FileOutputStream file = new FileOutputStream(fileName); ObjectOutputStream out = new ObjectOutputStream(file); out.writeObject(object); out.close(); file.close(); System.out.println("Object " + object.toString() + " has been serialized to ...
repos\tutorials-master\core-java-modules\core-java-optional\src\main\java\com\baeldung\optionalreturntype\SerializeOptionalTypeExample.java
1
请在Spring Boot框架中完成以下Java代码
public class Store { @Id @GeneratedValue private int id; private String name; @Embedded private Address address; @OneToMany( mappedBy = "store", cascade = CascadeType.ALL, orphanRemoval = true ) private List<Product> products = new ArrayList<>(); ...
} public Address getAddress() { return address; } public void setAddress(Address address) { this.address = address; } public int getId() { return id; } public void setId(int id) { this.id = id; } public void addProduct(Product product) { p...
repos\tutorials-master\spring-boot-modules\spring-boot-data-2\src\main\java\com\baeldung\javers\domain\Store.java
2
请完成以下Java代码
public String getSalt() { return salt; } public void setSalt(String salt) { this.salt = salt; } public byte getState() { return state; } public void setState(byte state) { this.state = state; } public List<SysRole> getRoleList() { return roleLi...
} public void setRoleList(List<SysRole> roleList) { this.roleList = roleList; } /** * Salt * @return */ public String getCredentialsSalt(){ return this.username+this.salt; } }
repos\springboot-demo-master\shiro\src\main\java\com\et\shiro\entity\UserInfo.java
1
请完成以下Java代码
protected TaskEntityManager getTaskEntityManager() { return getProcessEngineConfiguration().getTaskEntityManager(); } protected IdentityLinkEntityManager getIdentityLinkEntityManager() { return getProcessEngineConfiguration().getIdentityLinkEntityManager(); } protected EventSubscriptio...
} protected HistoricDetailEntityManager getHistoricDetailEntityManager() { return getProcessEngineConfiguration().getHistoricDetailEntityManager(); } protected HistoricActivityInstanceEntityManager getHistoricActivityInstanceEntityManager() { return getProcessEngineConfiguration().getHisto...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\persistence\AbstractManager.java
1
请完成以下Java代码
public static ValueNamePair of( @JsonProperty("v") final String value, @JsonProperty("n") final String name, @JsonProperty("description") final String description, @JsonProperty("validationInformation") @Nullable final ValueNamePairValidationInformation validationInformation) { if (Objects.equals(value, ...
@JsonInclude(JsonInclude.Include.NON_NULL) public ValueNamePairValidationInformation getValidationInformation() { return m_validationInformation; } /** * Get ID * * @return Value */ @Override @JsonIgnore public String getID() { return m_value; } // getID @Override public boolean equals(final...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\util\ValueNamePair.java
1
请在Spring Boot框架中完成以下Java代码
public String getLastName() { return lastName; } public void setLastName(String lastName) { this.lastName = lastName; } public Integer getAge() { return age; } public void setAge(Integer age) { this.age = age; } public Boolean getBoss() { retur...
public List<Object> getList() { return list; } public void setList(List<Object> list) { this.list = list; } public Dog getDog() { return dog; } public void setDog(Dog dog) { this.dog = dog; } @Override public String toString() { final Strin...
repos\SpringBootLearning-master (1)\springboot-config\src\main\java\com\gf\entity\Person.java
2
请完成以下Java代码
private List<IHUDocumentLine> createHUDocumentLines(final HUDocumentsCollector documentsCollector, final I_M_InOut inOut) { final List<I_M_InOutLine> ioLines = Services.get(IInOutDAO.class).retrieveLines(inOut); if (ioLines.isEmpty()) { throw AdempiereException.newWithTranslatableMessage("@NoLines@ (@M_InOut_...
} // // Create Target Qty final Capacity targetCapacity = Capacity.createCapacity( ioLine.getMovementQty(), // qty ProductId.ofRepoId(ioLine.getM_Product_ID()), uomDAO.getById(ioLine.getC_UOM_ID()), false // allowNegativeCapacity ); documentsCollector.getTargetCapacities().add(targ...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\inout\impl\MInOutHUDocumentFactory.java
1
请完成以下Java代码
public final ProductsProposalView createView(@NonNull final ProductsProposalView parentView) { final PriceListVersionId basePriceListVersionId = parentView.getBasePriceListVersionIdOrFail(); final ProductsProposalRowsData rowsData = ProductsProposalRowsLoader.builder() .bpartnerProductStatsService(bpartnerPro...
protected List<RelatedProcessDescriptor> getRelatedProcessDescriptors() { return ImmutableList.of( createProcessDescriptor(WEBUI_ProductsProposal_AddProductFromBasePriceList.class)); } @Override public ProductsProposalView filterView( final IView view, final JSONFilterViewRequest filterViewRequest, ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\order\products_proposal\view\BasePLVProductsProposalViewFactory.java
1
请完成以下Java代码
public class PaymentDto { private String type; private Double amount; public PaymentDto() { } public PaymentDto(String type, Double amount) { this.type = type; this.amount = amount; } public String getType() {
return type; } public void setType(String type) { this.type = type; } public Double getAmount() { return amount; } public void setAmount(Double amount) { this.amount = amount; } }
repos\tutorials-master\mapstruct-3\src\main\java\com\baeldung\dto\PaymentDto.java
1
请完成以下Java代码
public void setCamundaIntegration(String camundaIntegration) { this.camundaIntegration = camundaIntegration; } public LicenseKeyDataImpl getLicenseKey() { return licenseKey; } public void setLicenseKey(LicenseKeyDataImpl licenseKey) { this.licenseKey = licenseKey; } public synchronized Set<St...
commands.put(name, counter); } } } counter.mark(times); } public synchronized void addWebapp(String webapp) { if (!webapps.contains(webapp)) { webapps.add(webapp); } } public void clearCommandCounts() { commands.clear(); } public void clear() { commands.clear(...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\diagnostics\DiagnosticsRegistry.java
1
请完成以下Java代码
public void setC_ServiceLevelLine_ID (int C_ServiceLevelLine_ID) { if (C_ServiceLevelLine_ID < 1) set_ValueNoCheck (COLUMNNAME_C_ServiceLevelLine_ID, null); else set_ValueNoCheck (COLUMNNAME_C_ServiceLevelLine_ID, Integer.valueOf(C_ServiceLevelLine_ID)); } /** Get Service Level Line. @return Product R...
@return Date service was provided */ public Timestamp getServiceDate () { return (Timestamp)get_Value(COLUMNNAME_ServiceDate); } /** Get Record ID/ColumnName @return ID/ColumnName pair */ public KeyNamePair getKeyNamePair() { return new KeyNamePair(get_ID(), String.valueOf(g...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_ServiceLevelLine.java
1
请完成以下Java代码
static class AgeCalculator { private AgeCalculator() { } public static int calculateAge(String birthDate) throws CalculationException { if (birthDate == null || birthDate.isEmpty()) { throw new IllegalArgumentException(); } try { ...
DateParseException(String input) { super(input); } DateParseException(String input, Throwable thr) { super(input, thr); } } static class InvalidFormatException extends DateParseException { InvalidFormatException(String input, Throwable thr) { ...
repos\tutorials-master\core-java-modules\core-java-exceptions-2\src\main\java\com\baeldung\rootcausefinder\RootCauseFinder.java
1
请完成以下Java代码
protected Mono<Void> doNotify(InstanceEvent event, Instance instance) { return Mono .fromRunnable(() -> restTemplate.getForObject(buildUrl(), Void.class, createMessage(event, instance))); } protected String buildUrl() { return String.format("%s/bot%s/sendmessage?chat_id={chat_id}&text={text}&parse_mode={parse...
return chatId; } public void setChatId(@Nullable String chatId) { this.chatId = chatId; } @Nullable public String getAuthToken() { return authToken; } public void setAuthToken(@Nullable String authToken) { this.authToken = authToken; } public boolean isDisableNotify() { return disableNotify; } p...
repos\spring-boot-admin-master\spring-boot-admin-server\src\main\java\de\codecentric\boot\admin\server\notify\TelegramNotifier.java
1
请完成以下Java代码
public KeyNamePair getKeyNamePair() { return new KeyNamePair(get_ID(), String.valueOf(getM_Package_ID())); } /** Set Package Line. @param M_PackageLine_ID The detail content of the Package */ public void setM_PackageLine_ID (int M_PackageLine_ID) { if (M_PackageLine_ID < 1) set_ValueN...
*/ public void setQty (BigDecimal Qty) { set_Value (COLUMNNAME_Qty, Qty); } /** Get Quantity. @return Quantity */ public BigDecimal getQty () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); if (bd == null) return Env.ZERO; return bd; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_PackageLine.java
1
请完成以下Java代码
public AtJwtBuilder validators(Consumer<Map<String, OAuth2TokenValidator<Jwt>>> validators) { validators.accept(this.validators); return this; } /** * Build the validator * @return the RFC 9068 validator */ public OAuth2TokenValidator<Jwt> build() { List.of(JoseHeaderNames.TYP, JwtClaimNames.EX...
OAuth2Error error = new OAuth2Error(OAuth2ErrorCodes.INVALID_TOKEN, this.claimName + " is not valid", "https://datatracker.ietf.org/doc/html/rfc9068#name-data-structure"); if (predicate.test(jwt)) { return OAuth2TokenValidatorResult.success(); } return OAuth2TokenValidatorResult.failure(error); ...
repos\spring-security-main\oauth2\oauth2-jose\src\main\java\org\springframework\security\oauth2\jwt\JwtValidators.java
1
请完成以下Java代码
public String get_ValueAsString(final String variableName) { if (!has_Variable(variableName)) { return ""; } final Object value = POJOWrapper.this.getValuesMap().get(variableName); return value == null ? "" : value.toString(); } @Override public boolean has_Variable(final String va...
POJOModelInternalAccessor _modelInternalAccessor = null; public static IModelInternalAccessor getModelInternalAccessor(final Object model) { final POJOWrapper wrapper = getWrapper(model); if (wrapper == null) { return null; } return wrapper.getModelInternalAccessor(); } public boolean isProcessed() ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\wrapper\POJOWrapper.java
1
请完成以下Java代码
public String getId() { return id; } public String getKey() { return key; } public String getCategory() { return category; } public String getName() { return name; } public int getVersion() {
return version; } public String getResource() { return resource; } public String getDeploymentId() { return deploymentId; } public String getContextPath() { return contextPath; } }
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\hal\caseDefinition\HalCaseDefinition.java
1
请完成以下Java代码
public ELResolver getELResolver() { return elResolver; } public FunctionMapper getFunctionMapper() { if (functions == null) { functions = new ActivitiFunctionMapper(); } return functions; } public VariableMapper getVariableMapper() { if (variables ==...
public void setFunction(String prefix, String localName, Method method) { if (functions == null) { functions = new ActivitiFunctionMapper(); } functions.setFunction(prefix, localName, method); } public ValueExpression setVariable(String name, ValueExpression expression) { ...
repos\Activiti-develop\activiti-core-common\activiti-expression-language\src\main\java\org\activiti\core\el\ActivitiElContext.java
1
请完成以下Java代码
public void setName (String Name) { set_Value (COLUMNNAME_Name, Name); } /** Get Name. @return Alphanumeric identifier of the entity */ public String getName () { return (String)get_Value(COLUMNNAME_Name); } /** Get Record ID/ColumnName @return ID/ColumnName pair */ public KeyNam...
public void setR_MailText_ID (int R_MailText_ID) { if (R_MailText_ID < 1) set_ValueNoCheck (COLUMNNAME_R_MailText_ID, null); else set_ValueNoCheck (COLUMNNAME_R_MailText_ID, Integer.valueOf(R_MailText_ID)); } /** Get Mail Template. @return Text templates for mailings */ public int getR_MailText_ID...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_R_MailText.java
1
请完成以下Java代码
public final class InvoiceCandidateGenerateRequest { public static InvoiceCandidateGenerateRequest of(final IInvoiceCandidateHandler handler, final Object model) { return new InvoiceCandidateGenerateRequest(handler, model); } public static List<InvoiceCandidateGenerateRequest> ofAll(@NonNull final List<? extends...
private InvoiceCandidateGenerateRequest(@NonNull final IInvoiceCandidateHandler handler, @NonNull final Object model) { this.handler = handler; this.model = model; } public IInvoiceCandidateHandler getHandler() { return handler; } public <T> T getModel(final Class<T> modelClass) { return InterfaceWrapp...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\invoicecandidate\spi\InvoiceCandidateGenerateRequest.java
1
请完成以下Java代码
public String getTUName() { return wrappedHUInfo.getTUName(); } @Override public int getQtyTU() { return qtyTU; } @Override public IHandlingUnitsInfo add(@NonNull final IHandlingUnitsInfo infoToAdd) { Check.assume(Objects.equals(infoToAdd.getTUName(), this.getTUName()), "infoToA...
} @Override public void setQtyTU(int qtyTU) { this.qtyTU = qtyTU; } @Override public String toString() { return ObjectUtils.toString(this); } }; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.materialtracking\src\main\java\de\metas\materialtracking\spi\impl\HandlingUnitsInfoFactory.java
1
请完成以下Java代码
public void uncaughtException(Thread t, Throwable e) { LOGGER.error("unhandled exception in thread: " + t.getId() + ":" + t.getName(), e); } }); } return thread; } /** * Get the method invoker's class name * * @param depth * ...
} /** * Getters & Setters */ public String getName() { return name; } public void setName(String name) { this.name = name; } public boolean isDaemon() { return daemon; } public void setDaemon(boolean daemon) { this.daemon = daemon; } ...
repos\Spring-Boot-In-Action-master\id-spring-boot-starter\src\main\java\com\baidu\fsg\uid\utils\NamingThreadFactory.java
1
请完成以下Java代码
public class ParallelStreamApplication { public long usingCollectionsParallel(Collection<Book> listOfbooks, int year) { AtomicLong countOfBooks = new AtomicLong(); listOfbooks.parallelStream() .forEach(book -> { if (book.getYearPublished() == year) { countO...
}); return countOfBooks.get(); } public long usingWithCustomSpliterator(MyBookContainer<Book> listOfBooks, int year) { AtomicLong countOfBooks = new AtomicLong(); listOfBooks.parallelStream() .forEach(book -> { if (book.getYearPublished() == year) { ...
repos\tutorials-master\core-java-modules\core-java-streams-5\src\main\java\com\baeldung\streams\parallelstream\ParallelStreamApplication.java
1
请完成以下Java代码
public SetRemovalTimeToHistoricDecisionInstancesBuilder calculatedRemovalTime() { ensureNull(BadUserRequestException.class, "The removal time modes are mutually exclusive","mode", mode); this.mode = Mode.CALCULATED_REMOVAL_TIME; return this; } public SetRemovalTimeToHistoricDecisionInstancesBuilder cl...
} public List<String> getIds() { return ids; } public Date getRemovalTime() { return removalTime; } public Mode getMode() { return mode; } public enum Mode { CALCULATED_REMOVAL_TIME, ABSOLUTE_REMOVAL_TIME, CLEARED_REMOVAL_TIME; } public boolean isHierarchical() { retur...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\history\SetRemovalTimeToHistoricDecisionInstancesBuilderImpl.java
1
请完成以下Java代码
public String getExceptionMessage() { return exceptionMessage; } public void setExceptionMessage(String exceptionMessage) { this.exceptionMessage = exceptionMessage; } public String getValidationMessage() { return validationMessage; } public void setValidationMessage(S...
return (obj instanceof Date || obj instanceof DateTime || obj instanceof LocalDate || obj instanceof java.time.LocalDate || obj instanceof LocalDateTime || obj instanceof Instant); } protected static boolean isNumber(Object obj) { return obj instanceof Number; } protected Map<S...
repos\flowable-engine-main\modules\flowable-dmn-api\src\main\java\org\flowable\dmn\api\DecisionExecutionAuditContainer.java
1
请完成以下Java代码
public ResponseEntity<JsonOLCandCreateBulkResponse> createOrderLineCandidate(@RequestBody @NonNull final JsonOLCandCreateRequest request) { return createOrderLineCandidates(JsonOLCandCreateBulkRequest.of(request)); } @PostMapping(PATH_BULK) public ResponseEntity<JsonOLCandCreateBulkResponse> createOrderLineCandi...
return ResponseEntity.badRequest() .body(JsonOLCandCreateBulkResponse.error(JsonErrors.ofThrowable(ex, adLanguage))); } } @PutMapping(PATH_PROCESS) public ResponseEntity<JsonProcessCompositeResponse> processOLCands(@RequestBody @NonNull final JsonOLCandProcessRequest request) { try { final JsonProces...
repos\metasfresh-new_dawn_uat\backend\de.metas.business.rest-api-impl\src\main\java\de\metas\rest_api\v2\ordercandidates\impl\OrderCandidatesRestController.java
1
请完成以下Java代码
public static WFProcessId ofIdPart(@NonNull final MobileApplicationId applicationId, @NonNull final RepoIdAware idPart) { return new WFProcessId(applicationId, String.valueOf(idPart.getRepoId())); } private static final String SEPARATOR = "-"; @Getter private final MobileApplicationId applicationId; private f...
try { final int repoIdInt = Integer.parseInt(idPart); return idMapper.apply(repoIdInt); } catch (final Exception ex) { throw new AdempiereException("Failed converting " + this + " to ID", ex); } } @NonNull public <ID extends RepoIdAware> ID getRepoIdAssumingApplicationId(@NonNull MobileApplicatio...
repos\metasfresh-new_dawn_uat\backend\de.metas.workflow.rest-api\src\main\java\de\metas\workflow\rest_api\model\WFProcessId.java
1
请完成以下Java代码
public java.lang.String getPath() { return get_ValueAsString(COLUMNNAME_Path); } @Override public void setRemoteAddr (final @Nullable java.lang.String RemoteAddr) { set_Value (COLUMNNAME_RemoteAddr, RemoteAddr); } @Override public java.lang.String getRemoteAddr() { return get_ValueAsString(COLUMNNAME...
{ return get_ValueAsString(COLUMNNAME_Status); } @Override public void setTime (final java.sql.Timestamp Time) { set_Value (COLUMNNAME_Time, Time); } @Override public java.sql.Timestamp getTime() { return get_ValueAsTimestamp(COLUMNNAME_Time); } @Override public void setUI_Trace_ExternalId (final @...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_API_Request_Audit.java
1
请完成以下Java代码
public Status getStatus() { return status; } public void setStatus(Status status) { this.status = status; } /** * The nested class for {@link StatusChecker}'s names * <pre> * registry= org.apache.dubbo.registry.status.RegistryStatusChecker * spring= org.apache.dubbo...
*/ private Set<String> defaults = new LinkedHashSet<>(Arrays.asList("memory", "load")); /** * The extra names of {@link StatusChecker} */ private Set<String> extras = new LinkedHashSet<>(); public Set<String> getDefaults() { return defaults; } ...
repos\dubbo-spring-boot-project-master\dubbo-spring-boot-compatible\actuator\src\main\java\org\apache\dubbo\spring\boot\actuate\health\DubboHealthIndicatorProperties.java
1
请完成以下Java代码
public final void setClaimTypeConverterFactory( Function<ClientRegistration, Converter<Map<String, Object>, Map<String, Object>>> claimTypeConverterFactory) { Assert.notNull(claimTypeConverterFactory, "claimTypeConverterFactory cannot be null"); this.claimTypeConverterFactory = claimTypeConverterFactory; } /*...
*/ public final void setRetrieveUserInfo(Predicate<OidcUserRequest> retrieveUserInfo) { Assert.notNull(retrieveUserInfo, "retrieveUserInfo cannot be null"); this.retrieveUserInfo = retrieveUserInfo; } /** * Allows converting from the {@link OidcUserSource} to and {@link OidcUser}. * @param oidcUserConverter...
repos\spring-security-main\oauth2\oauth2-client\src\main\java\org\springframework\security\oauth2\client\oidc\userinfo\OidcUserService.java
1
请在Spring Boot框架中完成以下Java代码
public class JDBCController { @Autowired private DataSource dataSource; @RequestMapping("/commit") public List<Map<String, String>> select() { List<Map<String, String>> results = new ArrayList<>(); try { Connection connection = dataSource.getConnection(); Statem...
try (Connection connection = dataSource.getConnection()) { connection.rollback(); } catch (Exception e) { throw new IllegalStateException(e); } return results; } @RequestMapping("/query-error") public void error() { try (Connection connection = dataSo...
repos\tutorials-master\spring-boot-modules\spring-boot-3-observation\src\main\java\com\baeldung\p6spy\controllers\JDBCController.java
2
请完成以下Java代码
public String getDescription () { return (String)get_Value(COLUMNNAME_Description); } /** Set Direct Deploy. @param DirectDeploy Direct Deploy */ public void setDirectDeploy (String DirectDeploy) { set_Value (COLUMNNAME_DirectDeploy, DirectDeploy); } /** Get Direct Deploy. @return Direct Deploy */...
/** Set Media Type. @param MediaType Defines the media type for the browser */ public void setMediaType (String MediaType) { set_Value (COLUMNNAME_MediaType, MediaType); } /** Get Media Type. @return Defines the media type for the browser */ public String getMediaType () { return (String)get_V...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_CM_Media.java
1
请完成以下Java代码
protected final QueueWorkPackageId getQueueWorkPackageId() { Check.assumeNotNull(workpackage, "workpackage not null"); return QueueWorkPackageId.ofRepoId(this.workpackage.getC_Queue_WorkPackage_ID()); } /** * @return <code>true</code>, i.e. ask the executor to run this processor in transaction (backward compa...
public ILatchStragegy getLatchStrategy() { return NullLatchStrategy.INSTANCE; } public final <T> List<T> retrieveItems(final Class<T> modelType) { return Services.get(IQueueDAO.class).retrieveAllItemsSkipMissing(getC_Queue_WorkPackage(), modelType); } /** * Retrieves all active POs, even the ones that are...
repos\metasfresh-new_dawn_uat\backend\de.metas.async\src\main\java\de\metas\async\spi\WorkpackageProcessorAdapter.java
1
请完成以下Java代码
public class AD_Table_CopyColumnsToAllAcctDocTables extends JavaProcess implements IProcessPrecondition { private final IADTableDAO adTablesRepo = Services.get(IADTableDAO.class); private final AcctDocRegistry acctDocRegistry = SpringContextHolder.instance.getBean(AcctDocRegistry.class); private static final String...
{ final I_AD_Table acctDocTable = adTablesRepo.retrieveTable(acctDocTableName); final CopyColumnsResult result = CopyColumnsProducer.newInstance() .setLogger(Loggables.nop()) .setTargetTable(acctDocTable) .setSourceColumns(acctDocTableTemplateColumns) .setSyncDatabase(true) .create(); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java\de\metas\acct\process\AD_Table_CopyColumnsToAllAcctDocTables.java
1
请在Spring Boot框架中完成以下Java代码
public void setStreet(String value) { this.street = value; } /** * Post-office box. * * @return * possible object is * {@link String } * */ public String getPOBox() { return poBox; } /** * Sets the value of the poBox property. ...
*/ public void setZIP(String value) { this.zip = value; } /** * Country information. * * @return * possible object is * {@link CountryType } * */ public CountryType getCountry() { return country; } /** * Sets the value of th...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_ecosio_remadv\at\erpel\schemas\_1p0\documents\AddressType.java
2
请完成以下Java代码
public java.lang.String getMessageID () { return (java.lang.String)get_Value(COLUMNNAME_MessageID); } @Override public org.compiere.model.I_R_Request getR_Request() throws RuntimeException { return get_ValueAsPO(COLUMNNAME_R_Request_ID, org.compiere.model.I_R_Request.class); } @Override public void setR_...
/** Get Betreff. @return Mail Betreff */ @Override public java.lang.String getSubject () { return (java.lang.String)get_Value(COLUMNNAME_Subject); } @Override public org.compiere.model.I_AD_User getTo_User() throws RuntimeException { return get_ValueAsPO(COLUMNNAME_To_User_ID, org.compiere.model.I_AD_...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_Mail.java
1
请完成以下Java代码
protected String doIt() { final ImmutableSet<ResourceId> resourceIds = getSelectedResourceIds(); final QRCodePDFResource pdf = resourceQRCodePrintService.createPDF(resourceIds); getResult().setReportData(pdf, pdf.getFilename(), pdf.getContentType()); return MSG_OK; } private ImmutableSet<ResourceId> getSel...
final IView view = getView(); final DocumentIdsSelection rowIds = getSelectedRowIds(); final Set<DocumentId> rowIdsEffective; if (rowIds.isEmpty()) { return ImmutableSet.of(); } else if (rowIds.isAll()) { rowIdsEffective = view.streamByIds(DocumentIdsSelection.ALL) .map(IViewRow::getId) .c...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\resource\process\S_Resource_PrintQRCodes.java
1
请完成以下Java代码
public boolean isValidHuForReturn(final InOutId inOutId, final HuId huId) { final Optional<AttributeId> serialNoAttributeIdOptional = serialNoBL.getSerialNoAttributeId(); if (!serialNoAttributeIdOptional.isPresent()) { return false; } final AttributeId serialNoAttributeId = serialNoAttributeIdOptional.ge...
for (final I_M_InOutLine line : inOutLines) { final AttributeSetInstanceId asiID = AttributeSetInstanceId.ofRepoIdOrNull(line.getM_AttributeSetInstance_ID()); if (asiID == null) { continue; } final ProductId productId = ProductId.ofRepoId(line.getM_Product_ID()); final List<I_M_HU> husForLine...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\inout\impl\HUInOutBL.java
1
请完成以下Java代码
public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) { if (name.equals("toUnsignedString0")) { logger.info("Visiting unsigned method"); return tracer.visi...
@Override public FieldVisitor visitField(int access, String name, String desc, String signature, Object value) { if (name.equals(fieldName)) { isFieldPresent = true; } return cv.visitField(access, name, desc, signature, value); } ...
repos\tutorials-master\libraries-bytecode\src\main\java\com\baeldung\asm\CustomClassWriter.java
1
请完成以下Java代码
public int getCS_Creditpass_BP_Group_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_CS_Creditpass_BP_Group_ID); if (ii == null) return 0; return ii.intValue(); } @Override public de.metas.vertical.creditscore.creditpass.model.I_CS_Creditpass_Config getCS_Creditpass_Config() throws RuntimeException ...
public int getCS_Creditpass_Config_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_CS_Creditpass_Config_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Creditpass Einstellung. @param CS_Creditpass_Config_ID Creditpass Einstellung */ @Override public void setCS_Creditpass_Config_ID ...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.creditscore\creditpass\src\main\java-gen\de\metas\vertical\creditscore\creditpass\model\X_CS_Creditpass_BP_Group.java
1
请在Spring Boot框架中完成以下Java代码
public void putPDFCache(String key, String value) { pdfCache.put(key, value); } @Override public void putImgCache(String key, List<String> value) { imgCache.put(key, value); } @Override public Map<String, String> getPDFCache() { return pdfCache; } @Override ...
return mediaConvertCache.get(key); } @Override public void cleanCache() { initPDFCachePool(CacheService.DEFAULT_PDF_CAPACITY); initIMGCachePool(CacheService.DEFAULT_IMG_CAPACITY); initPdfImagesCachePool(CacheService.DEFAULT_PDFIMG_CAPACITY); initMediaConvertCachePool(CacheSe...
repos\kkFileView-master\server\src\main\java\cn\keking\service\cache\impl\CacheServiceJDKImpl.java
2
请完成以下Java代码
public List<IncidentEntity> findIncidentsByExecution(String id) { return getDbEntityManager().selectList("selectIncidentsByExecutionId", id); } @SuppressWarnings("unchecked") public List<IncidentEntity> findIncidentsByProcessInstance(String id) { return getDbEntityManager().selectList("selectIncidentsByP...
params.put("configuration", configuration); params.put("incidentType", incidentType); return getDbEntityManager().selectList("selectIncidentsByConfiguration", params); } @SuppressWarnings("unchecked") public List<Incident> findIncidentByQueryCriteria(IncidentQueryImpl incidentQuery, Page page) { conf...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\IncidentManager.java
1
请完成以下Java代码
public void setAuthenticationValidator(Consumer<OidcLogoutAuthenticationContext> authenticationValidator) { Assert.notNull(authenticationValidator, "authenticationValidator cannot be null"); this.authenticationValidator = authenticationValidator; } private SessionInformation findSessionInformation(Authentication...
return sessionInformation; } private static void throwError(String errorCode, String parameterName) { OAuth2Error error = new OAuth2Error(errorCode, "OpenID Connect 1.0 Logout Request Parameter: " + parameterName, "https://openid.net/specs/openid-connect-rpinitiated-1_0.html#ValidationAndErrorHandling"); thr...
repos\spring-security-main\oauth2\oauth2-authorization-server\src\main\java\org\springframework\security\oauth2\server\authorization\oidc\authentication\OidcLogoutAuthenticationProvider.java
1