Java Doc for ScarabLink.java in  » Issue-Tracking » scarab-0.21 » org » tigris » scarab » util » 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 » Issue Tracking » scarab 0.21 » org.tigris.scarab.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.tigris.scarab.util.ScarabLink

All known Subclasses:   org.tigris.scarab.test.mocks.MockScarabLink,  org.tigris.scarab.screens.ModuleSwitchingLink,
ScarabLink
public class ScarabLink extends TemplateLink implements InitableRecyclable,SkipFiltering(Code)
This class adds a ModuleManager.CURRENT_PROJECT to every link. This class is added into the context to replace the $link that Turbine adds.
author:
   Jon S. Stevens
author:
   John McNally
author:
   Maarten Coene
version:
   $Id: ScarabLink.java 9476 2005-03-16 22:56:11Z dabbous $



Constructor Summary
public  ScarabLink()
     Constructor.

Method Summary
public  ScarabLinkaddPathInfo(String key, ParameterParser pp)
    
public  DynamicURIaddPathInfo(String name, boolean value)
     Adds a name=value pair to the path_info string.
public  ScarabLinkaddPathInfo(ValueParser pp)
    
public  voiddispose()
     Disposes the object by setting its disposed flag.
public  StringgetCurrentView()
    
public  ScarabLinkgetIssueIdAbsoluteLink(Issue issue)
     Returns a short link for viewing a single issue that will not include session info and will be absolute.
public  ScarabLinkgetIssueIdLink(Issue issue)
    
protected  RunDatagetRunData()
     Give subclasses access to the RunData, so they do not have to reimplement the pooling code, just to get at it.
public  StringgetScriptName()
     Gets the server scriptName (/s).
public  StringgetServerName()
     Gets the server name.
public  intgetServerPort()
     Gets the server port.
public  StringgetServerScheme()
     Gets the server scheme (HTTP or HTTPS).
public  voidinit(Object data)
     This will initialise a TemplateLink object that was constructed with the default constructor (ApplicationTool method).
public  booleanisAllowed()
     Check if the user has the permission to see the link.
public  booleanisAllowed(String t)
     Check if the user has the permission to see the template t.
public  booleanisDisposed()
     Checks whether the object is disposed.
public  ScarabLinkomitModule()
     Causes the link to not include the module id.
public  ScarabLinkoverrideSecurity()
     Shuts off permission checking.
public  voidrecycle()
     Recycles the object by removing its disposed flag.
public  voidrefresh()
    
public  ScarabLinksetAlternateText(String alternateText)
     Text that will be returned from toString if the user did not have permission to see the link.
public  ScarabLinksetAttributeText(String attributeText)
     Allows for setting attributes such as class on an anchor tag label.
public  ScarabLinksetLabel(String label)
     Setting the label will cause the link tool to print out the the text for the anchor tag.
public  TemplateLinksetPage(String t)
     Sets the template variable used by the Template Service.
Parameters:
  t - A String with the template name.
protected  TemplateLinksetPage(String t, String moduleid)
     Sets the template variable used by the Template Service.
public  ScarabLinksetPathInfo(String key, String value)
    
public  StringtoString()
     Prints out the url and resets the relative flag to true.


Constructor Detail
ScarabLink
public ScarabLink()(Code)
Constructor.




Method Detail
addPathInfo
public ScarabLink addPathInfo(String key, ParameterParser pp)(Code)



addPathInfo
public DynamicURI addPathInfo(String name, boolean value)(Code)
Adds a name=value pair to the path_info string. This method is missing in DynamicURI, but should be there.
Parameters:
  name - A String with the name to add.
Parameters:
  value - A double with the value to add.



addPathInfo
public ScarabLink addPathInfo(ValueParser pp)(Code)
Adds all the parameters in a ValueParser to the pathinfo except the action, screen, or template keys as defined by Turbine



dispose
public void dispose()(Code)
Disposes the object by setting its disposed flag.



getCurrentView
public String getCurrentView()(Code)
Returns the name of the template that is being being processed



getIssueIdAbsoluteLink
public ScarabLink getIssueIdAbsoluteLink(Issue issue) throws Exception(Code)
Returns a short link for viewing a single issue that will not include session info and will be absolute. It is meant to be suitable for embedding in an email that points to the issue.
Parameters:
  issue - an Issue value a String value
exception:
  Exception - if an error occurs



getIssueIdLink
public ScarabLink getIssueIdLink(Issue issue) throws Exception(Code)
Returns a short link for viewing a single issue
Parameters:
  issue - an Issue value a String value
exception:
  Exception - if an error occurs



getRunData
protected RunData getRunData()(Code)
Give subclasses access to the RunData, so they do not have to reimplement the pooling code, just to get at it.



getScriptName
public String getScriptName()(Code)
Gets the server scriptName (/s). A String with the server scriptName.



getServerName
public String getServerName()(Code)
Gets the server name. A String with the server name.



getServerPort
public int getServerPort()(Code)
Gets the server port. A String with the server port.



getServerScheme
public String getServerScheme()(Code)
Gets the server scheme (HTTP or HTTPS). A String with the server scheme.



init
public void init(Object data)(Code)
This will initialise a TemplateLink object that was constructed with the default constructor (ApplicationTool method).
Parameters:
  data - assumed to be a RunData object



isAllowed
public boolean isAllowed()(Code)
Check if the user has the permission to see the link. If the user has the permission(s), true is returned. if the user does NOT have the proper permissions, this method has the side effect of reseting the link, so that it is ready for use in building the next link.



isAllowed
public boolean isAllowed(String t)(Code)
Check if the user has the permission to see the template t. If the user has the permission(s), true is returned. If template t is null, this method returns false.



isDisposed
public boolean isDisposed()(Code)
Checks whether the object is disposed. true, if the object is disposed.



omitModule
public ScarabLink omitModule()(Code)
Causes the link to not include the module id. Useful for templates where a module is not required or desired. a ScarabLink value



overrideSecurity
public ScarabLink overrideSecurity()(Code)
Shuts off permission checking. Use case: a user saves a query with module scope, so an email is sent to the project owner to approve it. The email is sent from the user who does not have permission to use the Approval.vm template. But it is known that the recipient(s) does, because that is how they are chosen to receive the email. We probably need a different link tool for emails that is not request based. but for now use this sparingly and with forethought. this



recycle
public void recycle()(Code)
Recycles the object by removing its disposed flag.



refresh
public void refresh()(Code)



setAlternateText
public ScarabLink setAlternateText(String alternateText)(Code)
Text that will be returned from toString if the user did not have permission to see the link. The default is the empty string
Parameters:
  alternateText - a String value a ScarabLink value



setAttributeText
public ScarabLink setAttributeText(String attributeText)(Code)
Allows for setting attributes such as class on an anchor tag label. Note the complete anchor tag is only returned from toString, if the lable has been set so this setter will have no effect unless setLabel is called.
Parameters:
  attributeText - a String value a ScarabLink value



setLabel
public ScarabLink setLabel(String label)(Code)
Setting the label will cause the link tool to print out the the text for the anchor tag. This is useful in that if the link should not be active for security reasons it can be completely eliminated.
Parameters:
  label - a String value a ScarabLink value



setPage
public TemplateLink setPage(String t)(Code)
Sets the template variable used by the Template Service.
Parameters:
  t - A String with the template name. A TemplateLink.



setPage
protected TemplateLink setPage(String t, String moduleid)(Code)
Sets the template variable used by the Template Service. The module id of the new selected module is given.
Parameters:
  t - A String with the template name.
Parameters:
  moduleid - The id of the new selected module. A TemplateLink.



setPathInfo
public ScarabLink setPathInfo(String key, String value)(Code)



toString
public String toString()(Code)
Prints out the url and resets the relative flag to true. a String url



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