|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.starhope.appius.sql.SQLPeerDatum
com.tootsville.sys.op.ModeratorJournal
@Deprecated public class ModeratorJournal
Moderator journal is a one time entry that can be added using an extension command or by any system processes. The only step required is created a new instance. The data provided will be parsed and formatted then stored in the database. Retrieving the data will create all the required information. Potential upgrade is to use a configuration file to format the output when retrieving the entry. Example of this is that in Joshua references to usernames can be returned in the entry as anchor links to a user profile.
| Field Summary | |
|---|---|
private int |
authorID
Deprecated. User ID of the author |
private String |
entryText
Deprecated. Text entered into the entry |
private int |
id
Deprecated. ID of the journal entry |
private HashMap<Integer,String> |
references
Deprecated. Refences to users made in the shift journal. |
private static long |
serialVersionUID
Deprecated. Generated serialization ID |
private Timestamp |
stamp
Deprecated. Timestamp of when the post was created. |
| Constructor Summary | |
|---|---|
ModeratorJournal(AbstractUser author,
String entry)
Deprecated. twheys@gmail.com Jan 28, 2010 |
|
ModeratorJournal(ResultSet rs)
Deprecated. twheys@gmail.com Jan 28, 2010 |
|
| Method Summary | |
|---|---|
private void |
checkReferencePossibility(String possibleUser)
Deprecated. twheys@gmail.com Jan 28, 2010 |
void |
flush()
Deprecated. Don't use, moderator journals are never updated. |
int |
getAuthorID()
Deprecated. |
protected String |
getCacheUniqueID()
Deprecated. |
String |
getEntryText()
Deprecated. |
int |
getId()
Deprecated. |
static ModeratorJournal |
getJournalByID(int idToGet)
Deprecated. twheys@gmail.com Jan 28, 2010 |
HashMap<Integer,String> |
getReferences()
Deprecated. |
Timestamp |
getStamp()
Deprecated. |
private void |
initReferencesForThis()
Deprecated. twheys@gmail.com Jan 28, 2010 |
private void |
insert()
Deprecated. twheys@gmail.com Jan 28, 2010 |
private void |
insertReferences()
Deprecated. twheys@gmail.com Jan 28, 2010 |
private void |
parseReferences()
Deprecated. twheys@gmail.com Jan 28, 2010 |
protected void |
set(ResultSet rs)
Deprecated. |
void |
setAuthorID(int newAuthor)
Deprecated. |
void |
setEntryText(String newEntry)
Deprecated. |
void |
setId(int newID)
Deprecated. |
void |
setReferences(HashMap<Integer,String> newReferences)
Deprecated. |
protected void |
setReferences(ResultSet rs)
Deprecated. twheys@gmail.com Jan 28, 2010 |
void |
setStamp(Timestamp newStamp)
Deprecated. |
| Methods inherited from class org.starhope.appius.sql.SQLPeerDatum |
|---|
changed, compareTo, findInCache, saveInCache, set, toJSON |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private int authorID
Userprivate String entryText
private int id
private HashMap<Integer,String> references
private Timestamp stamp
| Constructor Detail |
|---|
public ModeratorJournal(AbstractUser author,
String entry)
twheys@gmail.com Jan 28, 2010A ModeratorJournal creates an new object of a moderator journal, parses the entry for references, then
author - WRITEMEentry - WRITEMEpublic ModeratorJournal(ResultSet rs)
twheys@gmail.com Jan 28, 2010A ModeratorJournal created from a result set.
rs - the result set from a SELECT statment| Method Detail |
|---|
public static ModeratorJournal getJournalByID(int idToGet)
throws NotFoundException
twheys@gmail.com Jan 28, 2010TO getJournalByID SELECT from database on ID and build from result set.
idToGet - the ID of the moderator journal entry to retrieve
NotFoundException - if no journal exists with the ID
idToGetprivate void checkReferencePossibility(String possibleUser)
twheys@gmail.com Jan 28, 2010TO checkReferencePossibility try to get a user ID for a userName, if successful add to references.
possibleUser - the username being checkedpublic void flush()
flush in class SQLPeerDatumSQLPeerDatum.flush()public int getAuthorID()
protected String getCacheUniqueID()
getCacheUniqueID in class SQLPeerDatumSQLPeerDatum.getCacheUniqueID()public String getEntryText()
public int getId()
public HashMap<Integer,String> getReferences()
public Timestamp getStamp()
private void initReferencesForThis()
twheys@gmail.com Jan 28, 2010TO getReferencesForThis SELECT references with the journalID that matches the ID of this journal entry.
private void insert()
twheys@gmail.com Jan 28, 2010TO insert insert into moderatorJournal with the members of this instance.
private void insertReferences()
throws SQLException
twheys@gmail.com Jan 28, 2010TO insertReferences WRITEME...
SQLException - WRITEMEprivate void parseReferences()
twheys@gmail.com Jan 28, 2010TO parseReferences scan through the entry looking for "@username" entries.
protected void set(ResultSet rs)
throws SQLException
set in class SQLPeerDatumrs - The result of an SQL query, with the cursor already
pointed at the row describing this specific instance
of the object.
SQLException - if the database fails somehowSQLPeerDatum.set(java.sql.ResultSet)public void setAuthorID(int newAuthor)
newAuthor - the authorID to setpublic void setEntryText(String newEntry)
newEntry - the entryText to setpublic void setId(int newID)
newID - the id to setpublic void setReferences(HashMap<Integer,String> newReferences)
newReferences - the references to set
protected void setReferences(ResultSet rs)
throws SQLException
twheys@gmail.com Jan 28, 2010TO set_References WRITEME...
rs - WRITEME
SQLException - WRITEMEpublic void setStamp(Timestamp newStamp)
newStamp - the stamp to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||