/** * Returns a collection of Attachments, containing each and every attachment that is in this Wiki. * * @return A collection of attachments. If attachments are disabled, will return an empty * collection. * @throws ProviderException If something went wrong with the backend */ public Collection getAllAttachments() throws ProviderException { if (attachmentsEnabled()) { return m_provider.listAllChanged(new Date(0L)); } return new ArrayList<Attachment>(); }