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


java.lang.Object
   org.tigris.scarab.tools.ScarabGlobalTool

ScarabGlobalTool
public class ScarabGlobalTool implements ApplicationTool(Code)
This scope is an object that is made available as a global object within the system. This object must be thread safe as multiple requests may access it at the same time. The object is made available in the context as: $scarabG

The design goals of the Scarab*API is to enable a pull based methodology to be implemented.
author:
   Jon S. Stevens
author:
   Douglas B. Robertson
version:
   $Id: ScarabGlobalTool.java 10198 2006-07-03 23:33:30Z dabbous $




Constructor Summary
public  ScarabGlobalTool()
    

Method Summary
public  DateaddApproxOneHour(Date date)
    
public  StringgetActivityTypeLabelResource(String code)
     Remap Activity code to resource id.
public  ListgetAllAttributes()
     Gets a List of all of the data (non-user) Attribute objects.
public  ListgetAllAttributes(String attributeType, boolean includeDeleted, String sortColumn, String sortPolarity)
     Gets a List of all of the data (non-user) Attribute objects.
public  ListgetAllAttributes(String sortColumn, String sortPolarity)
     Gets a List of all of the data (non-user) Attribute objects.
public  ListgetAllIssueTypes()
    
public  ListgetAllIssueTypes(boolean deleted)
    
public  ListgetAllIssueTypes(boolean deleted, String sortColumn, String sortPolarity)
     Gets a List of all of the Attribute objects.
public  ListgetAllNotificationTypeCodes()
     Get the list of available activityType codes.
public  ListgetAllPermissions()
     Returns a list of all the permissions in use by scarab.
public  ListgetAttributes(String attributeType)
     Gets a List of all of the Attribute objects by type.
public  ListgetAttributes(String attributeType, boolean includeDeleted, String sortColumn, String sortPolarity)
     Gets a List of all of user Attribute objects.
public  StringgetBuildVersion()
     returns Scarab's build version.
public  intgetCALENDAR_DAY_FIELD()
    
public  intgetCALENDAR_HOUR_FIELD()
    
public  intgetCALENDAR_MONTH_FIELD()
    
public  intgetCALENDAR_YEAR_FIELD()
    
public  SkipFilteringgetCommentText(String text, ScarabLink link, Module currentModule)
    
public  FieldMethodizergetConstant()
     holds the Scarab constants.
public  ListgetCustomization(Object moduleId, Object userId, Object activityCode)
    
public  intgetInt(Object obj)
     Returns an int representation of the given Object whose toString method should be a valid integer.
public  MITListManagergetMITListManager()
    
public static synchronized  intgetModuleCodeLength()
    
public static  intgetModuleCodeLengthPadded()
    
public  ListgetModulesFromIssueList(List issues)
     Create a list of Modules from the given list of issues.
public static  NotificationFiltergetNotificationFilter(Integer moduleId, Integer userId, String activityCode)
    
public  DategetNow()
     Get a new Date object initialized to the current time.
public  GlobalParameterManagergetParameter()
    
public  FieldMethodizergetParameterName()
     holds the names of parameters that are configurable through the ui.
public  FieldMethodizergetPermission()
     holds the Scarab permission constants.
public  intgetPublicModulesDisplayCount()
     Provides the maximum number of public modules to be shown on the login screen.
public  ListgetSearchUsers(String searchField, String searchCriteria)
     Returns a List of users based on the given search criteria.
public  ListgetSearchUsers(String searchField, String searchCriteria, String orderByField, String ascOrDesc)
     Describe getSearchUsers method here.
public  StringgetSiteLogo()
     Provides the site logo for the top banner.
public  StringgetSiteName()
     Provides the site name for the top banner.
public  org.apache.commons.configuration.ConfigurationgetTurbineConfiguration()
    
public  ListgetUserAttributes()
     Gets a List of all of user Attributes.
public  ListgetUserAttributes(String sortColumn, String sortPolarity)
     Gets a List of all of the Attribute objects.
public  ListgetUserAttributes(boolean includeDeleted, String sortColumn, String sortPolarity)
     Gets a List of all of the Attribute objects.
public static  WorkflowgetWorkflow()
     Makes the workflow tool accessible.
public  voidinit(Object data)
    
public  booleanisString(Object obj)
    
public  ListlinkIssueIds(Module module, String text)
    
public  voidlog(String s)
     Logs a message at the debug level.
public  voidlog(String category, String s)
     Logs a message at the debug level.
public  voidprint(String s)
     Prints a message to standard out.
public  voidrefresh()
    
public  Stringreplace(String text, String a, String b)
    
public  Object[]reverse(Object[] a)
     Creates a new array with elements reversed from the given array.
public  Listreverse(List a)
     Creates a new List with elements reversed from the given List.
public  intsizeOfArray(Object[] obj)
     Velocity has no way of getting the size of an Object[] easily.
public  Listsubset(List a, Integer fromIndex, Integer toIndex)
     Creates a view of the portion of the given List between the specified fromIndex, inclusive, and toIndex, exclusive.
public  Object[]subset(Object[] a, Integer fromIndex, Integer toIndex)
    
public  booleantemplateExists(String template)
     Delegates to Velocity's templateExists() method.
public  SkipFilteringtextToHTML(String text, ScarabLink link, Module currentModule)
    

Converts a text string to HTML by:

  • replacing reserved characters with equivalent HTML entities
  • adding hyperlinks for URLs
  • adding hyperlinks for issue references

Parameters:
  text - The text string to convert.
Parameters:
  link -
Parameters:
  currentModule - The active module.
public  Enumerationtokenize(String text, String delimiters)
     Breaks text into a list of Strings.


Constructor Detail
ScarabGlobalTool
public ScarabGlobalTool()(Code)
Constructor does initialization stuff




Method Detail
addApproxOneHour
public Date addApproxOneHour(Date date)(Code)



getActivityTypeLabelResource
public String getActivityTypeLabelResource(String code)(Code)
Remap Activity code to resource id. Necessary due to incompatible name conventions.
Parameters:
  code -



getAllAttributes
public List getAllAttributes() throws Exception(Code)
Gets a List of all of the data (non-user) Attribute objects.



getAllAttributes
public List getAllAttributes(String attributeType, boolean includeDeleted, String sortColumn, String sortPolarity) throws Exception(Code)
Gets a List of all of the data (non-user) Attribute objects. Passes in sort criteria.



getAllAttributes
public List getAllAttributes(String sortColumn, String sortPolarity) throws Exception(Code)
Gets a List of all of the data (non-user) Attribute objects. Passes in sort criteria.



getAllIssueTypes
public List getAllIssueTypes() throws Exception(Code)



getAllIssueTypes
public List getAllIssueTypes(boolean deleted) throws Exception(Code)
gets a list of all Issue Types



getAllIssueTypes
public List getAllIssueTypes(boolean deleted, String sortColumn, String sortPolarity) throws Exception(Code)
Gets a List of all of the Attribute objects.



getAllNotificationTypeCodes
public List getAllNotificationTypeCodes()(Code)
Get the list of available activityType codes.



getAllPermissions
public List getAllPermissions()(Code)
Returns a list of all the permissions in use by scarab. a List of Strings



getAttributes
public List getAttributes(String attributeType) throws Exception(Code)
Gets a List of all of the Attribute objects by type.



getAttributes
public List getAttributes(String attributeType, boolean includeDeleted, String sortColumn, String sortPolarity) throws Exception(Code)
Gets a List of all of user Attribute objects.



getBuildVersion
public String getBuildVersion()(Code)
returns Scarab's build version.



getCALENDAR_DAY_FIELD
public int getCALENDAR_DAY_FIELD()(Code)



getCALENDAR_HOUR_FIELD
public int getCALENDAR_HOUR_FIELD()(Code)



getCALENDAR_MONTH_FIELD
public int getCALENDAR_MONTH_FIELD()(Code)



getCALENDAR_YEAR_FIELD
public int getCALENDAR_YEAR_FIELD()(Code)



getCommentText
public SkipFiltering getCommentText(String text, ScarabLink link, Module currentModule)(Code)



getConstant
public FieldMethodizer getConstant()(Code)
holds the Scarab constants. it will be available to the template system as $scarabG.Constant.CONSTANT_NAME.



getCustomization
public List getCustomization(Object moduleId, Object userId, Object activityCode) throws TorqueException(Code)
Return the list of available NotificationFilters for the given user in the given module
Parameters:
  moduleId -
Parameters:
  userId -
Parameters:
  activityCode -
throws:
  TorqueException -



getInt
public int getInt(Object obj)(Code)
Returns an int representation of the given Object whose toString method should be a valid integer. If the String cannot be parsed 0 is returned.
Parameters:
  obj - the object the int representation of the Objectif possible or 0.



getMITListManager
public MITListManager getMITListManager()(Code)



getModuleCodeLength
public static synchronized int getModuleCodeLength()(Code)



getModuleCodeLengthPadded
public static int getModuleCodeLengthPadded()(Code)



getModulesFromIssueList
public List getModulesFromIssueList(List issues) throws TorqueException(Code)
Create a list of Modules from the given list of issues. Each Module in the list of issues will only occur once in the list of Modules.



getNotificationFilter
public static NotificationFilter getNotificationFilter(Integer moduleId, Integer userId, String activityCode) throws ScarabException(Code)



getNow
public Date getNow()(Code)
Get a new Date object initialized to the current time. a Date value



getParameter
public GlobalParameterManager getParameter()(Code)



getParameterName
public FieldMethodizer getParameterName()(Code)
holds the names of parameters that are configurable through the ui.



getPermission
public FieldMethodizer getPermission()(Code)
holds the Scarab permission constants. It will be available to the template system as $scarabG.PERMISSION_NAME.



getPublicModulesDisplayCount
public int getPublicModulesDisplayCount()(Code)
Provides the maximum number of public modules to be shown on the login screen. the number is stored in the property scarab.public.modules.display.count If no number is specified, this method returns -1 the number specified in scarab.public.modules.display.count



getSearchUsers
public List getSearchUsers(String searchField, String searchCriteria) throws Exception(Code)
Returns a List of users based on the given search criteria. This method is an overloaded function which returns an unsorted list of users.
Parameters:
  searchField - the name of the database attribute to search on
Parameters:
  searchCriteria - the search criteria to use within the LIKE command a List of users matching the specifed criteria



getSearchUsers
public List getSearchUsers(String searchField, String searchCriteria, String orderByField, String ascOrDesc) throws Exception(Code)
Describe getSearchUsers method here.
Parameters:
  searchField - a String value
Parameters:
  searchCriteria - a String value
Parameters:
  orderByField - a String value
Parameters:
  ascOrDesc - a String value a List value
exception:
  Exception - if an error occurs



getSiteLogo
public String getSiteLogo()(Code)
Provides the site logo for the top banner. the configured site logo



getSiteName
public String getSiteName()(Code)
Provides the site name for the top banner. the configured site name



getTurbineConfiguration
public org.apache.commons.configuration.Configuration getTurbineConfiguration()(Code)
Return the current turbine configuration with all keys included



getUserAttributes
public List getUserAttributes() throws Exception(Code)
Gets a List of all of user Attributes.



getUserAttributes
public List getUserAttributes(String sortColumn, String sortPolarity) throws Exception(Code)
Gets a List of all of the Attribute objects.



getUserAttributes
public List getUserAttributes(boolean includeDeleted, String sortColumn, String sortPolarity) throws Exception(Code)
Gets a List of all of the Attribute objects.



getWorkflow
public static Workflow getWorkflow() throws ScarabException(Code)
Makes the workflow tool accessible.
throws:
  ScarabException -



init
public void init(Object data)(Code)



isString
public boolean isString(Object obj)(Code)



linkIssueIds
public List linkIssueIds(Module module, String text)(Code)



log
public void log(String s)(Code)
Logs a message at the debug level. Useful for "I am here" type messages. The category is "org.tigris.scarab".
Parameters:
  s - message to log



log
public void log(String category, String s)(Code)
Logs a message at the debug level. Useful for "I am here" type messages. The category in which to log is also specified.
Parameters:
  category - log4j Category
Parameters:
  s - message to log



print
public void print(String s)(Code)
Prints a message to standard out. Useful for "I am here" type messages.
Parameters:
  s - message to log



refresh
public void refresh()(Code)



replace
public String replace(String text, String a, String b)(Code)



reverse
public Object[] reverse(Object[] a)(Code)
Creates a new array with elements reversed from the given array.
Parameters:
  a - the orginal Object[] a new Object[] with values reversed from the original



reverse
public List reverse(List a)(Code)
Creates a new List with elements reversed from the given List.
Parameters:
  a - the orginal List a new List with values reversed from the original



sizeOfArray
public int sizeOfArray(Object[] obj)(Code)
Velocity has no way of getting the size of an Object[] easily. Usually this would be done by calling obj.length but this doesn't work in Velocity.
Parameters:
  obj - the Object[] the number of objects in the Object[] or -1 if obj is null



subset
public List subset(List a, Integer fromIndex, Integer toIndex)(Code)
Creates a view of the portion of the given List between the specified fromIndex, inclusive, and toIndex, exclusive. The list returned by this method is backed by the original, so changes to either affect the other.
Parameters:
  a - the orginal List
Parameters:
  fromIndex - the start index of the returned subset
Parameters:
  toIndex - the end index of the returned subset a derived List with a view of the original



subset
public Object[] subset(Object[] a, Integer fromIndex, Integer toIndex)(Code)
Creates a new array with a view of the portion of the given array between the specified fromIndex, inclusive, and toIndex, exclusive
Parameters:
  a - the orginal Object[]
Parameters:
  fromIndex - the start index of the returned subset
Parameters:
  toIndex - the end index of the returned subset a new Object[] with a view of the original



templateExists
public boolean templateExists(String template)(Code)
Delegates to Velocity's templateExists() method.



textToHTML
public SkipFiltering textToHTML(String text, ScarabLink link, Module currentModule)(Code)

Converts a text string to HTML by:

  • replacing reserved characters with equivalent HTML entities
  • adding hyperlinks for URLs
  • adding hyperlinks for issue references

Parameters:
  text - The text string to convert.
Parameters:
  link -
Parameters:
  currentModule - The active module. A SkipFiltering object which contains the generated HTML.



tokenize
public Enumeration tokenize(String text, String delimiters)(Code)
Breaks text into a list of Strings. Text is separated into tokens at characters given in delimiters. The delimiters are not part of the resulting tokens. if delimiters is empty or null, "\n" is used.
Parameters:
  text - a String value
Parameters:
  delimiters - a String value a List value



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.