Class QueryFilesCommandAbstract

java.lang.Object
tigase.http.upload.commands.QueryFilesCommandAbstract
All Implemented Interfaces:
tigase.component.adhoc.AdHocCommand
Direct Known Subclasses:
QueryFilesCommandAdmin, QueryFilesCommandUser

public abstract class QueryFilesCommandAbstract extends Object implements tigase.component.adhoc.AdHocCommand
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final boolean
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    QueryFilesCommandAbstract(boolean isAdmin)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected tigase.server.DataForm.Builder
    addPagingFields(tigase.server.DataForm.Builder formBuilder, String afterId, int limit)
     
    void
    execute(tigase.component.adhoc.AdhHocRequest request, tigase.component.adhoc.AdHocResponse response)
     
    boolean
    isAllowedFor(tigase.xmpp.jid.JID jid)
     
    protected tigase.server.DataForm.Builder
    prepareQueryFormBuilder(Optional<tigase.http.upload.commands.QueryFilesCommandAbstract.QueryType> queryType, Optional<tigase.xmpp.jid.BareJID> user, Optional<String> domain, String afterId, int limit)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface tigase.component.adhoc.AdHocCommand

    execute, getGroup, getName, getNode
  • Field Details

    • isAdmin

      protected final boolean isAdmin
  • Constructor Details

    • QueryFilesCommandAbstract

      protected QueryFilesCommandAbstract(boolean isAdmin)
  • Method Details

    • execute

      public void execute(tigase.component.adhoc.AdhHocRequest request, tigase.component.adhoc.AdHocResponse response) throws tigase.component.adhoc.AdHocCommandException
      Specified by:
      execute in interface tigase.component.adhoc.AdHocCommand
      Throws:
      tigase.component.adhoc.AdHocCommandException
    • prepareQueryFormBuilder

      protected tigase.server.DataForm.Builder prepareQueryFormBuilder(Optional<tigase.http.upload.commands.QueryFilesCommandAbstract.QueryType> queryType, Optional<tigase.xmpp.jid.BareJID> user, Optional<String> domain, String afterId, int limit)
    • addPagingFields

      protected tigase.server.DataForm.Builder addPagingFields(tigase.server.DataForm.Builder formBuilder, String afterId, int limit)
    • isAllowedFor

      public boolean isAllowedFor(tigase.xmpp.jid.JID jid)
      Specified by:
      isAllowedFor in interface tigase.component.adhoc.AdHocCommand