public class Notificacion extends Object
Modifier and Type | Field and Description |
---|---|
protected Vector |
adjuntos |
protected String |
asunto |
protected boolean |
circular |
protected String |
cuerpo |
protected Vector |
destinatarios |
protected boolean |
hasEncryptedPDF |
protected String |
idNotificacion |
Constructor and Description |
---|
Notificacion() |
Notificacion(boolean circular)
Constructor de una notifiacion
|
Modifier and Type | Method and Description |
---|---|
void |
addAdjunto(Adjunto adjunto)
Permite añadir un adjunto a la notificacion
|
void |
addDestinatario(Abonado destinatario)
Permite añadir un destinatario de esta notificacion
|
Enumeration |
getAdjuntos()
Devuelve el conjunto de adjuntos contenidos en la notificacion
|
String |
getAsunto()
Devuelve el asunto de la notificacion
|
String |
getCuerpo()
Devuelve el cuerpo contenido en la notificacion
|
String[] |
getDestinatarios()
Devuelve los destinatarios de esta notificacion
|
String |
getId()
Devuelve el el identificador de la notificacion en el origen.
|
boolean |
isCircular()
Indica si la notificacion es una circular o no
|
int |
numAdjuntos()
Numero de adjuntos contenidos en la notificacion
|
void |
setAsunto(String asunto)
Permite indicar el asunto de la notificacion
|
void |
setCircular(boolean b)
Permite indicar si la notificacion va a ser una circular o no
|
void |
setCuerpo(String cuerpo)
Permite indicar el cuerpo (mensaje) de la notificacion
|
void |
setId(String id)
Permite indicar el identificador de la notificacion en el origen.
|
boolean |
tienePDFCifrado()
Indica si la notificacion contiene un PDF cifrado
|
protected String asunto
protected String cuerpo
protected Vector adjuntos
protected Vector destinatarios
protected String idNotificacion
protected boolean circular
protected boolean hasEncryptedPDF
public Notificacion()
public Notificacion(boolean circular)
circular
- Indica si la notificacion debe enviarse como una circular, es
decir a todos los Abonados suscritos a un servicio especificopublic void addAdjunto(Adjunto adjunto)
adjunto
- public void setAsunto(String asunto)
asunto
- public String getAsunto()
public void setId(String id)
id
- public String getId()
public void setCuerpo(String cuerpo)
cuerpo
- public String getCuerpo()
public void addDestinatario(Abonado destinatario) throws MCSNException
destinatario
- MCSNException
public String[] getDestinatarios()
public int numAdjuntos()
public Enumeration getAdjuntos()
public boolean isCircular()
public void setCircular(boolean b)
b
- public boolean tienePDFCifrado()
Copyright © 2018. All rights reserved.