Class ServerContextCache


  • public class ServerContextCache
    extends org.gcube.informationsystem.resourceregistry.api.contexts.ContextCache
    Author:
    Luca Frosini (ISTI - CNR)
    • Field Detail

      • contextsNoMeta

        protected List<org.gcube.informationsystem.contexts.reference.entities.Context> contextsNoMeta
      • uuidToContextNoMeta

        protected Map<UUID,​org.gcube.informationsystem.contexts.reference.entities.Context> uuidToContextNoMeta
      • contextsMetaPrivacy

        protected List<org.gcube.informationsystem.contexts.reference.entities.Context> contextsMetaPrivacy
      • uuidToContextMetaPrivacy

        protected Map<UUID,​org.gcube.informationsystem.contexts.reference.entities.Context> uuidToContextMetaPrivacy
      • includeMeta

        protected boolean includeMeta
    • Constructor Detail

      • ServerContextCache

        public ServerContextCache()
    • Method Detail

      • cleanCache

        public void cleanCache()
        Overrides:
        cleanCache in class org.gcube.informationsystem.resourceregistry.api.contexts.ContextCache
      • cleanCache

        protected void cleanCache​(Calendar now)
        Overrides:
        cleanCache in class org.gcube.informationsystem.resourceregistry.api.contexts.ContextCache
      • isIncludeMeta

        public boolean isIncludeMeta()
      • setIncludeMeta

        public void setIncludeMeta​(boolean includeMeta)
      • initContextCacheRenewal

        public void initContextCacheRenewal()
      • isUserAllowedToGetPrivacyMeta

        protected boolean isUserAllowedToGetPrivacyMeta()
      • getContexts

        public List<org.gcube.informationsystem.contexts.reference.entities.Context> getContexts()
                                                                                          throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Overrides:
        getContexts in class org.gcube.informationsystem.resourceregistry.api.contexts.ContextCache
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getContextByUUID

        public org.gcube.informationsystem.contexts.reference.entities.Context getContextByUUID​(UUID uuid)
                                                                                         throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Overrides:
        getContextByUUID in class org.gcube.informationsystem.resourceregistry.api.contexts.ContextCache
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getMetadataForPrivacy

        protected org.gcube.informationsystem.model.reference.properties.Metadata getMetadataForPrivacy​(org.gcube.com.fasterxml.jackson.databind.ObjectMapper objectMapper,
                                                                                                        org.gcube.informationsystem.model.reference.properties.Metadata metadata)
      • setContexts

        protected void setContexts​(List<org.gcube.informationsystem.contexts.reference.entities.Context> contexts)
        Overrides:
        setContexts in class org.gcube.informationsystem.resourceregistry.api.contexts.ContextCache