Modifier and Type | Method and Description |
---|---|
D |
TrackableRepository.archive(D entity,
ContextInfo contextInfo)
Archive a record so that it is no longer considered active and is filtered out of results.
|
boolean |
TrackableRsqlFilterExecutor.exists(cz.jirutka.rsql.parser.ast.Node filters,
ContextInfo contextInfo)
Checks whether the data store contains elements that match the given
Node . |
boolean |
TrackableRepository.existsByContextId(String contextId,
ContextInfo contextInfo)
Retrieve whether or not an active instance of the item exists for the given context id after
any narrowing context is applied.
|
List<D> |
TrackableRepository.findAll(ContextInfo contextInfo)
Retrieve all domain instances.
|
List<D> |
TrackableRepository.findAll(ContextInfo contextInfo,
Class<D> type)
Retrieve all domain instances.
|
List<D> |
TrackableRsqlFilterExecutor.findAll(cz.jirutka.rsql.parser.ast.Node filters,
ContextInfo contextInfo)
Retrieve all domain instances using an RSQL
Node to restrict results. |
org.springframework.data.domain.Page<D> |
TrackableRsqlFilterExecutor.findAll(cz.jirutka.rsql.parser.ast.Node filters,
org.springframework.data.domain.Pageable pageable,
ContextInfo contextInfo)
Retrieve all domain instances using an RSQL
Node to restrict results. |
List<D> |
TrackableRsqlFilterExecutor.findAll(cz.jirutka.rsql.parser.ast.Node filters,
org.springframework.data.domain.Sort sort,
ContextInfo contextInfo)
Retrieve all domain instances using an RSQL
Node to restrict results. |
org.springframework.data.domain.Page<D> |
TrackableRsqlFilterExecutor.findAll(cz.jirutka.rsql.parser.ast.Node filters,
org.springframework.data.domain.Sort sort,
org.springframework.data.domain.Pageable pageable,
ContextInfo contextInfo)
Retrieve all domain instances using an RSQL
Node to restrict results. |
org.springframework.data.domain.Page<D> |
TrackableRepository.findAll(org.springframework.data.domain.Pageable pageable,
ContextInfo contextInfo)
Retrieve all domain instances, a page at a time.
|
org.springframework.data.domain.Page<D> |
TrackableRepository.findAll(org.springframework.data.domain.Pageable pageable,
ContextInfo contextInfo,
Class<D> type)
Retrieve all domain instances, a page at a time.
|
List<D> |
TrackableRepository.findAll(org.springframework.data.domain.Sort sort,
ContextInfo contextInfo)
Retrieve all domain instances using a sort.
|
List<D> |
TrackableRepository.findAll(org.springframework.data.domain.Sort sort,
ContextInfo contextInfo,
Class<D> type)
Retrieve all domain instances using a sort.
|
Iterable<D> |
TrackableRepository.findAllByContextId(Iterable<String> contextIds,
ContextInfo contextInfo)
Retrieve all domain instances based on a list of context ids (see
Trackable.getContextId() ). |
Optional<D> |
TrackableRepository.findByContextId(String contextId,
ContextInfo contextInfo)
Retrieve a domain instance based on the context id (see
Trackable.getContextId() ). |
Optional<D> |
TrackableRepository.findByContextIdAndCatalog(String contextId,
String catalogId,
ContextInfo contextInfo)
Retrieve a domain instance based on the context id (see
Trackable.getContextId() ). |
Sortable |
TrackableRepository.findMaxSortMember(Sortable example,
String maxSort,
ContextInfo contextInfo)
Given an example member from a sort group, find the first member from that group whose sort
value is less than maxSort.
|
Sortable |
TrackableRepository.findMinSortMember(Sortable example,
String minSort,
ContextInfo contextInfo)
Given an example member from a sort group, find the first member from that group whose sort
value is greater than minSort.
|
D |
TrackableRepository.save(D entity,
ContextInfo contextInfo)
Insert (if not exists) or update the domain instance in the datastore.
|
Iterable<D> |
TrackableRepository.saveAll(Iterable<D> entities,
ContextInfo contextInfo)
Insert (if not exists) or update all the domain instances in the datastore.
|
<D extends Trackable> |
BasicAuditUtility.touch(ContextInfo contextInfo,
String contextId,
Class<D> repositoryEntityType,
Trackable example)
Set the update portion of a
BasicAuditable identified by the type and contextId, and
then persist that change. |
<D extends Trackable> |
DefaultBasicAuditUtility.touch(ContextInfo contextInfo,
String contextId,
Class<D> repositoryEntityType,
Trackable example) |
Modifier and Type | Method and Description |
---|---|
protected void |
DataTrackingKeyGen.CatalogKeyGenerator.addContextInfoDataToKey(ContextInfo contextInfo,
com.fasterxml.jackson.databind.node.ObjectNode key) |
protected void |
DataTrackingKeyGen.CatalogWithLocaleKeyGenerator.addContextInfoDataToKey(ContextInfo contextInfo,
com.fasterxml.jackson.databind.node.ObjectNode key) |
protected void |
DataTrackingKeyGen.ApplicationKeyGenerator.addContextInfoDataToKey(ContextInfo contextInfo,
com.fasterxml.jackson.databind.node.ObjectNode key) |
protected void |
DataTrackingKeyGen.ApplicationWithLocaleKeyGenerator.addContextInfoDataToKey(ContextInfo contextInfo,
com.fasterxml.jackson.databind.node.ObjectNode key) |
protected void |
DataTrackingKeyGen.TenantKeyGenerator.addContextInfoDataToKey(ContextInfo contextInfo,
com.fasterxml.jackson.databind.node.ObjectNode key) |
protected void |
DataTrackingKeyGen.TenantWithLocaleKeyGenerator.addContextInfoDataToKey(ContextInfo contextInfo,
com.fasterxml.jackson.databind.node.ObjectNode key) |
void |
SandboxVisibleCacheEnabledContextInfoCustomizer.customize(ContextInfo contextInfo,
String routeKey,
org.springframework.core.MethodParameter endpoint,
org.springframework.web.context.request.NativeWebRequest webRequest) |
Modifier and Type | Method and Description |
---|---|
void |
CatalogVendorAwareCacheKeyEnhancer.enhanceCacheKeyWithVendorConsiderations(com.fasterxml.jackson.databind.node.ObjectNode cacheKey,
ContextInfo contextInfo)
This method is specifically intended to determine vendor-privileges available for the vendor
which the
ContextRequest.getCatalog() is related to . |
void |
DefaultVendorAwareCacheKeyEnhancer.enhanceCacheKeyWithVendorConsiderations(com.fasterxml.jackson.databind.node.ObjectNode cacheKey,
ContextInfo contextInfo) |
void |
VendorAwareCacheKeyEnhancer.enhanceCacheKeyWithVendorConsiderations(com.fasterxml.jackson.databind.node.ObjectNode cacheKey,
ContextInfo contextInfo)
Typically, implementations of this method should load the current policy requirements and
leverage
VendorAwareTrackablePolicyUtils to determine relevant
restrictions/restricted-privileges available to the current authentication, and add those
details to the provided cache key node. |
Modifier and Type | Method and Description |
---|---|
ContextInfo |
ContextInfoWebRequestResolver.resolveContextInfo(@NonNull org.springframework.web.context.request.NativeWebRequest req,
@NonNull ContextRequest contextRequest,
@NonNull OperationType operationType,
org.springframework.core.MethodParameter methodParameter)
Builds a
ContextInfo with the given contextRequest and operationType ,
with additional fields populated from data gathered in req . |
ContextInfo |
ContextInfoWebRequestResolver.resolveContextInfo(@NonNull org.springframework.web.context.request.NativeWebRequest req,
@NonNull OperationType operationType,
org.springframework.core.MethodParameter methodParameter)
A convenience method that builds both a
ContextInfo and its ContextRequest
from the given web request. |
ContextInfo |
ContextInfo.withOperationType(ContextInfo info,
OperationType type)
Creates a new ContextInfo and sets the operation type.
|
Modifier and Type | Method and Description |
---|---|
protected void |
ContextInfoWebRequestResolver.applyCustomizers(@NonNull ContextInfo contextInfo,
org.springframework.core.MethodParameter methodParameter,
@NonNull org.springframework.web.context.request.NativeWebRequest webRequest) |
protected void |
ContextInfoWebRequestResolver.applyPreviewBehaviorIfPossible(org.springframework.web.context.request.NativeWebRequest req,
ContextInfo response) |
String |
ContextInfo.QueryInfluencer.buildFilter(Class<?> entityBeingRead,
PolicyInformation currentPolicyRequirements,
ContextInfo contextInfo)
Produce a
Node filter string that the NarrowExecutor can parse and add as
a predicate for the query it is currently processing. |
void |
ContextInfoCustomizer.customize(ContextInfo contextInfo,
String routeKey,
org.springframework.core.MethodParameter endpoint,
org.springframework.web.context.request.NativeWebRequest webRequest)
Customize any of the settings on the passed in
ContextInfo instance. |
static <P> P |
ContextUtility.doWithActiveCheck(Supplier<P> function,
ContextInfo contextInfo)
Similar to
ContextUtility.forceDoWithActiveCheck(Supplier, ContextInfo) , except the state is not
forced, nor is it immutable for the duration of the call. |
static <P> P |
ContextUtility.doWithoutActiveCheck(Supplier<P> function,
ContextInfo contextInfo)
Similar to
ContextUtility.forceDoWithoutActiveCheck(Supplier, ContextInfo) , except the state is not
forced, nor is it immutable for the duration of the call. |
static <P> P |
ContextUtility.forceDoWithActiveCheck(Supplier<P> function,
ContextInfo contextInfo)
Force active date checking to be enabled during this flow.
|
static <P> P |
ContextUtility.forceDoWithoutActiveCheck(Supplier<P> function,
ContextInfo contextInfo)
Force active date checking to be disabled during this flow.
|
ContextInfo |
ContextInfo.withOperationType(ContextInfo info,
OperationType type)
Creates a new ContextInfo and sets the operation type.
|
Constructor and Description |
---|
ContextInfo(ContextInfo contextInfo)
Create a copy of an existing ContextInfo, including a copy of its
ContextRequest . |
Modifier and Type | Method and Description |
---|---|
ContextInfo |
NarrowExecutor.QueryInfo.getContextInfo()
The request context information (sandbox, application, catalog)
|
Modifier and Type | Method and Description |
---|---|
void |
ActiveDateFilteringEnabledContextInfoCustomizer.customize(ContextInfo contextInfo,
String routeKey,
org.springframework.core.MethodParameter endpoint,
org.springframework.web.context.request.NativeWebRequest webRequest) |
Constructor and Description |
---|
QueryInfo(QueryContainer queryContainer,
boolean isLimiting,
boolean isCountQuery,
boolean isExistsQuery,
boolean isDeleteQuery,
boolean isCollectionQuery,
boolean isPageQuery,
boolean isStreamQuery,
ContextInfo contextInfo,
Class<?> typeToRead,
boolean isExplicitType) |
Modifier and Type | Method and Description |
---|---|
ChangeDetail |
DefaultTrackableDomainMapperMemberSupport.buildChangeDetailBefore(ContextInfo contextInfo,
Trackable repositoryDomain,
String propertyName,
PropertyTypeInfo propertyTypeInfo,
String businessPropertyName) |
ChangeDetail |
TrackableDomainMapperMemberSupport.buildChangeDetailBefore(ContextInfo contextInfo,
Trackable repositoryDomain,
String propertyName,
PropertyTypeInfo propertyTypeInfo,
String businessPropertyName)
Construct a
ChangeDetail instance that represents the value of soon-to-be dirty field
before the mutating change is applied. |
ContextState |
ContextStateBuilder.buildContextState(Trackable domain,
ContextInfo contextInfo)
Builds
ContextState information for a ContextStateAware business instance corresponding to the given Trackable
domain instance that can be inspected for additional metadata around the entity in relation
to the context of the requester. |
<P> void |
DefaultTrackableDomainMapperMemberSupport.buildContextState(Trackable domain,
P business,
ContextInfo contextInfo,
org.modelmapper.ModelMapper fromMeMapper) |
<P> void |
TrackableDomainMapperMemberSupport.buildContextState(Trackable domain,
P business,
ContextInfo contextInfo,
org.modelmapper.ModelMapper fromMeMapper)
Add in
ContextState information to the business domain that can be inspected for
additional metadata around the entity in relation to the context of the requester. |
protected <D extends Trackable> |
ModelMapperDomainMapperMember.buildDetailsBefore(D repositoryDomain,
ContextInfo contextInfo,
org.modelmapper.TypeMap<?,?> repositoryTypeMap) |
void |
DefaultTrackableDomainMapperMemberSupport.buildTracking(ContextInfo contextInfo,
Trackable domainInstance,
List<ChangeDetail> details) |
void |
TrackableDomainMapperMemberSupport.buildTracking(ContextInfo contextInfo,
Trackable domainInstance,
List<ChangeDetail> details)
Compile the
Tracking information for a new change |
<P> P |
DefaultDomainMapperManager.convertFromPersistentDomain(Object domain,
ContextInfo contextInfo) |
default <P> P |
DomainMapperManager.convertFromPersistentDomain(Object domain,
ContextInfo contextInfo)
Similar to
DomainMapperManager.fromRepositoryDomain(Object, Class, ContextInfo) , but doesn't require the
caller to know the business domain type. |
default <D> D |
DomainMapper.deleteMap(D repositoryDomain,
ContextInfo contextInfo)
In cases where deletion actually results in a modified state to persist (e.g.
|
<D> D |
ModelMapperDomainMapperMember.deleteMap(D repositoryDomain,
ContextInfo contextInfo) |
<D> D |
DefaultDomainMapperManager.deleteMap(D repositoryDomain,
ContextInfo contextInfo) |
<D> D |
BasicAuditDomainMapperMember.deleteMap(D repositoryDomain,
ContextInfo contextInfo) |
protected boolean |
ContextStateBuilder.determineApplicationContextStateMutability(Trackable domain,
ContextInfo contextInfo)
Determines whether the domain is mutable given the requesting context based on the
application and tenancy state of the domain and context.
|
protected boolean |
ContextStateBuilder.determineContextStateMutability(Trackable domain,
ContextInfo contextInfo)
Determines whether the domain is mutable given the requesting context.
|
protected boolean |
AlwaysMutableContextStateBuilder.determineContextStateMutability(Trackable domain,
ContextInfo contextInfo) |
protected boolean |
ContextStateBuilder.determinePolicyContextStateMutability(Trackable domain,
ContextInfo contextInfo)
Determines whether the domain is mutable given the requesting context based on permissions
and policy validation.
|
static <P> P |
EntityUtils.divert(ContextInfo contextInfo,
OperationType type,
Function<ContextInfo,P> op)
Divert a call to the function
op with the given context info and operation type. |
<D> D |
DefaultDomainMapperManager.fromBusinessDomain(Object businessDomain,
Class<D> repositoryDomainType,
ContextInfo contextInfo) |
default <D> D |
DomainMapperManager.fromBusinessDomain(Object businessDomain,
Class<D> repositoryDomainType,
ContextInfo contextInfo)
Map and return a populated repository domain class instance, based on information provided in
a business domain instance.
|
<D> D |
ModelMapperDomainMapperMember.fromBusinessDomain(Object businessDomain,
D repositoryDomain,
ContextInfo contextInfo) |
default <D> D |
DomainMapperMember.fromBusinessDomain(Object businessDomain,
D repositoryDomain,
ContextInfo contextInfo)
Map and return a populated repository domain instance, based on information provided in a
business domain.
|
<D> D |
ChangeContainerOverridableDomainMapperMember.fromBusinessDomain(Object businessDomain,
D repositoryDomain,
ContextInfo contextInfo) |
<D> D |
CreateSetupDomainMapperMember.fromBusinessDomain(Object businessDomain,
D repositoryDomain,
ContextInfo contextInfo)
Autogenerates a ULID context ID for the repository domain if the context is a create
operation.
|
<D> D |
UpdateValidationDomainMapperMember.fromBusinessDomain(Object businessDomain,
D repositoryDomain,
ContextInfo contextInfo)
Validates the identifier value state for a mutation request.
|
<D> D |
BasicAuditDomainMapperMember.fromBusinessDomain(Object businessDomain,
D repositoryDomain,
ContextInfo contextInfo) |
<P> P |
DefaultDomainMapperManager.fromRepositoryDomain(BusinessTypeAware repositoryDomain,
ContextInfo contextInfo) |
<P> P |
DomainMapperManager.fromRepositoryDomain(BusinessTypeAware repositoryDomain,
ContextInfo contextInfo)
Map and return a populated business domain instance, based on information provided in a
repository domain instance.
|
<P> P |
DefaultDomainMapperManager.fromRepositoryDomain(Object repositoryDomain,
Class<P> businessDomainType,
ContextInfo contextInfo) |
default <P> P |
DomainMapperManager.fromRepositoryDomain(Object repositoryDomain,
Class<P> businessDomainType,
ContextInfo contextInfo)
Map and return a populated business domain instance, based on information provided in a
repository domain instance.
|
<P> P |
ModelMapperDomainMapperMember.fromRepositoryDomain(Object repositoryDomain,
P businessDomain,
ContextInfo contextInfo) |
default <P> P |
DomainMapperMember.fromRepositoryDomain(Object repositoryDomain,
P businessDomain,
ContextInfo contextInfo)
Map and return a populated business domain instance, based on information provided in a
repository domain instance.
|
<P> P |
DefaultDomainMapperManager.fromRepositoryDomainByExample(Object repositoryDomain,
P example,
ContextInfo contextInfo) |
default <P> P |
DomainMapperManager.fromRepositoryDomainByExample(Object repositoryDomain,
P example,
ContextInfo contextInfo)
Map and return a populated business domain instance, based on information provided in a
repository domain instance.
|
Trackable |
DefaultTrackableDomainMapperMemberSupport.handleDelete(Trackable repositoryDomain,
ContextInfo contextInfo) |
Trackable |
TrackableDomainMapperMemberSupport.handleDelete(Trackable repositoryDomain,
ContextInfo contextInfo)
Perform a mapping operation that will either create a special delete sandbox state for a
domain instance, or will archive an instance.
|
static boolean |
EntityUtils.isCreate(Object entity,
ContextInfo contextInfo) |
protected <D,P> D |
ModelMapperDomainMapperMember.mapToRepositoryDomain(D repositoryDomain,
P businessDomain,
ContextInfo contextInfo,
org.modelmapper.ModelMapper mapper) |
protected <D extends Trackable,P> |
ModelMapperDomainMapperMember.mapWithTracking(D repositoryDomain,
P modifications,
ContextInfo contextInfo,
org.modelmapper.ModelMapper mapper)
During the mapping operation for properties between the payload and the domain, this will
examine the before and after state and compile
ChangeDetail instances to include in
the Tracking state. |
default <D,P> D |
DomainMapper.modifyMap(D repositoryDomain,
P businessDomain,
ContextInfo contextInfo,
boolean allowNull)
Perform a mapping operation from business domain instance to persistence specific instance,
presumably modifying the state of the persistence specific instance.
|
<D,P> D |
ModelMapperDomainMapperMember.modifyMap(D repositoryDomain,
P businessDomain,
ContextInfo contextInfo,
boolean allowNull) |
<D,P> D |
ChangeContainerOverridableDomainMapperMember.modifyMap(D repositoryDomain,
P businessDomain,
ContextInfo contextInfo,
boolean allowNull) |
<D,P> D |
DefaultDomainMapperManager.modifyMap(D repositoryDomain,
P businessDomain,
ContextInfo contextInfo,
boolean allowNull) |
<D,P> D |
UpdateValidationDomainMapperMember.modifyMap(D repositoryDomain,
P businessDomain,
ContextInfo contextInfo,
boolean allowNull)
Validates the identifier value state for a mutation request.
|
<D,P> D |
BasicAuditDomainMapperMember.modifyMap(D repositoryDomain,
P businessDomain,
ContextInfo contextInfo,
boolean allowNull) |
default void |
ModelMapperMappable.postFromMe(ContextInfo contextInfo,
Object businessDomain)
Lifecycle method that is executed after mapping occurs from a repository entity to a business
domain.
|
default void |
ModelMapperMappable.postToMe(ContextInfo contextInfo,
Object businessDomain)
Lifecycle method that is executed after mapping occurs from a business domain to a repository
entity.
|
default void |
ModelMapperMappable.preFromMe(ContextInfo contextInfo,
Object businessDomain)
This is a lifecycle method and allows for any logic to be executed prior to the mapping
occuring.
|
default void |
ModelMapperMappable.preToMe(ContextInfo contextInfo,
Object businessDomain)
This is a lifecycle method and allows for any logic to be executed prior to the mapping
occuring.
|
<P> List<P> |
DefaultDomainMapperManager.process(List<?> repositoryDomain,
ContextInfo contextInfo) |
<P> List<P> |
DomainMapperManager.process(List<?> repositoryDomain,
ContextInfo contextInfo)
Execute both the
DomainMapperMember.fromRepositoryDomain(Object, Object, ContextInfo)
pipeline and PostMapper.transform(List, List, ContextInfo) pipeline in a single
call. |
<P> P |
DefaultDomainMapperManager.process(Object repositoryDomain,
ContextInfo contextInfo) |
<P> P |
DomainMapperManager.process(Object repositoryDomain,
ContextInfo contextInfo)
Execute both the
DomainMapperMember.fromRepositoryDomain(Object, Object, ContextInfo)
pipeline and PostMapper.transform(Object, Object, ContextInfo) pipeline in a
single call. |
<P> org.springframework.data.domain.Page<P> |
DefaultDomainMapperManager.process(org.springframework.data.domain.Page<?> repositoryDomain,
ContextInfo contextInfo) |
<P> org.springframework.data.domain.Page<P> |
DomainMapperManager.process(org.springframework.data.domain.Page<?> repositoryDomain,
ContextInfo contextInfo)
Execute both the
DomainMapperMember.fromRepositoryDomain(Object, Object, ContextInfo)
pipeline and PostMapper.transform(List, List, ContextInfo) pipeline in a single
call. |
<P> Stream<P> |
DefaultDomainMapperManager.process(Stream<?> repositoryDomain,
ContextInfo contextInfo) |
<P> Stream<P> |
DomainMapperManager.process(Stream<?> repositoryDomain,
ContextInfo contextInfo)
Execute both the
DomainMapperMember.fromRepositoryDomain(Object, Object, ContextInfo)
pipeline and PostMapper.transform(List, List, ContextInfo) pipeline in a single
call. |
protected <D extends Trackable> |
ModelMapperDomainMapperMember.shouldBuildChangeDetails(D repositoryDomain,
ContextInfo contextInfo)
Determine if dirty change details should be built for this domain.
|
protected boolean |
CreateSetupDomainMapperMember.shouldContextIdBeGenerated(IdAware.Id id,
String contextId,
ContextInfo contextInfo)
Determines whether the context ID should be generated by the system for the given
repositoryDomain entity. |
default <P,D> void |
PostMapper.transform(List<P> projections,
List<D> entities,
ContextInfo contextInfo)
Perform any required modifications to the list of projections.
|
<P,D> void |
DefaultDomainMapperManager.transform(List<P> projections,
List<D> entities,
ContextInfo contextInfo) |
default <P,D> void |
PostMapper.transform(P projection,
D entity,
ContextInfo contextInfo)
Perform any required modifications to the list of projections.
|
Modifier and Type | Method and Description |
---|---|
static <P> P |
EntityUtils.divert(ContextInfo contextInfo,
OperationType type,
Function<ContextInfo,P> op)
Divert a call to the function
op with the given context info and operation type. |
Modifier and Type | Method and Description |
---|---|
default boolean |
CurrencyContextProvider.canHandle(Object source,
ContextInfo contextInfo)
Whether or not this can handle the resolution for the given source.
|
<P> P |
MonetaryMapperMember.fromRepositoryDomain(Object repositoryDomain,
P businessDomain,
ContextInfo contextInfo)
Deprecated.
|
com.broadleafcommerce.money.CurrencyContext |
CompositeCurrencyContextProvider.getContext(Object source,
ContextInfo contextInfo) |
com.broadleafcommerce.money.CurrencyContext |
CurrencyContextProvider.getContext(T source,
ContextInfo contextInfo)
Get the currency from a source object
|
static javax.money.CurrencyUnit |
CurrentCurrencyUtils.resolveCurrentCurrency(ContextInfo contextInfo)
Returns the
CurrencyUnit that matches the getDefaultCurrency() . |
static javax.money.CurrencyUnit |
CurrentCurrencyUtils.resolveCurrentCurrency(Object currencySupplier,
ContextInfo contextInfo)
Returns the
CurrencyUnit that most closely matches the parameters provided. |
Modifier and Type | Method and Description |
---|---|
boolean |
EntityValidator.supports(Class<?> serviceClass,
ContextInfo context)
Whether or not this validator supports validating the given service class
|
boolean |
EntityValidatorManager.supports(Class<?> clazz,
ContextInfo context) |
default void |
EntityValidator.validate(Object businessInstance,
org.springframework.validation.Errors errors,
ContextInfo context)
Default validation that handles create, replace and update.
|
void |
EntityValidatorManager.validate(Object businessInstance,
org.springframework.validation.Errors errors,
ContextInfo context) |
default void |
EntityValidator.validateForCreate(Object businessInstance,
org.springframework.validation.Errors errors,
ContextInfo context)
Validate a new repositoryInstance being added based on its businessInstance
representation
|
void |
EntityValidatorManager.validateForCreate(Object businessInstance,
org.springframework.validation.Errors errors,
ContextInfo context) |
default void |
EntityValidator.validateForReplace(Object businessInstance,
org.springframework.validation.Errors errors,
ContextInfo context)
Validate a replacement for the repositoryInstance.
|
void |
EntityValidatorManager.validateForReplace(Object businessInstance,
org.springframework.validation.Errors errors,
ContextInfo context) |
default void |
EntityValidator.validateForUpdate(Object updatedBusinessInstance,
org.springframework.validation.Errors errors,
ContextInfo context)
Validate an update to a repositoryInstance based upon the business representation of
the result of applying the update.
|
void |
EntityValidatorManager.validateForUpdate(Object updatedBusinessInstance,
org.springframework.validation.Errors errors,
ContextInfo context) |
Modifier and Type | Method and Description |
---|---|
boolean |
RuleValidatorManager.supports(Class<?> serviceClass,
ContextInfo context) |
void |
RuleValidatorManager.validate(Object businessInstance,
org.springframework.validation.Errors errors,
ContextInfo context) |
Modifier and Type | Method and Description |
---|---|
long |
DefaultCommonMarketplaceApplicationCatalogService.countByApplication(String application,
ContextInfo contextInfo) |
long |
CommonMarketplaceApplicationCatalogService.countByApplication(String application,
ContextInfo contextInfo) |
List<P> |
DefaultCommonMarketplaceApplicationCatalogService.findByApplicationAndCatalog(String application,
String catalog,
ContextInfo contextInfo) |
List<P> |
CommonMarketplaceApplicationCatalogService.findByApplicationAndCatalog(String application,
String catalog,
ContextInfo contextInfo) |
List<P> |
DefaultCommonMarketplaceApplicationCatalogService.findByCatalogIn(Collection<String> catalogs,
ContextInfo contextInfo) |
List<P> |
CommonMarketplaceApplicationCatalogService.findByCatalogIn(Collection<String> catalogs,
ContextInfo contextInfo) |
Modifier and Type | Method and Description |
---|---|
String |
DefaultVendorVisibilityManager.createVendorNarrowingFilter(@NonNull Class<?> persistedDomainEntityTypeBeingRead,
@NonNull Set<String> restrictedVendorRefs,
ContextInfo contextInfo) |
String |
VendorVisibilityManager.createVendorNarrowingFilter(Class<?> persistedDomainEntityTypeBeingRead,
Set<String> restrictedVendorRefs,
ContextInfo contextInfo)
Given a
persistedDomainEntityTypeBeingRead that is being read in a query, return a
Node filter string for it that restricts results to only include data from the
restrictedVendorRefs . |
String |
VendorVisibilityHandler.createVendorNarrowingFilter(Set<String> restrictedVendorRefs,
ContextInfo contextInfo)
For the persisted domain entity type(s) supported by this handler, build a
Node
filter string that can be used in queries for those entities that restricts results to only
include data from the restrictedVendorRefs . |
String |
DefaultVendorVisibilityManager.getAssociatedVendorRef(Object persistedDomainEntity,
ContextInfo contextInfo) |
String |
VendorVisibilityManager.getAssociatedVendorRef(Object persistedDomainEntity,
ContextInfo contextInfo)
Given a
persistedDomainEntity , determine what vendor it is associated to (if any). |
String |
VendorVisibilityHandler.getAssociatedVendorRef(Object persistedDomainEntity,
ContextInfo contextInfo)
Given a
persistedDomainEntity , determine what vendor it is associated to (if any). |
boolean |
DefaultVendorVisibilityManager.isEntityMutableByVendorRestrictions(@NonNull Object persistedDomainEntity,
@NonNull Set<String> restrictedVendorRefs,
ContextInfo contextInfo) |
boolean |
VendorVisibilityManager.isEntityMutableByVendorRestrictions(Object persistedDomainEntity,
Set<String> restrictedVendorRefs,
ContextInfo contextInfo)
Given a
persistedDomainEntity , report whether that entity is mutable by the given
vendor restrictions. |
boolean |
VendorVisibilityHandler.isEntityMutableByVendorRestrictions(Object persistedDomainEntity,
Set<String> restrictedVendorRefs,
ContextInfo contextInfo)
Given a
persistedDomainEntity , report whether that entity is mutable by the given
vendor restrictions. |
Modifier and Type | Method and Description |
---|---|
String |
CatalogDiscriminatedEntityVendorVisibilityHandler.createVendorNarrowingFilter(@NonNull Set<String> restrictedVendorRefs,
ContextInfo contextInfo)
Builds a filter on
tracking.catalog.contextId that serves as an "upper bound" to
possible catalogs the results can come from. |
String |
CatalogDiscriminatedEntityVendorVisibilityHandler.getAssociatedVendorRef(Object persistedDomainEntity,
ContextInfo contextInfo) |
boolean |
CatalogDiscriminatedEntityVendorVisibilityHandler.isEntityMutableByVendorRestrictions(@NonNull Object persistedDomainEntity,
@NonNull Set<String> restrictedVendorRefs,
ContextInfo contextInfo)
This method always returns true.
|
Modifier and Type | Method and Description |
---|---|
void |
VendorNarrowingContextInfoCustomizer.customize(ContextInfo contextInfo,
String routeKey,
org.springframework.core.MethodParameter endpoint,
org.springframework.web.context.request.NativeWebRequest webRequest) |
Modifier and Type | Method and Description |
---|---|
boolean |
SingleIndexRequestMessageFactory.indexActive(TrackableBehaviorUtil util,
Object entity,
ContextInfo context) |
Modifier and Type | Method and Description |
---|---|
<D> D |
SingleIndexRequestNotificationStateMapperMember.deleteMap(D repositoryDomain,
ContextInfo contextInfo) |
<D> D |
SingleIndexRequestNotificationStateMapperMember.fromBusinessDomain(Object businessDomain,
D repositoryDomain,
ContextInfo contextInfo) |
protected boolean |
SingleIndexRequestNotificationStateMapperMember.isSupported(Object repositoryDomain,
ContextInfo contextInfo) |
protected <D> D |
SingleIndexRequestNotificationStateMapperMember.mapInternal(D repositoryDomain,
ContextInfo contextInfo) |
<D,P> D |
SingleIndexRequestNotificationStateMapperMember.modifyMap(D repositoryDomain,
P businessDomain,
ContextInfo contextInfo,
boolean allowNull) |
Modifier and Type | Method and Description |
---|---|
void |
SpanContextInfoCustomizer.customize(ContextInfo contextInfo,
String routeKey,
org.springframework.core.MethodParameter endpoint,
org.springframework.web.context.request.NativeWebRequest webRequest) |
Modifier and Type | Method and Description |
---|---|
protected OperationType |
DefaultPolicyAspectProcessor.narrowType(PolicyInformation policy,
ContextInfo contextInfo)
Figure out the OperationType to use, given the policy and contextInfo.
|
PolicyResponse |
PolicyEvaluator.validate(Map<Integer,Object> methodParams,
PolicyInformation policy,
ContextInfo contextInfo,
OperationType operationType)
Validate security context required to execute a method annotated with
Policy . |
default PolicyResponse |
PolicyUtils.validatePermissions(String[] permissions,
ContextInfo contextInfo)
Determine if the current security context (e.g.
|
PolicyResponse |
PolicyResponse.with(String reason,
Map<String,Object> authenticationDetails,
ContextInfo contextInfo) |
Modifier and Type | Method and Description |
---|---|
protected PolicyResponse |
DefaultTrackablePolicyUtils.invalidPolicyResponse(PolicyResponse response,
String reason,
ContextInfo contextInfo) |
protected boolean |
DefaultTrackablePolicyUtils.isContextVisible(ContextInfo contextInfo) |
boolean |
TrackablePolicyUtils.isMutationPossibleForContext(ContextInfo contextInfo)
Return whether or not the currently identified user has the necessary assigned tenant
relationships to make a mutating operation possible given the requested application, and/or
catalog, and/or lack thereof.
|
boolean |
DefaultTrackablePolicyUtils.isMutationPossibleForContext(ContextInfo contextInfo) |
protected boolean |
DefaultTrackablePolicyUtils.isSandboxVisible(ContextInfo contextInfo) |
PolicyResponse |
TrackableEntityPolicyEvaluator.validate(Map<Integer,Object> methodParams,
PolicyInformation policy,
ContextInfo contextInfo,
OperationType operationType) |
protected boolean |
DefaultTrackablePolicyUtils.validateCatalogInsert(@NonNull ContextInfo contextInfo)
If a catalog discriminated entity, validate that the current user is capable of inserting an
entity via the application and catalog requested in the context.
|
PolicyResponse |
TrackablePolicyUtils.validateContext(ContextInfo contextInfo)
Review the
ContextInfo parameter for valid tenant user membership and valid catalog
visibility based on the current Authentication and requested tenant information in
the contextInfo. |
PolicyResponse |
DefaultTrackablePolicyUtils.validateContext(ContextInfo contextInfo) |
PolicyResponse |
TrackablePolicyUtils.validateContext(ContextInfo contextInfo,
String[] requiredPermissionRoots,
PermissionMatchingStrategy permissionMatchingStrategy,
OperationType operationType)
Review the
ContextInfo parameter for valid tenant user membership and valid catalog
visibility based on the current Authentication and requested tenant information in
the contextInfo. |
PolicyResponse |
DefaultTrackablePolicyUtils.validateContext(ContextInfo contextInfo,
String[] requiredPermissionRoots,
PermissionMatchingStrategy permissionMatchingStrategy,
OperationType operationType) |
PolicyResponse |
TrackablePolicyUtils.validateDelete(Trackable entity,
ContextInfo contextInfo,
String[] permissionRoots,
PermissionMatchingStrategy strategy)
Validate that before deleting (if the catalog discrimination is in play) that the item's
catalog is both visible to the current application, and mutable.
|
PolicyResponse |
DefaultTrackablePolicyUtils.validateDelete(Trackable entity,
ContextInfo contextInfo,
String[] permissionRoots,
PermissionMatchingStrategy strategy) |
protected PolicyResponse |
DefaultTrackablePolicyUtils.validateEntityOperation(Trackable entity,
ContextInfo contextInfo,
String[] permissionRoots,
PermissionMatchingStrategy strategy,
OperationType operationType) |
protected PolicyResponse |
DefaultTrackablePolicyUtils.validateEntityUpdate(Trackable entity,
@NonNull ContextInfo contextInfo)
Check update validity for a given entity instance
|
protected PolicyResponse |
DefaultTrackablePolicyUtils.validateGlobalMutateToInheritedCatalog(Trackable entity,
ContextInfo contextInfo) |
PolicyResponse |
TrackablePolicyUtils.validateInsert(Trackable entity,
ContextInfo contextInfo,
String[] permissionRoots,
PermissionMatchingStrategy strategy)
Validate that before inserting (if catalog discrimination is in play and the current entity
is catalog discriminatable) that the current catalog target for insertion is mutable.
|
PolicyResponse |
DefaultTrackablePolicyUtils.validateInsert(Trackable entity,
ContextInfo contextInfo,
String[] permissionRoots,
PermissionMatchingStrategy strategy) |
protected PolicyResponse |
DefaultTrackablePolicyUtils.validateOperation(ContextInfo contextInfo,
String[] permissionRoots,
PermissionMatchingStrategy strategy) |
protected PolicyResponse |
DefaultTrackablePolicyUtils.validateOperation(ContextInfo contextInfo,
String[] permissionRoots,
PermissionMatchingStrategy strategy,
OperationType operationType) |
PolicyResponse |
TrackablePolicyUtils.validateOther(ContextInfo contextInfo,
String[] permissionRoots,
PermissionMatchingStrategy strategy)
Validate that before misc operation, the required permission is available
|
PolicyResponse |
DefaultTrackablePolicyUtils.validateOther(ContextInfo contextInfo,
String[] permissionRoots,
PermissionMatchingStrategy strategy) |
PolicyResponse |
TrackablePolicyUtils.validatePermission(ContextInfo contextInfo,
String[] permissionRoots,
PermissionMatchingStrategy strategy)
Validate the permission against the granted authorities of the current
Authentication . |
PolicyResponse |
DefaultTrackablePolicyUtils.validatePermission(ContextInfo contextInfo,
String[] permissionRoots,
PermissionMatchingStrategy strategy) |
PolicyResponse |
TrackablePolicyUtils.validatePermission(String[] permissionRoots,
PermissionMatchingStrategy strategy,
OperationType operationType,
ContextInfo contextInfo)
Validate the permission against the granted authorities of the current
Authentication . |
PolicyResponse |
DefaultTrackablePolicyUtils.validatePermission(String[] permissionRoots,
PermissionMatchingStrategy strategy,
OperationType operationType,
ContextInfo contextInfo) |
PolicyResponse |
TrackablePolicyUtils.validateRead(ContextInfo contextInfo,
String[] permissionRoots,
PermissionMatchingStrategy strategy)
Validate that before reading, the required permission is available.
|
PolicyResponse |
DefaultTrackablePolicyUtils.validateRead(ContextInfo contextInfo,
String[] permissionRoots,
PermissionMatchingStrategy strategy) |
protected PolicyResponse |
TrackableEntityPolicyEvaluator.validateRequestedOperation(Map<Integer,Object> methodParams,
PolicyInformation policy,
ContextInfo contextInfo,
OperationType operationType,
TrackablePolicyUtils trackablePolicyUtils) |
PolicyResponse |
TrackablePolicyUtils.validateUpdate(Trackable entity,
ContextInfo contextInfo,
String[] permissionRoots,
PermissionMatchingStrategy strategy)
Validate that before updating (if the catalog discrimination is in play) that the item's
catalog is both visible to the current application, and mutable.
|
PolicyResponse |
DefaultTrackablePolicyUtils.validateUpdate(Trackable entity,
ContextInfo contextInfo,
String[] permissionRoots,
PermissionMatchingStrategy strategy) |
Modifier and Type | Method and Description |
---|---|
protected OperationType |
VendorAwareTrackablePolicyUtils.determineRequiredOperationType(PolicyInformation policy,
ContextInfo contextInfo)
This is copied from
DefaultPolicyAspectProcessor.narrowType(PolicyInformation, ContextInfo) . |
Set<String> |
VendorAwareTrackablePolicyUtils.filterToVendorRestrictionsMatchingPolicyRequirements(@NonNull Set<String> restrictedVendorRefs,
@NonNull Map<String,Set<String>> vendorRefsByRestrictedAuthority,
@NonNull PolicyInformation policyRequirements,
ContextInfo contextInfo)
An authentication may have restrictions, but it's possible not all of them have the
authorities required by a resource.
|
protected boolean |
VendorAwareTrackablePolicyUtils.isCatalogVisibleByVendorRestrictions(@NonNull ContextInfo contextInfo,
String[] requiredPermissionRoots,
PermissionMatchingStrategy permissionMatchingStrategy,
OperationType requiredOperationType)
Reports whether the catalog referenced in the
contextInfo is visible by the vendor
restrictions in the current authentication. |
PolicyResponse |
VendorAwareTrackablePolicyUtils.validateContext(ContextInfo contextInfo) |
PolicyResponse |
VendorAwareTrackablePolicyUtils.validateContext(ContextInfo contextInfo,
String[] requiredPermissionRoots,
PermissionMatchingStrategy permissionMatchingStrategy,
OperationType operationType)
Performs similar validation to
DefaultTrackablePolicyUtils.validateContext(ContextInfo, String[], PermissionMatchingStrategy, OperationType) ,
but also considers whether the catalog in the contextInfo is visible by the current
authentication's vendor restrictions. |
protected PolicyResponse |
VendorAwareTrackablePolicyUtils.validateEntityMutableByCurrentVendorRestrictions(Trackable entity,
ContextInfo contextInfo,
String[] requiredPermissionRoots,
PermissionMatchingStrategy permissionMatchingStrategy,
OperationType operationType)
Checks whether the given
entity being mutated is actually mutable given the current
authentication's vendor privileges and provided policy requirements. |
protected PolicyResponse |
VendorAwareTrackablePolicyUtils.validateEntityOperation(Trackable entity,
ContextInfo contextInfo,
String[] permissionRoots,
PermissionMatchingStrategy strategy,
OperationType operationType)
This is the method used by
DefaultTrackablePolicyUtils.validateUpdate(Trackable, ContextInfo, String[], PermissionMatchingStrategy)
and
DefaultTrackablePolicyUtils.validateDelete(Trackable, ContextInfo, String[], PermissionMatchingStrategy)
to validate an entity can be updated/deleted by the current authentication, so it is
overridden here to add consideration for vendor restrictions. |
PolicyResponse |
VendorAwareTrackablePolicyUtils.validateInsert(Trackable entity,
ContextInfo contextInfo,
String[] permissionRoots,
PermissionMatchingStrategy strategy)
Overrides
DefaultTrackablePolicyUtils.validateInsert(Trackable, ContextInfo, String[], PermissionMatchingStrategy)
to add behavior that checks whether the entity can be inserted by the current
authentication's vendor restrictions. |
PolicyResponse |
VendorAwareTrackablePolicyUtils.validatePermission(String[] permissionRoots,
PermissionMatchingStrategy strategy,
OperationType operationType,
ContextInfo contextInfo)
Overrides
DefaultTrackablePolicyUtils.validatePermission(String[], PermissionMatchingStrategy, OperationType, ContextInfo)
to give special consideration to vendor restrictions and vendor-restricted authorities. |
PolicyResponse |
VendorAwareTrackablePolicyUtils.validatePermissions(String[] permissions,
ContextInfo contextInfo)
Overridden from
PolicyUtils.validatePermissions(String[], ContextInfo) to give
special consideration to vendor restrictions and vendor-restricted authorities. |
Modifier and Type | Method and Description |
---|---|
protected <P> Trackable |
CrudEntityHelper.applyReplace(String entityToReplaceId,
P replacement,
Map<String,Trackable> foundEntitiesByContextId,
List<BulkPersistenceResponse.PersistenceFailure<P>> failures,
ContextInfo contextInfo) |
protected <P> org.springframework.data.util.Pair<P,Trackable> |
CrudEntityHelper.applyUpdate(String entityToUpdateId,
P change,
Map<String,Trackable> foundEntitiesByContextId,
List<BulkPersistenceResponse.PersistenceFailure<P>> failures,
ContextInfo contextInfo) |
protected P |
BaseCrudEntityService.convertFromPersistentDomain(Trackable domain,
ContextInfo contextInfo) |
<P> P |
CrudEntityHelper.convertFromPersistentDomain(Trackable domain,
ContextInfo contextInfo)
Convenience method to use the
CrudEntityHelper.mapper to convert a persistent domain instance to its
business equivalent. |
protected Trackable |
BaseCrudEntityService.convertToPersistentDomain(P businessInstance,
Class<Trackable> persistentType,
ContextInfo contextInfo) |
<P> Trackable |
CrudEntityHelper.convertToPersistentDomain(P businessInstance,
Class<Trackable> persistentType,
ContextInfo context)
Convenience method to use the
CrudEntityHelper.mapper to convert a business domain instance to its
persistent equivalent. |
P |
BaseCrudEntityService.create(P businessInstance,
ContextInfo context) |
P |
CrudEntityService.create(P businessInstance,
ContextInfo context)
Create an instance of an entity based on a business instance containing relavant property
values.
|
<P> P |
CrudEntityHelper.create(P businessInstance,
ContextInfo context,
TrackableRepository<Trackable> repository)
Create an instance of an entity based on a business instance containing relavant property
values.
|
List<P> |
BaseCrudEntityService.createAll(List<P> businessInstances,
ContextInfo context) |
List<P> |
CrudEntityService.createAll(List<P> businessInstances,
ContextInfo context)
Create multiple narrowed instances of an entity at once based on the business instances
containing relevant property values.
|
<P> List<P> |
CrudEntityHelper.createAll(List<P> businessInstances,
ContextInfo context,
TrackableRepository<Trackable> repository) |
BulkPersistenceResponse<P> |
BaseCrudEntityService.createAllAllowingPartialSuccess(List<P> businessInstances,
ContextInfo context) |
BulkPersistenceResponse<P> |
CrudEntityService.createAllAllowingPartialSuccess(List<P> businessInstances,
ContextInfo context)
Creates multiple narrowed instances of an entity at once based on the business instances
containing relevant property values.
|
<P> BulkPersistenceResponse<P> |
CrudEntityHelper.createAllAllowingPartialSuccess(List<P> businessInstances,
ContextInfo context,
TrackableRepository<Trackable> repository) |
void |
BaseCrudEntityService.delete(String id,
ContextInfo context) |
void |
CrudEntityService.delete(String id,
ContextInfo context)
Perform a delete operation on the entity identified by the context id.
|
void |
CrudEntityHelper.delete(String id,
ContextInfo context,
TrackableRepository<Trackable> repository)
Perform a delete operation on the entity identified by the context id.
|
void |
CrudEntityHelper.notify(Trackable domain,
ContextInfo context,
@NonNull com.broadleafcommerce.common.messaging.notification.NotificationStateRepository repository)
Notify the system of the change.
|
void |
ChangeNotifier.notify(Trackable domain,
ContextInfo context,
com.broadleafcommerce.common.messaging.notification.NotificationStateRepository repository)
Notify the async message fabric of the change
|
String |
PropagationIntegrator.prepare(Trackable domain,
ContextInfo context,
OperationType operationType)
Prepare a
Trackable entity for propagation, if applicable. |
String |
CrudEntityHelper.prepare(Trackable updated,
ContextInfo context,
@NonNull OperationType operationType) |
void |
PropagationIntegrator.propagateIfApplicable(Trackable domain,
ContextInfo context,
OperationType operationType,
TrackableRepository<Trackable> repository,
String propagationId)
Initiate a catalog propagation for the change.
|
void |
CrudEntityHelper.propagateIfApplicable(Trackable updated,
ContextInfo context,
@NonNull OperationType operationType,
@NonNull TrackableRepository<Trackable> repository,
String propagationId) |
List<P> |
BaseCrudEntityService.readAll(ContextInfo context) |
List<P> |
CrudEntityService.readAll(ContextInfo context)
Read a list of narrowed instances in the form of the business instance.
|
<P> List<P> |
CrudEntityHelper.readAll(ContextInfo context,
TrackableRepository<Trackable> repository)
Read a list of narrowed instances in the form of the business instance.
|
List<P> |
BaseRsqlCrudEntityService.readAll(cz.jirutka.rsql.parser.ast.Node filters,
ContextInfo context) |
List<P> |
RsqlCrudEntityService.readAll(cz.jirutka.rsql.parser.ast.Node filters,
ContextInfo context)
Retrieve all domain instances using a structured query string to drive the query criteria.
|
<P,R extends TrackableRsqlFilterExecutor<Trackable> & TrackableRepository<Trackable>> |
RsqlCrudEntityHelper.readAll(cz.jirutka.rsql.parser.ast.Node filters,
ContextInfo context,
R repository)
Retrieve all domain instances using a structured query string to drive the query criteria.
|
org.springframework.data.domain.Page<P> |
BaseRsqlCrudEntityService.readAll(cz.jirutka.rsql.parser.ast.Node filters,
org.springframework.data.domain.Pageable pageable,
ContextInfo context) |
org.springframework.data.domain.Page<P> |
RsqlCrudEntityService.readAll(cz.jirutka.rsql.parser.ast.Node filters,
org.springframework.data.domain.Pageable pageable,
ContextInfo context)
Retrieve all domain instances using a structured query string to drive the query criteria.
|
<P,R extends TrackableRsqlFilterExecutor<Trackable> & TrackableRepository<Trackable>> |
RsqlCrudEntityHelper.readAll(cz.jirutka.rsql.parser.ast.Node filters,
org.springframework.data.domain.Pageable pageable,
ContextInfo context,
R repository)
Retrieve all domain instances using a structured query string to drive the query criteria.
|
List<P> |
BaseRsqlCrudEntityService.readAll(cz.jirutka.rsql.parser.ast.Node filters,
org.springframework.data.domain.Sort sort,
ContextInfo context) |
List<P> |
RsqlCrudEntityService.readAll(cz.jirutka.rsql.parser.ast.Node filters,
org.springframework.data.domain.Sort sort,
ContextInfo context)
Retrieve all domain instances using a structured query string to drive the query criteria.
|
<P,R extends TrackableRsqlFilterExecutor<Trackable> & TrackableRepository<Trackable>> |
RsqlCrudEntityHelper.readAll(cz.jirutka.rsql.parser.ast.Node filters,
org.springframework.data.domain.Sort sort,
ContextInfo context,
R repository)
Retrieve all domain instances using a structured query string to drive the query criteria.
|
org.springframework.data.domain.Page<P> |
BaseRsqlCrudEntityService.readAll(cz.jirutka.rsql.parser.ast.Node filters,
org.springframework.data.domain.Sort sort,
org.springframework.data.domain.Pageable pageable,
ContextInfo context) |
org.springframework.data.domain.Page<P> |
RsqlCrudEntityService.readAll(cz.jirutka.rsql.parser.ast.Node filters,
org.springframework.data.domain.Sort sort,
org.springframework.data.domain.Pageable pageable,
ContextInfo context)
Retrieve all domain instances using a structured query string to drive the query criteria.
|
<P,R extends TrackableRsqlFilterExecutor<Trackable> & TrackableRepository<Trackable>> |
RsqlCrudEntityHelper.readAll(cz.jirutka.rsql.parser.ast.Node filters,
org.springframework.data.domain.Sort sort,
org.springframework.data.domain.Pageable pageable,
ContextInfo context,
R repository)
Retrieve all domain instances using a structured query string to drive the query criteria.
|
org.springframework.data.domain.Page<P> |
BaseCrudEntityService.readAll(org.springframework.data.domain.Pageable pageable,
ContextInfo context) |
org.springframework.data.domain.Page<P> |
CrudEntityService.readAll(org.springframework.data.domain.Pageable pageable,
ContextInfo context)
Read a page of narrowed instances in the form of the business instance.
|
<P> org.springframework.data.domain.Page<P> |
CrudEntityHelper.readAll(org.springframework.data.domain.Pageable pageable,
ContextInfo context,
TrackableRepository<Trackable> repository)
Read a page of narrowed instances in the form of the business instance.
|
List<P> |
BaseCrudEntityService.readAll(org.springframework.data.domain.Sort sort,
ContextInfo context) |
List<P> |
CrudEntityService.readAll(org.springframework.data.domain.Sort sort,
ContextInfo context)
Read a list of narrowed instances in the form of the business instance.
|
<P> List<P> |
CrudEntityHelper.readAll(org.springframework.data.domain.Sort sort,
ContextInfo context,
TrackableRepository<Trackable> repository)
Read a list of narrowed instances in the form of the business instance.
|
Iterable<P> |
BaseCrudEntityService.readAllByContextId(Iterable<String> ids,
ContextInfo context) |
Iterable<P> |
CrudEntityService.readAllByContextId(Iterable<String> ids,
ContextInfo context)
Retrieve all business instances based on a list of context ids.
|
<P> Iterable<P> |
CrudEntityHelper.readAllByContextId(Iterable<String> ids,
ContextInfo context,
TrackableRepository<Trackable> repository)
Retrieve all business instances based on a list of context ids.
|
P |
BaseCrudEntityService.readByContextId(String id,
ContextInfo context) |
P |
CrudEntityService.readByContextId(String id,
ContextInfo context)
Read a single instance of an entity in the form of a business domain.
|
<P> P |
CrudEntityHelper.readByContextId(String id,
ContextInfo context,
TrackableRepository<Trackable> repository)
Read a single instance of an entity in the form of a business domain.
|
P |
BaseCrudEntityService.replace(String id,
P businessInstance,
ContextInfo context) |
P |
CrudEntityService.replace(String id,
P businessInstance,
ContextInfo context)
Replace a single, narrowed instance of an entity based on a business instance containing
relevant property values.
|
<P> P |
CrudEntityHelper.replace(String id,
P businessInstance,
ContextInfo context,
TrackableRepository<Trackable> repository)
Replace a single, narrowed instance of an entity based on a business instance containing
relavant property values.
|
List<P> |
BaseCrudEntityService.replaceAll(List<Update<P>> replacements,
ContextInfo context) |
List<P> |
CrudEntityService.replaceAll(List<Update<P>> replacements,
ContextInfo context)
Replace multiple narrowed instances of an entity at once based on the business instance
containing relevant property values.
|
<P> List<P> |
CrudEntityHelper.replaceAll(List<Update<P>> replacements,
ContextInfo context,
TrackableRepository<Trackable> repository) |
BulkPersistenceResponse<P> |
BaseCrudEntityService.replaceAllAllowingPartialSuccess(List<Update<P>> replacements,
ContextInfo context) |
BulkPersistenceResponse<P> |
CrudEntityService.replaceAllAllowingPartialSuccess(List<Update<P>> replacements,
ContextInfo context)
Replace multiple narrowed instances of an entity at once based on the business instances
containing relevant property values.
|
<P> BulkPersistenceResponse<P> |
CrudEntityHelper.replaceAllAllowingPartialSuccess(List<Update<P>> replacements,
ContextInfo context,
TrackableRepository<Trackable> repository) |
P |
BaseCrudEntityService.update(String id,
P businessInstance,
ContextInfo context) |
P |
CrudEntityService.update(String id,
P businessInstance,
ContextInfo context)
Update a single, narrowed instance of an entity based on a business instance containing
relevant property values.
|
<P> P |
CrudEntityHelper.update(String id,
P businessInstance,
ContextInfo context,
TrackableRepository<Trackable> repository)
Update a single, narrowed instance of an entity based on a business instance containing
relevant property values.
|
List<P> |
BaseCrudEntityService.updateAll(List<Update<P>> updates,
ContextInfo context) |
List<P> |
CrudEntityService.updateAll(List<Update<P>> updates,
ContextInfo context)
A bulk operation that updates all of the items managed by the backing repository in the form
of the business entity containing property values.
|
<P> List<P> |
CrudEntityHelper.updateAll(List<Update<P>> updates,
ContextInfo context,
TrackableRepository<Trackable> repository) |
BulkPersistenceResponse<P> |
BaseCrudEntityService.updateAllAllowingPartialSuccess(List<Update<P>> updates,
ContextInfo context) |
BulkPersistenceResponse<P> |
CrudEntityService.updateAllAllowingPartialSuccess(List<Update<P>> updates,
ContextInfo context)
Updates all of the items managed by the backing repository in the form of the business
instances containing property values.
|
<P> BulkPersistenceResponse<P> |
CrudEntityHelper.updateAllAllowingPartialSuccess(List<Update<P>> updates,
ContextInfo context,
TrackableRepository<Trackable> repository) |
P |
BaseCrudEntityService.updateSort(SortPositionRequest sortPositionRequest,
ContextInfo context) |
P |
CrudEntityService.updateSort(SortPositionRequest sortPositionRequest,
ContextInfo context)
Apply a sort field value change
|
<P> P |
CrudEntityHelper.updateSort(SortPositionRequest sortPositionRequest,
ContextInfo context,
TrackableRepository<Trackable> repository,
SortPositionStrategy<P> sortPositionStrategy)
Apply a sort field value change
|
protected <P> void |
CrudEntityHelper.validateAllForCreate(List<P> businessInstancesToValidate,
ContextInfo contextInfo,
List<P> valid,
List<BulkPersistenceResponse.PersistenceFailure<P>> failed)
Validates each of the given business instances for creation.
|
protected <P> void |
CrudEntityHelper.validateAllForCreateAndThrowIfError(Iterable<P> businessInstances,
ContextInfo contextInfo) |
protected <P> void |
CrudEntityHelper.validateAllForReplace(List<Update<P>> businessInstancesToValidate,
ContextInfo contextInfo,
List<Update<P>> valid,
List<BulkPersistenceResponse.PersistenceFailure<P>> failed)
Validates the business instance within each
Update for replacement. |
protected <P> void |
CrudEntityHelper.validateAllForReplaceAndThrowIfError(Iterable<P> businessInstances,
ContextInfo contextInfo) |
protected <P> void |
CrudEntityHelper.validateAllForUpdate(List<org.springframework.data.util.Pair<P,Trackable>> businessInstancesToValidate,
ContextInfo contextInfo,
List<org.springframework.data.util.Pair<P,Trackable>> valid,
List<BulkPersistenceResponse.PersistenceFailure<P>> failed)
Validates the business instance within each pair for update.
|
protected <P> void |
CrudEntityHelper.validateAllForUpdateAndThrowIfError(Iterable<P> businessInstances,
ContextInfo contextInfo) |
Modifier and Type | Method and Description |
---|---|
protected void |
DecimalSplitSortPositionStrategy.updateAfterPositionSort(SortPositionRequest sortPositionRequest,
ContextInfo context,
TrackableRepository<Trackable> repository,
Sortable toUpdate,
Sortable sortTransfer)
Update when the
SortPositionRequest.getPositionAfterContextId() value is available. |
protected void |
DecimalSplitSortPositionStrategy.updateBeforePositionSort(SortPositionRequest sortPositionRequest,
ContextInfo context,
TrackableRepository<Trackable> repository,
Sortable toUpdate,
Sortable sortTransfer)
Update when the
SortPositionRequest.getPositionBeforeContextId() value is available. |
protected void |
DecimalSplitSortPositionStrategy.updateFirstPositionSort(ContextInfo context,
TrackableRepository<Trackable> repository,
Sortable domain,
Sortable sortTransfer)
Update when the
SortPositionRequest.getPositionAfterContextId() is missing, which
indicates that the request is to move the entity to the first position in the sorting group. |
default P |
SortPositionStrategy.updateSort(SortPositionRequest sortPositionRequest,
ContextInfo context,
DomainMapperManager mapper,
TrackableRepository<Trackable> repository,
ChangeNotifier notifier)
Deprecated.
Use
SortPositionStrategy.updateSort(SortPositionRequest, ContextInfo, DomainMapperManager, TrackableRepository, ChangeNotifier, PropagationIntegrator)
instead to allow for instant propagation handling. |
P |
SortPositionStrategy.updateSort(SortPositionRequest sortPositionRequest,
ContextInfo context,
DomainMapperManager mapper,
TrackableRepository<Trackable> repository,
ChangeNotifier notifier,
PropagationIntegrator propagationIntegrator)
Apply a sort field value change
|
P |
DecimalSplitSortPositionStrategy.updateSort(SortPositionRequest sortPositionRequest,
ContextInfo context,
DomainMapperManager mapper,
TrackableRepository<Trackable> repository,
ChangeNotifier notifier,
PropagationIntegrator propagationIntegrator) |
Modifier and Type | Method and Description |
---|---|
long |
CommonMarketplaceApplicationCatalogRepository.countByApplication(String application,
ContextInfo contextInfo) |
List<D> |
CommonMarketplaceApplicationCatalogRepository.findByApplicationAndCatalog(String application,
String catalog,
ContextInfo contextInfo) |
List<D> |
CommonMarketplaceApplicationCatalogRepository.findByCatalogIn(Collection<String> catalogs,
ContextInfo contextInfo) |
List<D> |
CommonCatalogRepository.findByVendorRefIn(Collection<String> vendorRefs,
ContextInfo contextInfo)
Finds all catalogs directly associated to the given
vendorRefs . |
Modifier and Type | Method and Description |
---|---|
P |
DefaultCommonApplicationService.readByContextId(String id,
ContextInfo context) |
P |
DefaultCommonCatalogService.readByContextId(String contextId,
ContextInfo context) |
List<P> |
CommonCatalogService.readByVendorRefs(Set<String> vendorRefs,
ContextInfo contextInfo)
Finds all catalogs associated to the given
vendorRefs via
Catalog.getVendorRef() . |
List<P> |
DefaultCommonCatalogService.readByVendorRefs(@NonNull Set<String> vendorRefs,
ContextInfo contextInfo) |
Modifier and Type | Method and Description |
---|---|
P |
ProjectionReferencedApi.create(javax.servlet.http.HttpServletRequest request,
ContextInfo context,
P req) |
void |
ProjectionReferencedApi.delete(javax.servlet.http.HttpServletRequest request,
ContextInfo context,
String id) |
org.springframework.data.domain.Page<P> |
ProjectionReferencedApi.readAll(javax.servlet.http.HttpServletRequest request,
ContextInfo context,
org.springframework.data.domain.Pageable page,
cz.jirutka.rsql.parser.ast.Node filters) |
P |
ProjectionReferencedApi.readById(javax.servlet.http.HttpServletRequest request,
ContextInfo context,
String id) |
P |
ProjectionReferencedApi.replace(javax.servlet.http.HttpServletRequest request,
ContextInfo context,
String id,
P req) |
P |
ProjectionReferencedApi.update(javax.servlet.http.HttpServletRequest request,
ContextInfo context,
String id,
P req) |
Copyright © 2021. All rights reserved.