Package tigase.archive.unified.modules
Class FileQueryModule
java.lang.Object
tigase.archive.unified.modules.FileQueryModule
- All Implemented Interfaces:
tigase.component.modules.Module
@Bean(name="file-query",
parent=UnifiedArchiveComponent.class,
active=true)
public class FileQueryModule
extends Object
implements tigase.component.modules.Module
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface tigase.component.modules.Module
EMPTY_FEATURES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected tigase.xml.ElementfileItemToElement(UnifiedArchiveRepository.FileItem item, boolean isAdmin) protected tigase.xml.Elementprotected List<tigase.xmpp.jid.JID>getManagerVHosts(tigase.xmpp.jid.BareJID jid) tigase.criteria.Criteriaprotected booleanisAdminOrDomainAdmin(String domain, tigase.xmpp.jid.BareJID jid) protected FileQueryModule.FileQueryparseForm(tigase.xml.Element form) protected tigase.server.DataForm.BuilderprepareForm(tigase.xmpp.jid.BareJID requestor) voidprocess(tigase.server.Packet packet) protected voidvalidateQuery(FileQueryModule.FileQuery query, tigase.xmpp.jid.BareJID requestor) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tigase.component.modules.Module
canHandle, getFeatures
-
Constructor Details
-
FileQueryModule
public FileQueryModule()
-
-
Method Details
-
getModuleCriteria
public tigase.criteria.Criteria getModuleCriteria()- Specified by:
getModuleCriteriain interfacetigase.component.modules.Module
-
process
public void process(tigase.server.Packet packet) throws tigase.component.exceptions.ComponentException, tigase.util.stringprep.TigaseStringprepException - Specified by:
processin interfacetigase.component.modules.Module- Throws:
tigase.component.exceptions.ComponentExceptiontigase.util.stringprep.TigaseStringprepException
-
fileItemToElement
protected tigase.xml.Element fileItemToElement(UnifiedArchiveRepository.FileItem item, boolean isAdmin) -
fileMetadataToElement
-
prepareForm
protected tigase.server.DataForm.Builder prepareForm(tigase.xmpp.jid.BareJID requestor) -
parseForm
- Throws:
ParseException
-
validateQuery
protected void validateQuery(FileQueryModule.FileQuery query, tigase.xmpp.jid.BareJID requestor) throws tigase.component.exceptions.ComponentException - Throws:
tigase.component.exceptions.ComponentException
-
isAdminOrDomainAdmin
-
getManagerVHosts
-