net.ezcontent.dao
Interface DocumentDAO

All Superinterfaces:
GenericDAO
All Known Implementing Classes:
DocsDAO

public interface DocumentDAO
extends GenericDAO

Define un DAO para los objetos de Document.

Author:
Enrique Zamudio

Method Summary
 Attachment createAttachment()
          Crea un nuevo anexo para un documento.
 Document createDocument()
          Crea un nuevo documento.
 Image createImage()
          Crea una nueva imagen.
 Link createLink()
          Crea una nueva liga externa.
 Reference createReference()
          Crea una nueva referencia a un documento.
 Subject createSubject()
          Crea un tema raiz nuevo.
 Subject createSubject(Subject parent)
          Crea un nuevo subtema del tema especificado.
 List getChildren(Subject subject)
          Obtiene los subtemas de un tema.
 List getDocuments(Subject subject)
          Obtiene los documentos registrados en un tema.
 List getFullTree(Subject subject)
          Obtiene el arbol completo de subtemas de un tema.
 List getPublishedDocuments(Subject subject)
          Obtiene los documentos PUBLICADOS en un tema.
 Status getPublishedStatus()
          Devuelve el status de publicado.
 List getRootSubjects()
          Devuelve los temas que no tienen un tema padre.
 Subject getSubject(int subjectID)
           
 void publishDocument(Document doc)
          Publica un documento indefinidamente.
 void publishDocument(Document doc, int days)
          Publica un documento durante un numero determinado de dias.
 void unpublishDocument(Document doc)
          Despublica un documento inmediatamente
 
Methods inherited from interface net.ezcontent.dao.GenericDAO
delete, delete, findAll, findAll, getStatus, getStatus, getStatusList, refresh, refresh, save, save, update, update
 

Method Detail

getRootSubjects

public List getRootSubjects()
Devuelve los temas que no tienen un tema padre.


getSubject

public Subject getSubject(int subjectID)

getChildren

public List getChildren(Subject subject)
Obtiene los subtemas de un tema.


getFullTree

public List getFullTree(Subject subject)
Obtiene el arbol completo de subtemas de un tema. Es decir, obtiene los subtemas de los subtemas recursivamente.


getDocuments

public List getDocuments(Subject subject)
Obtiene los documentos registrados en un tema.


getPublishedDocuments

public List getPublishedDocuments(Subject subject)
Obtiene los documentos PUBLICADOS en un tema.


publishDocument

public void publishDocument(Document doc)
Publica un documento indefinidamente.


publishDocument

public void publishDocument(Document doc,
                            int days)
Publica un documento durante un numero determinado de dias.


unpublishDocument

public void unpublishDocument(Document doc)
Despublica un documento inmediatamente


getPublishedStatus

public Status getPublishedStatus()
Devuelve el status de publicado.


createDocument

public Document createDocument()
Crea un nuevo documento.


createSubject

public Subject createSubject()
Crea un tema raiz nuevo.


createSubject

public Subject createSubject(Subject parent)
Crea un nuevo subtema del tema especificado.


createAttachment

public Attachment createAttachment()
Crea un nuevo anexo para un documento.


createReference

public Reference createReference()
Crea una nueva referencia a un documento.


createLink

public Link createLink()
Crea una nueva liga externa.


createImage

public Image createImage()
Crea una nueva imagen.