Java Doc for HelpManagerImpl.java in  » ERP-CRM-Financial » sakai » org » theospi » portfolio » help » 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.theospi.portfolio.help 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.theospi.portfolio.help.HelpManagerImpl

HelpManagerImpl
public class HelpManagerImpl extends HibernateDaoSupport implements HelpManager,HelpFunctionConstants,DownloadableManager(Code)
This implementation uses the spring config to configure the system, and uses as a database for indexing resources, and configuring which contexts are associated with what resources. Lucene is also responsible for performing help searches.

Contexts are mapped to views in the spring config. To do this, define a bean of type, org.theospi.portfolio.help.model.HelpContextConfig. Create a map of contexts which are keyed by the view name. Contexts are just string ids. An example:

<bean id="presentationHelpContexts" class="org.theospi.portfolio.help.model.HelpContextConfig">
<constructor-arg>
<map>
<entry key="addPresentation1">
<list>
<value>Creating a Presentation</value>
</list>
</entry>
...

An explanation: what this means is that when a user navigates to the addPresentation1 view a context called "Creating a Presentation" is created. This context is just an identifier for possible actions the user might perform from this page.

To create resources define a bean of type, org.theospi.portfolio.help.model.Resource. The name is the display name that is shown on jsp pages. The location is the url of the resource. Configure all contexts associated with this resource. An example,

<bean id="pres_resource_2" class="org.theospi.portfolio.help.model.Resource">
<property name="name"><value>Creating a Presentation</value></property>
<property name="location"><value>${system.baseUrl}/help/creatingPresentations.html</value></property>
<property name="contexts">
<list>
<value>Creating a Presentation</value>
</list>
</property>
</bean>


If all this is configured correctly, when a user navigates to the addPresentation1 view a context of "Creating a Presentation" is created. If the user navigates to help, the user will be presented with links to all the resources associated with this context.


See Also:   org.theospi.portfolio.help.model.Resource
See Also:   org.theospi.portfolio.help.model.Source


Field Summary
final protected  Loglogger
    


Method Summary
public  GlossaryEntryaddEntry(GlossaryEntry newEntry)
    
protected  booleanentryExists(GlossaryEntry entry)
    
protected  booleanentryExists(GlossaryEntry entry, String worksite)
    
public  ListextractEntries(Document document)
     Given an xml document this reads out the glossary entries.
public  AgentManagergetAgentManager()
    
public  AuthorizationFacadegetAuthzManager()
    
public  ContentHostingServicegetContentHosting()
    
public  ListgetGlobalSiteTypes()
    
public  ListgetGlobalSites()
    
public  GlossarygetGlossary()
    
public  NodegetNode(Id artifactId)
    
public  SetgetSortedWorksiteTerms()
    
protected  IdgetToolId()
    
public  ToolManagergetToolManager()
    
public  WorksiteManagergetWorksiteManager()
    
public  CollectiongetWorksiteTerms()
    
public  CollectiongetWorksiteTerms(String workSite)
    
public  voidimportTermsResource(String resourceId, boolean replaceExisting)
     Given a resource id, this parses out the GlossaryEntries from its input stream. Once the enties are found, they are inserted into the users current worksite.
public  voidimportTermsResource(Id worksiteId, String resourceId, boolean replaceExisting)
     Given a resource id, this parses out the GlossaryEntries from its input stream. Once the enties are found, they are inserted into the given worksite.
public  voidimportTermsStream(Id worksiteId, InputStream inStream, boolean replaceExisting)
     Given an xml File stream, this parses out the GlossaryEntries from the input stream. Once the enties are found, they are inserted into the given worksite.
public  booleanisGlobal()
    
public  booleanisMaintainer()
    
public  booleanisPhraseStart(String phraseFragment)
    
public  StringpackageForDownload(Map params, OutputStream out)
    
public  voidpackageGlossaryForExport(Id worksiteId, OutputStream os)
    
public  voidputWorksiteTermsIntoZip(Id worksiteId, ZipOutputStream zout)
    
public  voidremoveEntry(GlossaryEntry entry)
    
public  voidremoveFromSession(Object obj)
    
public  GlossaryEntrysearchGlossary(String keyword)
    
public  voidsetAgentManager(AgentManager agentManager)
    
public  voidsetAuthzManager(AuthorizationFacade authzManager)
    
public  voidsetContentHosting(ContentHostingService contentHosting)
    
public  voidsetGlobalSiteTypes(List globalSiteTypes)
    
public  voidsetGlobalSites(List globalSites)
    
public  voidsetGlossary(Glossary glossary)
    
public  voidsetIdManager(IdManager idManager)
    
public  voidsetToolManager(ToolManager toolManager)
    
public  voidsetWorksiteManager(WorksiteManager worksiteManager)
    
protected  voidstoreFileInZip(ZipOutputStream zos, Reader in, String entryName)
    
public  voidupdateEntry(GlossaryEntry entry)
    

Field Detail
logger
final protected Log logger(Code)





Method Detail
addEntry
public GlossaryEntry addEntry(GlossaryEntry newEntry)(Code)



entryExists
protected boolean entryExists(GlossaryEntry entry)(Code)



entryExists
protected boolean entryExists(GlossaryEntry entry, String worksite)(Code)



extractEntries
public List extractEntries(Document document) throws UnsupportedFileTypeException(Code)
Given an xml document this reads out the glossary entries.
Parameters:
  document - XML Dom Document List of GlossaryEntry



getAgentManager
public AgentManager getAgentManager()(Code)



getAuthzManager
public AuthorizationFacade getAuthzManager()(Code)



getContentHosting
public ContentHostingService getContentHosting()(Code)



getGlobalSiteTypes
public List getGlobalSiteTypes()(Code)



getGlobalSites
public List getGlobalSites()(Code)



getGlossary
public Glossary getGlossary()(Code)



getNode
public Node getNode(Id artifactId)(Code)



getSortedWorksiteTerms
public Set getSortedWorksiteTerms()(Code)



getToolId
protected Id getToolId()(Code)



getToolManager
public ToolManager getToolManager()(Code)



getWorksiteManager
public WorksiteManager getWorksiteManager()(Code)



getWorksiteTerms
public Collection getWorksiteTerms()(Code)



getWorksiteTerms
public Collection getWorksiteTerms(String workSite)(Code)



importTermsResource
public void importTermsResource(String resourceId, boolean replaceExisting) throws IOException, UnsupportedFileTypeException, JDOMException(Code)
Given a resource id, this parses out the GlossaryEntries from its input stream. Once the enties are found, they are inserted into the users current worksite. If a term exists in the worksite, then execute based on the last parameter.
Parameters:
  worksiteId - Id
Parameters:
  resourceId - an String
Parameters:
  replaceExisting - boolean



importTermsResource
public void importTermsResource(Id worksiteId, String resourceId, boolean replaceExisting) throws IOException, UnsupportedFileTypeException, JDOMException(Code)
Given a resource id, this parses out the GlossaryEntries from its input stream. Once the enties are found, they are inserted into the given worksite. If a term exists in the worksite, then execute based on the last parameter.
Parameters:
  worksiteId - Id
Parameters:
  resourceId - an String
Parameters:
  replaceExisting - boolean



importTermsStream
public void importTermsStream(Id worksiteId, InputStream inStream, boolean replaceExisting) throws UnsupportedFileTypeException, JDOMException, IOException(Code)
Given an xml File stream, this parses out the GlossaryEntries from the input stream. Once the enties are found, they are inserted into the given worksite. If a term exists in the worksite, then execute based on the last parameter.
Parameters:
  worksiteId - Id
Parameters:
  inStream - an xml InputStream
Parameters:
  replaceExisting - boolean



isGlobal
public boolean isGlobal()(Code)



isMaintainer
public boolean isMaintainer()(Code)



isPhraseStart
public boolean isPhraseStart(String phraseFragment)(Code)



packageForDownload
public String packageForDownload(Map params, OutputStream out) throws IOException(Code)



packageGlossaryForExport
public void packageGlossaryForExport(Id worksiteId, OutputStream os) throws IOException(Code)



putWorksiteTermsIntoZip
public void putWorksiteTermsIntoZip(Id worksiteId, ZipOutputStream zout) throws IOException(Code)



removeEntry
public void removeEntry(GlossaryEntry entry)(Code)



removeFromSession
public void removeFromSession(Object obj)(Code)



searchGlossary
public GlossaryEntry searchGlossary(String keyword)(Code)



setAgentManager
public void setAgentManager(AgentManager agentManager)(Code)



setAuthzManager
public void setAuthzManager(AuthorizationFacade authzManager)(Code)



setContentHosting
public void setContentHosting(ContentHostingService contentHosting)(Code)



setGlobalSiteTypes
public void setGlobalSiteTypes(List globalSiteTypes)(Code)



setGlobalSites
public void setGlobalSites(List globalSites)(Code)



setGlossary
public void setGlossary(Glossary glossary)(Code)



setIdManager
public void setIdManager(IdManager idManager)(Code)



setToolManager
public void setToolManager(ToolManager toolManager)(Code)



setWorksiteManager
public void setWorksiteManager(WorksiteManager worksiteManager)(Code)



storeFileInZip
protected void storeFileInZip(ZipOutputStream zos, Reader in, String entryName) throws IOException(Code)



updateEntry
public void updateEntry(GlossaryEntry entry)(Code)



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