1 43 package net.jforum.dao; 44 45 import java.util.List ; 46 import java.util.Map ; 47 48 import net.jforum.entities.Attachment; 49 import net.jforum.entities.AttachmentExtension; 50 import net.jforum.entities.AttachmentExtensionGroup; 51 import net.jforum.entities.QuotaLimit; 52 53 57 public interface AttachmentDAO 58 { 59 65 public void addAttachment(Attachment a) throws Exception ; 66 67 74 public void updateAttachment(Attachment a) throws Exception ; 75 76 83 public void removeAttachment(int id, int postId) throws Exception ; 84 85 93 public List selectAttachments(int postId) throws Exception ; 94 95 102 public Attachment selectAttachmentById(int attachId) throws Exception ; 103 104 110 public void addQuotaLimit(QuotaLimit limit) throws Exception ; 111 112 118 public void updateQuotaLimit(QuotaLimit limit) throws Exception ; 119 120 126 public void removeQuotaLimit(int id) throws Exception ; 127 128 134 public void removeQuotaLimit(String [] ids) throws Exception ; 135 136 143 public void setGroupQuota(int groupId, int quotaId) throws Exception ; 144 145 150 public void cleanGroupQuota() throws Exception ; 151 152 159 public List selectQuotaLimit() throws Exception ; 160 161 169 public QuotaLimit selectQuotaLimitByGroup(int groupId) throws Exception ; 170 171 177 public Map selectGroupsQuotaLimits() throws Exception ; 178 179 185 public void addExtensionGroup(AttachmentExtensionGroup g) throws Exception ; 186 187 193 public void updateExtensionGroup(AttachmentExtensionGroup g) throws Exception ; 194 195 201 public void removeExtensionGroups(String [] ids) throws Exception ; 202 203 210 public List selectExtensionGroups() throws Exception ; 211 212 222 public Map extensionsForSecurity() throws Exception ; 223 224 230 public void addExtension(AttachmentExtension e) throws Exception ; 231 232 238 public void updateExtension(AttachmentExtension e) throws Exception ; 239 240 246 public void removeExtensions(String [] ids) throws Exception ; 247 248 255 public List selectExtensions() throws Exception ; 256 257 263 public AttachmentExtension selectExtension(String extension) throws Exception ; 264 265 271 public boolean isPhysicalDownloadMode(int extensionGroupId) throws Exception ; 272 } 273 | Popular Tags |