Package tigase.http.upload.commands
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 java.lang.Object implements tigase.component.adhoc.AdHocCommand
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanisAdmin
-
Constructor Summary
Constructors Modifier Constructor Description protectedQueryFilesCommandAbstract(boolean isAdmin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected tigase.server.DataForm.BuilderaddPagingFields(tigase.server.DataForm.Builder formBuilder, java.lang.String afterId, int limit)voidexecute(tigase.component.adhoc.AdhHocRequest request, tigase.component.adhoc.AdHocResponse response)booleanisAllowedFor(tigase.xmpp.jid.JID jid)protected tigase.server.DataForm.BuilderprepareQueryFormBuilder(java.util.Optional<tigase.http.upload.commands.QueryFilesCommandAbstract.QueryType> queryType, java.util.Optional<tigase.xmpp.jid.BareJID> user, java.util.Optional<java.lang.String> domain, java.lang.String afterId, int limit)
-
-
-
Method Detail
-
execute
public void execute(tigase.component.adhoc.AdhHocRequest request, tigase.component.adhoc.AdHocResponse response) throws tigase.component.adhoc.AdHocCommandException- Specified by:
executein interfacetigase.component.adhoc.AdHocCommand- Throws:
tigase.component.adhoc.AdHocCommandException
-
prepareQueryFormBuilder
protected tigase.server.DataForm.Builder prepareQueryFormBuilder(java.util.Optional<tigase.http.upload.commands.QueryFilesCommandAbstract.QueryType> queryType, java.util.Optional<tigase.xmpp.jid.BareJID> user, java.util.Optional<java.lang.String> domain, java.lang.String afterId, int limit)
-
addPagingFields
protected tigase.server.DataForm.Builder addPagingFields(tigase.server.DataForm.Builder formBuilder, java.lang.String afterId, int limit)
-
isAllowedFor
public boolean isAllowedFor(tigase.xmpp.jid.JID jid)
- Specified by:
isAllowedForin interfacetigase.component.adhoc.AdHocCommand
-
-