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

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.AddProjectNotifierAction
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

public class AddProjectNotifierAction
extends ContinuumActionSupport

Action to add a ProjectNotifier for a specified Project.

Since:
1.1
Version:
$Id: AddProjectNotifierAction.java 766898 2009-04-20 22:15:42Z evenisse $
Author:
Emmanuel Venisse
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
AddProjectNotifierAction()
           
 
Method Summary
 String doDefault()
           
 String execute()
          Default method executed when no specific method is specified for invocation.
 String getNotifierType()
          Returns the type for the ProjectNotifier.
 int getProjectGroupId()
          Returns the identifier for the ProjectGroup that the Project is a member of.
 String getProjectGroupName()
           
 int getProjectId()
          Identifier for the Project being edited.
 String input()
           
 boolean isFromGroupPage()
           
 void setFromGroupPage(boolean fromGroupPage)
           
 void setNotifierType(String notifierType)
          Sets the type for the ProjectNotifier.
 void setProjectGroupId(int projectGroupId)
          Sets the identifier for the ProjectGroup that the Project is a member of.
 void setProjectId(int projectId)
          Sets the identifier for the Project to be edited for project notifiers.
 
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, getContinuum, getPrincipal, getResourceBundle, getSecuritySystem, getUser, 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

AddProjectNotifierAction

public AddProjectNotifierAction()
Method Detail

execute

public String execute()
               throws ContinuumException
Default method executed when no specific method is specified for invocation.

Specified by:
execute in interface com.opensymphony.xwork2.Action
Overrides:
execute in class ContinuumActionSupport
Returns:
result as a String value to determines the control flow.
Throws:
ContinuumException

doDefault

public String doDefault()
                 throws ContinuumException
Overrides:
doDefault in class ContinuumActionSupport
Throws:
ContinuumException

input

public String input()
             throws ContinuumException
Overrides:
input in class ContinuumActionSupport
Throws:
ContinuumException

getNotifierType

public String getNotifierType()
Returns the type for the ProjectNotifier.

Returns:
Notifier type as String.

setNotifierType

public void setNotifierType(String notifierType)
Sets the type for the ProjectNotifier.

Parameters:
notifierType - Notifier type to set.

getProjectId

public int getProjectId()
Identifier for the Project being edited.

Returns:
project id.

setProjectId

public void setProjectId(int projectId)
Sets the identifier for the Project to be edited for project notifiers.

Parameters:
projectId - The project id to set.

getProjectGroupId

public int getProjectGroupId()
Returns the identifier for the ProjectGroup that the Project is a member of.

Returns:
the projectGroupId

setProjectGroupId

public void setProjectGroupId(int projectGroupId)
Sets the identifier for the ProjectGroup that the Project is a member of.

Parameters:
projectGroupId - the identifier to set

isFromGroupPage

public boolean isFromGroupPage()
Returns:
the fromGroupPage

setFromGroupPage

public void setFromGroupPage(boolean fromGroupPage)
Parameters:
fromGroupPage - the fromGroupPage to set

getProjectGroupName

public String getProjectGroupName()
                           throws ContinuumException
Throws:
ContinuumException


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