Interface DomainCache

All Known Implementing Classes:
MpDomainCache

public interface DomainCache
  • Method Details

    • setup

      void setup(DomainCacheManager manager)
    • setUserSessionProvider

      void setUserSessionProvider(MpUserSessionProvider sessionProvider)
    • getProfiles

      Set<String> getProfiles()
      returns set of profiles, in which there is at least 1 domain object. Order of profiles will be kept thanks to TreeSet implementation.
      Returns:
      set of profiles
    • getDomain

      DomainObject getDomain(String profileCode, String objectPath)
      returns domain object from given domain's path. Uses system active versions to resolve domain tree.
      Parameters:
      profileCode - profile code
      objectPath - domain path
      Returns:
      found domain object or null, if object does not exist
    • getDomainWithAllVersions

      DomainObject getDomainWithAllVersions(String profileCode, String objectPath)
      returns domain object from given domain's path. Uses all versions to resolve domain tree.
      Parameters:
      profileCode - profile code
      objectPath - 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 from configuration to resolve domain tree.
      Parameters:
      profileCode - profile code
      objectPath - domain path
      configuration - 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

      void setVersionJdbcDao(VersionDao versionDao)