Class LocalStore

    • Constructor Detail

      • LocalStore

        public LocalStore​(org.apache.sling.api.resource.ResourceResolverFactory resolverFactory,
                          String storeType,
                          String storeId)
    • Method Detail

      • store

        public void store​(String key,
                          Object value)
                   throws org.apache.sling.api.resource.PersistenceException
        Throws:
        org.apache.sling.api.resource.PersistenceException
      • store

        public void store​(org.apache.sling.api.resource.ResourceResolver serviceResolver,
                          String key,
                          Object value)
                   throws org.apache.sling.api.resource.PersistenceException
        Throws:
        org.apache.sling.api.resource.PersistenceException
      • store

        public void store​(org.apache.sling.api.resource.ResourceResolver serviceResolver,
                          Map<String,​Object> map)
                   throws org.apache.sling.api.resource.PersistenceException
        Throws:
        org.apache.sling.api.resource.PersistenceException
      • load

        public <T> T load​(String key,
                          Class<T> clazz)
      • load

        public <T> T load​(String key,
                          T defaultValue)
      • load

        public org.apache.sling.api.resource.ValueMap load()