instruction
string
input
string
output
string
source_file
string
priority
int64
请在Spring Boot框架中完成以下Java代码
private PackingItem getStateOrNull() { final TransactionalPackingItemSupport transactionalSupport = TransactionalPackingItemSupport.getCreate(); if (transactionalSupport == null) { // not running in transaction return null; } return transactionalSupport.getState(this); } /** * Called by API when ...
root.updateFrom(state); } /** * Creates a new instance which wraps a copy of this instances {@link #getDelegate()} value. */ @Override public IPackingItem copy() { return new TransactionalPackingItem(this); } @Override public boolean isSameAs(final IPackingItem item) { return Util.same(this, item); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\picking\service\TransactionalPackingItem.java
2
请完成以下Java代码
protected boolean isLeapYear(int year) { return ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0)); } protected int getLastDayOfMonth(int monthNum, int year) { switch (monthNum) { case 1: return 31; case 2: return (isLeapYear(year))...
return 31; case 11: return 30; case 12: return 31; default: throw new IllegalArgumentException("Illegal month number: " + monthNum); } } } class ValueSet { public int value; public int pos; }
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\calendar\CronExpression.java
1
请完成以下Java代码
public BoilerPlateContext getAttributes() { return boilerPlateMenu.getAttributes(); } public void setAttributes(final BoilerPlateContext attributes) { boilerPlateMenu.setAttributes(attributes); } public File getPDF(String fileNamePrefix) { throw new UnsupportedOperationException(); } private void acti...
throw new UnsupportedOperationException(); } public static boolean isHtml(String s) { if (s == null) return false; String s2 = s.trim().toUpperCase(); return s2.startsWith("<HTML>"); } public static String convertToHtml(String plainText) { if (plainText == null) return null; return plainText.rep...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java\org\compiere\grid\ed\RichTextEditor.java
1
请完成以下Java代码
public int nextInt() { ensureAvailableBytes(4); return super.nextInt(); } @Override public char nextChar() { ensureAvailableBytes(2); return super.nextChar(); } @Override public double nextDouble() { ensureAvailableBytes(8); return su...
@Override public byte nextByte() { ensureAvailableBytes(1); return super.nextByte(); } @Override public float nextFloat() { ensureAvailableBytes(4); return super.nextFloat(); } protected abstract void ensureAvailableBytes(int size); }
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\corpus\io\ByteArrayStream.java
1
请完成以下Java代码
public static CloseableHttpClient setViaSocketFactory() { SSLConnectionSocketFactory sslsf = new SSLConnectionSocketFactory( SSLContexts.createDefault(), new String[] { "TLSv1.2", "TLSv1.3" }, null, SSLConnectionSocketFactory.getDefaultHostnameVerifier()); return...
// Alternatively: // return HttpClients.custom().useSystemProperties().build(); } public static void main(String[] args) throws IOException { // Alternatively: // CloseableHttpClient httpClient = setTlsVersionPerConnection(); // CloseableHttpClient httpClient = setViaSystemPrope...
repos\tutorials-master\apache-httpclient4\src\main\java\com\baeldung\tlsversion\ClientTlsVersionExamples.java
1
请在Spring Boot框架中完成以下Java代码
public class DimensionService { private final ImmutableMap<String, DimensionFactory<?>> factoriesByTableName; public DimensionService(@NonNull final List<DimensionFactory<?>> factories) { factoriesByTableName = Maps.uniqueIndex(factories, DimensionFactory::getHandledTableName); } public Dimension getFromRecord...
{ final String tableName = InterfaceWrapperHelper.getModelTableName(record); getFactory(tableName).updateRecord(record, from); } private DimensionFactory<Object> getFactory(final String tableName) { @SuppressWarnings("unchecked") final DimensionFactory<Object> factory = (DimensionFactory<Object>)factoriesBy...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\document\dimension\DimensionService.java
2
请完成以下Java代码
public java.lang.String getESRReferenceNumber() { return get_ValueAsString(COLUMNNAME_ESRReferenceNumber); } @Override public void setIsMainVAT (final boolean IsMainVAT) { set_ValueNoCheck (COLUMNNAME_IsMainVAT, IsMainVAT); } @Override public boolean isMainVAT() { return get_ValueAsBoolean(COLUMNNAME...
return bd != null ? bd : BigDecimal.ZERO; } @Override public void setTaxAmtWithSurchargeAmt (final BigDecimal TaxAmtWithSurchargeAmt) { set_ValueNoCheck (COLUMNNAME_TaxAmtWithSurchargeAmt, TaxAmtWithSurchargeAmt); } @Override public BigDecimal getTaxAmtWithSurchargeAmt() { final BigDecimal bd = get_Value...
repos\metasfresh-new_dawn_uat\backend\de.metas.edi\src\main\java-gen\de\metas\esb\edi\model\X_EDI_cctop_901_991_v.java
1
请完成以下Java代码
public class SingleResourceAutoDeploymentStrategy extends AbstractAutoDeploymentStrategy { /** * The deployment mode this strategy handles. */ public static final String DEPLOYMENT_MODE = "single-resource"; public SingleResourceAutoDeploymentStrategy(ApplicationUpgradeContextService applicationU...
final RepositoryService repositoryService ) { // Create a separate deployment for each resource using the resource // name for (final Resource resource : resources) { final String resourceName = determineResourceName(resource); final DeploymentBuilder deploymentBuild...
repos\Activiti-develop\activiti-core\activiti-spring\src\main\java\org\activiti\spring\autodeployment\SingleResourceAutoDeploymentStrategy.java
1
请完成以下Java代码
public class EntityTypeComparatorForModifications implements Comparator<Class<?>> { public static final Map<Class<?>, Integer> TYPE_ORDER = new HashMap<Class<?>, Integer>(); static { // 1 TYPE_ORDER.put(IncidentEntity.class, 1); TYPE_ORDER.put(VariableInstanceEntity.class, 1); TYPE_ORDER.put(Iden...
if(firstEntityType == secondEntityType) { return 0; } Integer firstIndex = TYPE_ORDER.get(firstEntityType); Integer secondIndex = TYPE_ORDER.get(secondEntityType); // unknown type happens before / after everything else if(firstIndex == null) { firstIndex = Integer.MAX_VALUE; } ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\db\entitymanager\operation\comparator\EntityTypeComparatorForModifications.java
1
请完成以下Java代码
public JWKSet get() { this.rwLock.readLock().lock(); if (shouldRefresh()) { this.rwLock.readLock().unlock(); this.rwLock.writeLock().lock(); try { if (shouldRefresh()) { this.jwkSet = retrieve(this.jwkSetUrl); this.lastUpdatedAt = Instant.now(); } this.rwLock.readL...
finally { this.rwLock.readLock().unlock(); } } private boolean shouldRefresh() { // Refresh every 5 minutes return (this.jwkSet == null || this.clock.instant().isAfter(this.lastUpdatedAt.plus(5, ChronoUnit.MINUTES))); } } } }
repos\spring-security-main\oauth2\oauth2-authorization-server\src\main\java\org\springframework\security\oauth2\server\authorization\authentication\X509SelfSignedCertificateVerifier.java
1
请完成以下Java代码
public void setId(Long id) { this.id = id; } public void setName(final String name) { this.name = name; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((name == null) ? 0 : name.hashCode()); return...
if (obj == null) return false; if (getClass() != obj.getClass()) return false; Foo other = (Foo) obj; if (name == null) { if (other.name != null) return false; } else if (!name.equals(other.name)) return false; retur...
repos\tutorials-master\spring-web-modules\spring-5-mvc\src\main\java\com\baeldung\model\Foo.java
1
请完成以下Java代码
public int getPickFrom_Locator_ID() { return get_ValueAsInt(COLUMNNAME_PickFrom_Locator_ID); } @Override public void setPickFrom_Warehouse_ID (final int PickFrom_Warehouse_ID) { if (PickFrom_Warehouse_ID < 1) set_ValueNoCheck (COLUMNNAME_PickFrom_Warehouse_ID, null); else set_ValueNoCheck (COLUMNNA...
public void setRejectReason (final @Nullable java.lang.String RejectReason) { set_Value (COLUMNNAME_RejectReason, RejectReason); } @Override public java.lang.String getRejectReason() { return get_ValueAsString(COLUMNNAME_RejectReason); } @Override public void setSinglePackage (final boolean SinglePackage...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java-gen\de\metas\handlingunits\model\X_M_Picking_Job_Step.java
1
请完成以下Java代码
public void connectInOutLineToSubscriptionProgressIfPossible(@NonNull final I_M_ShipmentSchedule_QtyPicked shipmentScheduleQtyPicked) { if (hasNoInOutLine(shipmentScheduleQtyPicked)) { return; } final I_M_ShipmentSchedule shipmentSchedule = shipmentScheduleQtyPicked.getM_ShipmentSchedule(); if (hasNoSubs...
private boolean hasNoSubscriptionProgress(@NonNull final I_M_ShipmentSchedule shipmentSchedule) { return shipmentSchedule.getAD_Table_ID() != getTableId(I_C_SubscriptionProgress.class); } private void connectInOutLineToSubscriptionProgress(@NonNull final I_M_ShipmentSchedule_QtyPicked shipmentScheduleQtyPicked) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\interceptor\M_ShipmentSchedule_QtyPicked.java
1
请完成以下Java代码
default void clearThreadState() { } /** * Return true if the offset should be committed for a handled error (no exception * thrown). * @return true to commit. */ default boolean isAckAfterHandle() { return true; } /** * Set to false to prevent the container from committing the offset of a recovered ...
default void setAckAfterHandle(boolean ack) { throw new UnsupportedOperationException("This error handler does not support setting this property"); } /** * Called when partitions are assigned. * @param consumer the consumer. * @param partitions the newly assigned partitions. * @param publishPause called to...
repos\spring-kafka-main\spring-kafka\src\main\java\org\springframework\kafka\listener\CommonErrorHandler.java
1
请完成以下Java代码
public org.compiere.model.I_R_RequestType getR_RequestType() throws RuntimeException { return get_ValueAsPO(COLUMNNAME_R_RequestType_ID, org.compiere.model.I_R_RequestType.class); } @Override public void setR_RequestType(org.compiere.model.I_R_RequestType R_RequestType) { set_ValueFromPO(COLUMNNAME_R_RequestT...
set_Value (COLUMNNAME_R_RequestType_ID, null); else set_Value (COLUMNNAME_R_RequestType_ID, Integer.valueOf(R_RequestType_ID)); } /** Get Anfrageart. @return Type of request (e.g. Inquiry, Complaint, ..) */ @Override public int getR_RequestType_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_R_Re...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_UserBPAccess.java
1
请完成以下Java代码
public Integer getProcessDefinitionVersion() { return processDefinitionVersion; } public void setProcessDefinitionVersion(Integer processDefinitionVersion) { this.processDefinitionVersion = processDefinitionVersion; } public String getCaseDefinitionName() { return caseDefinitionName; } public...
return id; } public String getEventType() { return eventType; } public void setEventType(String eventType) { this.eventType = eventType; } public long getSequenceCounter() { return sequenceCounter; } public void setSequenceCounter(long sequenceCounter) { this.sequenceCounter = sequen...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\history\event\HistoryEvent.java
1
请完成以下Java代码
public Date getCreateTime() { return createTime; } public Date getEndTime() { return endTime; } public Long getDurationInMillis() { return durationInMillis; } public Boolean getRequired() { return required; } public Boolean getAvailable() { return available; } public Boolean...
public static HistoricCaseActivityInstanceDto fromHistoricCaseActivityInstance(HistoricCaseActivityInstance historicCaseActivityInstance) { HistoricCaseActivityInstanceDto dto = new HistoricCaseActivityInstanceDto(); dto.id = historicCaseActivityInstance.getId(); dto.parentCaseActivityInstanceId = histori...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\history\HistoricCaseActivityInstanceDto.java
1
请完成以下Java代码
public void setColumnSQL (String ColumnSQL) { set_Value (COLUMNNAME_ColumnSQL, ColumnSQL); } /** Get Column SQL. @return Virtual Column (r/o) */ public String getColumnSQL () { return (String)get_Value(COLUMNNAME_ColumnSQL); } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_...
*/ public String getEntityType () { return (String)get_Value(COLUMNNAME_EntityType); } /** Set Sequence. @param SeqNo Method of ordering records; lowest number comes first */ public void setSeqNo (int SeqNo) { set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); } /** Get Sequence. @return Met...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_Index_Column.java
1
请完成以下Java代码
public class ForkJoinCountTask extends RecursiveTask<Long> { /** * 阀值 */ private int threshold = 10; /** * 任务的开始值 */ private long start; /** * 任务的结束值 */ private long end; public ForkJoinCountTask(long start, long end) { this.start = start; th...
long slip = (end - start) / 3; ForkJoinCountTask oneTask = new ForkJoinCountTask(start, start + slip); ForkJoinCountTask twoTask = new ForkJoinCountTask(start + slip + 1, start + slip * 2); ForkJoinCountTask threeTask = new ForkJoinCountTask(start + slip * 2 + 1, end); //...
repos\spring-boot-student-master\spring-boot-student-concurrent\src\main\java\com\xiaolyuh\ForkJoinCountTask.java
1
请在Spring Boot框架中完成以下Java代码
public class DocumentChangeHandler_Order implements DocumentChangeHandler<I_C_Order> { private final IOrderDAO orderDAO = Services.get(IOrderDAO.class); @NonNull private final CallOrderContractService callOrderContractService; @NonNull private final CallOrderService callOrderService; @NonNull private final Call...
} } @Override public void onReverse(final I_C_Order model) { throw new AdempiereException("Orders cannot be reversed!"); } @Override public void onReactivate(final I_C_Order order) { if (!callOrderService.isCallOrder(order)) { return; } final OrderId orderId = OrderId.ofRepoId(order.getC_Order_I...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\callorder\detail\document\DocumentChangeHandler_Order.java
2
请完成以下Java代码
public class DbBulkOperation extends DbOperation { public DbBulkOperation() { } public DbBulkOperation(DbOperationType operationType, Class<? extends DbEntity> entityType, String statement, Object parameter) { this.operationType = operationType; this.entityType = entityType; this.statement = stateme...
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((parameter == null) ? 0 : parameter.hashCode()); result = prime * result + ((statement == null) ? 0 : statement.hashCode()); return result; } @Override public boolean equals(Object obj) { ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\db\entitymanager\operation\DbBulkOperation.java
1
请完成以下Java代码
class Vertex { String label; Vertex(String label) { this.label = label; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + getOuterType().hashCode(); result = pri...
} else if (!label.equals(other.label)) return false; return true; } @Override public String toString() { return label; } private Graph getOuterType() { return Graph.this; } } }
repos\tutorials-master\data-structures\src\main\java\com\baeldung\graph\Graph.java
1
请完成以下Java代码
public Object getParameterDefaultValue(final IProcessDefaultParameter parameter) { if (PARAM_QtyCUsPerTU.equals(parameter.getColumnName())) { final I_M_ReceiptSchedule receiptSchedule = getM_ReceiptSchedule(); return getDefaultAvailableQtyToReceive(receiptSchedule); } else { return DEFAULT_VALUE_NOT...
private I_M_ReceiptSchedule getM_ReceiptSchedule() { return getRecord(I_M_ReceiptSchedule.class); } @Override protected BigDecimal getEffectiveQtyToReceive(I_M_ReceiptSchedule rs) { if(p_QtyCUsPerTU == null || p_QtyCUsPerTU.signum() <= 0) { throw new FillMandatoryException(PARAM_QtyCUsPerTU); } retu...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\handlingunits\process\WEBUI_M_ReceiptSchedule_ReceiveCUs_WithParam.java
1
请完成以下Java代码
public class MemberSuspectEvent extends MembershipEvent<MemberSuspectEvent> { private DistributedMember suspectMember; private String reason; /** * Constructs a new instance of {@link MemberSuspectEvent} initialized with the given {@link DistributionManager}. * * @param distributionManager {@link Distributi...
} /** * Builder method used to configure the {@link DistributedMember peer member} that is the subject of the suspicion * {@link MembershipEvent}. * * @param suspectMember {@link DistributedMember peer member} that is being suspected; may be {@literal null}. * @return this {@link MemberSuspectEvent}. * @s...
repos\spring-boot-data-geode-main\spring-geode-project\apache-geode-extensions\src\main\java\org\springframework\geode\distributed\event\support\MemberSuspectEvent.java
1
请完成以下Java代码
private String getOrLoadLotNoFromSeq(final @NonNull I_M_ReceiptSchedule receiptSchedule) { if (!lotNumberFromSeq.isPresent()) { final I_C_DocType docType = docTypeDAO.getById(DocTypeId.ofRepoId(receiptSchedule.getC_DocType_ID())); final DocSequenceId lotNoSequenceId = DocSequenceId.ofRepoIdOrNull(docType.get...
private void setVendorValueFromReceiptSchedule(@NonNull final I_M_ReceiptSchedule receiptSchedule, @NonNull final IAttributeStorage huAttributes) { if (huAttributes.hasAttribute(AttributeConstants.ATTR_Vendor_BPartner_ID) && huAttributes.getValueAsInt(AttributeConstants.ATTR_Vendor_BPartner_ID) > -1) { fina...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\handlingunits\process\ReceiptScheduleBasedProcess.java
1
请完成以下Java代码
public class UserSpecification implements Specification<User> { private SpecSearchCriteria criteria; public UserSpecification(final SpecSearchCriteria criteria) { super(); this.criteria = criteria; } public SpecSearchCriteria getCriteria() { return criteria; } @Override public Predicate toPredicate(fin...
return builder.lessThan(root.get(criteria.getKey()), criteria.getValue().toString()); case LIKE: return builder.like(root.get(criteria.getKey()), criteria.getValue().toString()); case STARTS_WITH: return builder.like(root.get(criteria.getKey()), criteria.getValue() + "%"); case ENDS_WITH: return builder....
repos\tutorials-master\spring-web-modules\spring-rest-query-language\src\main\java\com\baeldung\persistence\dao\UserSpecification.java
1
请在Spring Boot框架中完成以下Java代码
ExecutableElement getBindConstructor() { if (this.boundConstructors.isEmpty()) { return findBoundConstructor(); } if (this.boundConstructors.size() == 1) { return this.boundConstructors.get(0); } return null; } private ExecutableElement findBoundConstructor() { ExecutableElement boundCons...
return Collections.singletonList(bindConstructor); } return constructors.stream().filter(env::hasConstructorBindingAnnotation).toList(); } private static ExecutableElement deduceBindConstructor(TypeElement type, List<ExecutableElement> constructors, MetadataGenerationEnvironment env) { if (constructor...
repos\spring-boot-4.0.1\configuration-metadata\spring-boot-configuration-processor\src\main\java\org\springframework\boot\configurationprocessor\PropertyDescriptorResolver.java
2
请完成以下Java代码
public void set(final K key, final V value) { List<V> values = map.get(key); if (values == null) { values = new ArrayList<V>(); map.put(key, values); } else { values.clear(); } values.add(value); } @Override public List<V> remove(final Object key) { return map.remove(key); } @Overri...
} @Override public Set<K> keySet() { return map.keySet(); } @Override public Collection<List<V>> values() { return map.values(); } @Override public Set<Map.Entry<K, List<V>>> entrySet() { return map.entrySet(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\de\metas\util\collections\MultiValueMap.java
1
请完成以下Java代码
public String getCaption(final String adLanguage) { return caption.translate(adLanguage); } public KPIId getKPIId() { if (kpiSupplier == null) { throw new EntityNotFoundException("No KPI defined for " + this); } else { return kpiSupplier.getKpiId(); } }
public KPI getKPI() { final KPI kpi = kpiSupplier == null ? null : kpiSupplier.get(); if (kpi == null) { throw new EntityNotFoundException("No KPI defined for " + this); } return kpi; } public KPITimeRangeDefaults getTimeRangeDefaults() { final KPI kpi = getKPI(); return timeRangeDefaults.compose(...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\dashboard\UserDashboardItem.java
1
请完成以下Java代码
public int getT_Integer() { return get_ValueAsInt(COLUMNNAME_T_Integer); } @Override public void setT_Number (final @Nullable BigDecimal T_Number) { set_Value (COLUMNNAME_T_Number, T_Number); } @Override public BigDecimal getT_Number() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_T_Number...
} @Override public void setT_Time (final @Nullable java.sql.Timestamp T_Time) { set_Value (COLUMNNAME_T_Time, T_Time); } @Override public java.sql.Timestamp getT_Time() { return get_ValueAsTimestamp(COLUMNNAME_T_Time); } @Override public void setTest_ID (final int Test_ID) { if (Test_ID < 1) se...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_Test.java
1
请完成以下Java代码
private boolean isGranted(String role) { Authentication auth = getAuthentication(); if (this.rolePrefix != null && role != null && !role.startsWith(this.rolePrefix)) { role = this.rolePrefix + role; } if ((auth == null) || (auth.getPrincipal() == null)) { return false; } Collection<? extends GrantedAu...
return isGranted(role); } @Override public String toString() { return "SecurityContextHolderAwareRequestWrapper[ " + getRequest() + "]"; } /** * Sets the {@link SecurityContextHolderStrategy} to use. The default action is to use * the {@link SecurityContextHolderStrategy} stored in {@link SecurityContextHo...
repos\spring-security-main\web\src\main\java\org\springframework\security\web\servletapi\SecurityContextHolderAwareRequestWrapper.java
1
请完成以下Java代码
private void invokeEventListenerWithLogging( @NonNull final IEventListener eventListener, @NonNull final Event event) { try (final EventLogEntryCollector ignored = EventLogEntryCollector.createThreadLocalForEvent(event)) { try { eventListener.onEvent(this, event); } catch (final RuntimeExcept...
return micrometerEventBusStatsCollector.snapshot(); } private void enqueueEvent0(final Event event) { if (Type.LOCAL == topic.getType()) { eventEnqueuer.enqueueLocalEvent(event, topic); } else { eventEnqueuer.enqueueDistributedEvent(event, topic); } } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\event\impl\EventBus.java
1
请在Spring Boot框架中完成以下Java代码
public class AD_Attachment_MultiRef { private final ArchiveFileNameService archiveFileNameService; private final IOrderDAO orderDAO = Services.get(IOrderDAO.class); public AD_Attachment_MultiRef(@NonNull final ArchiveFileNameService archiveFileNameService) { this.archiveFileNameService = archiveFileNameService;...
.orElse(null); final String fileBaseName = getFileBaseName(attachmentEntry.getFileName()); if (tableRecordReference.getTableName().equals(I_C_Order.Table_Name)) { final I_C_Order order = orderDAO.getById(OrderId.ofRepoId(record.getRecord_ID())); final ArchiveFileNameService.ComputeFileNameRequest compute...
repos\metasfresh-new_dawn_uat\backend\de.metas.document.archive\de.metas.document.archive.base\src\main\java\de\metas\document\archive\interceptor\AD_Attachment_MultiRef.java
2
请完成以下Java代码
public IoSpecification getIoSpecification() { return ioSpecificationChild.getChild(this); } public void setIoSpecification(IoSpecification ioSpecification) { ioSpecificationChild.setChild(this, ioSpecification); } public Collection<Property> getProperties() { return propertyCollection.get(this); ...
public Collection<DataOutputAssociation> getDataOutputAssociations() { return dataOutputAssociationCollection.get(this); } public Collection<ResourceRole> getResourceRoles() { return resourceRoleCollection.get(this); } public LoopCharacteristics getLoopCharacteristics() { return loopCharacteristic...
repos\camunda-bpm-platform-master\model-api\bpmn-model\src\main\java\org\camunda\bpm\model\bpmn\impl\instance\ActivityImpl.java
1
请在Spring Boot框架中完成以下Java代码
public class TemperatureMonitor { private final ApplicationEventPublisher applicationEventPublisher; public TemperatureMonitor(ApplicationEventPublisher applicationEventPublisher) { Assert.notNull(applicationEventPublisher, "ApplicationEventPublisher is required"); this.applicationEventPublisher = application...
} @ContinuousQuery(name = "FreezingTemperatureMonitor", query = "SELECT * FROM /TemperatureReadings WHERE temperature <= 32") public void freezingTemperatureReadings(CqEvent event) { Optional.ofNullable(event) .map(CqEvent::getNewValue) .filter(TemperatureReading.class::isInstance) .map(TemperatureRead...
repos\spring-boot-data-geode-main\spring-geode-samples\boot\actuator\src\main\java\example\app\temp\service\TemperatureMonitor.java
2
请完成以下Java代码
public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; CustomUserDetails that = (CustomUserDetails) o; return firstName.equals(that.firstName)...
this.email = email; return this; } public Builder withUsername(String username) { this.username = username; return this; } public Builder withPassword(String password) { this.password = password; return this; } ...
repos\tutorials-master\spring-security-modules\spring-security-web-thymeleaf\src\main\java\com\baeldung\customuserdetails\CustomUserDetails.java
1
请完成以下Java代码
public ImmutableList<DocumentId> toImmutableList() { assertNotAll(); if (documentIds.isEmpty()) { return ImmutableList.of(); } return ImmutableList.copyOf(documentIds); } @NonNull public <T> ImmutableList<T> toImmutableList(@NonNull final Function<DocumentId, T> mapper) { assertNotAll(); if (docu...
} else if (documentIdsSelection.isEmpty()) { return this; } if (this.all) { return this; } else if (documentIdsSelection.all) { return documentIdsSelection; } final ImmutableSet<DocumentId> combinedIds = Stream.concat(this.stream(), documentIdsSelection.stream()).collect(ImmutableSet.toIm...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\datatypes\DocumentIdsSelection.java
1
请完成以下Java代码
public String delete() { return "delete.html"; } @Route(value = "/another-route-example", method = HttpMethod.GET) public String anotherGet() { return "get.html"; } @Route(value = "/allmatch-route-example") public String allmatch() { return "allmatch.html"; } @...
response.text("Check out for the WebHook covering '/user/*' in the logs"); } @GetRoute("/load-configuration-in-a-route") public void loadConfigurationInARoute(Response response) { String authors = WebContext.blade() .env("app.authors", "Unknown authors"); log.info("[/load-config...
repos\tutorials-master\web-modules\blade\src\main\java\com\baeldung\blade\sample\RouteExampleController.java
1
请完成以下Java代码
public class EventSubscriptionInstanceHandler implements MigratingDependentInstanceParseHandler<MigratingActivityInstance, List<EventSubscriptionEntity>> { public static final Set<String> SUPPORTED_EVENT_TYPES = new HashSet<String>(Arrays.asList(EventType.MESSAGE.name(), EventType.SIGNAL.name(), EventType.CONDITONAL...
protected Set<String> getSupportedEventTypes() { return SUPPORTED_EVENT_TYPES; } protected Map<String, EventSubscriptionDeclaration> getDeclarationsByTriggeringActivity(ScopeImpl eventScope) { Map<String, EventSubscriptionDeclaration> declarations = EventSubscriptionDeclaration.getDeclarationsForScope(even...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\migration\instance\parser\EventSubscriptionInstanceHandler.java
1
请在Spring Boot框架中完成以下Java代码
public void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException { SecurityUser user = getCurrentUser(); if (user != null && !user.isSystemAdmin()) { try { if (!rateLimitService.checkRateLimit(Limit...
@Override protected boolean shouldNotFilterAsyncDispatch() { return false; } @Override protected boolean shouldNotFilterErrorDispatch() { return false; } private void rateLimitExceeded(EntityType type, HttpServletResponse response) { errorResponseHandler.handle(new TbRa...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\config\RateLimitProcessingFilter.java
2
请在Spring Boot框架中完成以下Java代码
public Builder id(String id) { this.id = id; return this; } /** * Use this {@link Consumer} to modify the set of query parameters * * No parameter should be URL-encoded as this will be done when the request is * sent * @param parametersConsumer the {@link Consumer} * @return the {@link Buil...
* @return the {@link Builder} for further configurations * @since 5.8 */ public Builder parametersQuery(Function<Map<String, String>, String> encoder) { this.encoder = encoder; return this; } /** * Build the {@link Saml2LogoutRequest} * @return a constructed {@link Saml2LogoutRequest} */ p...
repos\spring-security-main\saml2\saml2-service-provider\src\main\java\org\springframework\security\saml2\provider\service\authentication\logout\Saml2LogoutRequest.java
2
请在Spring Boot框架中完成以下Java代码
public class HostKeyConfig { /** * Task https://github.com/metasfresh/metasfresh/issues/1274 */ private static final String PRINTING_WEBUI_HOST_KEY_STORAGE_MODE = "de.metas.printing.webui.HostKeyStorageMode"; @PostConstruct public void setupHostKeyStorage() { Services.registerService(IHttpSessionProvider.cl...
return hostKeyStorageImpl; }); } private static final class SpringHttpSessionProvider implements IHttpSessionProvider { @Override public HttpServletRequest getCurrentRequest() { return getRequestAttributes().getRequest(); } @Override public HttpServletResponse getCurrentResponse() { return ge...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\config\HostKeyConfig.java
2
请完成以下Java代码
public SqlAndParams build() { final String sql = this.sql != null ? this.sql.toString() : ""; final Object[] sqlParamsArray = sqlParams != null ? sqlParams.toArray() : null; return new SqlAndParams(sql, sqlParamsArray); } public Builder clear() { sql = null; sqlParams = null; return this; }...
} public Builder append(@NonNull final CharSequence sql, @Nullable final List<Object> sqlParams) { if (sql.length() > 0) { if (this.sql == null) { this.sql = new StringBuilder(); } this.sql.append(sql); } if (sqlParams != null && !sqlParams.isEmpty()) { if (this.sqlParams =...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\view\descriptor\SqlAndParams.java
1
请完成以下Java代码
static class ClickhouseJdbcDockerComposeConnectionDetails extends DockerComposeConnectionDetails implements JdbcConnectionDetails { private static final JdbcUrlBuilder jdbcUrlBuilder = new JdbcUrlBuilder("clickhouse", 8123); private final ClickHouseEnvironment environment; private final String jdbcUrl; C...
} @Override public String getPassword() { return this.environment.getPassword(); } @Override public String getJdbcUrl() { return this.jdbcUrl; } } }
repos\spring-boot-4.0.1\module\spring-boot-jdbc\src\main\java\org\springframework\boot\jdbc\docker\compose\ClickHouseJdbcDockerComposeConnectionDetailsFactory.java
1
请完成以下Java代码
public String getType() { return TYPE; } @Override public void execute(Job job, String configuration, ExecutionEntity execution, CommandContext commandContext) { String nestedActivityId = TimerEventHandler.getActivityIdFromConfiguration(configuration); ActivityImpl intermediateEve...
if (!execution.getActivity().getId().equals(intermediateEventActivity.getId())) { execution.setActivity(intermediateEventActivity); } execution.signal(null, null); } catch (RuntimeException e) { LogMDC.putMDCExecution(execution); LOGGER.error("exce...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\jobexecutor\TimerCatchIntermediateEventJobHandler.java
1
请完成以下Java代码
private boolean matchesSavedRequest(HttpServletRequest request, SavedRequest savedRequest) { String currentUrl = UrlUtils.buildFullRequestUrl(request); return savedRequest.getRedirectUrl().equals(currentUrl); } /** * Allows selective use of saved requests for a subset of requests. By default any * request wi...
/** * If the {@code sessionAttrName} property is set, the request is stored in the * session using this attribute name. Default is "SPRING_SECURITY_SAVED_REQUEST". * @param sessionAttrName a new session attribute name. * @since 4.2.1 */ public void setSessionAttrName(String sessionAttrName) { this.sessionA...
repos\spring-security-main\web\src\main\java\org\springframework\security\web\savedrequest\HttpSessionRequestCache.java
1
请完成以下Java代码
public boolean isLongOperation() { return false; } @Override public boolean isHideWhenNotRunnable() { return true; // hide when not runnable - backward compatibility } protected final String getColumnName() { final GridField gridField = getGridField(); if (gridField == null) { return null; } ...
final VEditor editor = getEditor(); if (editor instanceof Component) { comp = (Component)editor; } else { comp = null; } } Component p = comp; while (p != null) { if (p instanceof GridController) { return (GridController)p; } p = p.getParent(); } return null; } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java\org\adempiere\ui\AbstractContextMenuAction.java
1
请在Spring Boot框架中完成以下Java代码
public Date getDueDate() { return dueDate; } public void setDueDate(Date dueDate) { this.dueDate = dueDate; } @ApiModelProperty(example = "2023-06-03T22:05:05.474+0000") public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) {...
@ApiModelProperty(example = "2023-06-03T22:05:05.474+0000") public Date getLockExpirationTime() { return lockExpirationTime; } public void setLockExpirationTime(Date lockExpirationTime) { this.lockExpirationTime = lockExpirationTime; } public void setTenantId(String tenantId) { ...
repos\flowable-engine-main\modules\flowable-cmmn-rest\src\main\java\org\flowable\cmmn\rest\service\api\management\JobResponse.java
2
请完成以下Java代码
public Iterator<I_C_DunningDoc_Line_Source> retrieveDunningDocLineSourcesToWriteOff(final IDunningContext dunningContext) { final List<Object> params = new ArrayList<>(); final StringBuilder whereClause = new StringBuilder(); whereClause.append(I_C_DunningDoc_Line_Source.COLUMNNAME_Processed).append("=?"); pa...
Services.get(ITrxManager.class).run(context.getTrxName(), context.getTrxRunnerConfig(), new TrxRunnable() { @Override public void run(final String localTrxName) { result[0] = DB.executeUpdateAndThrowExceptionOnFail(deleteSQL, new Object[] { Env.getAD_Client_ID(context.getCtx()), dunningLevel.getC_Dunning...
repos\metasfresh-new_dawn_uat\backend\de.metas.dunning\src\main\java\de\metas\dunning\api\impl\DunningDAO.java
1
请完成以下Spring Boot application配置
com.baeldung.evaluation.model=bespoke-minicheck spring.ai.ollama.chat.options.model=llama3.3 spring.ai.ollama.embedding.options.model=nomic-emb
ed-text spring.ai.ollama.init.pull-model-strategy=when_missing
repos\tutorials-master\spring-ai-modules\spring-ai-2\src\main\resources\application-evaluator.properties
2
请完成以下Java代码
private void generateRecomputeTagIfNotSet() { // Do nothing if the recompute tag was already generated if (!InvoiceCandRecomputeTag.isNull(_recomputeTag)) { return; } // Use the recompute tag which was suggested if (!InvoiceCandRecomputeTag.isNull(_recomputeTagToUseForTagging)) { _recomputeTag = _...
@Override public InvoiceCandRecomputeTagger setTaggedWithNoTag() { return setTaggedWith(InvoiceCandRecomputeTag.NULL); } @Override public IInvoiceCandRecomputeTagger setTaggedWithAnyTag() { return setTaggedWith(null); } /* package */ @Nullable InvoiceCandRecomputeTag getTaggedWith() { return _taggedW...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\invoicecandidate\api\impl\InvoiceCandRecomputeTagger.java
1
请在Spring Boot框架中完成以下Java代码
public Object deserialize(byte[] bytes) throws SerializationException { if (bytes == null || bytes.length == 0) { return null; } ByteArrayOutputStream bos = null; ByteArrayInputStream bis = null; GZIPInputStream gzip = null; try { bos = new ByteArr...
} catch (Exception e) { throw new SerializationException("Gzip deserizelie error", e); } finally { IOUtils.closeQuietly(bos); IOUtils.closeQuietly(bis); IOUtils.closeQuietly(gzip); } } private static JacksonRedisSerializer<User> getValueSerializer...
repos\springboot-demo-master\gzip\src\main\java\com\et\gzip\config\CompressRedis.java
2
请在Spring Boot框架中完成以下Java代码
public Scheme getScheme() { return this.scheme; } public void setScheme(Scheme scheme) { this.scheme = scheme; } public @Nullable String getToken() { return this.token; } public void setToken(@Nullable String token) { this.token = token; } public Format getFormat() { return this.forma...
*/ PROTOBUF } public enum Scheme { /** * Use HTTP to push metrics. */ HTTP, /** * Use HTTPS to push metrics. */ HTTPS } } }
repos\spring-boot-4.0.1\module\spring-boot-micrometer-metrics\src\main\java\org\springframework\boot\micrometer\metrics\autoconfigure\export\prometheus\PrometheusProperties.java
2
请完成以下Java代码
public <T> T getModel(final Class<T> modelClass) { final Document document = getDocument(); return DocumentInterfaceWrapper.wrap(document, modelClass); } @Override public <T> T getModelBeforeChanges(final Class<T> modelClass) { final Document document = getDocument(); return DocumentInterfaceWrapper.wrapU...
{ // NOTE: there is no "All" concept here, so we are just refreshing this document final Document document = getDocument(); document.refreshFromRepository(); } @Override public void dataRefreshRecursively() { // TODO dataRefreshRecursively: refresh document and it's children throw new UnsupportedOperatio...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\model\DocumentAsCalloutRecord.java
1
请完成以下Java代码
public java.sql.Timestamp getSkippedAt() { return get_ValueAsTimestamp(COLUMNNAME_SkippedAt); } @Override public void setSkipped_Count (final int Skipped_Count) { set_Value (COLUMNNAME_Skipped_Count, Skipped_Count); } @Override public int getSkipped_Count() { return get_ValueAsInt(COLUMNNAME_Skipped_...
public void setSkipped_Last_Reason (final @Nullable java.lang.String Skipped_Last_Reason) { set_Value (COLUMNNAME_Skipped_Last_Reason, Skipped_Last_Reason); } @Override public java.lang.String getSkipped_Last_Reason() { return get_ValueAsString(COLUMNNAME_Skipped_Last_Reason); } @Override public void set...
repos\metasfresh-new_dawn_uat\backend\de.metas.async\src\main\java-gen\de\metas\async\model\X_C_Queue_WorkPackage.java
1
请完成以下Java代码
protected org.compiere.model.POInfo initPO(Properties ctx) { return org.compiere.model.POInfo.getPOInfo(Table_Name); } @Override public void setC_BPartner_Customer_ID (int C_BPartner_Customer_ID) { if (C_BPartner_Customer_ID < 1) set_ValueNoCheck (COLUMNNAME_C_BPartner_Customer_ID, null); else set_V...
{ if (M_Warehouse_ID < 1) set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, null); else set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); } @Override public int getM_Warehouse_ID() { return get_ValueAsInt(COLUMNNAME_M_Warehouse_ID); } @Override public void setQty (java.ma...
repos\metasfresh-new_dawn_uat\backend\de.metas.material\dispo-commons\src\main\java-gen\de\metas\material\dispo\model\X_MD_Candidate_ATP_QueryResult.java
1
请完成以下Spring Boot application配置
## MULTIPART (MultipartProperties) # Enable multipart uploads spring.servlet.multipart.enabled=true # Threshold after which files are written to disk. spring.servlet.multipart.file-size-threshold=2KB # Max file size. spring.servlet.multipart.max-file-size=200MB # Max Request Size
spring.servlet.multipart.max-request-size=215MB ## File Storage Properties file.upload-dir=./uploads server.port=8081
repos\Spring-Boot-Advanced-Projects-main\springboot-upload-download-file-rest-api-example\src\main\resources\application.properties
2
请完成以下Java代码
public class Account { @ValidAlphanumeric private String username; @ValidAlphanumericWithSingleViolation private String password; @ValidLengthOrNumericCharacter private String nickname; public String getUsername() { return username; } public void setUsername(String usern...
public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public String getNickname() { return nickname; } public void setNickname(String nickname) { this.nickname = nickname; } }
repos\tutorials-master\javaxval-2\src\main\java\com\baeldung\javaxval\constraint\composition\Account.java
1
请完成以下Java代码
public class CustomIntegerArrayType implements UserType<Integer[]> { @Override public int getSqlType() { return Types.ARRAY; } @Override public Class<Integer[]> returnedClass() { return Integer[].class; } @Override public boolean equals(Integer[] x, Integer[] y) { ...
} @Override public boolean isMutable() { return false; } @Override public Serializable disassemble(Integer[] value) { return value; } @Override public Integer[] assemble(Serializable cached, Object owner) { return (Integer[]) cached; } @Override pu...
repos\tutorials-master\persistence-modules\hibernate-mapping\src\main\java\com\baeldung\hibernate\arraymapping\CustomIntegerArrayType.java
1
请在Spring Boot框架中完成以下Java代码
public class UserAssignedRoleId implements RepoIdAware { int repoId; @NonNull UserRoleId userRoleId; @JsonCreator public static UserAssignedRoleId ofRepoId(@NonNull final UserRoleId userRoleId, final int repoId) { return new UserAssignedRoleId(userRoleId, repoId); } @Nullable public static UserAssignedRol...
return repoId != null ? repoId.getRepoId() : -1; } private UserAssignedRoleId(@NonNull final UserRoleId UserRoleId, final int repoId) { this.repoId = Check.assumeGreaterThanZero(repoId, (I_C_User_Assigned_Role.COLUMNNAME_C_User_Assigned_Role_ID)); this.userRoleId = UserRoleId; } @Override @JsonValue public...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\bpartner\user\role\UserAssignedRoleId.java
2
请完成以下Java代码
public class MUOM extends X_C_UOM { /** * */ private static final long serialVersionUID = -7248044516358949324L; /** * Get Minute C_UOM_ID * * @param ctx context * @return C_UOM_ID for Minute */ public static int getMinute_UOM_ID(Properties ctx) { if (Ini.isSwingClient()) { final Iterator<M...
return 2; } return Services.get(IUOMDAO.class) .getStandardPrecision(UomId.ofRepoId(C_UOM_ID)) .toInt(); } // getPrecision /** * Load All UOMs * * @param ctx context */ private static void loadUOMs(Properties ctx) { List<MUOM> list = new Query(ctx, Table_Name, "IsActive='Y'", null) .setR...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java-legacy\org\compiere\model\MUOM.java
1
请完成以下Java代码
public static final VEditorActionButton createActionButton(final String iconName, final JTextField textComponent) { return VEditorActionButton.build(iconName, textComponent); } /** * Setup the UI properties of the inner text field of a {@link VEditor} component. * * @param textField */ public static fin...
super(); } public void installUI(final JComponent comp) { updateUI(comp); comp.addPropertyChangeListener("UI", this); } /** Actually sets the UI properties */ private void updateUI(final JComponent comp) { comp.setBorder(null); comp.setFont(AdempierePLAF.getFont_Field()); comp.setForegrou...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\grid\ed\VEditorUtils.java
1
请完成以下Java代码
public double freq(String key) { Integer f = get(key); if (f == null) f = 0; return f / (double) total; } public double freq(char[]... keyArray) { return freq(convert(keyArray)); } public double freq(char... keyArray) { Integer f = d.get(keyArray); ...
private String convert(Collection<char[]> keyArray) { StringBuilder sbKey = new StringBuilder(keyArray.size() * 2); for (char[] key : keyArray) { sbKey.append(key[0]); sbKey.append(key[1]); } return sbKey.toString(); } static private String co...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\model\trigram\frequency\Probability.java
1
请在Spring Boot框架中完成以下Java代码
public class TUPickingTarget { @NonNull String id; @NonNull String caption; // // New TU @Nullable HuPackingInstructionsId tuPIId; boolean isDefaultPacking; // // Existing TU @Nullable HuId tuId; @Nullable HUQRCode tuQRCode; @Builder(toBuilder = true) private TUPickingTarget( @NonNull final String cap...
@NonNull public static TUPickingTarget ofPackingInstructions(@NonNull final HuPackingInstructionsId tuPIId, @NonNull final String caption) { return builder().tuPIId(tuPIId).caption(caption).build(); } public static TUPickingTarget ofExistingHU(@NonNull final HuId luId, @NonNull final HUQRCode qrCode) { return...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\picking\job\model\TUPickingTarget.java
2
请在Spring Boot框架中完成以下Java代码
public class DADDI1 { @XmlElement(name = "DOCUMENTID", required = true) protected String documentid; @XmlElement(name = "LINENUMBER", required = true) protected String linenumber; @XmlElement(name = "ADDINFO", required = true) protected String addinfo; /** * Gets the value of the docu...
* * @param value * allowed object is * {@link String } * */ public void setLINENUMBER(String value) { this.linenumber = value; } /** * Gets the value of the addinfo property. * * @return * possible object is * {@link String } ...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_stepcom_desadv\de\metas\edi\esb\jaxb\stepcom\desadv\DADDI1.java
2
请完成以下Java代码
public java.lang.String getProjectPhaseName() { return get_ValueAsString(COLUMNNAME_ProjectPhaseName); } @Override public void setProjectTypeName (final @Nullable java.lang.String ProjectTypeName) { set_ValueNoCheck (COLUMNNAME_ProjectTypeName, ProjectTypeName); } @Override public java.lang.String getPro...
} @Override public void setTaxID (final java.lang.String TaxID) { set_ValueNoCheck (COLUMNNAME_TaxID, TaxID); } @Override public java.lang.String getTaxID() { return get_ValueAsString(COLUMNNAME_TaxID); } @Override public void setTitle (final @Nullable java.lang.String Title) { set_ValueNoCheck (CO...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_Project_Header_v.java
1
请完成以下Java代码
public static CellValue ofNumber(final Number number) { return new CellValue(CellValueType.Number, number); } public static CellValue ofBoolean(final boolean bool) { return new CellValue(CellValueType.Boolean, bool); } public static CellValue ofString(final String string) { return new CellValue(CellValue...
} public double doubleValue() { return ((Number)valueObj).doubleValue(); } public boolean isBoolean() { return type == CellValueType.Boolean; } public boolean booleanValue() { return (boolean)valueObj; } public String stringValue() { return valueObj.toString(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\impexp\spreadsheet\excel\CellValue.java
1
请完成以下Java代码
public class DefaultDmnEngineAgenda extends AbstractAgenda implements DmnEngineAgenda { private static final Logger LOGGER = LoggerFactory.getLogger(DefaultDmnEngineAgenda.class); public DefaultDmnEngineAgenda(CommandContext commandContext) { super(commandContext); } public void addOperation(...
protected AgendaFutureMaxWaitTimeoutProvider getAgendaFutureMaxWaitTimeoutProvider() { // The DMN engine has no future operations return null; } @Override public void planExecuteDecisionServiceOperation(ExecuteDecisionContext executeDecisionContext, DecisionService decisionService) { ...
repos\flowable-engine-main\modules\flowable-dmn-engine\src\main\java\org\flowable\dmn\engine\impl\agenda\DefaultDmnEngineAgenda.java
1
请完成以下Java代码
public class SetVariableCmd implements Command<Void> { protected String caseInstanceId; protected String variableName; protected Object variableValue; public SetVariableCmd(String caseInstanceId, String variableName, Object variableValue) { this.caseInstanceId = caseInstanceId; ...
} if (evaluateVariableEventListener) { break; } } } if (evaluateVariableEventListener) { agenda.planEvaluateVariableEventListenersOperation(caseInstanceId); } agenda.planEvaluat...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\cmd\SetVariableCmd.java
1
请完成以下Java代码
private static void generateOption(Document dbObject, String realField, String key, Object value) throws ParseException { if (key.endsWith("Begin") || key.endsWith("Start")) { String field = realField == null ? key.substring(0, key.length() - 5) : realField; if (dbObject.containsKey(fiel...
//查询数据 DBObject aObject = new BasicDBObject(); aObject.put("$all", new String[]{value.toString()}); dbObject.put(field, aObject); } else if (value.toString().contains(",")) { //批量查询 String[] arr = value.toString().split(","); ...
repos\spring-boot-leaning-master\2.x_data\2-4 MongoDB 支持动态 SQL、分页方案\spring-boot-mongodb-page\src\main\java\com\neo\util\DBObjectUtil.java
1
请在Spring Boot框架中完成以下Java代码
public Configuration getStreams() { List<String> servers = this.properties.getStreams().getBootstrapServers(); SslBundle sslBundle = getBundle(this.properties.getStreams().getSsl()); String protocol = this.properties.getStreams().getSecurity().getProtocol(); return Configuration.of((servers != null) ? servers :...
} @Override public @Nullable String getSecurityProtocol() { return this.properties.getSecurity().getProtocol(); } private @Nullable SslBundle getBundle(Ssl ssl) { if (StringUtils.hasLength(ssl.getBundle())) { Assert.notNull(this.sslBundles, "SSL bundle name has been set but no SSL bundles found in context"...
repos\spring-boot-4.0.1\module\spring-boot-kafka\src\main\java\org\springframework\boot\kafka\autoconfigure\PropertiesKafkaConnectionDetails.java
2
请完成以下Java代码
public InvoiceCandidateGenerateResult createCandidatesFor(final InvoiceCandidateGenerateRequest request) { final I_PP_Order ppOrder = request.getModel(I_PP_Order.class); final PPOrder2InvoiceCandidatesProducer invoiceCandidatesProducer = createInvoiceCandidatesProducer(); final List<de.metas.materialtracking.m...
{ ic.setQtyDelivered(ic.getQtyOrdered()); // when changing this, make sure to threat ProductType.Service specially ic.setQtyDeliveredInUOM(ic.getQtyEntered()); ic.setDeliveryDate(ic.getDateOrdered()); } @Override public void setBPartnerData(final I_C_Invoice_Candidate ic) { // nothing to do; the value won'...
repos\metasfresh-new_dawn_uat\backend\de.metas.materialtracking\src\main\java\de\metas\materialtracking\qualityBasedInvoicing\ic\spi\impl\PP_Order_MaterialTracking_Handler.java
1
请在Spring Boot框架中完成以下Java代码
static class CaffeineCacheMeterBinderProviderConfiguration { @Bean CaffeineCacheMeterBinderProvider caffeineCacheMeterBinderProvider() { return new CaffeineCacheMeterBinderProvider(); } } @Configuration(proxyBeanMethods = false) @ConditionalOnClass({ HazelcastCache.class, Hazelcast.class }) static class...
@Bean JCacheCacheMeterBinderProvider jCacheCacheMeterBinderProvider() { return new JCacheCacheMeterBinderProvider(); } } @Configuration(proxyBeanMethods = false) @ConditionalOnClass(RedisCache.class) static class RedisCacheMeterBinderProviderConfiguration { @Bean RedisCacheMeterBinderProvider redisCac...
repos\spring-boot-4.0.1\module\spring-boot-cache\src\main\java\org\springframework\boot\cache\autoconfigure\metrics\CacheMeterBinderProvidersConfiguration.java
2
请完成以下Java代码
public int hashCode() { return Objects.hash(getElementId(), getActivityName(), getActivityType(), getErrorId(), getErrorCode()); } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { ...
@Override public String toString() { return ( "BPMNActivityImpl{" + "activityName='" + getActivityName() + '\'' + ", activityType='" + getActivityType() + '\'' + ", elementId='" + getElementId() + ...
repos\Activiti-develop\activiti-core\activiti-api-impl\activiti-api-process-model-impl\src\main\java\org\activiti\api\runtime\model\impl\BPMNErrorImpl.java
1
请完成以下Java代码
public Instant getCreationTime() { return this.cached.getCreationTime(); } @Override public void setLastAccessedTime(Instant lastAccessedTime) { this.cached.setLastAccessedTime(lastAccessedTime); this.delta.put(RedisSessionMapper.LAST_ACCESSED_TIME_KEY, getLastAccessedTime().toEpochMilli()); flushIfR...
if (hasChangedSessionId()) { if (!this.isNew) { String originalSessionIdKey = getSessionKey(this.originalSessionId); String sessionIdKey = getSessionKey(getId()); RedisSessionRepository.this.sessionRedisOperations.rename(originalSessionIdKey, sessionIdKey); } this.originalSessionId = getId();...
repos\spring-session-main\spring-session-data-redis\src\main\java\org\springframework\session\data\redis\RedisSessionRepository.java
1
请完成以下Java代码
public String getFrom() { return from; } public void setFrom(String from) { this.from = from; } public Collection<String> getTo() { return to; } public void setTo(Collection<String> to) { this.to = to; } public Collection<String> getCc() { retu...
public Charset getCharset() { return charset; } public void setCharset(Charset charset) { this.charset = charset; } public Collection<DataSource> getAttachments() { return attachments; } public void setAttachments(Collection<DataSource> attachments) { this.atta...
repos\flowable-engine-main\modules\flowable-mail\src\main\java\org\flowable\mail\common\api\MailMessage.java
1
请完成以下Java代码
public int getAD_Printer_Matching_ID() { return get_ValueAsInt(COLUMNNAME_AD_Printer_Matching_ID); } @Override public de.metas.printing.model.I_AD_Printer_Tray getAD_Printer_Tray() { return get_ValueAsPO(COLUMNNAME_AD_Printer_Tray_ID, de.metas.printing.model.I_AD_Printer_Tray.class); } @Override public v...
set_ValueNoCheck (COLUMNNAME_AD_Printer_Tray_ID, Integer.valueOf(AD_Printer_Tray_ID)); } @Override public int getAD_Printer_Tray_ID() { return get_ValueAsInt(COLUMNNAME_AD_Printer_Tray_ID); } @Override public void setAD_PrinterTray_Matching_ID (int AD_PrinterTray_Matching_ID) { if (AD_PrinterTray_Matchin...
repos\metasfresh-new_dawn_uat\backend\de.metas.printing\de.metas.printing.base\src\main\java-gen\de\metas\printing\model\X_AD_PrinterTray_Matching.java
1
请完成以下Java代码
public Map<String, DestinationInfo> getTopics() { return topics; } public void setTopics(Map<String, DestinationInfo> topics) { this.topics = topics; } // DestinationInfo stores the Exchange name and routing key used // by our producers when posting messages static class Destin...
return exchange; } public void setExchange(String exchange) { this.exchange = exchange; } public String getRoutingKey() { return routingKey; } public void setRoutingKey(String routingKey) { this.routingKey = routingKey; } ...
repos\tutorials-master\spring-reactive-modules\spring-webflux-amqp\src\main\java\com\baeldung\spring\amqp\DestinationsConfig.java
1
请完成以下Java代码
public int compare(final OLCand o1, final OLCand o2) { return 0; } } private static final class OLCandColumnOrderingComparator implements Comparator<OLCand> { private final OLCandAggregationColumn column; private OLCandColumnOrderingComparator(@NonNull final OLCandAggregationColumn column) { this.c...
final Comparable<Object> comparableVal1 = toComparable(val1); final Comparable<Object> comparableVal2 = toComparable(val2); return comparableVal1.compareTo(comparableVal2); } @SuppressWarnings("unchecked") private Comparable<Object> toComparable(final Object value) { return (Comparable<Object>)value; ...
repos\metasfresh-new_dawn_uat\backend\de.metas.salescandidate.base\src\main\java\de\metas\ordercandidate\api\OLCandAggregation.java
1
请完成以下Java代码
public class UserPrincipal implements UserDetails { private Long id; private String surname; private String name; private String lastname; private String username; private String city; @JsonIgnore private String email; @JsonIgnore private String password; private Colle...
return username; } @Override public boolean isAccountNonExpired() { return true; } @Override public boolean isAccountNonLocked() { return true; } @Override public boolean isCredentialsNonExpired() { return false; } @Override public boolean isEn...
repos\SpringBoot-Projects-FullStack-master\Part-9.SpringBoot-React-Projects\Project-2.SpringBoot-React-ShoppingMall\fullstack\backend\src\main\java\com\urunov\security\UserPrincipal.java
1
请在Spring Boot框架中完成以下Java代码
public final class MultipartAutoConfiguration { /** * Well-known name for the MultipartResolver object in the bean factory for this * namespace. */ private static final String MULTIPART_RESOLVER_BEAN_NAME = "multipartResolver"; private final MultipartProperties multipartProperties; MultipartAutoConfigurati...
@ConditionalOnMissingBean MultipartConfigElement multipartConfigElement() { return this.multipartProperties.createMultipartConfig(); } @Bean(name = MULTIPART_RESOLVER_BEAN_NAME) @ConditionalOnMissingBean(MultipartResolver.class) StandardServletMultipartResolver multipartResolver() { StandardServletMultipartRe...
repos\spring-boot-4.0.1\module\spring-boot-servlet\src\main\java\org\springframework\boot\servlet\autoconfigure\MultipartAutoConfiguration.java
2
请完成以下Java代码
private void init(Window owner, String title, String htmlText, boolean editable) { if (title == null) setTitle(Msg.getMsg(Env.getCtx(), "Editor")); else setTitle(title); // General Layout final CPanel mainPanel = new CPanel(); mainPanel.setLayout(new BorderLayout()); getContentPane().add(mainPanel...
public String getHtmlText() { String text = m_text; // us315: check if is plain rext if (field instanceof CTextPane) { if ("text/plain".equals(((CTextPane)field).getContentType())) { text = MADBoilerPlate.getPlainText(m_text); log.info("Converted html to plain text: "+text); } } return tex...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java\org\compiere\grid\ed\RichTextEditorDialog.java
1
请完成以下Java代码
public AppDefinition getAppDefinition(String appDefinitionId) { return commandExecutor.execute(new GetDeploymentAppDefinitionCmd(appDefinitionId)); } @Override public AppModel getAppModel(String appDefinitionId) { return commandExecutor.execute(new GetAppModelCmd(appDefinitionId)); ...
} @Override public AppDeploymentQuery createDeploymentQuery() { return configuration.getAppDeploymentEntityManager().createDeploymentQuery(); } @Override public AppDefinitionQuery createAppDefinitionQuery() { return configuration.getAppDefinitionEntityManager().createAppDef...
repos\flowable-engine-main\modules\flowable-app-engine\src\main\java\org\flowable\app\engine\impl\AppRepositoryServiceImpl.java
1
请完成以下Java代码
public String getIcon() { return null; } @Override public KeyStroke getKeyStroke() { return getActionType().getKeyStroke(); } @Override public boolean isAvailable() { return !NullCopyPasteSupportEditor.isNull(getCopyPasteSupport()); } @Override public boolean isRunnable() { retu...
} @Override public boolean isHideWhenNotRunnable() { return false; // just gray it out } @Override public void run() { getCopyPasteSupport().executeCopyPasteAction(getActionType()); } } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java\org\compiere\grid\ed\CopyPasteContextMenuAction.java
1
请完成以下Java代码
public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getSettingName() { return settingName; } public void setSettingName(String settingName) { this.settingName = settingName; }
public String getSettingValue() { return settingValue; } public void setSettingValue(String settingValue) { this.settingValue = settingValue; } public Account getAccount() { return account; } public void setAccount(Account account) { this.account = account; ...
repos\tutorials-master\persistence-modules\spring-data-jpa-simple\src\main\java\com\baeldung\jpa\schemageneration\model\AccountSetting.java
1
请在Spring Boot框架中完成以下Java代码
public CommonResult delete(@RequestParam("ids") List<Long> ids) { int count = orderService.delete(ids); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("获取订单详情:订单信息、商品信息、操作记录") @RequestMapping(value = "/{id}", ...
int count = orderService.updateMoneyInfo(moneyInfoParam); if (count > 0) { return CommonResult.success(count); } return CommonResult.failed(); } @ApiOperation("备注订单") @RequestMapping(value = "/update/note", method = RequestMethod.POST) @ResponseBody public Common...
repos\mall-master\mall-admin\src\main\java\com\macro\mall\controller\OmsOrderController.java
2
请在Spring Boot框架中完成以下Java代码
public class Customer { public Customer(){} @Id //@GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @OneToMany(mappedBy = "customer" , cascade = CascadeType.ALL) private Set<CustomerOrder> customerOrders; public Customer(Long id, Set<CustomerOrder> customerOrders, St...
@Override public int hashCode() { return Objects.hash(id); } public Long getId() { return id; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public LocalDate getDob() { return dob; ...
repos\tutorials-master\persistence-modules\spring-data-jpa-repo-3\src\main\java\com\baeldung\spring\data\jpa\joinquery\entities\Customer.java
2
请完成以下Java代码
private boolean wasAnythingIssued(final PPOrderId ppOrderId) { final IPPCostCollectorDAO ppCostCollectorDAO = Services.get(IPPCostCollectorDAO.class); final IPPCostCollectorBL ppCostCollectorBL = Services.get(IPPCostCollectorBL.class); for (final I_PP_Cost_Collector cc : ppCostCollectorDAO.getCompletedOrClosedB...
final IQualityInvoiceLineGroupsBuilder invoiceLineGroupsBuilder = qualityBasedSpiProviderService .getQualityInvoiceLineGroupsBuilderProvider() .provideBuilderFor(materialTrackingDocuments); // // Configure: Qty received from Vendor (reference Qty) invoiceLineGroupsBuilder.setVendorReceipt(vendorReceipt);...
repos\metasfresh-new_dawn_uat\backend\de.metas.materialtracking\src\main\java\de\metas\materialtracking\qualityBasedInvoicing\ic\spi\impl\PPOrder2InvoiceCandidatesProducer.java
1
请完成以下Java代码
private void addDocumentsToIndex( @NonNull final FTSConfig config, @NonNull final ESDocumentToIndexChunk chunk) throws IOException { final RestHighLevelClient elasticsearchClient = configService.elasticsearchClient(); final String esIndexName = config.getEsIndexName(); final BulkRequest bulkRequest = new ...
@Getter private final ImmutableSet<TableName> sourceTableNames; private final ArrayList<ModelToIndex> events = new ArrayList<>(); private ConfigAndEvents( @NonNull final FTSConfig config, @NonNull final ImmutableSet<TableName> sourceTableNames) { this.config = config; this.sourceTableNames = sou...
repos\metasfresh-new_dawn_uat\backend\de.metas.elasticsearch\src\main\java\de\metas\fulltextsearch\indexer\queue\ModelToIndexEnqueueProcessor.java
1
请完成以下Java代码
protected ObjectNode createOrGetBpmnNode(ObjectNode infoNode) { if (!infoNode.has(BPMN_NODE)) { infoNode.set(BPMN_NODE, processEngineConfiguration.getObjectMapper().createObjectNode()); } return (ObjectNode) infoNode.get(BPMN_NODE); } protected ObjectNode getBpmnNode(ObjectN...
((ObjectNode) languageNode.get(id)).put(propertyName, propertyValue); } protected ObjectNode createOrGetLocalizationNode(ObjectNode infoNode) { if (!infoNode.has(LOCALIZATION_NODE)) { infoNode.set(LOCALIZATION_NODE, processEngineConfiguration.getObjectMapper().createObjectNode()); }...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\DynamicBpmnServiceImpl.java
1
请完成以下Java代码
public class EnablePlanItemInstanceOperation extends AbstractChangePlanItemInstanceStateOperation { protected String entryCriterionId; public EnablePlanItemInstanceOperation(CommandContext commandContext, PlanItemInstanceEntity planItemInstanceEntity, String entryCriterionId) { super(commandContext, p...
@Override protected void internalExecute() { // Sentries are not needed to be kept around, as the plan item is being enabled removeSentryRelatedData(); planItemInstanceEntity.setEntryCriterionId(entryCriterionId); planItemInstanceEntity.setLastEnabledTime(getCurrentTime(commandCont...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\agenda\operation\EnablePlanItemInstanceOperation.java
1
请完成以下Java代码
public class BooleanPrimitiveLookup extends Lookup { private boolean[] elements; private final boolean pivot = false; @Setup @Override public void prepare() { elements = new boolean[s]; for (int i = 0; i < s - 1; i++) { elements[i] = true; } elements[s -...
@BenchmarkMode(Mode.AverageTime) public int findPosition() { int index = 0; while (pivot != elements[index]) { index++; } return index; } @Override public String getSimpleClassName() { return BooleanPrimitiveLookup.class.getSimpleName(); } }
repos\tutorials-master\core-java-modules\core-java-lang-2\src\main\java\com\baeldung\primitive\BooleanPrimitiveLookup.java
1
请完成以下Java代码
public long saveNotifyRecord(RpNotifyRecord notifyRecord) { return rpNotifyService.createNotifyRecord(notifyRecord); } /** * 更新商户通知记录.<br/> * * @param id * @param notifyTimes * 通知次数.<br/> * @param status * 通知状态.<br/> * @return 更新结果 */ ...
* @param merchantNo * 商户编号.<br/> * @param merchantOrderNo * 商户订单号.<br/> * @param request * 请求信息.<br/> * @param response * 返回信息.<br/> * @param httpStatus * 通知状态(HTTP状态).<br/> * @return 创建结果 */ public long sa...
repos\roncoo-pay-master\roncoo-pay-app-notify\src\main\java\com\roncoo\pay\app\notify\core\NotifyPersist.java
1
请在Spring Boot框架中完成以下Java代码
public boolean isReadyForEvents() { return this.readyForEvents; } public void setReadyForEvents(boolean readyForEvents) { this.readyForEvents = readyForEvents; } public int getRetryAttempts() { return this.retryAttempts; } public void setRetryAttempts(int retryAttempts) { this.retryAttempts = retryAtte...
public int getSubscriptionAckInterval() { return this.subscriptionAckInterval; } public void setSubscriptionAckInterval(int subscriptionAckInterval) { this.subscriptionAckInterval = subscriptionAckInterval; } public boolean isSubscriptionEnabled() { return this.subscriptionEnabled; } public void setSubsc...
repos\spring-boot-data-geode-main\spring-geode-project\spring-geode-autoconfigure\src\main\java\org\springframework\geode\boot\autoconfigure\configuration\support\PoolProperties.java
2
请在Spring Boot框架中完成以下Java代码
public class SpringDocConfig { // 扫描路径 private static final String basePackage = "cn.lanqiao.springboot3.controller"; // 请求头名称 private static final String headerName = "token"; @Bean public GroupedOpenApi group01() { return GroupedOpenApi.builder() .group("group01") ...
.in(SecurityScheme.In.HEADER) .description("请求头") ); return new OpenAPI() .components(components) .info(apiInfo()); } private Info apiInfo() { Contact contact = new Contact(); contact.setEmail("2449207463@qq.com"); ...
repos\spring-boot-projects-main\玩转SpringBoot系列案例源码\spring-boot-swagger\src\main\java\cn\lanqiao\springboot3\config\SpringDocConfig.java
2
请完成以下Java代码
protected String doIt() { final HUToReport hu = getHuToReport(); // create selection final List<HuId> distinctHuIds = ImmutableList.of(hu.getHUId()); DB.createT_Selection(getPinstanceId(), distinctHuIds, ITrx.TRXNAME_None); // print final ReportResult label = printLabel(); // preview getResult().set...
final ProcessInfo jasperProcessInfo = ProcessInfo.builder() .setCtx(getCtx()) .setProcessCalledFrom(ProcessCalledFrom.WebUI) .setAD_Process_ID(adProcessId) .setAD_PInstance(adPInstanceDAO.getById(pinstanceId)) .setReportLanguage(getProcessInfo().getReportLanguage()) .setJRDesiredOutputType(Outpu...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\handlingunits\process\WEBUI_M_HU_PrintFinishedGoodsLabel.java
1
请在Spring Boot框架中完成以下Java代码
public class Author implements Serializable { private static final long serialVersionUID = 1L; @Id // This will disable insert batching - AVOID IT! // @GeneratedValue(strategy = GenerationType.IDENTITY) // This will work, but better use the below solution to reduce database roundtrips // @Gen...
} 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; } @Override public String toString() { return "Au...
repos\Hibernate-SpringBoot-master\HibernateSpringBootBatchingAndSerial\src\main\java\com\bookstore\entity\Author.java
2
请完成以下Java代码
public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getProductCategoryId() { return productCategoryId; } public void setProductCategoryId(Long productCategoryId) { this.productCategoryId = productCategoryId; } pu...
public void setProductAttributeId(Long productAttributeId) { this.productAttributeId = productAttributeId; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").appe...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\PmsProductCategoryAttributeRelation.java
1
请在Spring Boot框架中完成以下Java代码
public void setSecurityManager(org.apache.geode.security.SecurityManager securityManager) { Assert.notNull(securityManager, "SecurityManager must not be null"); this.securityManager = securityManager; } /** * Returns a reference to the Apache Geode {@link org.apache.geode.security.SecurityManager} instance ...
@Override public void close() { getSecurityManager().close(); } @Override public void destroy() throws Exception { super.destroy(); INSTANCE.set(null); } @Override public void init(Properties props) { super.init(props); } @Override protected BeanFactory locateBeanFactory() { return this.beanFacto...
repos\spring-boot-data-geode-main\spring-geode-project\spring-geode\src\main\java\org\springframework\geode\security\support\SecurityManagerProxy.java
2
请完成以下Java代码
public Builder singleRowLayout(@NonNull final DocumentLayoutSingleRow.Builder singleRowLayout) { this.singleRowLayout = singleRowLayout; singleRowLayout.setWindowId(windowId); return this; } /** * The default is {@code false} */ public Builder singleRowDetailLayout(final boolean singleRowDetailL...
public Builder description(@NonNull final ITranslatableString description) { this.description = description; return this; } public Builder addSubTabLayout(@NonNull final DocumentLayoutDetailDescriptor subTabLayout) { this.subTabLayouts.add(subTabLayout); return this; } public Builder addAllSub...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\descriptor\DocumentLayoutDetailDescriptor.java
1