Class DirectoryStore

java.lang.Object
tigase.http.upload.store.DirectoryStore
All Implemented Interfaces:
Store, tigase.kernel.beans.config.ConfigurationChangedAware

@Bean(name="store", parent=FileUploadComponent.class, active=true, exportable=true) public class DirectoryStore extends Object implements Store, tigase.kernel.beans.config.ConfigurationChangedAware
Created by andrzej on 08.08.2016.
  • Constructor Details

    • DirectoryStore

      public DirectoryStore()
  • Method Details

    • setPath

      public void setPath(String path)
    • count

      public long count() throws IOException
      Description copied from interface: Store
      Returns number of elements in store
      Specified by:
      count in interface Store
      Throws:
      IOException
    • size

      public long size() throws IOException
      Description copied from interface: Store
      Returns size used by store
      Specified by:
      size in interface Store
      Throws:
      IOException
    • getContent

      public ReadableByteChannel getContent(tigase.xmpp.jid.BareJID uploader, String slotId, String filename) throws IOException
      Description copied from interface: Store
      Method to retrieve content of file from slot
      Specified by:
      getContent in interface Store
      Throws:
      IOException
    • setContent

      public void setContent(tigase.xmpp.jid.BareJID uploader, String slotId, String filename, long size, ReadableByteChannel source) throws IOException
      Description copied from interface: Store
      Method to set content of file to slot
      Specified by:
      setContent in interface Store
      Throws:
      IOException
    • remove

      public void remove(tigase.xmpp.jid.BareJID uploader, String slotId)
      Description copied from interface: Store
      Method removes content of slot
      Specified by:
      remove in interface Store
    • beanConfigurationChanged

      public void beanConfigurationChanged(Collection<String> collection)
      Specified by:
      beanConfigurationChanged in interface tigase.kernel.beans.config.ConfigurationChangedAware
    • prepareSlotPath

      protected Path prepareSlotPath(tigase.xmpp.jid.BareJID uploader, String slotId)
    • removeWithContent

      protected void removeWithContent(Path path)