com.atlassian.jira.web.action.filter
Class ManageSubscriptions
java.lang.Object
webwork.action.ActionSupport
com.atlassian.jira.action.JiraActionSupport
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.ManageSubscriptions
- All Implemented Interfaces:
- ErrorCollection, I18nHelper, FilterOperationsAction, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware
public class ManageSubscriptions
- extends SearchDescriptionEnabledAction
- implements FilterOperationsAction
Action class for Managaing Subscriptions.
Was previously a command of ManageFilters, but has been extracted for increase security. Action now is protected by
the user role.
- See Also:
- Serialized Form
Fields inherited from class webwork.action.ActionSupport |
command, errorMap, errorMessages |
Fields inherited from interface webwork.action.Action |
ERROR, INPUT, LOGIN, NONE, SUCCESS |
Methods inherited from class com.atlassian.jira.web.action.issue.SearchDescriptionEnabledAction |
createFilterOperationsBean, getActionParams, getFieldValuesHolder, getFilterOperationsBean, getSearchContext, getSearcherGroups, getSearchers, getSearcherViewHtml, getSearchRequestJqlString, getSearchSorts, isFilterFavourite, isFilterValid, isSearchRequestFitsNavigator, isShown, populateFieldValuesHolderFromQuery, validateSearchFilterIsSavedFilter |
Methods inherited from class com.atlassian.jira.web.action.IssueActionSupport |
getAttachmentManager, getCurrentJQL, getCustomFieldManager, getDaysPerWeek, getEverLoggedIn, getHoursPerDay, getIssueManager, getLastLogin, getLoginCount, getPossibleVersions, getPossibleVersionsReleasedFirst, getPrettyDuration, getPreviousLogin, getSearchRequest, getSelectedIssueId, getUrlEncoded, getWorkflow, getWorkflowTransitionDescription, getWorkflowTransitionDisplayName, isCustomFieldHidden, isFieldHidden, isFieldHidden, isFieldHidden, setCurrentIssue, setSearchRequest, setSelectedIssueId, updateSearchRequest |
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport |
addErrorCollection, forceRedirect, getAssignableUsers, getAssignableUsers, getCachedGroups, getComponentManager, getConstantsManager, getDateFormat, getDateTimeFormat, getDescTranslation, getExternalLinkUtils, getField, getFlushedErrorMessages, getGlobalPermissionManager, getJiraServiceContext, getLanguage, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRedirect, getRemoteUser, getReturnUrl, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getText, getTimeFormat, getUserFullName, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, htmlEncode, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isSystemAdministrator, isUserExists, setReturnUrl, setSelectedProjectId |
Methods inherited from class com.atlassian.jira.action.JiraActionSupport |
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getApplicationProperties, getDefaultResourceBundle, getDelegator, getJiraLocaleUtils, getLocale, getResult, getText, getText, getText, getText, getText, getText, getText, getText0, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isEnterprise, isIndexing, isProfessional, isProfessionalOrEnterprise, isStandard, removeKeyOrAddError |
Methods inherited from class webwork.action.ActionSupport |
addError, addErrorMessage, doExecute, doValidation, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface webwork.action.CommandDriven |
setCommand |
ManageSubscriptions
public ManageSubscriptions(IssueSearcherManager issueSearcherManager,
SearchRequestService searchRequestService,
SubscriptionManager subscriptionManager,
FilterSubscriptionService filterSubscriptionService,
com.atlassian.mail.server.MailServerManager mailServerManager,
SearchService searchService,
SearchSortUtil searchSortUtil)
doDefault
public String doDefault()
throws Exception
- Overrides:
doDefault
in class webwork.action.ActionSupport
- Throws:
Exception
getSubscriptionCount
public int getSubscriptionCount()
getSubscriptions
public Collection getSubscriptions()
isMailConfigured
public boolean isMailConfigured()
doView
public String doView()
getFilterId
public Long getFilterId()
setFilterId
public void setFilterId(Long filterId)
getFilterName
public String getFilterName()
getCronTooltip
public String getCronTooltip(org.ofbiz.core.entity.GenericValue sub)
- Get the tooltip for the for a subscription.
- Parameters:
sub
- The subscrion to get the tooltip for
- Returns:
- The tooltip
getPrettySchedule
public String getPrettySchedule(org.ofbiz.core.entity.GenericValue sub)
- 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
public String getLastSent(org.ofbiz.core.entity.GenericValue sub)
- Get the las sent date for a subscription
- Parameters:
sub
- The subscription to get last send for
- Returns:
- A date suitable for displaying
getNextSend
public String getNextSend(org.ofbiz.core.entity.GenericValue sub)
- Get the next sent date for a subscription
- Parameters:
sub
- The subscription to get next send for
- Returns:
- A date suitable for displaying
isGroupValid
public boolean isGroupValid(org.ofbiz.core.entity.GenericValue filter)
Copyright © 2002-2009 Atlassian. All Rights Reserved.