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


org.tigris.scarab.om.AbstractScarabModule

All known Subclasses:   org.tigris.scarab.om.BaseScarabModule,
AbstractScarabModule
abstract public class AbstractScarabModule extends BaseObject implements Module,Comparable(Code)

The ScarabModule class is the focal point for dealing with Modules. It implements the concept of a Module which is a single module and is the base interface for all Modules. In code, one should never reference ScarabModule directly -- use its Module interface instead. This allows us to swap out Module implementations by modifying the Scarab.properties file.

This class is the base class for org.tigris.scarab.om.ScarabModule. BaseScarabModule extends this class and that definition is defined in the scarab-schema.xml which is used by Torque to generated BaseScarabModule.


author:
   Jon S. Stevens
author:
   John McNally
version:
   $Id: AbstractScarabModule.java 10382 2006-12-13 17:02:35Z dabbous $


Field Summary
final protected static  StringGET_ALL_R_MODULE_OPTIONS
    
final protected static  StringGET_AVAILABLE_ISSUE_TYPES
    
final protected static  StringGET_DEDUPE_GROUPS_WITH_ATTRIBUTES
    
final protected static  StringGET_DEFAULT_RMODULE_USERATTRIBUTES
    
final protected static  StringGET_ISSUE_TYPES
    
final protected static  StringGET_LEAF_R_MODULE_OPTIONS
    
final protected static  StringGET_NAV_ISSUE_TYPES
    
final protected static  StringGET_R_MODULE_ATTRIBUTES
    
final protected static  StringGET_R_MODULE_ISSUE_TYPE
    
final protected static  StringGET_R_MODULE_ISSUE_TYPES
    
final protected static  StringGET_SAVED_REPORTS
    
final protected static  StringGET_TEMPLATE_TYPES
    
final protected static  StringGET_UNAPPROVED_QUERIES
    
final protected static  StringGET_UNAPPROVED_TEMPLATES
    


Method Summary
public  voidaddAttributeOption(IssueType issueType, AttributeOption option)
     Adds attribute options to a module.
public  voidaddIssueType(IssueType issueType)
    
public  RModuleAttributeaddRModuleAttribute(IssueType issueType, Attribute attribute)
     Adds module-attribute mapping to module.
public  RModuleOptionaddRModuleOption(IssueType issueType, AttributeOption option)
     Adds module-attribute-option mapping to module.
public  booleanallowsIssues()
     Determines whether this module accepts issues.
public  booleanallowsMultipleVoting()
     Determines whether this module allows users to vote many times for the same issue.
public  booleanallowsNewIssues()
     Determines whether this module is accepting new issues.
public  intcompareTo(Object obj)
     Used for ordering Groups.
Parameters:
  obj - The Object to compare to.
public  AttributeGroupcreateNewGroup(IssueType issueType)
     Creates new attribute group.
public  ListgetActiveAttributesByName(IssueType issueType, String attributeType)
     gets a list of all of the active Attributes.
public  ListgetAllAttributeOptions(Integer attributeId)
     Return the list of attribute options for attribute with given attributeId.
public  ListgetAllAttributes()
     gets a list of all of the Attributes in this module.
public  ListgetAllOptionAttributes()
     Return the list of option attributes (ATTRIBUTE_ID=5).
public synchronized  ListgetAncestors()
     Returns this ModuleEntities ancestors in ascending order.
abstract public  StringgetArchiveEmail()
     All emails related to this module will have a copy sent to this address.
public  ListgetAttributeOptions(Attribute attribute, IssueType issueType)
     Gets the modules list of attribute options.
public  ListgetAttributes(IssueType issueType)
     Gets a list of attributes for this module with a specific issue type.
public  ListgetAttributes(Criteria criteria)
     gets a list of all of the Attributes in a Module based on the Criteria.
public  ListgetAvailableAttributeOptions(Attribute attribute, IssueType issueType)
     gets a list of all of the Attribute options that are not associated with this module and attribute.
public  ListgetAvailableAttributes(IssueType issueType, String attributeType)
    
public  ListgetAvailableIssueTypes()
    
public  ListgetDedupeAttributeGroups(IssueType issueType)
     List of active dedupe attribute groups associated with this module.
public  ListgetDedupeAttributeGroups(IssueType issueType, boolean activeOnly)
     List of attribute groups associated with this module.
public  ListgetDedupeGroupsWithAttributes(IssueType issueType)
     This method is used within Wizard1.vm to get a list of attribute groups which are marked as dedupe and have a list of attributes in them.
public  intgetDedupeSequence(IssueType issueType)
     Gets the sequence where the dedupe screen fits between groups.
public  ListgetDefaultRModuleUserAttributes(IssueType issueType)
     Returns default issue list attributes for this module.
public  ScarabUser[]getEligibleIssueReporters()
    
public  ScarabUser[]getEligibleUsers(Attribute attribute)
     The users who are possible candidates as values for the given attribute.
public  IssuegetIssueById(String id)
     This method is useful for getting an issue object by a String id.
public  REProgramgetIssueRegex()
    
public  StringgetIssueRegexString()
    
public  ListgetIssueTypes()
     gets a list of the Issue Types for this module.
public  ListgetIssueTypes(boolean activeOnly)
     gets a list of the Issue Types for this module.
public  intgetLastAttribute(IssueType issueType, String attributeType)
     FIXME: can this be done more efficently? gets highest sequence number for module-attribute map so that a new RModuleAttribute can be added at the end.
public  intgetLastAttributeOption(Attribute attribute, IssueType issueType)
     FIXME: can this be done more efficently? gets highest sequence number for module-attribute map so that a new RModuleAttribute can be added at the end.
public  ListgetLeafRModuleOptions(Attribute attribute, IssueType issuetype)
    
public  ListgetLeafRModuleOptions(Attribute attribute, IssueType issueType, boolean activeOnly)
    
public  LocalegetLocale()
     Simple implementation returns the single configured default locale from TR.props.
abstract public  IntegergetModuleId()
    
public  StringgetName()
    
public  ListgetNavIssueTypes()
     gets a list of the Issue Types for this module. that get listed in the left navigation.
public  IssuegetNewIssue(IssueType issueType)
     Creates a new Issue.
public  ListgetOptionTree(Attribute attribute, IssueType issueType)
     Gets a list of active RModuleOptions which have had their level within the options for this module set.
public  ListgetOptionTree(Attribute attribute, IssueType issueType, boolean activeOnly)
     Gets a list of RModuleOptions which have had their level within the options for this module set.
abstract public  ModulegetParent()
    
public  RModuleAttributegetRModuleAttribute(Attribute attribute, IssueType issueType)
    
public  ListgetRModuleAttributes(Criteria crit)
     Returns RModuleAttributes associated with this module through the foreign key in the schema.
public  ListgetRModuleAttributes(IssueType issueType)
     Overridden method.
public  ListgetRModuleAttributes(IssueType issueType, boolean activeOnly)
     Overridden method.
public  ListgetRModuleAttributes(IssueType issueType, boolean activeOnly, String attributeType)
    
public  RModuleIssueTypegetRModuleIssueType(IssueType issueType)
    
abstract public  ListgetRModuleIssueTypes()
    
public  ListgetRModuleIssueTypes(String sortColumn, String sortPolarity)
    
public  RModuleOptiongetRModuleOption(AttributeOption option, IssueType issueType)
    
abstract public  ListgetRModuleOptions(Criteria crit)
     Overridden method.
public  ListgetRModuleOptions(Attribute attribute, IssueType issueType)
    
public  ListgetRModuleOptions(Attribute attribute, IssueType issueType, boolean activeOnly)
    
abstract public  StringgetRealName()
    
public  ListgetSavedReports(ScarabUser user)
     List of saved reports associated with this module and created by this user.
public  String[]getSystemEmail()
     The default address that is used to fill out either the From or ReplyTo header on emails related to this module.
public  ListgetTemplateTypes()
    
public  ListgetUnapprovedQueries()
     Returns list of queries needing approval.
public  ListgetUnapprovedTemplates()
     Returns list of enter issue templates needing approval.
public  intgetUnusedVoteCount(ScarabUser user)
     How many votes does the user have left to cast.
public  ListgetUserAttributes(IssueType issueType)
     gets a list of all of the User Attributes in a Module.
public  ListgetUserAttributes(IssueType issueType, boolean activeOnly)
     gets a list of all of the User Attributes in a Module.
public  ListgetUserPermissions(IssueType issueType)
     gets a list of permissions associated with the User Attributes that are active for this Module.
abstract public  ScarabUser[]getUsers(String permission)
    
abstract public  ScarabUser[]getUsers(List permissions)
    
protected  StringgetValidationMessage(String typeName, String detail)
    
public  booleanhasAttributes(IssueType issueType)
     Returns true if module has attributes associated with issue type.
public  booleanincludesIssueType(IssueType issueType)
    
protected  voidinheritFromParent(Module parentModule)
     sets up attributes and issue types for this module based on.
public  booleanisEndlessLoop(Module parent)
    
public  booleanisGlobalModule()
    
public  booleanisInitializing()
     Returns true if no issue types are associated with this module, or if the module is currently getting its initial values set.
protected  voidresetAncestors()
     Should be called when the parentage is modified.
protected  voidsetInitialAttributesAndIssueTypes()
    
public  voidsetName(String name)
    
abstract public  voidsetParent(Module v)
    
public  voidsetRmaBasedOnIssueType(RIssueTypeAttribute ria)
    
public  voidsetRmoBasedOnIssueType(RIssueTypeOption rio)
    
public  voidshiftAttributeOption(Attribute attribute, IssueType issueType, int offset)
    
public  StringtoString()
    

Field Detail
GET_ALL_R_MODULE_OPTIONS
final protected static String GET_ALL_R_MODULE_OPTIONS(Code)



GET_AVAILABLE_ISSUE_TYPES
final protected static String GET_AVAILABLE_ISSUE_TYPES(Code)



GET_DEDUPE_GROUPS_WITH_ATTRIBUTES
final protected static String GET_DEDUPE_GROUPS_WITH_ATTRIBUTES(Code)



GET_DEFAULT_RMODULE_USERATTRIBUTES
final protected static String GET_DEFAULT_RMODULE_USERATTRIBUTES(Code)



GET_ISSUE_TYPES
final protected static String GET_ISSUE_TYPES(Code)



GET_LEAF_R_MODULE_OPTIONS
final protected static String GET_LEAF_R_MODULE_OPTIONS(Code)



GET_NAV_ISSUE_TYPES
final protected static String GET_NAV_ISSUE_TYPES(Code)



GET_R_MODULE_ATTRIBUTES
final protected static String GET_R_MODULE_ATTRIBUTES(Code)



GET_R_MODULE_ISSUE_TYPE
final protected static String GET_R_MODULE_ISSUE_TYPE(Code)



GET_R_MODULE_ISSUE_TYPES
final protected static String GET_R_MODULE_ISSUE_TYPES(Code)



GET_SAVED_REPORTS
final protected static String GET_SAVED_REPORTS(Code)



GET_TEMPLATE_TYPES
final protected static String GET_TEMPLATE_TYPES(Code)



GET_UNAPPROVED_QUERIES
final protected static String GET_UNAPPROVED_QUERIES(Code)



GET_UNAPPROVED_TEMPLATES
final protected static String GET_UNAPPROVED_TEMPLATES(Code)





Method Detail
addAttributeOption
public void addAttributeOption(IssueType issueType, AttributeOption option) throws TorqueException, ScarabException(Code)
Adds attribute options to a module.



addIssueType
public void addIssueType(IssueType issueType) throws TorqueException, ValidationException, DataSetException, ScarabException(Code)
Adds an issue type to a module Copies properties from the global issue type's settings



addRModuleAttribute
public RModuleAttribute addRModuleAttribute(IssueType issueType, Attribute attribute) throws TorqueException, ScarabException(Code)
Adds module-attribute mapping to module.



addRModuleOption
public RModuleOption addRModuleOption(IssueType issueType, AttributeOption option) throws TorqueException(Code)
Adds module-attribute-option mapping to module.



allowsIssues
public boolean allowsIssues()(Code)
Determines whether this module accepts issues. This default implementation does allow issues.



allowsMultipleVoting
public boolean allowsMultipleVoting()(Code)
Determines whether this module allows users to vote many times for the same issue. This feature needs schema change to allow a configuration screen. Currently only one vote per issue is supported false



allowsNewIssues
public boolean allowsNewIssues()(Code)
Determines whether this module is accepting new issues. This default implementation allows new issues if the module has not been deleted.



compareTo
public int compareTo(Object obj)(Code)
Used for ordering Groups.
Parameters:
  obj - The Object to compare to. -1 if the name of the other object is lexically greater than this group, 1 if it is lexically lesser, 0 if they are equal.



createNewGroup
public AttributeGroup createNewGroup(IssueType issueType) throws TorqueException(Code)
Creates new attribute group.



getActiveAttributesByName
public List getActiveAttributesByName(IssueType issueType, String attributeType) throws TorqueException(Code)
gets a list of all of the active Attributes. ordered by name



getAllAttributeOptions
public List getAllAttributeOptions(Integer attributeId) throws TorqueException, ScarabException(Code)
Return the list of attribute options for attribute with given attributeId.
throws:
  TorqueException -
throws:
  ScarabException -



getAllAttributes
public List getAllAttributes() throws TorqueException(Code)
gets a list of all of the Attributes in this module.



getAllOptionAttributes
public List getAllOptionAttributes() throws TorqueException(Code)
Return the list of option attributes (ATTRIBUTE_ID=5).
throws:
  TorqueException -



getAncestors
public synchronized List getAncestors() throws TorqueException(Code)
Returns this ModuleEntities ancestors in ascending order. It does not return the 0 parent though.



getArchiveEmail
abstract public String getArchiveEmail()(Code)
All emails related to this module will have a copy sent to this address. A system-wide default email address can be specified in Scarab.properties with the key: scarab.email.archive.toAddress



getAttributeOptions
public List getAttributeOptions(Attribute attribute, IssueType issueType) throws TorqueException(Code)
Gets the modules list of attribute options. Uses the RModuleOption table to do the join. returns null if there is any error.



getAttributes
public List getAttributes(IssueType issueType) throws TorqueException(Code)
Gets a list of attributes for this module with a specific issue type.



getAttributes
public List getAttributes(Criteria criteria) throws TorqueException(Code)
gets a list of all of the Attributes in a Module based on the Criteria.



getAvailableAttributeOptions
public List getAvailableAttributeOptions(Attribute attribute, IssueType issueType) throws TorqueException(Code)
gets a list of all of the Attribute options that are not associated with this module and attribute.



getAvailableAttributes
public List getAvailableAttributes(IssueType issueType, String attributeType) throws TorqueException(Code)
gets a list of all of the global Attributes that are not associated with this module and issue type



getAvailableIssueTypes
public List getAvailableIssueTypes() throws TorqueException(Code)
gets a list of all of the issue types that are not associated with this module



getDedupeAttributeGroups
public List getDedupeAttributeGroups(IssueType issueType) throws TorqueException(Code)
List of active dedupe attribute groups associated with this module.



getDedupeAttributeGroups
public List getDedupeAttributeGroups(IssueType issueType, boolean activeOnly) throws TorqueException(Code)
List of attribute groups associated with this module.



getDedupeGroupsWithAttributes
public List getDedupeGroupsWithAttributes(IssueType issueType) throws TorqueException(Code)
This method is used within Wizard1.vm to get a list of attribute groups which are marked as dedupe and have a list of attributes in them.



getDedupeSequence
public int getDedupeSequence(IssueType issueType) throws TorqueException(Code)
Gets the sequence where the dedupe screen fits between groups.



getDefaultRModuleUserAttributes
public List getDefaultRModuleUserAttributes(IssueType issueType) throws TorqueException(Code)
Returns default issue list attributes for this module.



getEligibleIssueReporters
public ScarabUser[] getEligibleIssueReporters() throws TorqueException(Code)



getEligibleUsers
public ScarabUser[] getEligibleUsers(Attribute attribute) throws TorqueException, ScarabException(Code)
The users who are possible candidates as values for the given attribute. An eligible user is determined by checking for users that have the permission associated with the attribute.
Parameters:
  attribute - an Attribute value a ScarabUser[] value
exception:
  ScarabException - if the attribute has no associated permission
exception:
  Exception - if an error occurs



getIssueById
public Issue getIssueById(String id) throws TorqueException(Code)
This method is useful for getting an issue object by a String id. It has some logic in it for appending the Module Code as well as stripping spaces off the id value using the String.trim() method.



getIssueRegex
public REProgram getIssueRegex() throws TorqueException(Code)

See Also:   org.tigris.scarab.om.Module.getIssueRegex



getIssueRegexString
public String getIssueRegexString() throws TorqueException(Code)



getIssueTypes
public List getIssueTypes() throws TorqueException(Code)
gets a list of the Issue Types for this module. only shows active issue types



getIssueTypes
public List getIssueTypes(boolean activeOnly) throws TorqueException(Code)
gets a list of the Issue Types for this module. only shows active issue types



getLastAttribute
public int getLastAttribute(IssueType issueType, String attributeType) throws TorqueException(Code)
FIXME: can this be done more efficently? gets highest sequence number for module-attribute map so that a new RModuleAttribute can be added at the end.



getLastAttributeOption
public int getLastAttributeOption(Attribute attribute, IssueType issueType) throws TorqueException(Code)
FIXME: can this be done more efficently? gets highest sequence number for module-attribute map so that a new RModuleAttribute can be added at the end.



getLeafRModuleOptions
public List getLeafRModuleOptions(Attribute attribute, IssueType issuetype) throws TorqueException(Code)



getLeafRModuleOptions
public List getLeafRModuleOptions(Attribute attribute, IssueType issueType, boolean activeOnly) throws TorqueException(Code)



getLocale
public Locale getLocale()(Code)
Simple implementation returns the single configured default locale from TR.props. Will be replaced by a way to set this per module. a Locale selected for the Fulcrum Localization context



getModuleId
abstract public Integer getModuleId()(Code)



getName
public String getName()(Code)
This method is an implementation of the Group.getName() method and returns a module along with its ancestors



getNavIssueTypes
public List getNavIssueTypes() throws TorqueException(Code)
gets a list of the Issue Types for this module. that get listed in the left navigation. only shows active issue types.



getNewIssue
public Issue getNewIssue(IssueType issueType) throws TorqueException(Code)
Creates a new Issue.



getOptionTree
public List getOptionTree(Attribute attribute, IssueType issueType) throws TorqueException(Code)
Gets a list of active RModuleOptions which have had their level within the options for this module set.
Parameters:
  attribute - an Attribute value a List value
exception:
  TorqueException - if an error occurs



getOptionTree
public List getOptionTree(Attribute attribute, IssueType issueType, boolean activeOnly) throws TorqueException(Code)
Gets a list of RModuleOptions which have had their level within the options for this module set.
Parameters:
  attribute - an Attribute value
Parameters:
  activeOnly - a boolean value a List value
exception:
  TorqueException - if an error occurs



getParent
abstract public Module getParent() throws TorqueException(Code)
Get this module's immediate parent module



getRModuleAttribute
public RModuleAttribute getRModuleAttribute(Attribute attribute, IssueType issueType) throws TorqueException(Code)



getRModuleAttributes
public List getRModuleAttributes(Criteria crit) throws TorqueException(Code)
Returns RModuleAttributes associated with this module through the foreign key in the schema. This method will return an empty list, if the RModuleAttributes are inherited from its parent. Will not return an RModuleAttribute if the Attribute is deleted. NOTE: Do not try to add caching to this method as it seems to break things when an attribute is changed on an existing issue. (JSS)



getRModuleAttributes
public List getRModuleAttributes(IssueType issueType) throws TorqueException(Code)
Overridden method. Calls the super method and if no results are returned the call is passed on to the parent module.



getRModuleAttributes
public List getRModuleAttributes(IssueType issueType, boolean activeOnly) throws TorqueException(Code)
Overridden method. Calls the super method and if no results are returned the call is passed on to the parent module.



getRModuleAttributes
public List getRModuleAttributes(IssueType issueType, boolean activeOnly, String attributeType) throws TorqueException(Code)



getRModuleIssueType
public RModuleIssueType getRModuleIssueType(IssueType issueType) throws TorqueException(Code)



getRModuleIssueTypes
abstract public List getRModuleIssueTypes() throws TorqueException(Code)
This method is implemented in ScarabModule



getRModuleIssueTypes
public List getRModuleIssueTypes(String sortColumn, String sortPolarity) throws TorqueException(Code)



getRModuleOption
public RModuleOption getRModuleOption(AttributeOption option, IssueType issueType) throws TorqueException(Code)



getRModuleOptions
abstract public List getRModuleOptions(Criteria crit) throws TorqueException(Code)
Overridden method.



getRModuleOptions
public List getRModuleOptions(Attribute attribute, IssueType issueType) throws TorqueException(Code)



getRModuleOptions
public List getRModuleOptions(Attribute attribute, IssueType issueType, boolean activeOnly) throws TorqueException(Code)



getRealName
abstract public String getRealName()(Code)
The unadorned real name of this module; nevernull.
See Also:   AbstractScarabModule.getName()



getSavedReports
public List getSavedReports(ScarabUser user) throws TorqueException, ScarabException(Code)
List of saved reports associated with this module and created by this user.



getSystemEmail
public String[] getSystemEmail()(Code)
The default address that is used to fill out either the From or ReplyTo header on emails related to this module. In many cases the From field is taken as the user who acted that resulted in the email, but replies should still go to the central location for the module, so in this address would be used in the ReplyTo field. a String[] of length=2 where the first elementis a name such as "Scarab System" and the second is an email address.



getTemplateTypes
public List getTemplateTypes() throws TorqueException, ScarabException(Code)



getUnapprovedQueries
public List getUnapprovedQueries() throws TorqueException(Code)
Returns list of queries needing approval.



getUnapprovedTemplates
public List getUnapprovedTemplates() throws TorqueException(Code)
Returns list of enter issue templates needing approval.



getUnusedVoteCount
public int getUnusedVoteCount(ScarabUser user)(Code)
How many votes does the user have left to cast. Currently always returns 1, so a user has unlimited voting rights. Should look to UserVote for the answer when implemented properly.



getUserAttributes
public List getUserAttributes(IssueType issueType) throws TorqueException(Code)
gets a list of all of the User Attributes in a Module.



getUserAttributes
public List getUserAttributes(IssueType issueType, boolean activeOnly) throws TorqueException(Code)
gets a list of all of the User Attributes in a Module.



getUserPermissions
public List getUserPermissions(IssueType issueType) throws TorqueException(Code)
gets a list of permissions associated with the User Attributes that are active for this Module.



getUsers
abstract public ScarabUser[] getUsers(String permission) throws TorqueException(Code)

See Also:   org.tigris.scarab.om.Module.getUsers(String)



getUsers
abstract public ScarabUser[] getUsers(List permissions) throws TorqueException(Code)

See Also:   org.tigris.scarab.om.Module.getUsers(String)



getValidationMessage
protected String getValidationMessage(String typeName, String detail)(Code)



hasAttributes
public boolean hasAttributes(IssueType issueType) throws TorqueException, DataSetException(Code)
Returns true if module has attributes associated with issue type.



includesIssueType
public boolean includesIssueType(IssueType issueType) throws TorqueException, DataSetException(Code)



inheritFromParent
protected void inheritFromParent(Module parentModule) throws TorqueException, ScarabException(Code)
sets up attributes and issue types for this module based on. the parent module



isEndlessLoop
public boolean isEndlessLoop(Module parent) throws TorqueException(Code)
check for endless loops where Module A > Module B > Module A



isGlobalModule
public boolean isGlobalModule()(Code)

See Also:   org.tigris.scarab.om.Module.isGlobalModule



isInitializing
public boolean isInitializing() throws TorqueException(Code)
Returns true if no issue types are associated with this module, or if the module is currently getting its initial values set.



resetAncestors
protected void resetAncestors()(Code)
Should be called when the parentage is modified.



setInitialAttributesAndIssueTypes
protected void setInitialAttributesAndIssueTypes() throws TorqueException, DataSetException, ScarabException(Code)
for a new module: inherit issue types from parent module and from the issue types marked as default parent configuration takes precedence over default



setName
public void setName(String name)(Code)
This method is an implementation of the Group.setName() method



setParent
abstract public void setParent(Module v) throws TorqueException(Code)
Set this module's immediate parent module



setRmaBasedOnIssueType
public void setRmaBasedOnIssueType(RIssueTypeAttribute ria) throws TorqueException, ScarabException(Code)



setRmoBasedOnIssueType
public void setRmoBasedOnIssueType(RIssueTypeOption rio) throws TorqueException, ScarabException(Code)



shiftAttributeOption
public void shiftAttributeOption(Attribute attribute, IssueType issueType, int offset) throws TorqueException(Code)



toString
public String toString()(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.