Java Doc for NewsGroup.java in  » Groupware » hipergate » com » knowgate » forums » 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 » Groupware » hipergate » com.knowgate.forums 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.knowgate.hipergate.Category
   com.knowgate.forums.NewsGroup

NewsGroup
public class NewsGroup extends Category (Code)

NewsGroup


author:
   Sergio Montoro Ten
version:
   2.0


Field Summary
final public static  shortClassId
    
final public static  shortFREE
    
final public static  shortMODERATED
    

Constructor Summary
public  NewsGroup()
    
public  NewsGroup(String sIdNewsGroup)
    
public  NewsGroup(JDCConnection oConn, String sIdNewsGroup)
    

Create newsGroup and load properties from Database

Both field sets from k_categories and k_newsgroups are loaded into internal properties collection upon load.

Method Summary
public  intcountMessages(JDCConnection oConn)
    
public  intcountMessages(JDCConnection oConn, short iMsgStatus)
    
public  booleandelete(JDCConnection oConn)
    
public static  booleandelete(JDCConnection oConn, String sNewsGroupGUID)
    
public  booleanisSubscriber(JDCConnection oConn, String sUserId)
    
public  booleanload(JDCConnection oConn, Object[] PKVals)
    

Load NewsGroup from database

Both field sets from k_categories and k_newsgroups are loaded into internal properties collection upon load.
Parameters:
  oConn - Database Conenction
Parameters:
  PKVals - A single element array containing the GUID of NewsGroup to beloaded.
public static  Stringstore(JDCConnection oConn, int iDomain, String sWorkArea, String sCategoryId, String sParentId, String sCategoryName, short iIsActive, int iDocStatus, String sOwner, String sIcon1, String sIcon2)
    

Store Newsgroup


Parameters:
  oConn - atabase Connection
Parameters:
  iDomain - Identifier of Domain to with the NewsGroup will belong.
Parameters:
  sWorkArea - GUID of WorkArea to with the NewsGroup will belong.
Parameters:
  sCategoryId - Category GUID (newsgroups are subregisters of categories)
Parameters:
  sParentId - GUID of Parent Group (groups, as categories, are hierarchical)
Parameters:
  sCategoryName - Category name (k_categories.nm_category)
Parameters:
  iIsActive - 1 if group is activem, 0 if it is inactive.
Parameters:
  iDocStatus - Initial Document Status.
public  DBSubsetsubscribers(JDCConnection oConn)
    

Field Detail
ClassId
final public static short ClassId(Code)



FREE
final public static short FREE(Code)



MODERATED
final public static short MODERATED(Code)




Constructor Detail
NewsGroup
public NewsGroup()(Code)
Create empty newsgroup



NewsGroup
public NewsGroup(String sIdNewsGroup) throws SQLException(Code)
Create NewsGroup and set its Category GUID
Parameters:
  sIdNewsGroup - GUID of NewsGroup/Category
throws:
  SQLException -



NewsGroup
public NewsGroup(JDCConnection oConn, String sIdNewsGroup) throws SQLException(Code)

Create newsGroup and load properties from Database

Both field sets from k_categories and k_newsgroups are loaded into internal properties collection upon load.
Parameters:
  oConn - Database Conenction
Parameters:
  sIdNewsGroup - GUID of newsGroup to be loaded
throws:
  SQLException -




Method Detail
countMessages
public int countMessages(JDCConnection oConn) throws SQLException(Code)

Count messages for this NewsGroup


Parameters:
  oConn - Database connection Message Count
throws:
  SQLException - If NewsGroup does not exist



countMessages
public int countMessages(JDCConnection oConn, short iMsgStatus) throws SQLException(Code)

Count messages for this NewsGroup in a given status


Parameters:
  oConn - Database connection
Parameters:
  iMsgStatus - One of { NewsMessage.STATUS_VALIDATED, NewsMessage.STATUS_PENDING, NewsMessage.STATUS_DISCARDED, NewsMessage.STATUS_EXPIRED } Message Count
throws:
  SQLException - If NewsGroup does not exist



delete
public boolean delete(JDCConnection oConn) throws SQLException(Code)

Delete this NewsGroup and all its messages


Parameters:
  oConn - JDBC Database Connection
throws:
  SQLException -



delete
public static boolean delete(JDCConnection oConn, String sNewsGroupGUID) throws SQLException(Code)

Delete NewsGroup and all its messages.

Delete all files attached to messages contained in group and then call k_sp_del_newsgroup stored procedure.

Parameters:
  oConn - Database Connection
Parameters:
  sNewsGroupGUID - GUID of NewsGroup to be deleted.
throws:
  SQLException -
See Also:   com.knowgate.hipergate.Product.delete(JDCConnection)



isSubscriber
public boolean isSubscriber(JDCConnection oConn, String sUserId) throws SQLException(Code)

Get whether or not a user is subcribed this news group


Parameters:
  oConn - JDBC Database Connection
Parameters:
  sUserId - User GUID true if user is subscribed to this news group and he is active (k_newsgroup_subscriptions.id_status=1),false if user is not subscribed or if he is subscribed but unactive (k_newsgroup_subscriptions.id_status=0)
throws:
  SQLException -



load
public boolean load(JDCConnection oConn, Object[] PKVals) throws SQLException(Code)

Load NewsGroup from database

Both field sets from k_categories and k_newsgroups are loaded into internal properties collection upon load.
Parameters:
  oConn - Database Conenction
Parameters:
  PKVals - A single element array containing the GUID of NewsGroup to beloaded. For example: oNewsGrpObj.load(oConnection, new object[]{"123456789012345678901234567890AB"}); true if NewsGroup was successfully loaded, false ifNewsgroup GUID was not found at k_newsgropus o k_categories tables.
throws:
  SQLException -



store
public static String store(JDCConnection oConn, int iDomain, String sWorkArea, String sCategoryId, String sParentId, String sCategoryName, short iIsActive, int iDocStatus, String sOwner, String sIcon1, String sIcon2) throws SQLException(Code)

Store Newsgroup


Parameters:
  oConn - atabase Connection
Parameters:
  iDomain - Identifier of Domain to with the NewsGroup will belong.
Parameters:
  sWorkArea - GUID of WorkArea to with the NewsGroup will belong.
Parameters:
  sCategoryId - Category GUID (newsgroups are subregisters of categories)
Parameters:
  sParentId - GUID of Parent Group (groups, as categories, are hierarchical)
Parameters:
  sCategoryName - Category name (k_categories.nm_category)
Parameters:
  iIsActive - 1 if group is activem, 0 if it is inactive.
Parameters:
  iDocStatus - Initial Document Status. One of { Newsgroup.FREE, Newsgroup.MODERATED }
Parameters:
  sOwner - GUID of User owner of this NewsGroup
Parameters:
  sIcon1 - Closed Folder Icon
Parameters:
  sIcon2 - Opened Folder Icon GUID of newly created NewsGroup
throws:
  SQLException -



subscribers
public DBSubset subscribers(JDCConnection oConn) throws SQLException(Code)

Get ACLUsers subscribed to this NewsGroup


Parameters:
  oConn - JDBC Database Connection A DBSubset with the following columns:
gu_usertx_emailid_msg_typetp_subscrip
ACLUser GUIDACLUser main e-mailMessage Format {TXT | HTM}Message Grouping {GROUP_NONE | GROUP_DIGEST}

throws:
  SQLException -



Fields inherited from com.knowgate.hipergate.Category
final public static int BROWSE_BOTTOMUP(Code)(Java Doc)
final public static int BROWSE_DOWN(Code)(Java Doc)
final public static int BROWSE_TOPDOWN(Code)(Java Doc)
final public static int BROWSE_UP(Code)(Java Doc)
final public static short ClassId(Code)(Java Doc)

Methods inherited from com.knowgate.hipergate.Category
public int addObject(Connection oConn, String sIdObject, int iIdClass, int iAttribs, int iOdPosition) throws SQLException(Code)(Java Doc)
public LinkedList browse(JDCConnection oConn, int iDirection, int iOrder) throws SQLException(Code)(Java Doc)
public static String create(JDCConnection oConn, Object[] Values) throws SQLException(Code)(Java Doc)
public boolean delete(JDCConnection oConn) throws SQLException(Code)(Java Doc)
public static boolean delete(JDCConnection oConn, String sCategoryGUID) throws SQLException, IOException(Code)(Java Doc)
public void expand(Connection oConn) throws SQLException(Code)(Java Doc)
public DBSubset getACLGroups(JDCConnection oConn) throws SQLException(Code)(Java Doc)
public DBSubset getACLUsers(JDCConnection oConn) throws SQLException(Code)(Java Doc)
public DBSubset getChilds(JDCConnection oConn) throws SQLException(Code)(Java Doc)
public int getGroupPermissions(Connection oConn, String sIdGroup) throws SQLException(Code)(Java Doc)
public static String getIdFromName(JDCConnection oConn, String sCategoryNm) throws SQLException(Code)(Java Doc)
public boolean getIsRoot(Connection oConn) throws SQLException(Code)(Java Doc)
public String getLabel(Connection oConn, String sLanguage) throws SQLException(Code)(Java Doc)
public DBSubset getNames(JDCConnection oConn) throws SQLException(Code)(Java Doc)
public DBSubset getObjects(JDCConnection oConn) throws SQLException(Code)(Java Doc)
public DBSubset getParents(JDCConnection oConn) throws SQLException(Code)(Java Doc)
public String getPath(Connection oConn) throws SQLException(Code)(Java Doc)
public int getUserPermissions(Connection oConn, String sIdUser) throws SQLException(Code)(Java Doc)
public void inheritPermissions(JDCConnection oConn, String sFromCategory, short iRecurse, short iObjects) throws SQLException(Code)(Java Doc)
public boolean isChildOf(Connection oConn, String sParentCategory) throws SQLException(Code)(Java Doc)
public boolean isParentOf(Connection oConn, String sChildCategory) throws SQLException(Code)(Java Doc)
public int level(JDCConnection oConn) throws SQLException(Code)(Java Doc)
public static synchronized String makeName(JDCConnection oConn, String sCategoryNm) throws SQLException(Code)(Java Doc)
public void removeGroupPermissions(Connection oConn, String sIdGroups, short iRecurse, short iObjects) throws SQLException(Code)(Java Doc)
public int removeObject(Connection oConn, String sIdObject) throws SQLException(Code)(Java Doc)
public void removeUserPermissions(Connection oConn, String sIdUsers, short iRecurse, short iObjects) throws SQLException(Code)(Java Doc)
public void resetParent(Connection oConn, String sIdParent) throws SQLException(Code)(Java Doc)
public void setGroupPermissions(Connection oConn, String sIdGroups, int iACLMask, short iRecurse, short iObjects) throws SQLException(Code)(Java Doc)
public void setIsRoot(Connection oConn, boolean bIsRoot) throws SQLException(Code)(Java Doc)
public void setParent(Connection oConn, String sIdParent) throws SQLException(Code)(Java Doc)
public void setUserPermissions(Connection oConn, String sIdUsers, int iACLMask, short iRecurse, short iObjects) throws SQLException(Code)(Java Doc)
public boolean store(JDCConnection oConn) throws SQLException(Code)(Java Doc)
public static String store(JDCConnection oConn, String sCategoryId, String sParentId, String sCategoryName, short iIsActive, int iDocStatus, String sOwner, String sIcon1, String sIcon2) throws SQLException(Code)(Java Doc)
public void storeLabels(JDCConnection oConn, String sNamesTable, String sRowDelim, String sColDelim) throws SQLException, NoSuchElementException(Code)(Java Doc)
public void uploadDirectory(JDCConnection oConn, String sSourcePath, String sProtocol, String sServer, String sTargetPath, String sLanguage) throws Exception, IOException, SQLException(Code)(Java Doc)

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