|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.torque.om.BaseObject
org.tigris.scarab.om.BaseIssueType
org.tigris.scarab.om.IssueType
This class represents an IssueType.
| Field Summary | |
protected static java.lang.String |
GET_ACTIVE_ATTRIBUTES
|
protected static java.lang.String |
GET_ALL_R_ISSUETYPE_OPTIONS
|
protected static java.lang.String |
GET_ATTRIBUTE_GROUP
|
protected static java.lang.String |
GET_ATTRIBUTE_GROUPS
|
protected static java.lang.String |
GET_DEFAULT_TEXT_ATTRIBUTE
|
protected static java.lang.String |
GET_QUICK_SEARCH_ATTRIBUTES
|
protected static java.lang.String |
GET_R_ISSUETYPE_ATTRIBUTES
|
protected static java.lang.String |
GET_R_ISSUETYPE_OPTIONS
|
protected static java.lang.String |
GET_REQUIRED_ATTRIBUTES
|
(package private) static java.lang.String |
NON_USER
|
(package private) static java.lang.String |
USER
|
| Fields inherited from class org.tigris.scarab.om.BaseIssueType |
collAttributeGroups, collIssues, collMITListItems, collQuerys, collReports, collRIssueTypeAttributes, collRIssueTypeOptions, collRModuleAttributes, collRModuleIssueTypes, collRModuleOptions, collRModuleUserAttributes |
| Fields inherited from class org.apache.torque.om.BaseObject |
NEW_ID |
| Constructor Summary | |
IssueType()
|
|
| Method Summary | |
RIssueTypeAttribute |
addRIssueTypeAttribute(Attribute attribute)
Adds issuetype-attribute mapping to issue type. |
RIssueTypeOption |
addRIssueTypeOption(AttributeOption option)
Adds issuetype-attribute-option mapping to module. |
boolean |
canCreateAttributeInScope(ScarabUser user,
Module module,
Attribute attribute)
Checks whether the current user is allowed to set the given attribute in the given module and in this issueType. |
boolean |
canCreateIssueInScope(ScarabUser user,
Module module)
Checks whether the current user can create issues of this issueType in the given module. |
IssueType |
copyIssueType()
Copy the IssueType and its corresponding template type |
void |
createDefaultGroups()
Create default groups upon issue type creation. |
AttributeGroup |
createNewGroup()
|
AttributeGroup |
createNewGroup(Module module)
Creates new attribute group. |
void |
deleteModuleMappings(ScarabUser user)
Delete mappings with all modules |
java.util.List |
getActiveAttributes(Module module)
Array of active Attributes for an issue type. |
java.util.List |
getAttributeGroups(boolean activeOnly)
|
java.util.List |
getAttributeGroups(Module module)
|
java.util.List |
getAttributeGroups(Module module,
boolean activeOnly)
List of attribute groups associated with this module). |
java.util.List |
getAttributes(java.lang.String attributeType)
Gets associated activeattributes. |
java.util.List |
getAvailableAttributeOptions(Attribute attribute)
Gets a list of all of the global attributes options that are not associated with this issue type |
java.util.List |
getAvailableAttributes(java.lang.String attributeType)
Gets a list of all of the global Attributes that are not Associated with this issue type |
int |
getDedupeSequence()
Gets the sequence where the dedupe screen fits between groups. |
(package private) int |
getDedupeSequence(Module module)
Gets the sequence where the dedupe screen fits between groups. |
Attribute |
getDefaultTextAttribute(Module module)
if an RMA is the chosen attribute for email subjects then return it. |
java.lang.String |
getDisplayName(Module module)
If module name is identical to global name, return the global name. |
static IssueType |
getInstance(java.lang.String issueTypeName)
Get the IssueType using a issue type name |
IssueType |
getIssueTypeForTemplateType()
Gets the parent IssueType for this template IssueType. |
int |
getLastAttribute(java.lang.String attributeType)
FIXME: can this be done more efficently? |
int |
getLastAttributeOption(Attribute attribute)
FIXME: can this be done more efficently? |
java.util.List |
getMatchingAttributeValuesList(Module oldModule,
Module newModule,
IssueType newIssueType)
Gets a list of non-user AttributeValues which match a given Module. |
java.util.List |
getOrphanAttributeValuesList(Module oldModule,
Module newModule,
IssueType newIssueType)
Gets a list of Attributes which do not match a given Module. |
java.util.List |
getQuickSearchAttributes(Module module)
Array of Attributes used for quick search. |
java.util.List |
getRequiredAttributes(Module module)
Array of Attributes which are active and required by this module. |
RIssueTypeAttribute |
getRIssueTypeAttribute(Attribute attribute)
|
java.util.List |
getRIssueTypeAttributes()
Gets associated attributes. |
java.util.List |
getRIssueTypeAttributes(boolean activeOnly)
Gets associated attributes. |
java.util.List |
getRIssueTypeAttributes(boolean activeOnly,
java.lang.String attributeType)
Gets associated attributes. |
RIssueTypeOption |
getRIssueTypeOption(AttributeOption option)
|
java.util.List |
getRIssueTypeOptions(Attribute attribute)
Gets associated attribute options. |
java.util.List |
getRIssueTypeOptions(Attribute attribute,
boolean activeOnly)
Gets associated attribute options. |
java.lang.Integer |
getTemplateId()
Gets the id of the template that corresponds to the issue type. |
IssueType |
getTemplateIssueType()
Gets the IssueType template for this IssueType. |
java.util.List |
getUserAttributes()
gets a list of all of the User Attributes in an issue type. |
java.util.List |
getUserAttributes(boolean activeOnly)
gets a list of all of the User Attributes in an issue type. |
boolean |
hasIssues()
Returns true if the issue type has issues associated with it. |
boolean |
hasIssues(Module module)
Returns true if the issue type/module has issues associated with it. |
boolean |
isSystemDefined()
Checks if this Issue Type is system defined. |
java.lang.String |
toString()
|
| Methods inherited from class org.apache.torque.om.BaseObject |
equals, equals, getLog, hashCode, isModified, isNew, resetModified, setModified, setNew, setPrimaryKey |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.torque.om.Persistent |
getPrimaryKey, isModified, isNew, save, save, save, setModified, setNew, setPrimaryKey, setPrimaryKey |
| Field Detail |
protected static final java.lang.String GET_ATTRIBUTE_GROUPS
protected static final java.lang.String GET_ATTRIBUTE_GROUP
protected static final java.lang.String GET_R_ISSUETYPE_ATTRIBUTES
protected static final java.lang.String GET_R_ISSUETYPE_OPTIONS
protected static final java.lang.String GET_ALL_R_ISSUETYPE_OPTIONS
protected static final java.lang.String GET_DEFAULT_TEXT_ATTRIBUTE
protected static final java.lang.String GET_QUICK_SEARCH_ATTRIBUTES
protected static final java.lang.String GET_REQUIRED_ATTRIBUTES
protected static final java.lang.String GET_ACTIVE_ATTRIBUTES
static final java.lang.String USER
static final java.lang.String NON_USER
| Constructor Detail |
public IssueType()
| Method Detail |
public IssueType getTemplateIssueType()
throws org.apache.torque.TorqueException,
ScarabException
org.apache.torque.TorqueException
ScarabException
public IssueType getIssueTypeForTemplateType()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.lang.Integer getTemplateId()
throws org.apache.torque.TorqueException,
ScarabException
org.apache.torque.TorqueException
ScarabException
public boolean hasIssues()
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
public java.lang.String getDisplayName(Module module)
throws org.apache.torque.TorqueException
String representation of the display name.
org.apache.torque.TorqueException
public boolean hasIssues(Module module)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
public static IssueType getInstance(java.lang.String issueTypeName)
throws org.apache.torque.TorqueException,
ScarabException
org.apache.torque.TorqueException
ScarabException
public IssueType copyIssueType()
throws org.apache.torque.TorqueException,
ScarabException
org.apache.torque.TorqueException
ScarabException
public void deleteModuleMappings(ScarabUser user)
throws org.apache.torque.TorqueException,
ScarabException
org.apache.torque.TorqueException
ScarabException
public void createDefaultGroups()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getAttributeGroups(Module module)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getAttributeGroups(boolean activeOnly)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getAttributeGroups(Module module,
boolean activeOnly)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public AttributeGroup createNewGroup()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public AttributeGroup createNewGroup(Module module)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public int getDedupeSequence()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueExceptiongetDedupeSequence(Module)
int getDedupeSequence(Module module)
throws org.apache.torque.TorqueException
module - A specific Module to retrieve AttributeGroup
associations for, or null for groups associated
with the global issue type.
org.apache.torque.TorqueExceptionpublic java.util.List getRIssueTypeAttributes()
getRIssueTypeAttributes in class BaseIssueType
public java.util.List getRIssueTypeAttributes(boolean activeOnly)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getRIssueTypeAttributes(boolean activeOnly,
java.lang.String attributeType)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getAttributes(java.lang.String attributeType)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public RIssueTypeAttribute addRIssueTypeAttribute(Attribute attribute)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public RIssueTypeAttribute getRIssueTypeAttribute(Attribute attribute)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getUserAttributes()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getUserAttributes(boolean activeOnly)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public int getLastAttribute(java.lang.String attributeType)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public int getLastAttributeOption(Attribute attribute)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public RIssueTypeOption addRIssueTypeOption(AttributeOption option)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getRIssueTypeOptions(Attribute attribute)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getRIssueTypeOptions(Attribute attribute,
boolean activeOnly)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public RIssueTypeOption getRIssueTypeOption(AttributeOption option)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getAvailableAttributes(java.lang.String attributeType)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getAvailableAttributeOptions(Attribute attribute)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueExceptionpublic java.lang.String toString()
toString in class BaseIssueType
public java.util.List getMatchingAttributeValuesList(Module oldModule,
Module newModule,
IssueType newIssueType)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getOrphanAttributeValuesList(Module oldModule,
Module newModule,
IssueType newIssueType)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public boolean isSystemDefined()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public Attribute getDefaultTextAttribute(Module module)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getQuickSearchAttributes(Module module)
throws org.apache.torque.TorqueException
List of Attribute objects
org.apache.torque.TorqueException
public boolean canCreateIssueInScope(ScarabUser user,
Module module)
throws org.apache.torque.TorqueException,
ScarabException
user - module -
org.apache.torque.TorqueException
ScarabException
public boolean canCreateAttributeInScope(ScarabUser user,
Module module,
Attribute attribute)
throws org.apache.torque.TorqueException,
ScarabException
user - module - attribute -
org.apache.torque.TorqueException
ScarabException
public java.util.List getRequiredAttributes(Module module)
throws org.apache.torque.TorqueException
List of Attribute objects
org.apache.torque.TorqueException
public java.util.List getActiveAttributes(Module module)
throws org.apache.torque.TorqueException
List of Attribute objects
org.apache.torque.TorqueException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||