Java Doc for BaseConfigurationService.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » citation » impl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » sakai » org.sakaiproject.citation.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.sakaiproject.citation.impl.BaseConfigurationService

BaseConfigurationService
public class BaseConfigurationService implements ConfigurationService(Code)


Field Summary
protected  booleanm_allowSiteBySiteOverride
    
protected  booleanm_citationsEnabledByDefault
    
protected  Stringm_databaseXml
    
protected  Stringm_googleBaseUrl
    
protected  Stringm_googleSearchEnabled
    
protected  Stringm_librarySearchEnabled
    
protected  Stringm_metasearchBaseUrl
    
protected  Stringm_metasearchPassword
    
protected  Stringm_metasearchUsername
    
protected  Stringm_openUrlLabel
    
protected  Stringm_openUrlResolverAddress
    
protected  Stringm_osidConfig
    
protected  Stringm_osidImpl
    
protected  Stringm_sakaiServerKey
    
protected  ServerConfigurationServicem_serverConfigurationService
    
protected  SessionManagerm_sessionManager
    
protected  Stringm_siteConfigXml
    


Method Summary
public  voiddestroy()
    
protected  StringgetConfigurationFromXml(String configurationXml, String parameter)
    
public synchronized  SiteOsidConfigurationgetConfigurationHandler(String osidConfigHandler)
    
protected  StringgetConfigurationParameter(String parameter)
    
public  StringgetConfigurationXml()
    
public  StringgetDatabaseHierarchyXml()
    
public  StringgetDatabaseXml()
    
public  StringgetGoogleBaseUrl()
    
public  StringgetGoogleSearchEnabled()
    
public  List<String>getGroupIds()
    
public  StringgetLibrarySearchEnabled()
    
public  StringgetMetasearchBaseUrl()
    
public  StringgetMetasearchPassword()
    
public  StringgetMetasearchUsername()
    
public  StringgetOpenUrlLabel()
    
public  StringgetOpenUrlResolverAddress()
    
public  StringgetOsidConfig()
    
public  StringgetOsidImpl()
    
public  StringgetSakaiServerKey()
    
public  ServerConfigurationServicegetServerConfigurationService()
    
public  SessionManagergetSessionManager()
    
public  StringgetSiteConfigGoogleBaseUrl()
    
public  StringgetSiteConfigMetasearchBaseUrl()
    
public  StringgetSiteConfigMetasearchPassword()
    
public  StringgetSiteConfigMetasearchUsername()
    
public  StringgetSiteConfigOpenUrlLabel()
    
public  StringgetSiteConfigOpenUrlResolverAddress()
    
public  StringgetSiteConfigOsidPackageName()
    
public  StringgetSiteConfigSakaiServerKey()
    
public  StringgetSiteConfigXml()
    
protected  SiteOsidConfigurationgetSiteOsidConfiguration()
    
protected  StringgetText(Document root, String elementName)
    
protected  StringgetText(Element root, String elementName)
    
protected  DocumentBuildergetXmlDocumentBuilder()
     Get a DOM Document builder.
public  voidinit()
    
public  booleanisAllowSiteBySiteOverride()
    
public  booleanisCitationsEnabledByDefault()
    
public  booleanisConfigurationXmlAvailable()
    
public  booleanisDatabaseHierarchyXmlAvailable()
    
public  booleanisGoogleScholarEnabled()
    
public  booleanisLibrarySearchEnabled()
    
protected  StringnormalizeText(String original, String update)
    
protected  DocumentparseXmlFromUri(String filename)
     Parse an XML file into a Document.
public  voidsetAllowSiteBySiteOverride(boolean allowSiteBySiteOverride)
    
public  voidsetCitationsEnabledByDefault(boolean citationsEnabledByDefault)
    
public  voidsetDatabaseXml(String databaseXml)
    
public  voidsetGoogleBaseUrl(String googleBaseUrl)
    
public  voidsetGoogleScholarEnabled(boolean state)
    
public  voidsetGoogleSearchEnabled(String googleSearchEnabled)
    
public  voidsetLibrarySearchEnabled(boolean state)
    
public  voidsetLibrarySearchEnabled(String librarySearchEnabled)
    
public  voidsetMetasearchBaseUrl(String baseUrl)
    
public  voidsetMetasearchPassword(String password)
    
public  voidsetMetasearchUsername(String username)
    
public  voidsetOpenUrlLabel(String openUrlLabel)
    
public  voidsetOpenUrlResolverAddress(String openUrlResolverAddress)
    
public  voidsetOsidConfig(String osidConfig)
    
public  voidsetOsidImpl(String osidImpl)
    
public  voidsetSakaiServerKey(String sakaiId)
    
public  voidsetServerConfigurationService(ServerConfigurationService serverConfigurationService)
    
public  voidsetSessionManager(SessionManager sessionManager)
    
public  voidsetSiteConfigXml(String siteConfigXml)
    

Field Detail
m_allowSiteBySiteOverride
protected boolean m_allowSiteBySiteOverride(Code)



m_citationsEnabledByDefault
protected boolean m_citationsEnabledByDefault(Code)



m_databaseXml
protected String m_databaseXml(Code)



m_googleBaseUrl
protected String m_googleBaseUrl(Code)



m_googleSearchEnabled
protected String m_googleSearchEnabled(Code)



m_librarySearchEnabled
protected String m_librarySearchEnabled(Code)



m_metasearchBaseUrl
protected String m_metasearchBaseUrl(Code)



m_metasearchPassword
protected String m_metasearchPassword(Code)



m_metasearchUsername
protected String m_metasearchUsername(Code)



m_openUrlLabel
protected String m_openUrlLabel(Code)



m_openUrlResolverAddress
protected String m_openUrlResolverAddress(Code)



m_osidConfig
protected String m_osidConfig(Code)



m_osidImpl
protected String m_osidImpl(Code)



m_sakaiServerKey
protected String m_sakaiServerKey(Code)



m_serverConfigurationService
protected ServerConfigurationService m_serverConfigurationService(Code)



m_sessionManager
protected SessionManager m_sessionManager(Code)



m_siteConfigXml
protected String m_siteConfigXml(Code)





Method Detail
destroy
public void destroy()(Code)



getConfigurationFromXml
protected String getConfigurationFromXml(String configurationXml, String parameter)(Code)
Fetch a configuration parameter from the site-selected configuration file



getConfigurationHandler
public synchronized SiteOsidConfiguration getConfigurationHandler(String osidConfigHandler) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException(Code)
Return a SiteOsidConfiguration instance A SiteOsidConfiguration



getConfigurationParameter
protected String getConfigurationParameter(String parameter)(Code)
Get a named value from the site-specific XML configuration file
Parameters:
  parameter - Configuration parameter to lookup Parameter value (null if none [or error])



getConfigurationXml
public String getConfigurationXml() throws OsidConfigurationException(Code)
Fetch the appropriate XML configuration document for this user Configuration XML (eg file:///tomcat-home/sakai/config.xml)



getDatabaseHierarchyXml
public String getDatabaseHierarchyXml() throws OsidConfigurationException(Code)
Fetch the appropriate XML database hierarchy document for this user Hierarchy XML (eg file:///tomcat-home/sakai/database.xml)



getDatabaseXml
public String getDatabaseXml()(Code)
the database hierarchy XML filename/URI



getGoogleBaseUrl
public String getGoogleBaseUrl()(Code)
the Google base URL



getGoogleSearchEnabled
public String getGoogleSearchEnabled()(Code)
Google search support status



getGroupIds
public List<String> getGroupIds() throws OsidConfigurationException(Code)
Fetch this user's group affiliations A list of group IDs (empty if no IDs exist)



getLibrarySearchEnabled
public String getLibrarySearchEnabled()(Code)
library search support status



getMetasearchBaseUrl
public String getMetasearchBaseUrl()(Code)
the m_metasearchBaseUrl



getMetasearchPassword
public String getMetasearchPassword()(Code)
the m_metasearchPassword



getMetasearchUsername
public String getMetasearchUsername()(Code)
the m_metasearchUsername



getOpenUrlLabel
public String getOpenUrlLabel()(Code)
the OpenURL label



getOpenUrlResolverAddress
public String getOpenUrlResolverAddress()(Code)
the OpenURL resolver address



getOsidConfig
public String getOsidConfig()(Code)
the site specific "OSID configuration" package name



getOsidImpl
public String getOsidImpl()(Code)
the OSID package name



getSakaiServerKey
public String getSakaiServerKey()(Code)
the sakaiServerKey



getServerConfigurationService
public ServerConfigurationService getServerConfigurationService()(Code)
the serverConfigurationService



getSessionManager
public SessionManager getSessionManager()(Code)
the SessionManager



getSiteConfigGoogleBaseUrl
public String getSiteConfigGoogleBaseUrl()(Code)
Fetch the Google base-URL the URL



getSiteConfigMetasearchBaseUrl
public String getSiteConfigMetasearchBaseUrl()(Code)
Fetch the meta-search base-URL the username



getSiteConfigMetasearchPassword
public String getSiteConfigMetasearchPassword()(Code)
Fetch the meta-search password the password



getSiteConfigMetasearchUsername
public String getSiteConfigMetasearchUsername()(Code)
Fetch the meta-search username the username



getSiteConfigOpenUrlLabel
public String getSiteConfigOpenUrlLabel()(Code)
Fetch the OpenURL label the label text



getSiteConfigOpenUrlResolverAddress
public String getSiteConfigOpenUrlResolverAddress()(Code)
Fetch the OpenURL resolver address the resolver address (domain name ir IP)



getSiteConfigOsidPackageName
public String getSiteConfigOsidPackageName()(Code)
Fetch the site specific Repository OSID package name Repository Package (eg org.sakaibrary.osid.repository.xserver)



getSiteConfigSakaiServerKey
public String getSiteConfigSakaiServerKey()(Code)
Fetch the Sakai server key the key text



getSiteConfigXml
public String getSiteConfigXml()(Code)
the configuration XML filename/URI



getSiteOsidConfiguration
protected SiteOsidConfiguration getSiteOsidConfiguration()(Code)
Load and initialize the site-specific OSID configuration code The initialized, site-specific OSID configurationobject (null on error)



getText
protected String getText(Document root, String elementName)(Code)
Get the text associated with this element
Parameters:
  root - The document containing the text element Text (trimmed of leading/trailing whitespace, null if none)



getText
protected String getText(Element root, String elementName)(Code)
Get the text associated with this element
Parameters:
  root - The root node of the text element Text (trimmed of leading/trailing whitespace, null if none)



getXmlDocumentBuilder
protected DocumentBuilder getXmlDocumentBuilder()(Code)
Get a DOM Document builder. The DocumentBuilder
throws:
  DomException -



init
public void init()(Code)



isAllowSiteBySiteOverride
public boolean isAllowSiteBySiteOverride()(Code)
Is site by site Citations Helper enabled? true if so



isCitationsEnabledByDefault
public boolean isCitationsEnabledByDefault()(Code)
Is Citations Helper by default enabled? true if so



isConfigurationXmlAvailable
public boolean isConfigurationXmlAvailable()(Code)
Is the configuration XML file provided and readable true If the XML file is provided and readable, false otherwise



isDatabaseHierarchyXmlAvailable
public boolean isDatabaseHierarchyXmlAvailable()(Code)
Is the database hierarchy XML file provided and readable true If the XML file is provided and readable, false otherwise



isGoogleScholarEnabled
public boolean isGoogleScholarEnabled()(Code)
Is Google search enabled? (no support for site spefic XML configuration) true if so



isLibrarySearchEnabled
public boolean isLibrarySearchEnabled()(Code)
Is library search enabled? (no support for site spefic XML configuration) true if so



normalizeText
protected String normalizeText(String original, String update)(Code)
"Normalize" XML text node content to create a simple string
Parameters:
  original - Original text
Parameters:
  update - Text to add to the original string (a space separates the two) Concatenated contents (trimmed)



parseXmlFromUri
protected Document parseXmlFromUri(String filename)(Code)
Parse an XML file into a Document.
Parameters:
  filename - The filename (or URI) to parse DOM Document (null if parse fails)



setAllowSiteBySiteOverride
public void setAllowSiteBySiteOverride(boolean allowSiteBySiteOverride)(Code)
Enable/disable site by site Citations Helper override
Parameters:
  state - true to enable site by site Citations Helper



setCitationsEnabledByDefault
public void setCitationsEnabledByDefault(boolean citationsEnabledByDefault)(Code)
Enable/disable Citations Helper by default
Parameters:
  state - true to set default 'On'



setDatabaseXml
public void setDatabaseXml(String databaseXml)(Code)

Parameters:
  set - the database hierarchy XML filename/URI



setGoogleBaseUrl
public void setGoogleBaseUrl(String googleBaseUrl)(Code)

Parameters:
  googleBaseUrl - the base URL to set



setGoogleScholarEnabled
public void setGoogleScholarEnabled(boolean state)(Code)
Enable/disable Google support (no support for site spefic XML configuration)
Parameters:
  state - true to enable Google support



setGoogleSearchEnabled
public void setGoogleSearchEnabled(String googleSearchEnabled)(Code)

Parameters:
  googleSearchEnabled - ("true" or "false")



setLibrarySearchEnabled
public void setLibrarySearchEnabled(boolean state)(Code)
Enable/disable library search support (no support for site spefic XML configuration)
Parameters:
  state - true to enable support



setLibrarySearchEnabled
public void setLibrarySearchEnabled(String librarySearchEnabled)(Code)

Parameters:
  librarySearchEnabled - ("true" or "false")



setMetasearchBaseUrl
public void setMetasearchBaseUrl(String baseUrl)(Code)

Parameters:
  baseUrl - the m_metasearchBaseUrl to set



setMetasearchPassword
public void setMetasearchPassword(String password)(Code)

Parameters:
  password - the m_metasearchPassword to set



setMetasearchUsername
public void setMetasearchUsername(String username)(Code)

Parameters:
  username - the m_metasearchUsername to set



setOpenUrlLabel
public void setOpenUrlLabel(String openUrlLabel)(Code)

Parameters:
  set - the OpenURL label



setOpenUrlResolverAddress
public void setOpenUrlResolverAddress(String openUrlResolverAddress)(Code)

Parameters:
  set - the OpenURL resolver address



setOsidConfig
public void setOsidConfig(String osidConfig)(Code)

Parameters:
  osidConfig - the site specific "OSID configuration" package name



setOsidImpl
public void setOsidImpl(String osidImpl)(Code)

Parameters:
  osidImpl - the OSID package name



setSakaiServerKey
public void setSakaiServerKey(String sakaiId)(Code)

Parameters:
  sakaiServerKey - the sakaiServerKey to set



setServerConfigurationService
public void setServerConfigurationService(ServerConfigurationService serverConfigurationService)(Code)

Parameters:
  serverConfigurationService - the serverConfigurationService to set



setSessionManager
public void setSessionManager(SessionManager sessionManager)(Code)

Parameters:
  sessionManager - the SessionManager to save



setSiteConfigXml
public void setSiteConfigXml(String siteConfigXml)(Code)

Parameters:
  set - the configuration XML filename/URI



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.