org.apache.maven.continuum.web.action.notifier
Class AbstractGroupNotifierEditAction

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by org.apache.maven.continuum.web.action.PlexusActionSupport
          extended by org.apache.maven.continuum.web.action.ContinuumActionSupport
              extended by org.apache.maven.continuum.web.action.notifier.AbstractNotifierEditActionSupport
                  extended by org.apache.maven.continuum.web.action.notifier.AbstractGroupNotifierEditAction
All Implemented Interfaces:
com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.Preparable, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, Serializable, org.apache.struts2.interceptor.SessionAware
Direct Known Subclasses:
IrcGroupNotifierEditAction, JabberGroupNotifierEditAction, MailGroupNotifierEditAction, MsnGroupNotifierEditAction, WagonGroupNotifierEditAction

public abstract class AbstractGroupNotifierEditAction
extends AbstractNotifierEditActionSupport

Common base class for all Project Group notifier edit actions.

Version:
$Id: AbstractGroupNotifierEditAction.java 729461 2008-12-26 08:38:10Z olamy $
Author:
Rahul Thakur
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.maven.continuum.web.action.ContinuumActionSupport
dateFormatter, ERROR_MSG_AUTHORIZATION_REQUIRED, ERROR_MSG_PROCESSING_AUTHORIZATION, RELEASE_ERROR, REQUIRES_AUTHENTICATION, REQUIRES_AUTHORIZATION
 
Fields inherited from class org.apache.maven.continuum.web.action.PlexusActionSupport
session
 
Fields inherited from class com.opensymphony.xwork2.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
AbstractGroupNotifierEditAction()
           
 
Method Summary
protected  void checkAuthorization()
           
protected  ProjectNotifier getNotifier()
          Obtain and return the ProjectNotifier instance for editing.
 int getProjectGroupId()
           
 String getProjectGroupName()
           
protected  void saveNotifier(ProjectNotifier notifier)
          Creates or updates the ProjectNotifier instance for the ProjectGroup here.
 void setProjectGroupId(int projectGroupId)
           
 
Methods inherited from class org.apache.maven.continuum.web.action.notifier.AbstractNotifierEditActionSupport
edit, getNotifierId, getNotifierType, initConfiguration, isFromGroupPage, isSendOnError, isSendOnFailure, isSendOnScmFailure, isSendOnSuccess, isSendOnWarning, save, setFromGroupPage, setNotifierConfiguration, setNotifierId, setNotifierType, setSendOnError, setSendOnFailure, setSendOnScmFailure, setSendOnSuccess, setSendOnWarning
 
Methods inherited from class org.apache.maven.continuum.web.action.ContinuumActionSupport
checkAddGroupBuildDefinitionAuthorization, checkAddProjectBuildDefinitionAuthorization, checkAddProjectGroupAuthorization, checkAddProjectGroupNotifierAuthorization, checkAddProjectNotifierAuthorization, checkAddProjectToGroupAuthorization, checkAuthorization, checkAuthorization, checkAuthorization, checkBuildProjectGroupAuthorization, checkBuildProjectInGroupAuthorization, checkManageConfigurationAuthorization, checkManageLocalRepositoriesAuthorization, checkManageQueuesAuthorization, checkManageSchedulesAuthorization, checkModifyGroupBuildDefinitionAuthorization, checkModifyProjectBuildDefinitionAuthorization, checkModifyProjectGroupAuthorization, checkModifyProjectGroupNotifierAuthorization, checkModifyProjectInGroupAuthorization, checkModifyProjectNotifierAuthorization, checkRemoveGroupBuildDefinitionAuthorization, checkRemoveProjectBuildDefinitionAuthorization, checkRemoveProjectFromGroupAuthorization, checkRemoveProjectGroupAuthorization, checkRemoveProjectGroupNotifierAuthorization, checkRemoveProjectNotifierAuthorization, checkViewProjectGroupAuthorization, checkViewReportsAuthorization, doDefault, execute, getContinuum, getPrincipal, getResourceBundle, getSecuritySystem, getUser, input, isAuthenticated, prepare, requiresAuthentication, setContinuum
 
Methods inherited from class org.apache.maven.continuum.web.action.PlexusActionSupport
setSession
 
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, pause, setActionErrors, setActionMessages, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractGroupNotifierEditAction

public AbstractGroupNotifierEditAction()
Method Detail

saveNotifier

protected void saveNotifier(ProjectNotifier notifier)
                     throws ContinuumException
Creates or updates the ProjectNotifier instance for the ProjectGroup here.

This is used by the subclasses that create/obtain an instance of ProjectNotifier to be saved.

Specified by:
saveNotifier in class AbstractNotifierEditActionSupport
Parameters:
notifier - ProjectNotifier to save.
Throws:
ContinuumException - if there was an error saving the ProjectNotifier instance.
See Also:
AbstractNotifierEditActionSupport.saveNotifier(ProjectNotifier)

getNotifier

protected ProjectNotifier getNotifier()
                               throws ContinuumException
Description copied from class: AbstractNotifierEditActionSupport
Obtain and return the ProjectNotifier instance for editing.

Specified by:
getNotifier in class AbstractNotifierEditActionSupport
Returns:
the notifier
Throws:
ContinuumException

getProjectGroupId

public int getProjectGroupId()
Returns:
the projectGroupId

setProjectGroupId

public void setProjectGroupId(int projectGroupId)
Parameters:
projectGroupId - the projectGroupId to set

checkAuthorization

protected void checkAuthorization()
                           throws AuthorizationRequiredException,
                                  ContinuumException
Specified by:
checkAuthorization in class AbstractNotifierEditActionSupport
Throws:
AuthorizationRequiredException
ContinuumException

getProjectGroupName

public String getProjectGroupName()
                           throws ContinuumException
Throws:
ContinuumException


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.