| java.lang.Object org.jamwiki.db.AnsiDataHandler
All known Subclasses: org.jamwiki.db.SybaseASADataHandler, org.jamwiki.db.DB2DataHandler, org.jamwiki.db.DB2400DataHandler, org.jamwiki.db.PostgresDataHandler, org.jamwiki.db.OracleDataHandler, org.jamwiki.db.MSSqlDataHandler, org.jamwiki.db.MySqlDataHandler, org.jamwiki.db.HSqlDataHandler,
Method Summary | |
protected void | addWikiUser(WikiUser user, Connection conn) | public boolean | canMoveTopic(Topic fromTopic, String destination) | public void | deleteTopic(Topic topic, TopicVersion topicVersion, boolean userVisible, Object transactionObject) | public List | getAllCategories(String virtualWiki, Pagination pagination) | public List | getAllRoles() | public List | getAllTopicNames(String virtualWiki) | public List | getAllWikiFileVersions(String virtualWiki, String topicName, boolean descending) | public List | getRecentChanges(String virtualWiki, Pagination pagination, boolean descending) | public List | getRecentChanges(String virtualWiki, String topicName, Pagination pagination, boolean descending) | public Collection | getRoleMapByLogin(String loginFragment) | public Collection | getRoleMapByRole(String roleName) | public Role[] | getRoleMapGroup(String groupName) | public Collection | getRoleMapGroups() | public Role[] | getRoleMapUser(String login) | public List | getTopicsAdmin(String virtualWiki, Pagination pagination) | public List | getUserContributions(String virtualWiki, String userString, Pagination pagination, boolean descending) | public List | getVirtualWikiList(Object transactionObject) Return a List of all VirtualWiki objects that exist for the Wiki. | public Watchlist | getWatchlist(String virtualWiki, int userId) Retrieve a watchlist containing a List of topic ids and topic
names that can be used to determine if a topic is in a user's current
watchlist. | public List | getWatchlist(String virtualWiki, int userId, Pagination pagination) Retrieve a watchlist containing a List of RecentChanges objects
that can be used for display on the Special:Watchlist page. | public List | lookupCategoryTopics(String virtualWiki, String categoryName) | public Topic | lookupTopic(String virtualWiki, String topicName, boolean deleteOK, Object transactionObject) | public List | lookupTopicByType(String virtualWiki, int topicType, Pagination pagination) | public int | lookupTopicCount(String virtualWiki) Return a count of all topics, including redirects, comments pages and templates,
currently available on the Wiki. | public TopicVersion | lookupTopicVersion(int topicVersionId, Object transactionObject) | public VirtualWiki | lookupVirtualWiki(String virtualWikiName) | public WikiFile | lookupWikiFile(String virtualWiki, String topicName) | public int | lookupWikiFileCount(String virtualWiki) Return a count of all wiki files currently available on the Wiki. | public WikiUser | lookupWikiUser(int userId, Object transactionObject) | public WikiUser | lookupWikiUser(String username, Object transactionObject) | public int | lookupWikiUserCount() Return a count of all wiki users. | public List | lookupWikiUsers(Pagination pagination) | public void | moveTopic(Topic fromTopic, TopicVersion fromVersion, String destination, Object transactionObject) | protected QueryHandler | queryHandler() | public void | reloadRecentChanges(Object transactionObject) | public void | setup(Locale locale, WikiUser user) | public void | setupSpecialPages(Locale locale, WikiUser user, VirtualWiki virtualWiki, Object transactionObject) | public void | undeleteTopic(Topic topic, TopicVersion topicVersion, boolean userVisible, Object transactionObject) | public void | updateSpecialPage(Locale locale, String virtualWiki, String topicName, WikiUser user, String ipAddress, Object transactionObject) | public void | writeFile(WikiFile wikiFile, WikiFileVersion wikiFileVersion, Object transactionObject) | public void | writeRole(Role role, Object transactionObject, boolean update) | public void | writeRoleMapGroup(int groupId, List roles, Object transactionObject) | public void | writeRoleMapUser(int userId, List roles, Object transactionObject) | public void | writeTopic(Topic topic, TopicVersion topicVersion, LinkedHashMap categories, Vector links, boolean userVisible, Object transactionObject) Commit changes to a topic (and its version) to the database or
filesystem.
Parameters: topic - The topic object that is to be committed. | public void | writeVirtualWiki(VirtualWiki virtualWiki, Object transactionObject) | public void | writeWatchlistEntry(Watchlist watchlist, String virtualWiki, String topicName, int userId, Object transactionObject) | public void | writeWikiGroup(WikiGroup group, Object transactionObject) | public void | writeWikiUser(WikiUser user, WikiUserInfo userInfo, Object transactionObject) |
DATA_CATEGORY_NAME | final public static String DATA_CATEGORY_NAME(Code) | | |
DATA_TOPIC_NAME | final public static String DATA_TOPIC_NAME(Code) | | |
DATA_WIKI_USER_ID | final public static String DATA_WIKI_USER_ID(Code) | | |
getVirtualWikiList | public List getVirtualWikiList(Object transactionObject) throws Exception(Code) | | Return a List of all VirtualWiki objects that exist for the Wiki.
|
getWatchlist | public Watchlist getWatchlist(String virtualWiki, int userId) throws Exception(Code) | | Retrieve a watchlist containing a List of topic ids and topic
names that can be used to determine if a topic is in a user's current
watchlist.
|
getWatchlist | public List getWatchlist(String virtualWiki, int userId, Pagination pagination) throws Exception(Code) | | Retrieve a watchlist containing a List of RecentChanges objects
that can be used for display on the Special:Watchlist page.
|
lookupTopicCount | public int lookupTopicCount(String virtualWiki) throws Exception(Code) | | Return a count of all topics, including redirects, comments pages and templates,
currently available on the Wiki. This method excludes deleted topics.
Parameters: virtualWiki - The virtual wiki for which the total topic count is being returnedfor. |
lookupWikiFileCount | public int lookupWikiFileCount(String virtualWiki) throws Exception(Code) | | Return a count of all wiki files currently available on the Wiki. This
method excludes deleted files.
Parameters: virtualWiki - The virtual wiki of the files being retrieved. |
lookupWikiUserCount | public int lookupWikiUserCount() throws Exception(Code) | | Return a count of all wiki users.
|
writeTopic | public void writeTopic(Topic topic, TopicVersion topicVersion, LinkedHashMap categories, Vector links, boolean userVisible, Object transactionObject) throws Exception(Code) | | Commit changes to a topic (and its version) to the database or
filesystem.
Parameters: topic - The topic object that is to be committed. If the topicid is empty or less than zero then the topic is added, otherwise anupdate is performed. Parameters: topicVersion - The version associated with the topic that isbeing added. This parameter should never be null UNLESS the change isnot user visible, such as when deleting a topic temporarily duringpage moves. Parameters: categories - A mapping of categories and their associated sort keys (if any)for all categories that are associated with the current topic. Parameters: links - A List of all topic names that are linked to from thecurrent topic. These will be passed to the search engine to createsearchable metadata. Parameters: transactionObject - Database connection or other parametersrequired for updates. Parameters: userVisible - A flag indicating whether or not this change shouldbe visible to Wiki users. This flag should be true except in rarecases, such as when temporarily deleting a topic during page moves. |
|
|