|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectza.org.coefficient.modules.BaseModule
za.org.coefficient.modules.BaseProjectModule
za.org.coefficient.modules.issueTracker.IssueTracker
public class IssueTracker
Field Summary | |
---|---|
private static java.lang.String |
CURRENT_FILTER
|
private static java.lang.String |
ISSUE_DATA
|
private static java.lang.String |
ISSUE_DATAS
|
private static java.util.ArrayList |
ISSUE_LINKS
|
private static java.lang.String |
ISSUE_PAGER
|
private static java.util.ArrayList |
ISSUE_PRIORITIES
|
private static java.util.ArrayList |
ISSUE_RESOLUTIONS
|
private static java.util.ArrayList |
ISSUE_STATUSES
|
private static java.util.ArrayList |
ISSUE_TYPES
|
static java.lang.String |
LINK_DUPLICATED_BY
|
static java.lang.String |
LINK_DUPLICATES
|
static java.lang.String |
LINK_INCORPORATES
|
static java.lang.String |
LINK_PART_OF
|
static java.lang.String |
LINK_RELATED_TO
|
static java.lang.String |
LINK_RELATES_TO
|
private static java.lang.String |
MESSAGE_1
|
private static java.lang.String |
MESSAGE_2
|
static int |
PERCENT_COMPLETE_FINISHED
|
static int |
PERCENT_COMPLETE_START
|
static java.lang.String |
PRIORITY_BLOCKER
|
static java.lang.String |
PRIORITY_CRITICAL
|
static java.lang.String |
PRIORITY_MAJOR
|
static java.lang.String |
PRIORITY_MINOR
|
static java.lang.String |
PRIORITY_TRIVIAL
|
static java.lang.String |
RESOLUTION_CANNOT_REPRODUCE
|
static java.lang.String |
RESOLUTION_DUPLICATE
|
static java.lang.String |
RESOLUTION_FIXED
|
static java.lang.String |
RESOLUTION_INCOMPLETE
|
static java.lang.String |
RESOLUTION_REJECTED
|
static java.lang.String |
RESOLUTION_UNRESOLVED
|
static java.lang.String |
RESOLUTION_WONT_FIX
|
private static int |
SIZEKB
|
private static int |
SIZEMB
|
static java.lang.String |
STATUS_ASSIGNED
|
static java.lang.String |
STATUS_CLOSED
|
static java.lang.String |
STATUS_REOPENED
|
static java.lang.String |
STATUS_UNASSIGNED
|
private static java.lang.String |
SUBJECT
|
static java.lang.String |
TYPE_BUG
|
static java.lang.String |
TYPE_IMPROVEMENT
|
static java.lang.String |
TYPE_NEWFEATURE
|
static java.lang.String |
TYPE_PATCH
|
static java.lang.String |
TYPE_TASK
|
Constructor Summary | |
---|---|
IssueTracker()
|
Method Summary | |
---|---|
CoefficientContext |
attatchFile(CoefficientContext ctx)
|
java.lang.String |
canExecuteForRole(CoefficientContext ctx,
java.lang.String methodName,
Role usersHighestRole)
This is a base implementation that will allow all methods to be invoked without regard to roles |
CoefficientContext |
changeStatus(CoefficientContext ctx)
|
CoefficientContext |
comment(CoefficientContext ctx)
|
CoefficientContext |
createIssue(CoefficientContext ctx)
|
CoefficientContext |
deleteAllForProject(CoefficientContext ctx)
TODO: implement this |
CoefficientContext |
deleteAttatchment(CoefficientContext ctx)
|
CoefficientContext |
deleteFilter(CoefficientContext ctx)
|
CoefficientContext |
deleteIssueWithSummary(CoefficientContext ctx)
|
java.lang.String |
displayUsersData(CoefficientUser user)
This is a base implementation that will return an empty string for a modules user related data. |
private void |
emailWatchers(IssueData issue,
java.lang.String subject,
java.lang.String message)
|
CoefficientContext |
entry(CoefficientContext ctx)
|
CoefficientContext |
filterIssues(CoefficientContext ctx)
|
CoefficientContext |
findIssues(CoefficientContext ctx)
|
private java.lang.Integer |
getAllCount(java.lang.Long projectId)
|
private java.lang.Integer |
getAssignedToMeCount(java.lang.Long projectId,
java.lang.Long userId)
|
private net.sf.hibernate.type.Type[] |
getHibernateTypesForObjects(java.lang.Object[] objects)
|
java.lang.String |
getMainMethod()
This method is used to determine which method should be invoked when the module is requested without an operation. |
java.lang.String |
getModuleDescription()
This method is used to find the description of the module |
java.lang.String |
getModuleDisplayName()
This method is used to find the display name of the module |
private java.util.List |
getMyFilters(java.lang.Long projectId,
java.lang.Long userId)
|
private java.util.HashMap |
getMyFiltersCount(java.util.List myFilters)
|
private java.lang.Integer |
getNewCount(java.lang.Long projectId)
|
private java.lang.Integer |
getOpenCount(java.lang.Long projectId)
|
private java.util.HashMap |
getPrioritiesCount(java.lang.Long projectId)
|
private java.lang.Integer |
getReportedByMeCount(java.lang.Long projectId,
java.lang.Long userId)
|
private java.lang.String |
getSizeString(int fileSize)
To get a string describing the size of a file |
private java.util.HashMap |
getStatusesCount(java.lang.Long projectId)
|
java.lang.String |
getSummaryForProject(CoefficientContext ctx)
|
private java.util.HashMap |
getTypesCount(java.lang.Long projectId)
|
boolean |
isIssueCompleted(CoefficientContext ctx)
Workflow evalutation method. |
CoefficientContext |
linkIssue(CoefficientContext ctx)
|
CoefficientContext |
linkIssuePrompt(CoefficientContext ctx)
|
CoefficientContext |
resolveIssue(CoefficientContext ctx)
|
CoefficientContext |
resolveIssuePrompt(CoefficientContext ctx)
|
CoefficientContext |
saveComment(CoefficientContext ctx)
|
private java.lang.String |
saveFile(CoefficientContext ctx,
ProjectFolderItem item)
|
CoefficientContext |
saveFilter(CoefficientContext ctx)
|
CoefficientContext |
saveFilterPrompt(CoefficientContext ctx)
|
CoefficientContext |
saveIssue(CoefficientContext ctx)
|
CoefficientContext |
saveUpload(CoefficientContext ctx)
|
CoefficientContext |
setWatch(CoefficientContext ctx)
|
CoefficientContext |
showSummaryForProject(CoefficientContext ctx)
This method is required as this is a project module. |
private java.lang.String |
trimToOneDecimalPlace(java.lang.String floatString)
|
CoefficientContext |
unvoteForIssue(CoefficientContext ctx)
|
CoefficientContext |
viewIssue(CoefficientContext ctx)
|
CoefficientContext |
viewIssueComments(CoefficientContext ctx)
|
CoefficientContext |
viewIssueFilters(CoefficientContext ctx)
|
CoefficientContext |
voteForIssue(CoefficientContext ctx)
|
Methods inherited from class za.org.coefficient.modules.BaseModule |
---|
createRSSItem, getCoefficientContext, getModuleName, isProjectRequired, publishEvent, setCoefficientContext, showHelp |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PERCENT_COMPLETE_START
public static final int PERCENT_COMPLETE_FINISHED
public static final java.lang.String LINK_DUPLICATES
public static final java.lang.String LINK_DUPLICATED_BY
public static final java.lang.String LINK_INCORPORATES
public static final java.lang.String LINK_PART_OF
public static final java.lang.String LINK_RELATES_TO
public static final java.lang.String LINK_RELATED_TO
public static final java.lang.String STATUS_ASSIGNED
public static final java.lang.String STATUS_CLOSED
public static final java.lang.String STATUS_REOPENED
public static final java.lang.String STATUS_UNASSIGNED
public static final java.lang.String PRIORITY_BLOCKER
public static final java.lang.String PRIORITY_CRITICAL
public static final java.lang.String PRIORITY_MAJOR
public static final java.lang.String PRIORITY_MINOR
public static final java.lang.String PRIORITY_TRIVIAL
public static final java.lang.String TYPE_BUG
public static final java.lang.String TYPE_NEWFEATURE
public static final java.lang.String TYPE_TASK
public static final java.lang.String TYPE_IMPROVEMENT
public static final java.lang.String TYPE_PATCH
public static final java.lang.String RESOLUTION_FIXED
public static final java.lang.String RESOLUTION_WONT_FIX
public static final java.lang.String RESOLUTION_DUPLICATE
public static final java.lang.String RESOLUTION_INCOMPLETE
public static final java.lang.String RESOLUTION_CANNOT_REPRODUCE
public static final java.lang.String RESOLUTION_REJECTED
public static final java.lang.String RESOLUTION_UNRESOLVED
private static java.util.ArrayList ISSUE_TYPES
private static java.util.ArrayList ISSUE_PRIORITIES
private static java.util.ArrayList ISSUE_STATUSES
private static java.util.ArrayList ISSUE_RESOLUTIONS
private static java.util.ArrayList ISSUE_LINKS
private static final java.lang.String CURRENT_FILTER
private static final java.lang.String ISSUE_PAGER
private static final int SIZEKB
private static final int SIZEMB
private static final java.lang.String MESSAGE_1
private static final java.lang.String MESSAGE_2
private static final java.lang.String SUBJECT
private static final java.lang.String ISSUE_DATA
private static final java.lang.String ISSUE_DATAS
Constructor Detail |
---|
public IssueTracker()
Method Detail |
---|
public java.lang.String getMainMethod()
ModuleLocal
getMainMethod
in interface ModuleLocal
getMainMethod
in class BaseModule
public java.lang.String getModuleDescription()
ModuleLocal
getModuleDescription
in interface ModuleLocal
getModuleDescription
in class BaseModule
public java.lang.String getModuleDisplayName()
ModuleLocal
getModuleDisplayName
in interface ModuleLocal
getModuleDisplayName
in class BaseModule
public java.lang.String canExecuteForRole(CoefficientContext ctx, java.lang.String methodName, Role usersHighestRole)
BaseModule
canExecuteForRole
in interface ModuleLocal
canExecuteForRole
in class BaseModule
public java.lang.String displayUsersData(CoefficientUser user)
BaseModule
displayUsersData
in class BaseModule
public CoefficientContext deleteAllForProject(CoefficientContext ctx)
deleteAllForProject
in class BaseProjectModule
public CoefficientContext entry(CoefficientContext ctx)
public java.lang.String getSummaryForProject(CoefficientContext ctx) throws net.sf.hibernate.HibernateException
getSummaryForProject
in class BaseProjectModule
net.sf.hibernate.HibernateException
public CoefficientContext showSummaryForProject(CoefficientContext ctx) throws net.sf.hibernate.HibernateException
showSummaryForProject
in class BaseProjectModule
net.sf.hibernate.HibernateException
public CoefficientContext viewIssueFilters(CoefficientContext ctx) throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
public CoefficientContext createIssue(CoefficientContext ctx) throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
public CoefficientContext saveIssue(CoefficientContext ctx) throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
public CoefficientContext viewIssue(CoefficientContext ctx) throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
public CoefficientContext viewIssueComments(CoefficientContext ctx)
public CoefficientContext setWatch(CoefficientContext ctx) throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
public CoefficientContext comment(CoefficientContext ctx) throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
public CoefficientContext saveComment(CoefficientContext ctx) throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
public CoefficientContext attatchFile(CoefficientContext ctx) throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
public CoefficientContext saveUpload(CoefficientContext ctx) throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
public CoefficientContext voteForIssue(CoefficientContext ctx) throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
public CoefficientContext unvoteForIssue(CoefficientContext ctx) throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
public CoefficientContext findIssues(CoefficientContext ctx) throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
public CoefficientContext saveFilterPrompt(CoefficientContext ctx) throws java.lang.Exception
java.lang.Exception
public CoefficientContext saveFilter(CoefficientContext ctx) throws java.lang.Exception
java.lang.Exception
public CoefficientContext deleteFilter(CoefficientContext ctx) throws java.lang.Exception
java.lang.Exception
public CoefficientContext changeStatus(CoefficientContext ctx) throws java.lang.Exception
java.lang.Exception
public CoefficientContext resolveIssuePrompt(CoefficientContext ctx) throws java.lang.Exception
java.lang.Exception
public CoefficientContext resolveIssue(CoefficientContext ctx) throws java.lang.Exception
java.lang.Exception
public CoefficientContext deleteAttatchment(CoefficientContext ctx) throws java.lang.Exception
java.lang.Exception
public CoefficientContext linkIssuePrompt(CoefficientContext ctx) throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
public CoefficientContext linkIssue(CoefficientContext ctx) throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
public CoefficientContext filterIssues(CoefficientContext ctx) throws java.lang.Exception
java.lang.Exception
public boolean isIssueCompleted(CoefficientContext ctx) throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
public CoefficientContext deleteIssueWithSummary(CoefficientContext ctx) throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
private void emailWatchers(IssueData issue, java.lang.String subject, java.lang.String message)
private java.lang.String saveFile(CoefficientContext ctx, ProjectFolderItem item) throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
private java.lang.String getSizeString(int fileSize)
private java.lang.String trimToOneDecimalPlace(java.lang.String floatString)
private net.sf.hibernate.type.Type[] getHibernateTypesForObjects(java.lang.Object[] objects)
private java.util.HashMap getStatusesCount(java.lang.Long projectId) throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
private java.util.HashMap getPrioritiesCount(java.lang.Long projectId) throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
private java.util.HashMap getTypesCount(java.lang.Long projectId) throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
private java.lang.Integer getReportedByMeCount(java.lang.Long projectId, java.lang.Long userId) throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
private java.lang.Integer getAssignedToMeCount(java.lang.Long projectId, java.lang.Long userId) throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
private java.lang.Integer getAllCount(java.lang.Long projectId) throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
private java.lang.Integer getOpenCount(java.lang.Long projectId) throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
private java.lang.Integer getNewCount(java.lang.Long projectId) throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
private java.util.List getMyFilters(java.lang.Long projectId, java.lang.Long userId) throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
private java.util.HashMap getMyFiltersCount(java.util.List myFilters) throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |