org.tigris.scarab.om
Class RModuleIssueType

java.lang.Object
  extended byorg.apache.torque.om.BaseObject
      extended byorg.tigris.scarab.om.BaseRModuleIssueType
          extended byorg.tigris.scarab.om.RModuleIssueType
All Implemented Interfaces:
Conditioned, org.apache.torque.om.Persistent, org.apache.fulcrum.intake.Retrievable, java.io.Serializable

public class RModuleIssueType
extends BaseRModuleIssueType
implements org.apache.torque.om.Persistent, Conditioned

This class represents a RModuleIssueType

Version:
$Id: RModuleIssueType.java 9977 2005-12-09 00:40:59Z hair $
Author:
John McNally
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.tigris.scarab.om.BaseRModuleIssueType
collConditions
 
Fields inherited from class org.apache.torque.om.BaseObject
NEW_ID
 
Constructor Summary
RModuleIssueType()
           
 
Method Summary
 void addCondition(Condition cond)
          Method called to associate a Condition object to this object through the Condition foreign key attribute
 RModuleIssueType copy()
          Copies object.
 void delete(ScarabUser user)
          Checks if user has permission to delete module-issue type mapping.
 java.util.List getConditions(org.apache.torque.util.Criteria criteria)
          Forces the relationship to only retrieve IssueType level conditions (if ATTRIBUTE_ID is not asked to be NULL, this method could return conditions already defined for SCARAB_R_MODULE_ATTRIBUTE's records)
 java.lang.Integer[] getConditionsArray()
          Returns the array of Ids of the conditions that will force the requirement of this attribute if set.
 java.lang.String getDisplayDescription()
          Get the DisplayDescription
 java.lang.String getDisplayName()
          Not really sure why getDisplayText was created because it really should just be getDisplayName() (JSS)
 java.lang.String getDisplayText()
          Deprecated. use getDisplayName() instead
 Module getModule()
          Module getter.
 ScarabModule getScarabModule()
          Throws UnsupportedOperationException.
 boolean isConditioned()
           
 boolean isRequiredIf(java.lang.Integer optionID)
          Return true if the given attributeOptionId will make the current attribute required.
 void setConditionsArray(java.lang.Integer[] aOptionId)
          Load the attribute options' IDs from the template combo.
 void setModule(Module me)
          Use this instead of setScarabModule.
 void setScarabModule(ScarabModule module)
          Throws UnsupportedOperationException.
 
Methods inherited from class org.tigris.scarab.om.BaseRModuleIssueType
copyInto, getActive, getByName, getByPeerName, getByPosition, getComments, getConditions, getConditions, getConditions, getConditionsJoinAttribute, getConditionsJoinAttributeOption, getConditionsJoinRModuleAttribute, getConditionsJoinRModuleIssueType, getConditionsJoinTransition, getDedupe, getDisplay, getFieldNames, getHistory, getIssueType, getIssueType, getIssueTypeId, getModule, getModuleId, getOrder, getPeer, getPrimaryKey, getQueryKey, initConditions, isCacheOnSave, save, save, save, setActive, setComments, setDedupe, setDisplay, setDisplayDescription, setDisplayName, setHistory, setIssueType, setIssueTypeId, setIssueTypeKey, setModuleId, setModuleKey, setOrder, setPrimaryKey, setPrimaryKey, setPrimaryKey, setQueryKey, 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
 

Constructor Detail

RModuleIssueType

public RModuleIssueType()
Method Detail

getScarabModule

public ScarabModule getScarabModule()
Throws UnsupportedOperationException. Use getModule() instead.

Returns:
a ScarabModule value

setScarabModule

public void setScarabModule(ScarabModule module)
Throws UnsupportedOperationException. Use setModule(Module) instead.


setModule

public void setModule(Module me)
               throws org.apache.torque.TorqueException
Use this instead of setScarabModule. Note: module cannot be new.

Overrides:
setModule in class BaseRModuleIssueType
Parameters:
me - Module
Throws:
org.apache.torque.TorqueException

getModule

public Module getModule()
                 throws org.apache.torque.TorqueException
Module getter. Use this method instead of getScarabModule().

Overrides:
getModule in class BaseRModuleIssueType
Returns:
a Module value
Throws:
org.apache.torque.TorqueException

delete

public void delete(ScarabUser user)
            throws org.apache.torque.TorqueException,
                   ScarabException
Checks if user has permission to delete module-issue type mapping.

Throws:
org.apache.torque.TorqueException
ScarabException

getDisplayName

public java.lang.String getDisplayName()
Not really sure why getDisplayText was created because it really should just be getDisplayName() (JSS)

Overrides:
getDisplayName in class BaseRModuleIssueType
Returns:
String
See Also:
getDisplayText()

getDisplayText

public java.lang.String getDisplayText()
Deprecated. use getDisplayName() instead

Gets name to display. First tries to get the DisplayName for the RMIT, if that is null, then it will get the IssueType's name and use that.


getDisplayDescription

public java.lang.String getDisplayDescription()
Description copied from class: BaseRModuleIssueType
Get the DisplayDescription

Overrides:
getDisplayDescription in class BaseRModuleIssueType
Returns:
String

copy

public RModuleIssueType copy()
                      throws org.apache.torque.TorqueException
Copies object.

Overrides:
copy in class BaseRModuleIssueType
Throws:
org.apache.torque.TorqueException

getConditions

public java.util.List getConditions(org.apache.torque.util.Criteria criteria)
                             throws org.apache.torque.TorqueException
Forces the relationship to only retrieve IssueType level conditions (if ATTRIBUTE_ID is not asked to be NULL, this method could return conditions already defined for SCARAB_R_MODULE_ATTRIBUTE's records)

Overrides:
getConditions in class BaseRModuleIssueType
Throws:
org.apache.torque.TorqueException

getConditionsArray

public java.lang.Integer[] getConditionsArray()
Description copied from interface: Conditioned
Returns the array of Ids of the conditions that will force the requirement of this attribute if set. Used by templates to load the combo.

Specified by:
getConditionsArray in interface Conditioned
Returns:

setConditionsArray

public void setConditionsArray(java.lang.Integer[] aOptionId)
                        throws org.apache.torque.TorqueException
Description copied from interface: Conditioned
Load the attribute options' IDs from the template combo.

Specified by:
setConditionsArray in interface Conditioned
Parameters:
aOptionId -
Throws:
org.apache.torque.TorqueException

isRequiredIf

public boolean isRequiredIf(java.lang.Integer optionID)
                     throws org.apache.torque.TorqueException
Description copied from interface: Conditioned
Return true if the given attributeOptionId will make the current attribute required.

Specified by:
isRequiredIf in interface Conditioned
Parameters:
optionID -
Returns:
Throws:
org.apache.torque.TorqueException

isConditioned

public boolean isConditioned()
Specified by:
isConditioned in interface Conditioned
Returns:
true if there's any condition associated to this object, false if there's not.

addCondition

public void addCondition(Condition cond)
                  throws org.apache.torque.TorqueException
Method called to associate a Condition object to this object through the Condition foreign key attribute

Overrides:
addCondition in class BaseRModuleIssueType
Parameters:
cond - Condition
Throws:
org.apache.torque.TorqueException


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