Scarab commit: svn commit: r10913 - branches/release/0.22/src/java/org/tigris/scarab/om/Issue.java
Johannes Höchstädter <[email protected]>
| Newsgroups | gmane.comp.java.scarab.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: jhoech
Date: 2010-02-19 05:17:03-0800
New Revision: 10913
Modified:
branches/release/0.22/src/java/org/tigris/scarab/om/Issue.java
Log:
ADD - Some comments added.
Modified: branches/release/0.22/src/java/org/tigris/scarab/om/Issue.java
Url: http://scarab.tigris.org/source/browse/scarab/branches/release/0.22/src/java/org/tigris/scarab/om/Issue.java?view=diff&pathrev=10913&r1=10912&r2=10913
==============================================================================
--- branches/release/0.22/src/java/org/tigris/scarab/om/Issue.java (original)
+++ branches/release/0.22/src/java/org/tigris/scarab/om/Issue.java 2010-02-19 05:17:03-0800
@@ -1032,7 +1032,10 @@
/**
- * AttributeValues that are set for this Issue
+ * Returns AttributeValues that are set for this Issue.
+ *
+ * @return : Map with mappings for : attrinbute-Name/attribute-value
+ * @throws TorqueException
*/
public Map getAttributeValuesMap() throws TorqueException
{
@@ -1965,6 +1968,17 @@
return DependTypeManager.getAll();
}
+ /**
+ * Stores depend into database and checks wheter this depend exists already.
+ *
+ * @param activitySet : Instance of ActivitySet.
+ * @param depend : Instance of depend.
+ * @param childIssue : Issue which is target of dependency.
+ * @param user : Instance of user.
+ * @return : ActivitySet.
+ * @throws TorqueException
+ * @throws ScarabException
+ */
public ActivitySet doAddDependency(ActivitySet activitySet, Depend depend,
Issue childIssue, ScarabUser user)
throws TorqueException, ScarabException
@@ -3388,11 +3402,18 @@
}
/**
+ *
* Sets original AttributeValues for an new issue based on a hashmap of values
* This is data is saved to the database and the proper ActivitySet is
* also recorded.
- *
- * @throws TorqueException when the workflow has an error to report
+ *
+ * @param activitySet : Instance of activity set.
+ * @param attachment : Some attachment, e.g. reason of change.
+ * @param newValues : Map with mappings for attribute-values: id/attribute-value
+ * @param user : Instance of user.
+ * @return : Instance of activity set.
+ * @throws TorqueException
+ * @throws ScarabException
*/
public ActivitySet setInitialAttributeValues(ActivitySet activitySet,
Attachment attachment,
@@ -3593,6 +3614,12 @@
* Make sure that workflow is valid for the initial values of a new issue.
* It will return a non-null String
* which is the workflow error message otherwise it will return null.
+ *
+ * @param newValues : Map with mapings of: id/attribute-value
+ * @param user : User instance.
+ * @return
+ * @throws TorqueException
+ * @throws ScarabException
*/
public String doCheckInitialAttributeValueWorkflow(final HashMap newValues,
final ScarabUser user)
@@ -3620,11 +3647,17 @@
return msg;
}
- /**
- * This method is used with the setAttributeValues() method to
- * Make sure that workflow is valid. It will return a non-null String
- * which is the workflow error message otherwise it will return null.
- */
+ /**
+ * This method is used with the setAttributeValues() method to
+ * Make sure that workflow is valid. It will return a non-null String
+ * which is the workflow error message otherwise it will return null.
+ *
+ * @param newAttVals : Map with mapings of: id/attribute-value
+ * @param user : User instance.
+ * @return
+ * @throws TorqueException
+ * @throws ScarabException
+ */
public String doCheckAttributeValueWorkflow(final HashMap newAttVals,
final ScarabUser user)
throws TorqueException,ScarabException
------------------------------------------------------
http://scarab.tigris.org/ds/viewMessage.do?dsForumId=3577&dsMessageId=2449088