com.atlassian.jira.web.action.filter
Class ManageSubscriptions

java.lang.Object
  extended by webwork.action.ActionSupport
      extended by com.atlassian.jira.action.JiraActionSupport
          extended by com.atlassian.jira.web.action.JiraWebActionSupport
              extended by com.atlassian.jira.web.action.ProjectActionSupport
                  extended by com.atlassian.jira.web.action.IssueActionSupport
                      extended by com.atlassian.jira.web.action.issue.SearchDescriptionEnabledAction
                          extended by com.atlassian.jira.web.action.filter.ManageSubscriptions
All Implemented Interfaces:
ErrorCollection, I18nHelper, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware

public class ManageSubscriptions
extends SearchDescriptionEnabledAction

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

Field Summary
 
Fields inherited from class com.atlassian.jira.web.action.issue.SearchDescriptionEnabledAction
fieldValuesHolder, issueSearcherManager
 
Fields inherited from class com.atlassian.jira.web.action.IssueActionSupport
attachmentManager
 
Fields inherited from class com.atlassian.jira.web.action.ProjectActionSupport
projectManager
 
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, savedFilters, selectedProject
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
log
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages
 
Fields inherited from interface com.atlassian.jira.util.I18nHelper
DEFAULT_RESOURCE_BUNDLE
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
ManageSubscriptions(IssueSearcherManager issueSearcherManager, SearchRequestService searchRequestService, SubscriptionManager subscriptionManager, FilterSubscriptionService filterSubscriptionService)
           
 
Method Summary
 String doDefault()
           
 String doView()
           
 String getCronTooltip(org.ofbiz.core.entity.GenericValue sub)
          Get the tooltip for the for a subscription.
 Long getFilterId()
           
 String getFilterName()
           
 String getLastSent(org.ofbiz.core.entity.GenericValue sub)
          Get the las sent date for a subscription
 String getNextSend(org.ofbiz.core.entity.GenericValue sub)
          Get the next sent date for a subscription
 String getPrettySchedule(org.ofbiz.core.entity.GenericValue sub)
          Get a pretty version of the cron trigger.
 int getSubscriptionCount()
           
 Collection getSubscriptions()
           
 boolean isGroupValid(org.ofbiz.core.entity.GenericValue filter)
           
 void setFilterId(Long filterId)
           
 
Methods inherited from class com.atlassian.jira.web.action.issue.SearchDescriptionEnabledAction
getActionParams, getFieldValuesHolder, getSearchContext, getSearcherGroups, getSearchers, getSearcherViewHtml, isFilterFavourite, isShown, populateFieldValuesHolderFromSR, validateSearchFilterIsSavedFilter
 
Methods inherited from class com.atlassian.jira.web.action.IssueActionSupport
getAttachmentManager, getCustomFieldManager, getDaysPerWeek, getHoursPerDay, getIssueManager, getPossibleVersions, getPossibleVersionsReleasedFirst, getPrettyDuration, getSearchRequest, getUrlEncoded, getWorkflow, getWorkflowTransitionDescription, getWorkflowTransitionDisplayName, isCustomFieldHidden, isFieldHidden, isFieldHidden, isFieldHidden, setCurrentIssue, setSearchRequest, updateSearchRequest
 
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowseableProjects, getBrowseableProjectsInCategory, getSelectedProjectId, setSelectedProject, setSelectedProject
 
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, getSelectedProject, getSelectedProjectObject, getServerId, getText, getTimeFormat, getUserFullName, 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, 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 com.atlassian.jira.util.ErrorCollection
addError, addErrorMessage, addErrorMessages, addErrors, getErrorMessages, getErrors, hasAnyErrors, setErrorMessages
 
Methods inherited from interface webwork.action.CommandDriven
setCommand
 

Constructor Detail

ManageSubscriptions

public ManageSubscriptions(IssueSearcherManager issueSearcherManager,
                           SearchRequestService searchRequestService,
                           SubscriptionManager subscriptionManager,
                           FilterSubscriptionService filterSubscriptionService)
Method Detail

doDefault

public String doDefault()
                 throws Exception
Overrides:
doDefault in class webwork.action.ActionSupport
Throws:
Exception

getSubscriptionCount

public int getSubscriptionCount()

getSubscriptions

public Collection getSubscriptions()

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-2008 Atlassian. All Rights Reserved.