public class ListEventTypes extends JiraWebActionSupport
JiraWebActionSupport.MessageType
ErrorCollection.Reason
I18nHelper.BeanFactory
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilters, SECURITY_BREACH_RESULT
log
Constructor and Description |
---|
ListEventTypes(EventTypeManager eventTypeManager,
WorkflowManager workflowManager,
TemplateManager templateManager) |
Modifier and Type | Method and Description |
---|---|
String |
doAddEventType() |
String |
doDeleteEventType() |
String |
doEditEventType() |
protected String |
doExecute() |
Map<Long,String> |
getAssociatedNotificationSchemes(EventType eventType)
Retrieve a map of scheme ids to scheme names that are associsated with this EventType
|
org.apache.commons.collections.MultiMap |
getAssociatedWorkflows(EventType eventType)
Determines which workflows and transitions are associated with the specified eventType.
|
String |
getDescription() |
Long |
getEventTypeId() |
EventTypeManager |
getEventTypeManager() |
String |
getName() |
List |
getShortList(Collection<com.opensymphony.workflow.loader.ActionDescriptor> transitions)
Creates a short list of the workflow transitions limited to
SHORT_LIST_COUNT |
String |
getStepId(String workflowName,
long actionDescriptorId)
Determine a suitable stepId for the *ViewWorkflowTransition* link in the event type list.
|
Long |
getTemplateId() |
TemplateManager |
getTemplateManager() |
String |
getType() |
boolean |
isConfirmed() |
void |
setConfirmed(boolean confirmed) |
void |
setDescription(String description) |
void |
setEventTypeId(Long eventTypeId) |
void |
setName(String name) |
void |
setTemplateId(Long templateId) |
void |
setType(String type) |
addError, addErrorCollection, addErrorMessage, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, addMessageToResponse, addReason, addReasons, forceRedirect, getAdministratorContactLink, getApplicationProperties, getAuthorizationSupport, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDescTranslation, getDescTranslation, getDmyDateFormatter, getEmptyResponse, getErrorMessages, getErrors, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getHttpRequest, getHttpResponse, getHttpSession, getJiraContactHelper, getJiraServiceContext, getLanguage, getLoggedInApplicationUser, getLoggedInUser, getNameTranslation, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getRandomHint, getReasons, getRedirect, getRedirect, getRedirectSanitiser, getRequestSourceType, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getServletContext, getTimeFormat, getUriValidator, getUserFullName, getUserManager, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, hasGlobalPermission, hasGlobalPermission, hasIssuePermission, hasIssuePermission, hasIssuePermission, hasPermission, hasProjectPermission, hasProjectPermission, htmlEncode, insertContextPath, isAdministrator, isInlineDialogMode, isSystemAdministrator, isUserExists, isUserExistsByKey, isUserExistsByName, returnComplete, returnComplete, returnCompleteWithInlineRedirect, returnCompleteWithInlineRedirectAndMsg, returnCompleteWithInlineRedirectAndMsg, returnMsgToUser, returnMsgToUser, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId, tagMauEventWithApplication, tagMauEventWithProject, urlEncode
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getComponentInstanceOfType, getDefaultResourceBundle, getI18nHelper, getKeysForPrefix, getLocale, getOfBizDelegator, getResourceBundle, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getUnescapedText, getUntransformedRawText, getUserPreferences, hasAnyErrors, isIndexing, isKeyDefined, removeKeyOrAddError
addError, addErrorMessage, doDefault, doValidation, getCommandName, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addError, addErrorMessage, addErrorMessages, addErrors, hasAnyErrors, setErrorMessages
public ListEventTypes(EventTypeManager eventTypeManager, WorkflowManager workflowManager, TemplateManager templateManager)
protected String doExecute() throws Exception
doExecute
in class webwork.action.ActionSupport
Exception
public String doAddEventType()
public String doDeleteEventType()
public String doEditEventType()
public String getStepId(String workflowName, long actionDescriptorId)
The initial step *Create Issue* does not have a related step id and is not needed for the link - so return null in this case.
workflowName
- actionDescriptorId
- public List getShortList(Collection<com.opensymphony.workflow.loader.ActionDescriptor> transitions)
SHORT_LIST_COUNT
transitions
- a collection of workflow transitionsSHORT_LIST_COUNT
in sizepublic EventTypeManager getEventTypeManager()
public org.apache.commons.collections.MultiMap getAssociatedWorkflows(EventType eventType)
The event type can be associated with a workflow through a post function on any of the workflow transitions.
eventType
- event typeWorkflowTransitionKey
s -> transitionspublic Map<Long,String> getAssociatedNotificationSchemes(EventType eventType)
eventType
- the EventTypepublic TemplateManager getTemplateManager()
public String getName()
public void setName(String name)
public String getDescription()
public void setDescription(String description)
public boolean isConfirmed()
public void setConfirmed(boolean confirmed)
public Long getEventTypeId()
public void setEventTypeId(Long eventTypeId)
public String getType()
public void setType(String type)
public Long getTemplateId()
public void setTemplateId(Long templateId)
Copyright © 2002-2022 Atlassian. All Rights Reserved.