CMJournals
public interface JournalsLibrary extends CMLibrary
Modifier and Type | Interface | Description |
---|---|---|
static interface |
JournalsLibrary.CommandJournal |
Command Journals are another category of Journal that is
accessed from the command line (as oppposed to SMTP Journals
accessed via email, Forums accessed via web page, and standard
Journal accessed via item).
|
static class |
JournalsLibrary.CommandJournalFlags |
This enum defines flags that apply to command journals.
|
static interface |
JournalsLibrary.ForumJournal |
Journals with a meta-flags entry, typically Forums,
are described by the accessors of this interface.
|
static class |
JournalsLibrary.ForumJournalFlags |
Journals with a meta-flags entry, typically Forums,
have numerous flags that define them.
|
static interface |
JournalsLibrary.JournalMetaData |
ForumJournals are journals accessed via the web, and are typically
threaded in their messages.
|
static interface |
JournalsLibrary.MsgMkrCallback |
Since The Message Maker advanced cl editor is async, this interface exists to provide
a callBack to the message maker.
|
static class |
JournalsLibrary.MsgMkrResolution |
The return value of the resolution of the message maker closing.
|
static interface |
JournalsLibrary.SMTPJournal |
An accessor interface for a view of a journal that is
exposed to an email system.
|
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
JOURNAL_BOUNDARY |
Non-Forum journal messages handle "replies" by tacking them to the end of the
main message.
|
idConverter
Modifier and Type | Method | Description |
---|---|---|
boolean |
canReadMessage(JournalEntry entry,
java.lang.String srchMatch,
MOB readerM,
boolean ignorePrivileges) |
A security checker for whether the given user can read the
given message.
|
void |
clearJournalSummaryStats(JournalsLibrary.ForumJournal journal) |
Clears the forum journal summary stats so that they can
be rebuilt from the database.
|
java.util.Enumeration<JournalsLibrary.CommandJournal> |
commandJournals() |
Returns an enumeration of all registered command
journals
|
java.util.Enumeration<JournalsLibrary.ForumJournal> |
forumJournals() |
Returns an enumeration of all normal forumJournals (not
clan ones).
|
java.util.Enumeration<JournalsLibrary.ForumJournal> |
forumJournalsSorted() |
Returns an enumeration of all normal ForumJournals (not
clan ones), sorted by somehow.
|
java.util.Set<java.lang.String> |
getArchonJournalNames() |
Returns the cached set of basic items that implement
the ArchonOnly interface, thus making them ArchonOnly
journals.
|
java.util.List<JournalsLibrary.ForumJournal> |
getClanForums(Clan clan) |
Returns the list of ForumJournals that exist for the given clan.
|
JournalsLibrary.CommandJournal |
getCommandJournal(java.lang.String named) |
Returns the information about the Command Journal
of the given name.
|
JournalsLibrary.ForumJournal |
getForumJournal(java.lang.String named) |
Returns a ForumJournal of the given name.
|
JournalsLibrary.ForumJournal |
getForumJournal(java.lang.String named,
Clan clan) |
Retreives a specific forum journal given to a particular clan.
|
JournalsLibrary.JournalMetaData |
getJournalStats(JournalsLibrary.ForumJournal journal) |
Get the forum journal summary stats, caching them after
calculation from the database
|
int |
getNumCommandJournals() |
Returns the number of command journals, or journals
written to using standard game commands.
|
int |
getNumForumJournals() |
Returns the number of forum journals.
|
java.lang.String |
getScriptValue(MOB mob,
java.lang.String journal,
java.lang.String oldValue) |
If the given journal requires running a MOBPROG script
in order to produce a final message, this function will
run that script.
|
boolean |
isArchonJournalName(java.lang.String journal) |
Returns whether the given journal appears on the archon
journal names list.
|
int |
loadCommandJournals(java.lang.String list) |
Given an encoded journals list string, this function will
register all the CommandJournals described by the encoded
list string.
|
int |
loadForumJournals(java.lang.String list) |
Loads the forumjournals from the given encoded forum
definition string.
|
void |
makeMessageASync(MOB mob,
java.lang.String messageTitle,
java.util.List<java.lang.String> vbuf,
boolean autoAdd,
JournalsLibrary.MsgMkrCallback back) |
An asynchronous system for allowing a user to edit a text document with options for search and replace, line
inserting and deleting, and line replacement.
|
void |
notifyPosting(java.lang.String journal,
java.lang.String from,
java.lang.String to,
java.lang.String subject) |
Whenever a post to a journal is made, this function is called to send a notification to online
users who have subscribed to such things.
|
void |
notifyReplying(java.lang.String journal,
java.lang.String tpAuthor,
java.lang.String reAuthor,
java.lang.String subject) |
Whenever a reply to a journal is made, this function is called to send a notification to online
users who have subscribed to such things.
|
void |
registerClanForum(Clan clan,
java.lang.String allClanForumMappings) |
Registers a set of ForumJournals for the given clan from the
coded string.
|
void |
resetCalendarEvents() |
Since Calendar events are also journal entries, whenever the calendar is changed,
this method must be called to make sure notifications for new events occurs.
|
boolean |
subscribeToJournal(java.lang.String journalName,
java.lang.String userName,
boolean saveMailingList) |
Called to add a user to the subscription list for a journal.
|
boolean |
unsubscribeFromAll(java.lang.String username) |
Unsubscribes the given user/account from every mailing list.
|
boolean |
unsubscribeFromJournal(java.lang.String journalName,
java.lang.String userName,
boolean saveMailingList) |
Called to remove a user from the subscription list for a journal.
|
activate, getServiceClient, L, propertiesLoaded, shutdown
copyOf, ID, initializeClass, name, newInstance
static final java.lang.String JOURNAL_BOUNDARY
java.util.Set<java.lang.String> getArchonJournalNames()
isArchonJournalName(String)
,
ArchonOnly
boolean isArchonJournalName(java.lang.String journal)
journal
- the journal namegetArchonJournalNames()
,
ArchonOnly
int loadCommandJournals(java.lang.String list)
list
- the coded stringJournalsLibrary.CommandJournal
,
commandJournals()
,
getCommandJournal(String)
,
getNumCommandJournals()
java.util.Enumeration<JournalsLibrary.CommandJournal> commandJournals()
JournalsLibrary.CommandJournal
,
loadCommandJournals(String)
,
getCommandJournal(String)
,
getNumCommandJournals()
JournalsLibrary.CommandJournal getCommandJournal(java.lang.String named)
named
- the command journal nameJournalsLibrary.CommandJournal
,
loadCommandJournals(String)
,
commandJournals()
,
getNumCommandJournals()
int getNumCommandJournals()
JournalsLibrary.CommandJournal
,
loadCommandJournals(String)
,
commandJournals()
,
getCommandJournal(String)
java.lang.String getScriptValue(MOB mob, java.lang.String journal, java.lang.String oldValue)
mob
- the player trying to post to the journaljournal
- the journal that might be scriptedoldValue
- the value entered before the scriptingboolean canReadMessage(JournalEntry entry, java.lang.String srchMatch, MOB readerM, boolean ignorePrivileges)
entry
- the journal entrysrchMatch
- null, or a string to match almost anything in the entryreaderM
- null, or the reader of the messageignorePrivileges
- true to NOT require JOURNAL secflag, false to require itint loadForumJournals(java.lang.String list)
list
- the coded stringgetNumForumJournals()
,
forumJournals()
,
forumJournalsSorted()
,
getForumJournal(String)
,
getForumJournal(String, Clan)
java.util.Enumeration<JournalsLibrary.ForumJournal> forumJournals()
getNumForumJournals()
,
forumJournalsSorted()
,
getForumJournal(String)
,
getForumJournal(String, Clan)
,
loadForumJournals(String)
java.util.Enumeration<JournalsLibrary.ForumJournal> forumJournalsSorted()
getNumForumJournals()
,
forumJournals()
,
getForumJournal(String)
,
getForumJournal(String, Clan)
,
loadForumJournals(String)
JournalsLibrary.ForumJournal getForumJournal(java.lang.String named)
named
- the name of the forumjournalgetNumForumJournals()
,
forumJournals()
,
forumJournalsSorted()
,
getForumJournal(String, Clan)
,
loadForumJournals(String)
JournalsLibrary.ForumJournal getForumJournal(java.lang.String named, Clan clan)
named
- the name of the journalclan
- the clan to whom the journal belongsgetNumForumJournals()
,
forumJournals()
,
forumJournalsSorted()
,
getForumJournal(String)
,
loadForumJournals(String)
int getNumForumJournals()
forumJournals()
,
forumJournalsSorted()
,
getForumJournal(String)
,
getForumJournal(String, Clan)
,
loadForumJournals(String)
void registerClanForum(Clan clan, java.lang.String allClanForumMappings)
clan
- the clanallClanForumMappings
- the coded stringgetClanForums(Clan)
java.util.List<JournalsLibrary.ForumJournal> getClanForums(Clan clan)
clan
- the clanregisterClanForum(Clan, String)
boolean subscribeToJournal(java.lang.String journalName, java.lang.String userName, boolean saveMailingList)
journalName
- the name of the journaluserName
- the user who subscribedsaveMailingList
- true to save afterwards, false if you'll do it laterboolean unsubscribeFromAll(java.lang.String username)
username
- the user/accountboolean unsubscribeFromJournal(java.lang.String journalName, java.lang.String userName, boolean saveMailingList)
journalName
- the name of the journaluserName
- the user who subscribedsaveMailingList
- true to save afterwards, false if you'll do it laterJournalsLibrary.JournalMetaData getJournalStats(JournalsLibrary.ForumJournal journal)
journal
- the journalJournalsLibrary.JournalMetaData
void clearJournalSummaryStats(JournalsLibrary.ForumJournal journal)
journal
- the journal that needs updatingJournalsLibrary.JournalMetaData
void notifyPosting(java.lang.String journal, java.lang.String from, java.lang.String to, java.lang.String subject)
journal
- the journal posted atfrom
- the author of the message postedto
- who the post is toosubject
- the subject of the top messagevoid notifyReplying(java.lang.String journal, java.lang.String tpAuthor, java.lang.String reAuthor, java.lang.String subject)
journal
- the journal replied attpAuthor
- the author of the message replied toreAuthor
- the author of the replysubject
- the subject of the top messagevoid makeMessageASync(MOB mob, java.lang.String messageTitle, java.util.List<java.lang.String> vbuf, boolean autoAdd, JournalsLibrary.MsgMkrCallback back)
mob
- the player doing the editingmessageTitle
- the title of the messagevbuf
- the text of the messageautoAdd
- true to go directly into line adding mode, false to start in menuback
- the callBack when doneJournalsLibrary.MsgMkrCallback
,
JournalsLibrary.MsgMkrResolution
void resetCalendarEvents()