net.ezcontent.impl.eos
Class SimpleDocument

java.lang.Object
  extended bynet.ezcontent.impl.eos.base.BaseSimpleDocument
      extended bynet.ezcontent.impl.eos.SimpleDocument
All Implemented Interfaces:
Document, Record, Serializable

public class SimpleDocument
extends BaseSimpleDocument
implements Document

Este es un documento relativamente sencillo; simplemente cumple con la interfaz especificada. No es multilenguaje. This is the object class that relates to the SimpleDocument table. Any customizations belong here. Implementa Document

See Also:
Document, Serialized Form

Field Summary
 
Fields inherited from class net.ezcontent.impl.eos.base.BaseSimpleDocument
 
Constructor Summary
SimpleDocument()
           
SimpleDocument(int docID)
          Constructor for primary key
SimpleDocument(int docID, String title)
          Constructor for required fields
 
Method Summary
 void addAttachment(Attachment att)
           
 void addImage(Image img)
           
 void addLink(Link link)
           
 void addReference(Reference ref)
           
 Attachment getAttachment(String name)
           
 Link getLink(String name)
           
 int getRecordID()
          Devuelve un identificador que hace unico a este objeto en su tabla.
 Reference getReference(String refname)
           
 Status getStatus()
           
 Subject getSubject()
           
 String getText()
           
 String getType()
          El tipo de objeto.
 void removeAttachment(Attachment att)
           
 void removeImage(Image img)
           
 Link removeLink(Link link)
           
 void removeLink(String name)
           
 void removeReference(Reference ref)
           
 void setStatus(Status value)
          El status del objeto.
 void setSubject(Subject subject)
          Tema donde reside este documento.
 void setText(String text)
          Texto, posiblemente en formato HTML.
 
Methods inherited from class net.ezcontent.impl.eos.base.BaseSimpleDocument
equals, getAttachments, getDocID, getDocStatus, getImages, getLinks, getPublishDate, getReferences, getTema, getTexto, getTitle, getUnpublishDate, hashCode, setAttachments, setDocID, setDocStatus, setImages, setLinks, setPublishDate, setReferences, setTema, setTexto, setTitle, setUnpublishDate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.ezcontent.document.Document
getAttachments, getImages, getLinks, getPublishDate, getReferences, getTitle, getUnpublishDate, setAttachments, setImages, setLinks, setPublishDate, setReferences, setTitle, setUnpublishDate
 

Constructor Detail

SimpleDocument

public SimpleDocument()

SimpleDocument

public SimpleDocument(int docID)
Constructor for primary key


SimpleDocument

public SimpleDocument(int docID,
                      String title)
Constructor for required fields

Method Detail

setText

public void setText(String text)
Description copied from interface: Document
Texto, posiblemente en formato HTML.

Specified by:
setText in interface Document

getText

public String getText()
Specified by:
getText in interface Document

setStatus

public void setStatus(Status value)
Description copied from interface: Record
El status del objeto.

Specified by:
setStatus in interface Record

getStatus

public Status getStatus()
Specified by:
getStatus in interface Record

getType

public String getType()
Description copied from interface: Record
El tipo de objeto. Se usa para manejar sus status.

Specified by:
getType in interface Record

addAttachment

public void addAttachment(Attachment att)
Specified by:
addAttachment in interface Document

removeAttachment

public void removeAttachment(Attachment att)
Specified by:
removeAttachment in interface Document

getAttachment

public Attachment getAttachment(String name)
Specified by:
getAttachment in interface Document

getLink

public Link getLink(String name)
Specified by:
getLink in interface Document

addLink

public void addLink(Link link)
Specified by:
addLink in interface Document

removeLink

public void removeLink(String name)

removeLink

public Link removeLink(Link link)
Specified by:
removeLink in interface Document

addReference

public void addReference(Reference ref)
Specified by:
addReference in interface Document

removeReference

public void removeReference(Reference ref)
Specified by:
removeReference in interface Document

getReference

public Reference getReference(String refname)
Specified by:
getReference in interface Document

addImage

public void addImage(Image img)
Specified by:
addImage in interface Document

removeImage

public void removeImage(Image img)
Specified by:
removeImage in interface Document

getRecordID

public int getRecordID()
Description copied from interface: Record
Devuelve un identificador que hace unico a este objeto en su tabla.

Specified by:
getRecordID in interface Record

setSubject

public void setSubject(Subject subject)
Description copied from interface: Document
Tema donde reside este documento.

Specified by:
setSubject in interface Document

getSubject

public Subject getSubject()
Specified by:
getSubject in interface Document