fr.paris.lutece.plugins.workflow.modules.rest.business.actionresult
Class AbstractActionResult

java.lang.Object
  extended by fr.paris.lutece.plugins.workflow.modules.rest.business.actionresult.AbstractActionResult
All Implemented Interfaces:
IActionResult
Direct Known Subclasses:
FailedActionResult, SuccessfulActionResult

public class AbstractActionResult
extends java.lang.Object
implements IActionResult

AbstractActionResult


Constructor Summary
AbstractActionResult(int nIdAction, int nIdResource, java.lang.String strResourceType)
          Constructor
 
Method Summary
 int getIdAction()
          Get the id action
 int getIdResource()
          Get the id resource
 java.lang.String getMessage()
          Get the message
 java.lang.String getResourceType()
          Get the resource type
 boolean isSuccessful()
          Check if the action has been executed
 void setIdAction(int nIdAction)
          Set the id action
 void setIdResource(int nIdResource)
          Set the id resource
 void setMessage(java.lang.String strMessage)
          Set the message
 void setResourceType(java.lang.String strResourceType)
          Set the resource type
 void setSuccessful(boolean bIsSuccessful)
          Set true if the action has been executed, false otherwise
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractActionResult

public AbstractActionResult(int nIdAction,
                            int nIdResource,
                            java.lang.String strResourceType)
Constructor

Parameters:
nIdAction - the id action
nIdResource - the id resource
strResourceType - the resource type
Method Detail

setSuccessful

public void setSuccessful(boolean bIsSuccessful)
Set true if the action has been executed, false otherwise

Specified by:
setSuccessful in interface IActionResult
Parameters:
bIsSuccessful - true if the action has been executed, false otherwise

isSuccessful

public boolean isSuccessful()
Check if the action has been executed

Specified by:
isSuccessful in interface IActionResult
Returns:
true if the action has been executed, false otherwise

setMessage

public void setMessage(java.lang.String strMessage)
Set the message

Specified by:
setMessage in interface IActionResult
Parameters:
strMessage - the message

getMessage

public java.lang.String getMessage()
Get the message

Specified by:
getMessage in interface IActionResult
Returns:
the message

setIdAction

public void setIdAction(int nIdAction)
Set the id action

Specified by:
setIdAction in interface IActionResult
Parameters:
nIdAction - the id action

getIdAction

public int getIdAction()
Get the id action

Specified by:
getIdAction in interface IActionResult
Returns:
the id action

setIdResource

public void setIdResource(int nIdResource)
Set the id resource

Specified by:
setIdResource in interface IActionResult
Parameters:
nIdResource - the id resource

getIdResource

public int getIdResource()
Get the id resource

Specified by:
getIdResource in interface IActionResult
Returns:
the id resource

setResourceType

public void setResourceType(java.lang.String strResourceType)
Set the resource type

Specified by:
setResourceType in interface IActionResult
Parameters:
strResourceType - the resource type

getResourceType

public java.lang.String getResourceType()
Get the resource type

Specified by:
getResourceType in interface IActionResult
Returns:
the resource type


Copyright © 2012 Mairie de Paris. All Rights Reserved.