|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This class describes a Module within the Scarab system
| Field Summary | |
static L10NKey |
NAME_DELIMINATOR
The deliminator between parent/child Modules This is used to build up the getName() results. |
static java.lang.String |
NON_USER
|
static java.lang.Integer |
ROOT_ID
|
static java.lang.String |
USER
|
| Method Summary | |
void |
addAttributeOption(IssueType issueType,
AttributeOption option)
|
void |
addIssueType(IssueType issueType)
|
RModuleAttribute |
addRModuleAttribute(IssueType issueType,
Attribute attribute)
Adds module-attribute mapping to module. |
RModuleOption |
addRModuleOption(IssueType issueType,
AttributeOption option)
Adds module-attribute-option mapping to module. |
boolean |
allowsIssues()
Determines whether this module accepts issues. |
boolean |
allowsMultipleVoting()
Determines whether this module allows users to vote many times for the same issue. |
boolean |
allowsNewIssues()
Determines whether this module is accepting new issues. |
AttributeGroup |
createNewGroup(IssueType issueType)
Creates new attribute group. |
java.util.List |
getAllAttributes()
Gets a list of all of the Attributes in this module. |
java.util.List |
getAncestors()
Returns this ModuleEntities ancestors in ascending order. |
java.lang.String |
getArchiveEmail()
All emails related to this module will have a copy sent to this address. |
java.util.List |
getAttributes(org.apache.torque.util.Criteria criteria)
gets a list of all of the Attributes in a Module based on the Criteria. |
java.util.List |
getAttributes(IssueType issueType)
Gets a list of attributes for this module with a specific issue type. |
java.lang.String |
getCode()
|
java.lang.String |
getCommentRenderingEngine()
Retruns the currently used rendering engine for comments |
java.util.List |
getDedupeAttributeGroups(IssueType issueType)
List of active dedupe attribute groups associated with this module. |
java.util.List |
getDedupeAttributeGroups(IssueType issueType,
boolean activeOnly)
List of attribute groups associated with this module. |
java.util.List |
getDedupeGroupsWithAttributes(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. |
int |
getDedupeSequence(IssueType issueType)
Gets the sequence where the dedupe screen fits between groups. |
java.util.List |
getDefaultRModuleUserAttributes(IssueType issueType)
Returns default issue list attributes for this module. |
boolean |
getDeleted()
|
java.lang.String |
getDescription()
|
ScarabUser[] |
getEligibleIssueReporters()
|
ScarabUser[] |
getEligibleUsers(Attribute attribute)
|
java.lang.String |
getHttpDomain()
www.foo.com |
Issue |
getIssueById(java.lang.String id)
Deprecated. use IssueManager.getIssueById(String id, String defaultCode) I think this method should only return issues from this module, but there is only one place in the code where something like that was needed and the check is done there. Its possible we would want to define this method to return issues in children or some other criteria. deprecating for removal until a definite reason for it to exist appears. |
org.apache.regexp.REProgram |
getIssueRegex()
returns a compiled regex that can used to create a new RE for matching some given text. |
java.util.List |
getIssueTypes()
|
java.util.List |
getIssueTypes(boolean activeOnly)
|
int |
getLastAttribute(IssueType issueType,
java.lang.String attributeType)
|
int |
getLastAttributeOption(Attribute attribute,
IssueType issueType)
|
java.util.List |
getLeafRModuleOptions(Attribute attribute,
IssueType issueType)
|
java.util.List |
getLeafRModuleOptions(Attribute attribute,
IssueType issueType,
boolean activeOnly)
|
java.util.Locale |
getLocale()
The default locale for this module will be used in cases where a response is going to no particular user (a mailing list) or can also be used as a default in cases where a user does not have a preference. |
java.lang.Integer |
getModuleId()
|
java.lang.String |
getName()
This method is only used by the Turbine Group interface. |
java.util.List |
getNavIssueTypes()
|
Issue |
getNewIssue(IssueType issueType)
|
java.util.List |
getOptionTree(Attribute attribute,
IssueType issueType)
Gets a list of active RModuleOptions which have had their level within the options for this module set. |
java.util.List |
getOptionTree(Attribute attribute,
IssueType issueType,
boolean activeOnly)
Gets a list of RModuleOptions which have had their level within the options for this module set. |
java.lang.Integer |
getOwnerId()
|
Module |
getParent()
Same as the getModuleRelatedByParentIdCast(), just a better name. |
java.lang.Integer |
getParentId()
|
java.lang.String |
getPort()
the port number used for the domain |
org.apache.torque.om.ObjectKey |
getPrimaryKey()
|
java.lang.Integer |
getQaContactId()
Deprecated. THESE WILL BE DEPRECATED |
java.lang.String |
getQueryKey()
|
java.lang.String |
getRealName()
This method is only used by the Turbine Group interface. |
org.apache.fulcrum.security.entity.Role |
getRequiredRole()
Returns the required role for *any* access to this module including for requesting roles. |
RModuleAttribute |
getRModuleAttribute(Attribute attribute,
IssueType issueType)
|
java.util.List |
getRModuleAttributes(org.apache.torque.util.Criteria criteria)
|
java.util.List |
getRModuleAttributes(IssueType issueType)
|
java.util.List |
getRModuleAttributes(IssueType issueType,
boolean activeOnly)
|
java.util.List |
getRModuleAttributes(IssueType issueType,
boolean activeOnly,
java.lang.String attributeType)
|
RModuleIssueType |
getRModuleIssueType(IssueType issueType)
|
java.util.List |
getRModuleIssueTypes()
|
RModuleOption |
getRModuleOption(AttributeOption option,
IssueType issueType)
|
java.util.List |
getRModuleOptions(Attribute attribute,
IssueType issueType)
|
java.util.List |
getRModuleOptions(Attribute attribute,
IssueType issueType,
boolean activeOnly)
|
java.util.List |
getRModuleOptions(org.apache.torque.util.Criteria crit)
|
java.util.List |
getRoles()
|
java.util.List |
getSavedReports(ScarabUser user)
List of saved reports associated with this module and created by the given user. |
java.lang.String |
getScarabInstanceId()
arbitrary value, represents the individual instance on which this module has been created. |
java.lang.String |
getScheme()
the scheme (http|https) used |
java.lang.String |
getScriptName()
the scriptName used: /scarab/issues |
java.lang.String[] |
getSystemEmail()
The default address that is used to fill out either the From or ReplyTo header on emails related to this module. |
java.util.List |
getTemplateTypes()
|
java.util.List |
getUnapprovedQueries()
Returns list of queries needing approval. |
java.util.List |
getUnapprovedTemplates()
Returns list of enter issue templates needing approval. |
int |
getUnusedVoteCount(ScarabUser user)
How many votes does the user have left to cast. |
java.lang.String |
getUrl()
|
java.util.List |
getUserAttributes(IssueType issueType)
|
java.util.List |
getUserAttributes(IssueType issueType,
boolean activeOnly)
|
java.util.List |
getUserPermissions(IssueType issueType)
|
ScarabUser[] |
getUsers(java.util.List permissions)
Get a list of ScarabUser's that have any of the given
permissions in the given module. |
ScarabUser[] |
getUsers(java.lang.String permission)
Get a list of ScarabUser's that have the given
permission in the given module. |
ScarabPaginatedList |
getUsers(java.lang.String name,
java.lang.String username,
MITList mitList,
int offset,
int resultSize,
java.lang.String sortColumn,
java.lang.String sortPolarity,
boolean includeCommitters)
Gets users for a given criteria, starting at a particular offset, for a given length, and have at least one permission that is applicable to user attributes active in the given issue type. |
java.util.List |
getUsers(java.lang.String firstName,
java.lang.String lastName,
java.lang.String username,
java.lang.String email,
IssueType issueType)
Gets users which match all of the given criteria and have at least one permission that is applicable to user attributes active in the given issue type. |
boolean |
isEndlessLoop(Module parent)
check for endless loops where Module A > Module B > Module A |
boolean |
isGlobalModule()
Returns true if this module is the the top level parent module. |
boolean |
isInitializing()
Returns true if no issue types are associated with this module, or if the module is currently getting its initial values set. |
boolean |
isIssueReasonRequired()
Determines wether a 'reason' is required for every change in the issues of this module. |
boolean |
isIssueReasonRequiredInherited()
Determines if the value of isIssueReasonRequired is due to the configuration of this module or inherited from ancestors or default configuration. |
void |
setCode(java.lang.String code)
|
void |
setDeleted(boolean b)
|
void |
setDescription(java.lang.String description)
|
void |
setHttpDomain(java.lang.String domain)
|
void |
setModuleId(java.lang.Integer v)
|
void |
setName(java.lang.String name)
|
void |
setOwnerId(java.lang.Integer v)
|
void |
setParent(Module module)
|
void |
setParentId(java.lang.Integer v)
|
void |
setPort(java.lang.String port)
|
void |
setPrimaryKey(org.apache.torque.om.ObjectKey key)
|
void |
setQaContactId(java.lang.Integer v)
Deprecated. THESE WILL BE DEPRECATED |
void |
setRealName(java.lang.String name)
|
void |
setScarabInstanceId(java.lang.String domain)
|
void |
setScheme(java.lang.String scheme)
|
void |
setScriptName(java.lang.String scriptName)
|
void |
setUrl(java.lang.String url)
|
java.lang.String |
toString()
|
| Methods inherited from interface org.apache.torque.om.Persistent |
isModified, isNew, save, save, save, setModified, setNew, setPrimaryKey |
| Field Detail |
public static final L10NKey NAME_DELIMINATOR
public static final java.lang.Integer ROOT_ID
public static final java.lang.String USER
public static final java.lang.String NON_USER
| Method Detail |
public ScarabUser[] getUsers(java.lang.String permission)
throws org.apache.torque.TorqueException
ScarabUser's that have the given
permission in the given module.
permission - a String value
org.apache.torque.TorqueException
public ScarabUser[] getUsers(java.util.List permissions)
throws org.apache.torque.TorqueException
ScarabUser's that have any of the given
permissions in the given module.
permissions - a List value
org.apache.torque.TorqueException
public java.util.List getUsers(java.lang.String firstName,
java.lang.String lastName,
java.lang.String username,
java.lang.String email,
IssueType issueType)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public ScarabPaginatedList getUsers(java.lang.String name,
java.lang.String username,
MITList mitList,
int offset,
int resultSize,
java.lang.String sortColumn,
java.lang.String sortPolarity,
boolean includeCommitters)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetExceptionpublic java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getRealName()
public void setRealName(java.lang.String name)
public java.lang.String getCode()
public void setCode(java.lang.String code)
public java.lang.String getHttpDomain()
public void setHttpDomain(java.lang.String domain)
public java.lang.String getScarabInstanceId()
public void setScarabInstanceId(java.lang.String domain)
public java.lang.String getPort()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public void setPort(java.lang.String port)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.lang.String getScheme()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public void setScheme(java.lang.String scheme)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.lang.String getScriptName()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public void setScriptName(java.lang.String scriptName)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueExceptionpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
public java.lang.String getUrl()
public void setUrl(java.lang.String url)
public org.apache.torque.om.ObjectKey getPrimaryKey()
getPrimaryKey in interface org.apache.torque.om.Persistent
public void setPrimaryKey(org.apache.torque.om.ObjectKey key)
throws org.apache.torque.TorqueException
setPrimaryKey in interface org.apache.torque.om.Persistentorg.apache.torque.TorqueExceptionpublic java.lang.Integer getModuleId()
public void setModuleId(java.lang.Integer v)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueExceptionpublic java.lang.Integer getQaContactId()
public void setQaContactId(java.lang.Integer v)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueExceptionpublic java.lang.Integer getOwnerId()
public void setOwnerId(java.lang.Integer v)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getAttributes(org.apache.torque.util.Criteria criteria)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getAttributes(IssueType issueType)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getAllAttributes()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public AttributeGroup createNewGroup(IssueType issueType)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getDedupeGroupsWithAttributes(IssueType issueType)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getDedupeAttributeGroups(IssueType issueType)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getDedupeAttributeGroups(IssueType issueType,
boolean activeOnly)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public int getDedupeSequence(IssueType issueType)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getRModuleAttributes(IssueType issueType,
boolean activeOnly,
java.lang.String attributeType)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getRModuleAttributes(IssueType issueType,
boolean activeOnly)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getRModuleAttributes(IssueType issueType)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getRModuleAttributes(org.apache.torque.util.Criteria criteria)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getDefaultRModuleUserAttributes(IssueType issueType)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public RModuleAttribute getRModuleAttribute(Attribute attribute,
IssueType issueType)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public int getLastAttribute(IssueType issueType,
java.lang.String attributeType)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public int getLastAttributeOption(Attribute attribute,
IssueType issueType)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueExceptionpublic java.lang.String getQueryKey()
public boolean getDeleted()
public void setDeleted(boolean b)
public java.lang.Integer getParentId()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public void setParentId(java.lang.Integer v)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public void setParent(Module module)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public Module getParent()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getAncestors()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public boolean isEndlessLoop(Module parent)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public Issue getNewIssue(IssueType issueType)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getRModuleIssueTypes()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getRModuleOptions(Attribute attribute,
IssueType issueType)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getRModuleOptions(Attribute attribute,
IssueType issueType,
boolean activeOnly)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getRModuleOptions(org.apache.torque.util.Criteria crit)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getLeafRModuleOptions(Attribute attribute,
IssueType issueType)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getLeafRModuleOptions(Attribute attribute,
IssueType issueType,
boolean activeOnly)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public RModuleOption getRModuleOption(AttributeOption option,
IssueType issueType)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public ScarabUser[] getEligibleUsers(Attribute attribute)
throws org.apache.torque.TorqueException,
ScarabException
org.apache.torque.TorqueException
ScarabException
public ScarabUser[] getEligibleIssueReporters()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getSavedReports(ScarabUser user)
throws org.apache.torque.TorqueException,
ScarabException
user - the user
List value
org.apache.torque.TorqueException
ScarabException
public java.util.List getUserAttributes(IssueType issueType,
boolean activeOnly)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getUserAttributes(IssueType issueType)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getUserPermissions(IssueType issueType)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public RModuleIssueType getRModuleIssueType(IssueType issueType)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public void addIssueType(IssueType issueType)
throws org.apache.torque.TorqueException,
ValidationException,
com.workingdogs.village.DataSetException,
ScarabException
org.apache.torque.TorqueException
ValidationException
com.workingdogs.village.DataSetException
ScarabException
public void addAttributeOption(IssueType issueType,
AttributeOption option)
throws org.apache.torque.TorqueException,
ScarabException
org.apache.torque.TorqueException
ScarabException
public RModuleAttribute addRModuleAttribute(IssueType issueType,
Attribute attribute)
throws org.apache.torque.TorqueException,
ScarabException
org.apache.torque.TorqueException
ScarabException
public RModuleOption addRModuleOption(IssueType issueType,
AttributeOption option)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getIssueTypes()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getIssueTypes(boolean activeOnly)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getTemplateTypes()
throws org.apache.torque.TorqueException,
ScarabException
org.apache.torque.TorqueException
ScarabException
public java.util.List getNavIssueTypes()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueExceptionpublic boolean allowsMultipleVoting()
public int getUnusedVoteCount(ScarabUser user)
public java.util.List getUnapprovedQueries()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getUnapprovedTemplates()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getOptionTree(Attribute attribute,
IssueType issueType)
throws org.apache.torque.TorqueException
attribute - an Attribute value
List value
java.lang.Exception - if an error occurs
org.apache.torque.TorqueException
public java.util.List getOptionTree(Attribute attribute,
IssueType issueType,
boolean activeOnly)
throws org.apache.torque.TorqueException
attribute - an Attribute valueactiveOnly - a boolean value
List value
java.lang.Exception - if an error occurs
org.apache.torque.TorqueExceptionpublic java.lang.String getArchiveEmail()
public java.lang.String[] getSystemEmail()
String[] of length=2 where the first element
is a name such as "Scarab System" and the second is an email address.public boolean isIssueReasonRequired()
public boolean isIssueReasonRequiredInherited()
public org.apache.fulcrum.security.entity.Role getRequiredRole()
public boolean allowsNewIssues()
public java.lang.String getCommentRenderingEngine()
public boolean allowsIssues()
public boolean isInitializing()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueExceptionpublic boolean isGlobalModule()
boolean value
public org.apache.regexp.REProgram getIssueRegex()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public Issue getIssueById(java.lang.String id)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueExceptionpublic java.lang.String toString()
public java.util.List getRoles()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueExceptionpublic java.util.Locale getLocale()
Locale value
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||