public class AbstractCommentableIssue extends AbstractViewIssue implements OperationContext
Subclasses should call super.doValidation() to check commenting permission.
JiraWebActionSupport.MessageType
ErrorCollection.Reason
I18nHelper.BeanFactory
Modifier and Type | Field and Description |
---|---|
protected UserUtil |
userUtil |
id, ISSUE_PERMISSION_ERROR, PREPOPULATED_ISSUE_OBJECT
attachmentManager
projectManager
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilters
log
Constructor and Description |
---|
AbstractCommentableIssue(SubTaskManager subTaskManager,
FieldScreenRendererFactory fieldScreenRendererFactory,
FieldManager fieldManager,
ProjectRoleManager projectRoleManager,
CommentService commentService,
UserUtil userUtil) |
Modifier and Type | Method and Description |
---|---|
protected Comment |
createComment() |
protected void |
doCommentValidation(boolean allowEmptyComment) |
protected void |
doValidation() |
String |
getComment() |
String |
getCommentLevel() |
Map<String,Object> |
getDisplayParams() |
FieldScreenRenderLayoutItem |
getFieldScreenRendererLayoutItemForField(OrderableField field) |
protected FieldScreenRenderer |
getFieldScreenRendererWithAllFields() |
Map<String,Object> |
getFieldValuesHolder() |
String |
getGroupLevel() |
Collection<com.atlassian.crowd.embedded.api.Group> |
getGroupLevels() |
IssueOperation |
getIssueOperation() |
protected OrderableField |
getOrderableField(String fieldId) |
Collection<ProjectRole> |
getRoleLevels() |
protected void |
populateCommentFields() |
void |
setComment(String comment) |
void |
setCommentLevel(String commentLevel) |
void |
setFieldValuesHolder(Map fieldValuesHolder) |
void |
setGroupLevel(String groupLevel) |
getAttachments, getPossibleComponents, getPossibleVersions, getPossibleVersionsReleasedFirst
addErrorMessage, assertIssueIsValid, cameFromIssue, cameFromParent, getId, getIssue, getIssueObject, getIssueObjectWithoutDatabaseRead, getIssuePath, getKey, getLayoutBean, getMutableIssue, getParentIssueObject, getProject, getProjectObject, getSecurityLevel, getSubTaskManager, getSummaryIssue, getViewIssueKey, getViewUrl, isEditable, isEditable, isHasEditIssuePermission, isIssueExists, isIssueValid, isSubTask, isSubTaskCreatable, isWorkflowAllowsEdit, redirectToView, refreshIssueObject, setId, setIssueObject, setKey, setViewIssueKey
addIssueToHistory, clearSelectedIssue, getAttachmentManager, getCurrentFailedLoginCount, getCurrentJQL, getCustomFieldManager, getDaysPerWeek, getEverLoggedIn, getFormToken, getHoursPerDay, getIssueManager, getLastFailedLogin, getLastLogin, getLoginCount, getPossibleVersions, getPossibleVersionsReleasedFirst, getPrettyDuration, getPreviousLogin, getSearchRequest, getSelectedIssueId, getSessionPagerFilterManager, getSessionSearchRequestManager, getSessionSearchRequestManagerFactory, getSessionSelectedIssueManager, getTotalFailedLoginCount, getUrlEncoded, getWorkflow, getWorkflowTransitionDescription, getWorkflowTransitionDisplayName, isCustomFieldHidden, isElevatedSecurityCheckRequired, isFieldHidden, isFieldHidden, isTimeTrackingEnabled, setFormToken, setSearchRequest, setSelectedIssueId, updateSearchRequest
getBrowsableProjects, getSelectedProjectId, setSelectedProject, setSelectedProject
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, 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, 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, doDefault, doExecute, 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
getLoggedInApplicationUser
addError, addErrorMessages, addErrors, hasAnyErrors, setErrorMessages
protected final transient UserUtil userUtil
public AbstractCommentableIssue(SubTaskManager subTaskManager, FieldScreenRendererFactory fieldScreenRendererFactory, FieldManager fieldManager, ProjectRoleManager projectRoleManager, CommentService commentService, UserUtil userUtil)
protected void doValidation()
doValidation
in class webwork.action.ActionSupport
protected void doCommentValidation(boolean allowEmptyComment)
protected void populateCommentFields()
public String getComment()
public void setComment(String comment)
public String getCommentLevel()
public void setCommentLevel(String commentLevel)
public String getGroupLevel()
public void setGroupLevel(String groupLevel)
groupLevel
- public Collection<com.atlassian.crowd.embedded.api.Group> getGroupLevels()
public Collection<ProjectRole> getRoleLevels()
public Map<String,Object> getFieldValuesHolder()
getFieldValuesHolder
in interface OperationContext
public IssueOperation getIssueOperation()
getIssueOperation
in interface OperationContext
public void setFieldValuesHolder(Map fieldValuesHolder)
public FieldScreenRenderLayoutItem getFieldScreenRendererLayoutItemForField(OrderableField field)
protected FieldScreenRenderer getFieldScreenRendererWithAllFields()
protected OrderableField getOrderableField(String fieldId)
Copyright © 2002-2015 Atlassian. All Rights Reserved.