org.tigris.scarab.tools
Class ScarabToolManager

java.lang.Object
  extended byorg.tigris.scarab.tools.ScarabToolManager

public class ScarabToolManager
extends java.lang.Object

Currently significant amounts of business logic is stored in the ScarabRequestTool and ScarabGlobalTool. This isn't very accesible b/c the tools make assumptions about having a rundata object and running in them.. This class will slowly take out the business logic from the tools so it can be unit tested and reused in more situations.


Constructor Summary
ScarabToolManager(ScarabLocalizationTool l10n)
           
 
Method Summary
 java.lang.String getActivityReason(ActivitySet activitySet, Activity activity)
          Deprecated. Use ActivitySet.getActivityReason(l10n) instead.
 java.util.List getRModuleUserAttributes(ScarabUser user, Module module, IssueType issueType)
          First attempts to get the RModuleUserAttributes from the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScarabToolManager

public ScarabToolManager(ScarabLocalizationTool l10n)
Method Detail

getActivityReason

public java.lang.String getActivityReason(ActivitySet activitySet,
                                          Activity activity)
                                   throws java.lang.Exception
Deprecated. Use ActivitySet.getActivityReason(l10n) instead.

Get reason for modification. FIXME: Why does this receive 'activity'?

Throws:
java.lang.Exception

getRModuleUserAttributes

public java.util.List getRModuleUserAttributes(ScarabUser user,
                                               Module module,
                                               IssueType issueType)
First attempts to get the RModuleUserAttributes from the user. If it is empty, then it will try to get the defaults from the module. If anything fails, it will return an empty list.



Copyright © 2000-2004 Tigris.org. All Rights Reserved.