Package io.higson.runtime.core.domain
Interface DomainCache
- All Known Implementing Classes:
MpDomainCache
public interface DomainCache
-
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.returns set of profiles, in which there is at least 1 domain object.voidvoidsetup(DomainCacheManager manager) voidsetUserSessionProvider(MpUserSessionProvider sessionProvider) voidsetVersionJdbcDao(VersionDao versionDao)
-
Method Details
-
setup
-
setUserSessionProvider
-
getProfiles
returns set of profiles, in which there is at least 1 domain object. Order of profiles will be kept thanks toTreeSetimplementation.- Returns:
- set of profiles
-
getDomain
returns domain object from given domain's path. Uses system active versions to resolve domain tree.- Parameters:
profileCode- profile codeobjectPath- domain path- Returns:
- found domain object or null, if object does not exist
-
getDomainWithAllVersions
returns domain object from given domain's path. Uses all versions to resolve domain tree.- Parameters:
profileCode- profile codeobjectPath- domain path- Returns:
- found domain object or null, if object does not exist
-
getDomain
DomainObject getDomain(String profileCode, String objectPath, EffectiveVersionConfiguration configuration) returns domain object from given domain's path. Uses system active versions overwritten by versions and date fromconfigurationto resolve domain tree.- 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
void invalidateCache() -
setVersionJdbcDao
-