|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.knowgate.dataobjs.DBPersist
com.knowgate.forums.NewsMessage
public class NewsMessage
NewsMessage
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry<K,V> |
| Field Summary | |
|---|---|
static short |
ClassId
|
static short |
STATUS_DISCARDED
|
static short |
STATUS_EXPIRED
|
static short |
STATUS_PENDING
|
static short |
STATUS_VALIDATED
|
| Fields inherited from class com.knowgate.dataobjs.DBPersist |
|---|
AllVals, sAuditCls, sAuditUsr, sTransactId |
| Constructor Summary | |
|---|---|
NewsMessage()
Create empty NewsMessage |
|
NewsMessage(JDCConnection oConn,
java.lang.String sGuMsg)
Load NewsMessage from database |
|
| Method Summary | |
|---|---|
int |
countVotes(JDCConnection oConn)
Count number of votes of a message |
boolean |
delete(JDCConnection oConn)
Delete NewsMessage. |
static boolean |
delete(JDCConnection oConn,
java.lang.String sNewsMsgGUID)
Delete NewsMessage. |
DBSubset |
getAttachments(JDCConnection oConn)
Get attachments |
boolean |
load(JDCConnection oConn,
java.lang.Object[] aPK)
Load the internal value set from a register at a database table |
boolean |
load(JDCConnection oConn,
java.lang.String sGuMsg)
Load message |
void |
move(JDCConnection oConn,
java.lang.String sNewsGroupId)
Move this message and all its replies to another NewsGroup |
java.lang.String |
post(JDCConnection oConn,
java.lang.String sNewsGroupId,
java.lang.String sThreadId,
java.util.Date dtStart,
java.util.Date dtEnd,
short iStatus,
java.lang.String sText)
Post a Plain Text Message |
boolean |
store(JDCConnection oConn)
Store NewsMessage Message is posted into a NewsGroup by setting gu_newsgrp property of NewsMessage to the GUID of newsMessage that will contain it. |
java.lang.String[] |
subscribers(JDCConnection oConn)
Get e-mails subscribed to current message group or thread Only active subscribers with digest option not selected are returned |
java.util.HashMap<java.lang.String,NewsMessageTag> |
tags()
Get tags for this message |
| Methods inherited from class com.knowgate.dataobjs.DBPersist |
|---|
allcaps, allcaps, changelog, clear, clone, containsKey, containsValue, entrySet, exists, get, get, getAuditClassName, getCreationDate, getDate, getDateFormated, getDateShort, getDateTime, getDateTime24, getDecimal, getDecimalFormated, getDecimalFormated, getDouble, getDoubleFormated, getFloat, getFloatFormated, getInt, getInteger, getIntervalPart, getItemMap, getItems, getMoney, getShort, getSQLDate, getSQLTime, getString, getStringHtml, getStringNull, getTable, getTable, getTableName, getTime, getTimeOfDay, getTimestamp, getUIdFromName, isEmpty, isNull, iterator, keySet, parseXML, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, putAll, putAll, remove, remove, replace, replace, replace, replace, replace, replace, replace, replace, setAuditTransact, setAuditUser, setCreationDate, size, toLowerCase, toUpperCase, toXML, toXML, toXML, toXML, values |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Field Detail |
|---|
public static final short STATUS_VALIDATED
public static final short STATUS_PENDING
public static final short STATUS_DISCARDED
public static final short STATUS_EXPIRED
public static final short ClassId
| Constructor Detail |
|---|
public NewsMessage()
public NewsMessage(JDCConnection oConn,
java.lang.String sGuMsg)
throws java.sql.SQLException
java.sql.SQLException| Method Detail |
|---|
public java.lang.String post(JDCConnection oConn,
java.lang.String sNewsGroupId,
java.lang.String sThreadId,
java.util.Date dtStart,
java.util.Date dtEnd,
short iStatus,
java.lang.String sText)
throws java.sql.SQLException
oConn - Database ConenctionsNewsGroupId - GUID of NewsGroup for postingsThreadId - GUID of message thread (may be null)dtStart - Start publishing date (may be null)dtEnd - Expiration date (may be null)iStatus - STATUS_VALIDATED or STATUS_PENDINGsText - Message Text
java.sql.SQLException
public boolean load(JDCConnection oConn,
java.lang.String sGuMsg)
throws java.sql.SQLException
load in class DBPersistoConn - JDCConnectionsGuMsg - String Message GUID
java.sql.SQLException
public DBSubset getAttachments(JDCConnection oConn)
throws java.sql.SQLException
oConn - JDCConnection
java.sql.SQLException
public boolean load(JDCConnection oConn,
java.lang.Object[] aPK)
throws java.sql.SQLException
DBPersistLoad the internal value set from a register at a database table
load in class DBPersistoConn - Database ConnectionaPK - Primary key values in order of appearance
java.sql.SQLException
public boolean store(JDCConnection oConn)
throws java.sql.SQLException
Store NewsMessage
Message is posted into a NewsGroup by setting gu_newsgrp property of NewsMessage to the GUID of newsMessage that will contain it.
store in class DBPersistoConn - Database Connection
java.sql.SQLException
public void move(JDCConnection oConn,
java.lang.String sNewsGroupId)
throws java.sql.SQLException
oConn - Database ConenctionsNewsGroupId - GUID of the target NewsGroup
java.sql.SQLException
public boolean delete(JDCConnection oConn)
throws java.sql.SQLException
Delete NewsMessage.
Files attached to NewsMessage (stored as Products) are delete prior to the NewsMessage itself. Then k_sp_del_newsmsg stored procedure is called.
delete in class DBPersistoConn - Database Connection
java.sql.SQLException
public java.lang.String[] subscribers(JDCConnection oConn)
throws java.sql.SQLException
Get e-mails subscribed to current message group or thread
Only active subscribers with digest option not selected are returned
oConn - Database Connection
java.sql.SQLException
public int countVotes(JDCConnection oConn)
throws java.sql.SQLException
oConn - Database Connection
java.sql.SQLExceptionpublic java.util.HashMap<java.lang.String,NewsMessageTag> tags()
public static boolean delete(JDCConnection oConn,
java.lang.String sNewsMsgGUID)
throws java.sql.SQLException
Delete NewsMessage.
Files attached to NewsMessage (stored as Products) are delete prior to the NewsMessage itself. Then k_sp_del_newsmsg stored procedure is called.
oConn - Database ConnectionsNewsMsgGUID - GUID of NewsMessage to be deleted
java.sql.SQLException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||