Class ManageSubscriptions
java.lang.Object
webwork.action.ActionSupport
com.atlassian.jira.web.action.JiraWebActionSupport
com.atlassian.jira.web.action.ProjectActionSupport
com.atlassian.jira.web.action.IssueActionSupport
com.atlassian.jira.web.action.issue.SearchDescriptionEnabledAction
com.atlassian.jira.web.action.filter.AbstractFilterAction
com.atlassian.jira.web.action.filter.ManageSubscriptions
- All Implemented Interfaces:
ErrorCollection,I18nHelper,FilterOperationsAction,HttpServletVariables,AuthorizationSupport,Serializable,webwork.action.Action,webwork.action.CommandDriven,webwork.action.IllegalArgumentAware
Action class for Managing Subscriptions.
Was previously a command of ManageFilters, but has been extracted for increase security. Action now is protected by
the user role.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
JiraWebActionSupport.MessageTypeNested classes/interfaces inherited from interface com.atlassian.jira.util.ErrorCollection
ErrorCollection.ReasonNested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper
I18nHelper.BeanFactory -
Field Summary
Fields inherited from class com.atlassian.jira.web.action.issue.SearchDescriptionEnabledAction
fieldValuesHolder, issueSearcherManager, permissionManagerFields inherited from class com.atlassian.jira.web.action.IssueActionSupport
attachmentManagerFields inherited from class com.atlassian.jira.web.action.ProjectActionSupport
projectManagerFields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, log, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilters, SECURITY_BREACH_RESULTFields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessagesFields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS -
Constructor Summary
ConstructorsConstructorDescriptionManageSubscriptions(IssueSearcherManager issueSearcherManager, FilterSubscriptionService filterSubscriptionService, com.atlassian.mail.server.MailServerManager mailServerManager, SearchService searchService, UserManager userManager, FeatureManager featureManager, GlobalPermissionManager globalPermissionManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringdoView()Get the tooltip for the for a subscription.Get the las sent date for a subscriptionGet the next sent date for a subscriptionGet a pretty version of the cron trigger.getSubscriber(FilterSubscription subscription) intbooleanbooleanbooleanloggedInUserHasEditRights(FilterSubscription subscription) Subscriptions are editable by their creator and admins.Methods inherited from class com.atlassian.jira.web.action.filter.AbstractFilterAction
getFilter, getFilterId, getFilterName, setFilterIdMethods inherited from class com.atlassian.jira.web.action.issue.SearchDescriptionEnabledAction
createFilterOperationsBean, getActionParams, getFilterOperationsBean, getSearchContext, getSearchers, isFilterValid, isShown, validateSearchFilterIsSavedFilterMethods inherited from class com.atlassian.jira.web.action.IssueActionSupport
addIssueToHistory, getAttachmentManager, getCurrentDateTimeInUsersTimezone, 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, updateSearchRequestMethods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowsableProjects, getSelectedProjectId, setSelectedProject, setSelectedProjectMethods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addError, addErrorCollection, addErrorMessage, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, addMessageToResponse, addReason, addReasons, checkIfUrlIsAllowed, execute, forceRedirect, getActionName, getAdministratorContactLink, getApplicationProperties, getAuthorizationSupport, getComponentInstanceOfType, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDefaultResourceBundle, getDescTranslation, getDescTranslation, getDmyDateFormatter, getEmptyResponse, getErrorMessages, getErrors, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getHttpRequest, getHttpResponse, getHttpSession, getI18nHelper, getJiraContactHelper, getJiraServiceContext, getKeysForPrefix, getLanguage, getLocale, getLoggedInApplicationUser, getLoggedInUser, getNameTranslation, getNameTranslation, getOfBizDelegator, getOutboundWhitelistProvider, getOutlookDate, getPermissionManager, getProjectManager, getRandomHint, getReasons, getRedirect, getRedirect, getRedirectSanitiser, getRequestSourceType, getResourceBundle, getResult, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getServletContext, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTimeFormat, getUnescapedText, getUntransformedRawText, getUriValidator, getUserFullName, getUserManager, getUserPreferences, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasAnyErrors, hasErrorMessage, hasErrorMessageByKey, hasGlobalPermission, hasGlobalPermission, hasIssuePermission, hasIssuePermission, hasIssuePermission, hasPermission, hasProjectPermission, hasProjectPermission, htmlEncode, insertContextPath, isAdministrator, isIndexing, isInlineDialogMode, isKeyDefined, isSystemAdministrator, isUserExists, isUserExistsByKey, isUserExistsByName, removeKeyOrAddError, returnComplete, returnComplete, returnCompleteWithInlineRedirect, returnCompleteWithInlineRedirectAndMsg, returnCompleteWithInlineRedirectAndMsg, returnMsgToUser, returnMsgToUser, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId, tagMauEventWithApplication, tagMauEventWithProject, urlEncodeMethods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, doValidation, getCommandName, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface webwork.action.CommandDriven
getCommandName, setCommandMethods inherited from interface com.atlassian.jira.util.ErrorCollection
addError, addErrorMessage, setErrorMessagesMethods inherited from interface com.atlassian.jira.web.action.filter.FilterOperationsAction
getFilterOperationsBean, isFilterValid
-
Constructor Details
-
ManageSubscriptions
public ManageSubscriptions(IssueSearcherManager issueSearcherManager, FilterSubscriptionService filterSubscriptionService, com.atlassian.mail.server.MailServerManager mailServerManager, SearchService searchService, UserManager userManager, FeatureManager featureManager, GlobalPermissionManager globalPermissionManager)
-
-
Method Details
-
doExecute
- Overrides:
doExecutein classwebwork.action.ActionSupport- Throws:
Exception
-
doDefault
- Overrides:
doDefaultin classwebwork.action.ActionSupport- Throws:
Exception
-
getSubscriptionCount
public int getSubscriptionCount() -
getSubscriptions
-
isMailConfigured
public boolean isMailConfigured() -
doView
-
getSubscriber
-
loggedInUserHasEditRights
Subscriptions are editable by their creator and admins. -
getCronTooltip
Get the tooltip for the for a subscription.- Parameters:
sub- The subscrion to get the tooltip for- Returns:
- The tooltip
-
getPrettySchedule
Get a pretty version of the cron trigger. E.g. Every day at 12- Parameters:
sub- The subscription to get the value for.- Returns:
- A description of the cron trigger id pretty format`
-
getLastSent
Get the las sent date for a subscription- Parameters:
sub- The subscription to get last send for- Returns:
- A date suitable for displaying
-
getNextSend
Get the next sent date for a subscription- Parameters:
sub- The subscription to get next send for- Returns:
- A date suitable for displaying
-
isGroupValid
-