|
|||||||||||
| 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.BaseMITList
org.tigris.scarab.om.MITList
A class representing a list (not List) of MITListItems. MIT stands for Module and IssueType. This class contains corresponding methods to many in Module which take a single IssueType. for example module.getAttributes(issueType) is replaced with mitList.getCommonAttributes() in cases where several modules and issuetypes are involved.
| Nested Class Summary | |
class |
MITList.ItemsIterator
|
| Field Summary |
| Fields inherited from class org.tigris.scarab.om.BaseMITList |
collMITListItems, collQuerys, collRModuleUserAttributes |
| Fields inherited from class org.apache.torque.om.BaseObject |
NEW_ID |
| Constructor Summary | |
MITList()
|
|
| Method Summary | |
void |
addAll(MITList list)
|
void |
addMITListItem(MITListItem item)
Method called to associate a MITListItem object to this object through the MITListItem foreign key attribute |
void |
addToCriteria(org.apache.torque.util.Criteria crit)
|
boolean |
contains(MITListItem item)
|
MITList |
copy()
Makes a copy of this object. |
java.util.List |
getAllRModuleOptionTree(Attribute attribute)
|
java.util.List |
getAllRModuleUserAttributes()
|
java.util.List |
getAttributes(boolean activeOnly,
boolean commonOnly)
Get the list of all attributes in this MITList. |
java.util.List |
getCommonAttributes()
|
java.util.List |
getCommonAttributes(boolean activeOnly)
|
java.util.List |
getCommonLeafRModuleOptions(Attribute attribute)
|
java.util.List |
getCommonNonUserAttributes()
|
java.util.List |
getCommonOptionAttributes()
|
java.util.List |
getCommonRModuleOptionTree(Attribute attribute)
|
java.util.List |
getCommonRModuleUserAttributes()
|
java.util.List |
getCommonUserAttributes()
|
java.util.List |
getCommonUserAttributes(boolean activeOnly)
gets a list of all of the User Attributes common to all modules in the list. |
java.util.List |
getDescendantsUnion(AttributeOption option)
|
java.util.List |
getExpandedMITListItems()
|
MITListItem |
getFirstItem()
|
IssueType |
getIssueType()
|
java.util.List |
getIssueTypeIds()
|
Module |
getModule()
|
(package private) Module |
getModule(MITListItem item)
|
java.util.List |
getModuleIds()
|
java.util.List |
getModules()
|
protected RModuleUserAttribute |
getNewRModuleUserAttribute(Attribute attribute)
|
MITList |
getPermittedSublist(java.lang.String[] permissions,
ScarabUser user)
Creates a new MITList containing only those items from this list for which the searcher has at least one of the permission. |
MITList |
getPermittedSublist(java.lang.String permission,
ScarabUser user)
Creates a new MITList containing only those items from this list for which the searcher has the given permission. |
java.util.List |
getPotentialAssignees(boolean includeCommitters)
potential assignee must have at least one of the permissions for the user attributes in all the modules. |
protected java.util.List |
getSavedRMUAs()
|
ScarabUser |
getScarabUser()
Returns the associated ScarabUser object. |
java.util.List |
getUserAttributePermissions()
gets a list of permissions associated with the User Attributes that are active for this Module. |
boolean |
isAnonymous()
|
boolean |
isCommon(Attribute attribute)
|
boolean |
isCommon(Attribute attribute,
boolean activeOnly)
Checks all items to see if they contain the attribute. |
boolean |
isCommon(AttributeOption option)
|
boolean |
isCommon(AttributeOption option,
boolean activeOnly)
Checks all items after the first to see if they contain the attribute. |
boolean |
isEmpty()
tests if the list is empty |
boolean |
isModifiable()
Alias for getModifiable() |
boolean |
isSingleIssueType()
|
boolean |
isSingleModule()
|
boolean |
isSingleModuleIssueType()
|
java.util.Iterator |
iterator()
|
void |
save(java.sql.Connection con)
Stores the object in the database. |
void |
scheduleItemForDeletion(MITListItem item)
|
void |
setScarabUser(ScarabUser v)
Declares an association between this object and a ScarabUser object |
int |
size()
|
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, setModified, setNew, setPrimaryKey, setPrimaryKey |
| Constructor Detail |
public MITList()
| Method Detail |
public int size()
public boolean isEmpty()
public java.util.Iterator iterator()
public boolean contains(MITListItem item)
public boolean isModifiable()
boolean valuepublic boolean isAnonymous()
public MITList copy()
throws org.apache.torque.TorqueException
copy in class BaseMITListorg.apache.torque.TorqueException
public MITList getPermittedSublist(java.lang.String permission,
ScarabUser user)
throws org.apache.torque.TorqueException
permission - a String value
MITList value
org.apache.torque.TorqueException
public MITList getPermittedSublist(java.lang.String[] permissions,
ScarabUser user)
throws org.apache.torque.TorqueException
MITList value
org.apache.torque.TorqueExceptionpublic MITListItem getFirstItem()
public boolean isSingleModuleIssueType()
public boolean isSingleModule()
public boolean isSingleIssueType()
public Module getModule()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public IssueType getIssueType()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
Module getModule(MITListItem item)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public void setScarabUser(ScarabUser v)
throws org.apache.torque.TorqueException
setScarabUser in class BaseMITListv -
org.apache.torque.TorqueException
public ScarabUser getScarabUser()
throws org.apache.torque.TorqueException
BaseMITList
getScarabUser in class BaseMITListorg.apache.torque.TorqueException
public java.util.List getAttributes(boolean activeOnly,
boolean commonOnly)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
activeOnly - commonOnly -
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
public java.util.List getCommonAttributes()
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
public java.util.List getCommonAttributes(boolean activeOnly)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
public boolean isCommon(Attribute attribute,
boolean activeOnly)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
attribute - an Attribute value
boolean value
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
public boolean isCommon(Attribute attribute)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
public java.util.List getCommonNonUserAttributes()
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
public java.util.List getCommonOptionAttributes()
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
public java.util.List getCommonUserAttributes(boolean activeOnly)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
public java.util.List getCommonUserAttributes()
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
public java.util.List getPotentialAssignees(boolean includeCommitters)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
public java.util.List getUserAttributePermissions()
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
public java.util.List getAllRModuleUserAttributes()
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
org.apache.fulcrum.security.util.TurbineSecurityException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
org.apache.fulcrum.security.util.TurbineSecurityException
public java.util.List getCommonRModuleUserAttributes()
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
org.apache.fulcrum.security.util.TurbineSecurityException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
org.apache.fulcrum.security.util.TurbineSecurityException
protected RModuleUserAttribute getNewRModuleUserAttribute(Attribute attribute)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
protected java.util.List getSavedRMUAs()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getCommonLeafRModuleOptions(Attribute attribute)
throws org.apache.torque.TorqueException,
ScarabException
org.apache.torque.TorqueException
ScarabException
public java.util.List getCommonRModuleOptionTree(Attribute attribute)
throws org.apache.torque.TorqueException,
ScarabException
org.apache.torque.TorqueException
ScarabException
public java.util.List getAllRModuleOptionTree(Attribute attribute)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public java.util.List getDescendantsUnion(AttributeOption option)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public boolean isCommon(AttributeOption option)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
public boolean isCommon(AttributeOption option,
boolean activeOnly)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
option - an Attribute value
boolean value
org.apache.torque.TorqueException
com.workingdogs.village.DataSetExceptionpublic java.util.List getModuleIds()
public java.util.List getModules()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueExceptionpublic java.util.List getIssueTypeIds()
public void addToCriteria(org.apache.torque.util.Criteria crit)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public void addAll(MITList list)
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public void addMITListItem(MITListItem item)
throws org.apache.torque.TorqueException
BaseMITList
addMITListItem in class BaseMITListitem - MITListItem
org.apache.torque.TorqueExceptionpublic java.util.List getExpandedMITListItems()
public void scheduleItemForDeletion(MITListItem item)
public void save(java.sql.Connection con)
throws org.apache.torque.TorqueException
BaseMITList
save in interface org.apache.torque.om.Persistentsave in class BaseMITListcon -
org.apache.torque.TorqueExceptionpublic java.lang.String toString()
toString in class BaseMITList
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||