Java Doc for AttachmentDAO.java in  » Forum » JForum-2.1.8 » net » jforum » dao » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Forum » JForum 2.1.8 » net.jforum.dao 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


net.jforum.dao.AttachmentDAO

All known Subclasses:   net.jforum.dao.generic.GenericAttachmentDAO,
AttachmentDAO
public interface AttachmentDAO (Code)

author:
   Rafael Steil
version:
   $Id: AttachmentDAO.java,v 1.7 2006/08/23 02:13:34 rafaelsteil Exp $




Method Summary
public  voidaddAttachment(Attachment a)
     Adds a new attachment.
public  voidaddExtension(AttachmentExtension e)
    
public  voidaddExtensionGroup(AttachmentExtensionGroup g)
     Adds a new extension group.
public  voidaddQuotaLimit(QuotaLimit limit)
     Inserts a new quota limit.
public  voidcleanGroupQuota()
     Removes all quotas limits from all groups.
public  MapextensionsForSecurity()
     Gets all extensions and its security options, as well from the groups.
public  booleanisPhysicalDownloadMode(int extensionGroupId)
    
public  voidremoveAttachment(int id, int postId)
     Rovemos an attachment.
public  voidremoveExtensionGroups(String[] ids)
     Removes a set of extension groups.
public  voidremoveExtensions(String[] ids)
    
public  voidremoveQuotaLimit(int id)
    
public  voidremoveQuotaLimit(String[] ids)
     Removes a set of quota limit.
public  AttachmentselectAttachmentById(int attachId)
    
public  ListselectAttachments(int postId)
     Gets the attachments of some message.
Parameters:
  postId - The post id associated with the attachments.
public  AttachmentExtensionselectExtension(String extension)
    
public  ListselectExtensionGroups()
     Gets all extension groups.
public  ListselectExtensions()
    
public  MapselectGroupsQuotaLimits()
     Gets the quota limits of registered groups.
public  ListselectQuotaLimit()
    
public  QuotaLimitselectQuotaLimitByGroup(int groupId)
     Gets the quota associated to some group.
Parameters:
  groupId - The group id A QuotaLimit instance, or null ifno records were found.
public  voidsetGroupQuota(int groupId, int quotaId)
     Associates a quota limmit to some group.
public  voidupdateAttachment(Attachment a)
     Updates an attachment.
public  voidupdateExtension(AttachmentExtension e)
    
public  voidupdateExtensionGroup(AttachmentExtensionGroup g)
     Updates some extensin group.
public  voidupdateQuotaLimit(QuotaLimit limit)
     Updates a quota limit.



Method Detail
addAttachment
public void addAttachment(Attachment a)(Code)
Adds a new attachment.
Parameters:
  a - The attacment to add



addExtension
public void addExtension(AttachmentExtension e)(Code)
Adds a new extension
Parameters:
  e - The extension to add



addExtensionGroup
public void addExtensionGroup(AttachmentExtensionGroup g)(Code)
Adds a new extension group.
Parameters:
  g - The data to insert



addQuotaLimit
public void addQuotaLimit(QuotaLimit limit)(Code)
Inserts a new quota limit.
Parameters:
  limit - The data to insert



cleanGroupQuota
public void cleanGroupQuota()(Code)
Removes all quotas limits from all groups.



extensionsForSecurity
public Map extensionsForSecurity()(Code)
Gets all extensions and its security options, as well from the groups. A map instance where the key is the extension nameand the value is a Boolean, indicating if the extension canbe used in the uploaded files. If there is no entry fora given extension, then it means that it is allowed.



isPhysicalDownloadMode
public boolean isPhysicalDownloadMode(int extensionGroupId)(Code)
Gets the download mode by the extension group id
Parameters:
  extensionGroupId - extension group id true = physical download mode; false = inline download mode



removeAttachment
public void removeAttachment(int id, int postId)(Code)
Rovemos an attachment.
Parameters:
  id - The attachment's id to remove
Parameters:
  postId - the post id



removeExtensionGroups
public void removeExtensionGroups(String[] ids)(Code)
Removes a set of extension groups.
Parameters:
  ids - The ids to remove.



removeExtensions
public void removeExtensions(String[] ids)(Code)
Removes a set of extensions
Parameters:
  ids - The ids to remove



removeQuotaLimit
public void removeQuotaLimit(int id)(Code)
Deletes a quota limit
Parameters:
  id - The id of the quota to remove



removeQuotaLimit
public void removeQuotaLimit(String[] ids)(Code)
Removes a set of quota limit.
Parameters:
  ids - The ids to remove.



selectAttachmentById
public Attachment selectAttachmentById(int attachId)(Code)
Gets an attachment by its id
Parameters:
  attachId - The attachment id The attachment, or null if no record was found



selectAttachments
public List selectAttachments(int postId)(Code)
Gets the attachments of some message.
Parameters:
  postId - The post id associated with the attachments. A list where each entry is a net.jforum.entities.Attachment instance.



selectExtension
public AttachmentExtension selectExtension(String extension)(Code)
Gets an extension information by the extension's name
Parameters:
  extension - AttachmentExtension



selectExtensionGroups
public List selectExtensionGroups()(Code)
Gets all extension groups. A list instance where each entry is an net.jforum.entities.AttachmentExtensionGroup instance.



selectExtensions
public List selectExtensions()(Code)
Gets all registered extensions A list instance, where each entry is annet.jforum.entities.AttachmentExtension instance



selectGroupsQuotaLimits
public Map selectGroupsQuotaLimits()(Code)
Gets the quota limits of registered groups. A map instance where each key is the group idand the value is the quota limit id.



selectQuotaLimit
public List selectQuotaLimit()(Code)
Gets all registered quota limits A list instance where each entry is anet.jforum.entities.QuotaLimit instance.



selectQuotaLimitByGroup
public QuotaLimit selectQuotaLimitByGroup(int groupId)(Code)
Gets the quota associated to some group.
Parameters:
  groupId - The group id A QuotaLimit instance, or null ifno records were found.



setGroupQuota
public void setGroupQuota(int groupId, int quotaId)(Code)
Associates a quota limmit to some group.
Parameters:
  groupId - The group id
Parameters:
  quotaId - The quota id



updateAttachment
public void updateAttachment(Attachment a)(Code)
Updates an attachment. Only the file comment is updated.
Parameters:
  a - The attachment to update



updateExtension
public void updateExtension(AttachmentExtension e)(Code)
Updates an extension
Parameters:
  e - The extension to update



updateExtensionGroup
public void updateExtensionGroup(AttachmentExtensionGroup g)(Code)
Updates some extensin group.
Parameters:
  g - The data to update



updateQuotaLimit
public void updateQuotaLimit(QuotaLimit limit)(Code)
Updates a quota limit.
Parameters:
  limit - The data to update



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.