Package io.higson.runtime.core.domain
Class MpDomainCache
java.lang.Object
io.higson.runtime.core.domain.MpDomainCache
- All Implemented Interfaces:
DomainCache
Cache of domain objects divided into profiles. Only the profiles for which at least one domain object is available.
Only objects assigned to system region version or without regions completed.
- Author:
- Ania
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DomainCacheManagerprotected MpUserSessionProviderprotected VersionDao -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreturns domain object from given domain's path.getDomain(String profileCode, String objectPath, EffectiveVersionConfiguration configuration) returns domain object from given domain's path.getDomainWithAllVersions(String profileCode, String objectPath) returns domain object from given domain's path.protected DomainObjectgetHeadOrSessionDomain(String profile, String path, EffectiveVersionConfiguration configuration) List of profiles which contain domain objects (at least 1 object)voidprotected booleanprotected booleanprotected StringnormalizeCode(String profile) protected StringnormalizePath(String domainPath) voidsetup(DomainCacheManager manager) voidsetUserSessionProvider(MpUserSessionProvider sessionProvider) voidsetVersionJdbcDao(VersionDao versionDao)
-
Field Details
-
domainCacheManager
-
sessionProvider
-
versionDao
-
-
Constructor Details
-
MpDomainCache
public MpDomainCache()
-
-
Method Details
-
setup
- Specified by:
setupin interfaceDomainCache
-
setUserSessionProvider
- Specified by:
setUserSessionProviderin interfaceDomainCache
-
setVersionJdbcDao
- Specified by:
setVersionJdbcDaoin interfaceDomainCache
-
getProfiles
List of profiles which contain domain objects (at least 1 object)- Specified by:
getProfilesin interfaceDomainCache- Returns:
- set of profiles
-
getDomain
Description copied from interface:DomainCachereturns domain object from given domain's path. Uses system active versions to resolve domain tree.- Specified by:
getDomainin interfaceDomainCache- Parameters:
profileCode- profile codeobjectPath- domain path- Returns:
- found domain object or null, if object does not exist
-
getDomainWithAllVersions
Description copied from interface:DomainCachereturns domain object from given domain's path. Uses all versions to resolve domain tree.- Specified by:
getDomainWithAllVersionsin interfaceDomainCache- Parameters:
profileCode- profile codeobjectPath- domain path- Returns:
- found domain object or null, if object does not exist
-
getDomain
public DomainObject getDomain(String profileCode, String objectPath, EffectiveVersionConfiguration configuration) Description copied from interface:DomainCachereturns domain object from given domain's path. Uses system active versions overwritten by versions and date fromconfigurationto resolve domain tree.- Specified by:
getDomainin interfaceDomainCache- Parameters:
profileCode- profile codeobjectPath- domain pathconfiguration- configuration holding date and/or versions to override system active versions- Returns:
- found domain object or null, if object does not exist
- See Also:
-
invalidateCache
public void invalidateCache()- Specified by:
invalidateCachein interfaceDomainCache
-
getHeadOrSessionDomain
protected DomainObject getHeadOrSessionDomain(String profile, String path, EffectiveVersionConfiguration configuration) -
normalizeCode
-
normalizePath
-
isUserRelated
protected boolean isUserRelated() -
isHeadRelated
protected boolean isHeadRelated()
-