com.ferri.portlet.utils
Class Missatge

java.lang.Object
  extended by com.ferri.portlet.utils.Missatge

public class Missatge
extends Object

Contenedor dels missatges de processos en els controladors, que apareixen per pantalla d'usuari.

Author:
dferri

Field Summary
private  String[] args
           
private  String key
           
private  Integer type
           
static Integer TYPE_ERROR
           
static Integer TYPE_INFO
           
static Integer TYPE_SUCCES
           
 
Constructor Summary
Missatge(Integer type, String msg)
          Creació Missatge
Missatge(Integer type, String msg, String[] args)
          Creació Missatge
 
Method Summary
static ArrayList<Missatge> addMissatge(String key, Integer type)
          Afegeix entitats Missatge al ArrayList missatges
static ArrayList<Missatge> addMissatge(String key, Integer type, ArrayList<Missatge> missatges)
          Afegeix entitats Missatge al ArrayList missatges
 String[] getArgs()
           
 String getKey()
           
 Integer getType()
           
 void setArgs(String[] args)
           
 void setKey(String key)
           
 void setType(Integer type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_ERROR

public static final Integer TYPE_ERROR

TYPE_SUCCES

public static final Integer TYPE_SUCCES

TYPE_INFO

public static final Integer TYPE_INFO

key

private String key

type

private Integer type

args

private String[] args
Constructor Detail

Missatge

public Missatge(Integer type,
                String msg)
Creació Missatge

Parameters:
type -
msg -

Missatge

public Missatge(Integer type,
                String msg,
                String[] args)
Creació Missatge

Parameters:
type -
msg -
args -
Method Detail

getKey

public String getKey()
Returns:
the key

setKey

public void setKey(String key)
Parameters:
key - the key to set

getType

public Integer getType()
Returns:
the type

setType

public void setType(Integer type)
Parameters:
type - the type to set

getArgs

public String[] getArgs()
Returns:
the args

setArgs

public void setArgs(String[] args)
Parameters:
args - the args to set

addMissatge

public static final ArrayList<Missatge> addMissatge(String key,
                                                    Integer type,
                                                    ArrayList<Missatge> missatges)
Afegeix entitats Missatge al ArrayList missatges

Parameters:
key -
type -
missatges -
Returns:

addMissatge

public static final ArrayList<Missatge> addMissatge(String key,
                                                    Integer type)
Afegeix entitats Missatge al ArrayList missatges

Parameters:
key -
type -
Returns: