com.liferay.wiki.engine.mediawiki.internal.DummyDataHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.wiki.engine.mediawiki
Show all versions of com.liferay.wiki.engine.mediawiki
Liferay Wiki Engine MediaWiki
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.wiki.engine.mediawiki.internal;
import java.sql.Connection;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import org.jamwiki.DataHandler;
import org.jamwiki.model.Category;
import org.jamwiki.model.Interwiki;
import org.jamwiki.model.LogItem;
import org.jamwiki.model.Namespace;
import org.jamwiki.model.RecentChange;
import org.jamwiki.model.Role;
import org.jamwiki.model.RoleMap;
import org.jamwiki.model.Topic;
import org.jamwiki.model.TopicType;
import org.jamwiki.model.TopicVersion;
import org.jamwiki.model.VirtualWiki;
import org.jamwiki.model.Watchlist;
import org.jamwiki.model.WikiFile;
import org.jamwiki.model.WikiFileVersion;
import org.jamwiki.model.WikiGroup;
import org.jamwiki.model.WikiUser;
import org.jamwiki.utils.Pagination;
/**
* @author Jonathan Potter
*/
public class DummyDataHandler implements DataHandler {
@Override
public boolean authenticate(String username, String password) {
return false;
}
@Override
public boolean canMoveTopic(Topic fromTopic, String destination) {
return false;
}
@Override
public void deleteInterwiki(Interwiki interwiki) {
}
@Override
public void deleteTopic(Topic topic, TopicVersion topicVersion) {
}
@Override
public void executeUpgradeQuery(String prop, Connection conn) {
}
@Override
public void executeUpgradeUpdate(String prop, Connection conn) {
}
@Override
public List getAllCategories(
String virtualWiki, Pagination pagination) {
return null;
}
@Override
public List getAllRoles() {
return null;
}
@Override
public List getAllTopicNames(
String virtualWiki, boolean includeDeleted) {
return null;
}
@Override
public List getAllWikiFileVersions(
String virtualWiki, String topicName, boolean descending) {
return null;
}
@Override
public List getLogItems(
String virtualWiki, int logType, Pagination pagination,
boolean descending) {
return null;
}
@Override
public List getRecentChanges(
String virtualWiki, Pagination pagination, boolean descending) {
return null;
}
@Override
public List getRoleMapByLogin(String loginFragment) {
return null;
}
@Override
public List getRoleMapByRole(String roleName) {
return null;
}
@Override
public List getRoleMapGroup(String groupName) {
return null;
}
@Override
public List getRoleMapGroups() {
return null;
}
@Override
public List getRoleMapUser(String login) {
return null;
}
@Override
public List getTopicHistory(
String virtualWiki, String topicName, Pagination pagination,
boolean descending) {
return null;
}
@Override
public List getTopicsAdmin(
String virtualWiki, Pagination pagination) {
return null;
}
@Override
public List getUserContributions(
String virtualWiki, String userString, Pagination pagination,
boolean descending) {
return null;
}
@Override
public List getVirtualWikiList() {
return null;
}
@Override
public Watchlist getWatchlist(String virtualWiki, int userId) {
return null;
}
@Override
public List getWatchlist(
String virtualWiki, int userId, Pagination pagination) {
return null;
}
@Override
public List lookupCategoryTopics(
String virtualWiki, String categoryName) {
return null;
}
@Override
public Map lookupConfiguration() {
return null;
}
@Override
public Interwiki lookupInterwiki(String interwikiPrefix) {
return null;
}
@Override
public List lookupInterwikis() {
return null;
}
@Override
public Namespace lookupNamespace(
String virtualWiki, String namespaceString) {
return null;
}
@Override
public Namespace lookupNamespaceById(int namespaceId) {
return null;
}
@Override
public List lookupNamespaces() {
return null;
}
@Override
public Topic lookupTopic(
String virtualWiki, String topicName, boolean deleteOK,
Connection conn) {
return null;
}
@Override
public Topic lookupTopicById(String virtualWiki, int topicId) {
return null;
}
@Override
public Map lookupTopicByType(
String virtualWiki, TopicType topicType1, TopicType topicType2,
Integer namespaceId, Pagination pagination) {
return null;
}
@Override
public int lookupTopicCount(String virtualWiki, Integer namespaceId) {
return 0;
}
@Override
public List lookupTopicLinkOrphans(
String virtualWiki, int namespaceId) {
return null;
}
@Override
public List lookupTopicLinks(String virtualWiki, String topicName) {
return null;
}
@Override
public String lookupTopicName(String virtualWiki, String topicName) {
return null;
}
@Override
public TopicVersion lookupTopicVersion(int topicVersionId) {
return null;
}
@Override
public Integer lookupTopicVersionNextId(int topicVersionId) {
return null;
}
@Override
public VirtualWiki lookupVirtualWiki(String virtualWikiName) {
return null;
}
@Override
public WikiFile lookupWikiFile(String virtualWiki, String topicName) {
return null;
}
@Override
public int lookupWikiFileCount(String virtualWiki) {
return 0;
}
@Override
public WikiGroup lookupWikiGroup(String groupName) {
return null;
}
@Override
public WikiUser lookupWikiUser(int userId) {
return null;
}
@Override
public WikiUser lookupWikiUser(String username) {
return null;
}
@Override
public int lookupWikiUserCount() {
return 0;
}
@Override
public String lookupWikiUserEncryptedPassword(String username) {
return null;
}
@Override
public List lookupWikiUsers(Pagination pagination) {
return null;
}
@Override
public void moveTopic(
Topic fromTopic, TopicVersion fromVersion, String destination) {
}
@Override
public void orderTopicVersions(
Topic topic, List topicVersionIdList) {
}
@Override
public void reloadLogItems() {
}
@Override
public void reloadRecentChanges() {
}
@Override
public void setup(
Locale locale, WikiUser user, String username,
String encryptedPassword) {
}
@Override
public void setupSpecialPages(
Locale locale, WikiUser user, VirtualWiki virtualWiki) {
}
@Override
public void undeleteTopic(Topic topic, TopicVersion topicVersion) {
}
@Override
public void updateSpecialPage(
Locale locale, String virtualWiki, String topicName,
String userDisplay) {
}
@Override
public void writeConfiguration(Map configuration) {
}
@Override
public void writeFile(WikiFile wikiFile, WikiFileVersion wikiFileVersion) {
}
@Override
public void writeInterwiki(Interwiki interwiki) {
}
@Override
public void writeNamespace(
Namespace mainNamespace, Namespace commentsNamespace) {
}
@Override
public void writeNamespaceTranslations(
List namespaces, String virtualWiki) {
}
@Override
public void writeRole(Role role, boolean update) {
}
@Override
public void writeRoleMapGroup(int groupId, List roles) {
}
@Override
public void writeRoleMapUser(String username, List roles) {
}
@Override
public void writeTopic(
Topic topic, TopicVersion topicVersion,
LinkedHashMap categories, List links) {
}
@Override
public void writeTopicVersion(Topic topic, TopicVersion topicVersion) {
}
@Override
public void writeVirtualWiki(VirtualWiki virtualWiki) {
}
@Override
public void writeWatchlistEntry(
Watchlist watchlist, String virtualWiki, String topicName, int userId) {
}
@Override
public void writeWikiGroup(WikiGroup group) {
}
@Override
public void writeWikiUser(
WikiUser user, String username, String encryptedPassword) {
}
}