Class EntitltementsObjectCache

    • Constructor Detail

      • EntitltementsObjectCache

        public EntitltementsObjectCache()
    • Method Detail

      • init

        @PostConstruct
        public void init()
      • sweep

        @Scheduled(fixedRateString="${org.openiam.graph.locale.cache.sweep.time}",
                   initialDelay=0L)
        public void sweep()
        OE-3022 - periodically sweeps the cache to ensure that the cache is up to date even if fanout messages are not reaching the destination
        Specified by:
        sweep in interface Sweepable
      • getCachedEntitlementObjectByGraphId

        public AbstractAuthorizationEntity getCachedEntitlementObjectByGraphId​(String graphId)
        Finds cached entitlements objects by graph IDS This avoids going to either Gremlin or the database
        Parameters:
        graphIds - - the graph IDs to query by
        Returns:
      • isResourcePublic

        public boolean isResourcePublic​(String id)