Liferay 6.2-ce-ga5

com.liferay.portlet.wiki.engines.mediawiki
Class DummyDataHandler

java.lang.Object
  extended by com.liferay.portlet.wiki.engines.mediawiki.DummyDataHandler
All Implemented Interfaces:
org.jamwiki.DataHandler
Direct Known Subclasses:
LiferayDataHandler

public class DummyDataHandler
extends Object
implements org.jamwiki.DataHandler


Field Summary
 
Fields inherited from interface org.jamwiki.DataHandler
DATA_HANDLER_ANSI, DATA_HANDLER_ASA, DATA_HANDLER_CACHE, DATA_HANDLER_DB2, DATA_HANDLER_DB2400, DATA_HANDLER_HSQL, DATA_HANDLER_MSSQL, DATA_HANDLER_MYSQL, DATA_HANDLER_ORACLE, DATA_HANDLER_POSTGRES
 
Constructor Summary
DummyDataHandler()
           
 
Method Summary
 boolean authenticate(String username, String password)
           
 boolean canMoveTopic(org.jamwiki.model.Topic fromTopic, String destination)
           
 void deleteInterwiki(org.jamwiki.model.Interwiki interwiki)
           
 void deleteTopic(org.jamwiki.model.Topic topic, org.jamwiki.model.TopicVersion topicVersion)
           
 void executeUpgradeQuery(String prop, Connection conn)
           
 void executeUpgradeUpdate(String prop, Connection conn)
           
 List<org.jamwiki.model.Category> getAllCategories(String virtualWiki, org.jamwiki.utils.Pagination pagination)
           
 List<org.jamwiki.model.Role> getAllRoles()
           
 List<String> getAllTopicNames(String virtualWiki, boolean includeDeleted)
           
 List<org.jamwiki.model.WikiFileVersion> getAllWikiFileVersions(String virtualWiki, String topicName, boolean descending)
           
 List<org.jamwiki.model.LogItem> getLogItems(String virtualWiki, int logType, org.jamwiki.utils.Pagination pagination, boolean descending)
           
 List<org.jamwiki.model.RecentChange> getRecentChanges(String virtualWiki, org.jamwiki.utils.Pagination pagination, boolean descending)
           
 List<org.jamwiki.model.RoleMap> getRoleMapByLogin(String loginFragment)
           
 List<org.jamwiki.model.RoleMap> getRoleMapByRole(String roleName)
           
 List<org.jamwiki.model.Role> getRoleMapGroup(String groupName)
           
 List<org.jamwiki.model.RoleMap> getRoleMapGroups()
           
 List<org.jamwiki.model.Role> getRoleMapUser(String login)
           
 List<org.jamwiki.model.RecentChange> getTopicHistory(String virtualWiki, String topicName, org.jamwiki.utils.Pagination pagination, boolean descending)
           
 List<String> getTopicsAdmin(String virtualWiki, org.jamwiki.utils.Pagination pagination)
           
 List<org.jamwiki.model.RecentChange> getUserContributions(String virtualWiki, String userString, org.jamwiki.utils.Pagination pagination, boolean descending)
           
 List<org.jamwiki.model.VirtualWiki> getVirtualWikiList()
           
 org.jamwiki.model.Watchlist getWatchlist(String virtualWiki, int userId)
           
 List<org.jamwiki.model.RecentChange> getWatchlist(String virtualWiki, int userId, org.jamwiki.utils.Pagination pagination)
           
 List<org.jamwiki.model.Category> lookupCategoryTopics(String virtualWiki, String categoryName)
           
 Map<String,String> lookupConfiguration()
           
 org.jamwiki.model.Interwiki lookupInterwiki(String interwikiPrefix)
           
 List<org.jamwiki.model.Interwiki> lookupInterwikis()
           
 org.jamwiki.model.Namespace lookupNamespace(String virtualWiki, String namespaceString)
           
 org.jamwiki.model.Namespace lookupNamespaceById(int namespaceId)
           
 List<org.jamwiki.model.Namespace> lookupNamespaces()
           
 org.jamwiki.model.Topic lookupTopic(String virtualWiki, String topicName, boolean deleteOK, Connection conn)
           
 org.jamwiki.model.Topic lookupTopicById(String virtualWiki, int topicId)
           
 Map<Integer,String> lookupTopicByType(String virtualWiki, org.jamwiki.model.TopicType topicType1, org.jamwiki.model.TopicType topicType2, Integer namespaceId, org.jamwiki.utils.Pagination pagination)
           
 int lookupTopicCount(String virtualWiki, Integer namespaceId)
           
 List<String> lookupTopicLinkOrphans(String virtualWiki, int namespaceId)
           
 List<String> lookupTopicLinks(String virtualWiki, String topicName)
           
 String lookupTopicName(String virtualWiki, String topicName)
           
 org.jamwiki.model.TopicVersion lookupTopicVersion(int topicVersionId)
           
 Integer lookupTopicVersionNextId(int topicVersionId)
           
 org.jamwiki.model.VirtualWiki lookupVirtualWiki(String virtualWikiName)
           
 org.jamwiki.model.WikiFile lookupWikiFile(String virtualWiki, String topicName)
           
 int lookupWikiFileCount(String virtualWiki)
           
 org.jamwiki.model.WikiGroup lookupWikiGroup(String groupName)
           
 org.jamwiki.model.WikiUser lookupWikiUser(int userId)
           
 org.jamwiki.model.WikiUser lookupWikiUser(String username)
           
 int lookupWikiUserCount()
           
 String lookupWikiUserEncryptedPassword(String username)
           
 List<String> lookupWikiUsers(org.jamwiki.utils.Pagination pagination)
           
 void moveTopic(org.jamwiki.model.Topic fromTopic, org.jamwiki.model.TopicVersion fromVersion, String destination)
           
 void orderTopicVersions(org.jamwiki.model.Topic topic, List<Integer> topicVersionIdList)
           
 void reloadLogItems()
           
 void reloadRecentChanges()
           
 void setup(Locale locale, org.jamwiki.model.WikiUser user, String username, String encryptedPassword)
           
 void setupSpecialPages(Locale locale, org.jamwiki.model.WikiUser user, org.jamwiki.model.VirtualWiki virtualWiki)
           
 void undeleteTopic(org.jamwiki.model.Topic topic, org.jamwiki.model.TopicVersion topicVersion)
           
 void updateSpecialPage(Locale locale, String virtualWiki, String topicName, String userDisplay)
           
 void writeConfiguration(Map<String,String> configuration)
           
 void writeFile(org.jamwiki.model.WikiFile wikiFile, org.jamwiki.model.WikiFileVersion wikiFileVersion)
           
 void writeInterwiki(org.jamwiki.model.Interwiki interwiki)
           
 void writeNamespace(org.jamwiki.model.Namespace mainNamespace, org.jamwiki.model.Namespace commentsNamespace)
           
 void writeNamespaceTranslations(List<org.jamwiki.model.Namespace> namespaces, String virtualWiki)
           
 void writeRole(org.jamwiki.model.Role role, boolean update)
           
 void writeRoleMapGroup(int groupId, List<String> roles)
           
 void writeRoleMapUser(String username, List<String> roles)
           
 void writeTopic(org.jamwiki.model.Topic topic, org.jamwiki.model.TopicVersion topicVersion, LinkedHashMap<String,String> categories, List<String> links)
           
 void writeTopicVersion(org.jamwiki.model.Topic topic, org.jamwiki.model.TopicVersion topicVersion)
           
 void writeVirtualWiki(org.jamwiki.model.VirtualWiki virtualWiki)
           
 void writeWatchlistEntry(org.jamwiki.model.Watchlist watchlist, String virtualWiki, String topicName, int userId)
           
 void writeWikiGroup(org.jamwiki.model.WikiGroup group)
           
 void writeWikiUser(org.jamwiki.model.WikiUser user, String username, String encryptedPassword)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyDataHandler

public DummyDataHandler()
Method Detail

authenticate

public boolean authenticate(String username,
                            String password)
Specified by:
authenticate in interface org.jamwiki.DataHandler

canMoveTopic

public boolean canMoveTopic(org.jamwiki.model.Topic fromTopic,
                            String destination)
Specified by:
canMoveTopic in interface org.jamwiki.DataHandler

deleteInterwiki

public void deleteInterwiki(org.jamwiki.model.Interwiki interwiki)
Specified by:
deleteInterwiki in interface org.jamwiki.DataHandler

deleteTopic

public void deleteTopic(org.jamwiki.model.Topic topic,
                        org.jamwiki.model.TopicVersion topicVersion)
Specified by:
deleteTopic in interface org.jamwiki.DataHandler

executeUpgradeQuery

public void executeUpgradeQuery(String prop,
                                Connection conn)
Specified by:
executeUpgradeQuery in interface org.jamwiki.DataHandler

executeUpgradeUpdate

public void executeUpgradeUpdate(String prop,
                                 Connection conn)
Specified by:
executeUpgradeUpdate in interface org.jamwiki.DataHandler

getAllCategories

public List<org.jamwiki.model.Category> getAllCategories(String virtualWiki,
                                                         org.jamwiki.utils.Pagination pagination)
Specified by:
getAllCategories in interface org.jamwiki.DataHandler

getAllRoles

public List<org.jamwiki.model.Role> getAllRoles()
Specified by:
getAllRoles in interface org.jamwiki.DataHandler

getAllTopicNames

public List<String> getAllTopicNames(String virtualWiki,
                                     boolean includeDeleted)
Specified by:
getAllTopicNames in interface org.jamwiki.DataHandler

getAllWikiFileVersions

public List<org.jamwiki.model.WikiFileVersion> getAllWikiFileVersions(String virtualWiki,
                                                                      String topicName,
                                                                      boolean descending)
Specified by:
getAllWikiFileVersions in interface org.jamwiki.DataHandler

getLogItems

public List<org.jamwiki.model.LogItem> getLogItems(String virtualWiki,
                                                   int logType,
                                                   org.jamwiki.utils.Pagination pagination,
                                                   boolean descending)
Specified by:
getLogItems in interface org.jamwiki.DataHandler

getRecentChanges

public List<org.jamwiki.model.RecentChange> getRecentChanges(String virtualWiki,
                                                             org.jamwiki.utils.Pagination pagination,
                                                             boolean descending)
Specified by:
getRecentChanges in interface org.jamwiki.DataHandler

getRoleMapByLogin

public List<org.jamwiki.model.RoleMap> getRoleMapByLogin(String loginFragment)
Specified by:
getRoleMapByLogin in interface org.jamwiki.DataHandler

getRoleMapByRole

public List<org.jamwiki.model.RoleMap> getRoleMapByRole(String roleName)
Specified by:
getRoleMapByRole in interface org.jamwiki.DataHandler

getRoleMapGroup

public List<org.jamwiki.model.Role> getRoleMapGroup(String groupName)
Specified by:
getRoleMapGroup in interface org.jamwiki.DataHandler

getRoleMapGroups

public List<org.jamwiki.model.RoleMap> getRoleMapGroups()
Specified by:
getRoleMapGroups in interface org.jamwiki.DataHandler

getRoleMapUser

public List<org.jamwiki.model.Role> getRoleMapUser(String login)
Specified by:
getRoleMapUser in interface org.jamwiki.DataHandler

getTopicHistory

public List<org.jamwiki.model.RecentChange> getTopicHistory(String virtualWiki,
                                                            String topicName,
                                                            org.jamwiki.utils.Pagination pagination,
                                                            boolean descending)
Specified by:
getTopicHistory in interface org.jamwiki.DataHandler

getTopicsAdmin

public List<String> getTopicsAdmin(String virtualWiki,
                                   org.jamwiki.utils.Pagination pagination)
Specified by:
getTopicsAdmin in interface org.jamwiki.DataHandler

getUserContributions

public List<org.jamwiki.model.RecentChange> getUserContributions(String virtualWiki,
                                                                 String userString,
                                                                 org.jamwiki.utils.Pagination pagination,
                                                                 boolean descending)
Specified by:
getUserContributions in interface org.jamwiki.DataHandler

getVirtualWikiList

public List<org.jamwiki.model.VirtualWiki> getVirtualWikiList()
Specified by:
getVirtualWikiList in interface org.jamwiki.DataHandler

getWatchlist

public org.jamwiki.model.Watchlist getWatchlist(String virtualWiki,
                                                int userId)
Specified by:
getWatchlist in interface org.jamwiki.DataHandler

getWatchlist

public List<org.jamwiki.model.RecentChange> getWatchlist(String virtualWiki,
                                                         int userId,
                                                         org.jamwiki.utils.Pagination pagination)
Specified by:
getWatchlist in interface org.jamwiki.DataHandler

lookupCategoryTopics

public List<org.jamwiki.model.Category> lookupCategoryTopics(String virtualWiki,
                                                             String categoryName)
Specified by:
lookupCategoryTopics in interface org.jamwiki.DataHandler

lookupConfiguration

public Map<String,String> lookupConfiguration()
Specified by:
lookupConfiguration in interface org.jamwiki.DataHandler

lookupInterwiki

public org.jamwiki.model.Interwiki lookupInterwiki(String interwikiPrefix)
Specified by:
lookupInterwiki in interface org.jamwiki.DataHandler

lookupInterwikis

public List<org.jamwiki.model.Interwiki> lookupInterwikis()
Specified by:
lookupInterwikis in interface org.jamwiki.DataHandler

lookupNamespace

public org.jamwiki.model.Namespace lookupNamespace(String virtualWiki,
                                                   String namespaceString)
Specified by:
lookupNamespace in interface org.jamwiki.DataHandler

lookupNamespaceById

public org.jamwiki.model.Namespace lookupNamespaceById(int namespaceId)
Specified by:
lookupNamespaceById in interface org.jamwiki.DataHandler

lookupNamespaces

public List<org.jamwiki.model.Namespace> lookupNamespaces()
Specified by:
lookupNamespaces in interface org.jamwiki.DataHandler

lookupTopic

public org.jamwiki.model.Topic lookupTopic(String virtualWiki,
                                           String topicName,
                                           boolean deleteOK,
                                           Connection conn)
Specified by:
lookupTopic in interface org.jamwiki.DataHandler

lookupTopicById

public org.jamwiki.model.Topic lookupTopicById(String virtualWiki,
                                               int topicId)
Specified by:
lookupTopicById in interface org.jamwiki.DataHandler

lookupTopicByType

public Map<Integer,String> lookupTopicByType(String virtualWiki,
                                             org.jamwiki.model.TopicType topicType1,
                                             org.jamwiki.model.TopicType topicType2,
                                             Integer namespaceId,
                                             org.jamwiki.utils.Pagination pagination)
Specified by:
lookupTopicByType in interface org.jamwiki.DataHandler

lookupTopicCount

public int lookupTopicCount(String virtualWiki,
                            Integer namespaceId)
Specified by:
lookupTopicCount in interface org.jamwiki.DataHandler

lookupTopicLinkOrphans

public List<String> lookupTopicLinkOrphans(String virtualWiki,
                                           int namespaceId)
Specified by:
lookupTopicLinkOrphans in interface org.jamwiki.DataHandler

lookupTopicLinks

public List<String> lookupTopicLinks(String virtualWiki,
                                     String topicName)
Specified by:
lookupTopicLinks in interface org.jamwiki.DataHandler

lookupTopicName

public String lookupTopicName(String virtualWiki,
                              String topicName)
Specified by:
lookupTopicName in interface org.jamwiki.DataHandler

lookupTopicVersion

public org.jamwiki.model.TopicVersion lookupTopicVersion(int topicVersionId)
Specified by:
lookupTopicVersion in interface org.jamwiki.DataHandler

lookupTopicVersionNextId

public Integer lookupTopicVersionNextId(int topicVersionId)
Specified by:
lookupTopicVersionNextId in interface org.jamwiki.DataHandler

lookupVirtualWiki

public org.jamwiki.model.VirtualWiki lookupVirtualWiki(String virtualWikiName)
Specified by:
lookupVirtualWiki in interface org.jamwiki.DataHandler

lookupWikiFile

public org.jamwiki.model.WikiFile lookupWikiFile(String virtualWiki,
                                                 String topicName)
Specified by:
lookupWikiFile in interface org.jamwiki.DataHandler

lookupWikiFileCount

public int lookupWikiFileCount(String virtualWiki)
Specified by:
lookupWikiFileCount in interface org.jamwiki.DataHandler

lookupWikiGroup

public org.jamwiki.model.WikiGroup lookupWikiGroup(String groupName)
Specified by:
lookupWikiGroup in interface org.jamwiki.DataHandler

lookupWikiUser

public org.jamwiki.model.WikiUser lookupWikiUser(int userId)
Specified by:
lookupWikiUser in interface org.jamwiki.DataHandler

lookupWikiUser

public org.jamwiki.model.WikiUser lookupWikiUser(String username)
Specified by:
lookupWikiUser in interface org.jamwiki.DataHandler

lookupWikiUserCount

public int lookupWikiUserCount()
Specified by:
lookupWikiUserCount in interface org.jamwiki.DataHandler

lookupWikiUserEncryptedPassword

public String lookupWikiUserEncryptedPassword(String username)
Specified by:
lookupWikiUserEncryptedPassword in interface org.jamwiki.DataHandler

lookupWikiUsers

public List<String> lookupWikiUsers(org.jamwiki.utils.Pagination pagination)
Specified by:
lookupWikiUsers in interface org.jamwiki.DataHandler

moveTopic

public void moveTopic(org.jamwiki.model.Topic fromTopic,
                      org.jamwiki.model.TopicVersion fromVersion,
                      String destination)
Specified by:
moveTopic in interface org.jamwiki.DataHandler

orderTopicVersions

public void orderTopicVersions(org.jamwiki.model.Topic topic,
                               List<Integer> topicVersionIdList)
Specified by:
orderTopicVersions in interface org.jamwiki.DataHandler

reloadLogItems

public void reloadLogItems()
Specified by:
reloadLogItems in interface org.jamwiki.DataHandler

reloadRecentChanges

public void reloadRecentChanges()
Specified by:
reloadRecentChanges in interface org.jamwiki.DataHandler

setup

public void setup(Locale locale,
                  org.jamwiki.model.WikiUser user,
                  String username,
                  String encryptedPassword)
Specified by:
setup in interface org.jamwiki.DataHandler

setupSpecialPages

public void setupSpecialPages(Locale locale,
                              org.jamwiki.model.WikiUser user,
                              org.jamwiki.model.VirtualWiki virtualWiki)
Specified by:
setupSpecialPages in interface org.jamwiki.DataHandler

undeleteTopic

public void undeleteTopic(org.jamwiki.model.Topic topic,
                          org.jamwiki.model.TopicVersion topicVersion)
Specified by:
undeleteTopic in interface org.jamwiki.DataHandler

updateSpecialPage

public void updateSpecialPage(Locale locale,
                              String virtualWiki,
                              String topicName,
                              String userDisplay)
Specified by:
updateSpecialPage in interface org.jamwiki.DataHandler

writeConfiguration

public void writeConfiguration(Map<String,String> configuration)
Specified by:
writeConfiguration in interface org.jamwiki.DataHandler

writeFile

public void writeFile(org.jamwiki.model.WikiFile wikiFile,
                      org.jamwiki.model.WikiFileVersion wikiFileVersion)
Specified by:
writeFile in interface org.jamwiki.DataHandler

writeInterwiki

public void writeInterwiki(org.jamwiki.model.Interwiki interwiki)
Specified by:
writeInterwiki in interface org.jamwiki.DataHandler

writeNamespace

public void writeNamespace(org.jamwiki.model.Namespace mainNamespace,
                           org.jamwiki.model.Namespace commentsNamespace)
Specified by:
writeNamespace in interface org.jamwiki.DataHandler

writeNamespaceTranslations

public void writeNamespaceTranslations(List<org.jamwiki.model.Namespace> namespaces,
                                       String virtualWiki)
Specified by:
writeNamespaceTranslations in interface org.jamwiki.DataHandler

writeRole

public void writeRole(org.jamwiki.model.Role role,
                      boolean update)
Specified by:
writeRole in interface org.jamwiki.DataHandler

writeRoleMapGroup

public void writeRoleMapGroup(int groupId,
                              List<String> roles)
Specified by:
writeRoleMapGroup in interface org.jamwiki.DataHandler

writeRoleMapUser

public void writeRoleMapUser(String username,
                             List<String> roles)
Specified by:
writeRoleMapUser in interface org.jamwiki.DataHandler

writeTopic

public void writeTopic(org.jamwiki.model.Topic topic,
                       org.jamwiki.model.TopicVersion topicVersion,
                       LinkedHashMap<String,String> categories,
                       List<String> links)
Specified by:
writeTopic in interface org.jamwiki.DataHandler

writeTopicVersion

public void writeTopicVersion(org.jamwiki.model.Topic topic,
                              org.jamwiki.model.TopicVersion topicVersion)
Specified by:
writeTopicVersion in interface org.jamwiki.DataHandler

writeVirtualWiki

public void writeVirtualWiki(org.jamwiki.model.VirtualWiki virtualWiki)
Specified by:
writeVirtualWiki in interface org.jamwiki.DataHandler

writeWatchlistEntry

public void writeWatchlistEntry(org.jamwiki.model.Watchlist watchlist,
                                String virtualWiki,
                                String topicName,
                                int userId)
Specified by:
writeWatchlistEntry in interface org.jamwiki.DataHandler

writeWikiGroup

public void writeWikiGroup(org.jamwiki.model.WikiGroup group)
Specified by:
writeWikiGroup in interface org.jamwiki.DataHandler

writeWikiUser

public void writeWikiUser(org.jamwiki.model.WikiUser user,
                          String username,
                          String encryptedPassword)
Specified by:
writeWikiUser in interface org.jamwiki.DataHandler

Liferay 6.2-ce-ga5