Class DirectoryStore

  • All Implemented Interfaces:
    Store

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

      • DirectoryStore

        public DirectoryStore()
    • Method Detail

      • 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
      • 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
      • prepareSlotPath

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

        protected void removeWithContent​(Path path)