|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcomum.database.Dao
ecar.dao.SegmentoDao
public class SegmentoDao
| Field Summary |
|---|
| Fields inherited from class comum.database.Dao |
|---|
logBean, logger, loggerAuditoria, ORDEM_ASC, ORDEM_DESC, request, session |
| Constructor Summary | |
|---|---|
SegmentoDao(javax.servlet.http.HttpServletRequest request)
Construtor. |
|
| Method Summary | |
|---|---|
void |
alterar(SegmentoSgt segmento,
java.util.List campos,
java.lang.String pathRaiz,
java.lang.String pathRelativo)
Altera um registro de segmento a partir de par�metros recebidos por request por um formul�rio de Upload. |
private void |
criarCollectionTipoAcesso(SegmentoSgt segmento,
java.util.List campos,
javax.servlet.http.HttpServletRequest request,
boolean usarFileUpload)
Cria a cole��o de atributos de Tipo de Acesso de Um Segmento |
void |
excluir(SegmentoSgt segmento,
java.lang.String pathRaiz)
Exclui um registro de segmento. |
java.util.List |
getAtivos()
|
java.util.List |
getSegmentosLivres(javax.servlet.ServletContext application)
Retorna uma lista com os segmentos livres (diferente de itens fixos Perguntas Frequentes, Glossario, Artigo e Taxa��es) Utilizando arquivo de properties (admPortal.itensFixos) |
java.util.List |
getSegmentosLivresComGrupoDeAtributoParaEditorias(javax.servlet.ServletContext application)
Retorna uma lista com os segmentos livres que possuam um grupo de atributos para editorias cadastrado ( c�digo maior que 4 - diferente de Perguntas Frequentes, Glossario, Artigo e Taxa��es) |
java.util.List |
getTipoAcessoSegmentoById(SegmentoSgt segmento)
Retorna uma List com todos as identifica��es dos Atributos que representam os Tipos de Acesso de um Segmento |
java.util.List |
pesquisar(SegmentoSgt segmento)
Pesquisa |
java.util.List |
pesquisar(SegmentoSgt segmento,
javax.servlet.ServletContext application)
Invoca o m�todo pesquisar do Dao, retirando do resultado os Segmentos n�o fixos. e itera sobre o resultado para inicializar as Collections de Tipo de Acesso de Cada objeto retornado. |
void |
salvar(SegmentoSgt segmento,
java.util.List campos,
java.lang.String pathRaiz,
java.lang.String pathRelativo)
Salva um registro de segmento a partir de par�metros recebidos por request por um formul�rio de Upload. |
void |
setSegmento(SegmentoSgt segmento,
javax.servlet.http.HttpServletRequest campos,
boolean recuperarParametrosComoString)
A partir de dados passados por request popula um objeto SegmentoSgt |
void |
setSegmentoUpload(SegmentoSgt segmento,
java.util.List campos)
A partir de um List de campos obtidos na requsi��o de um formul�rio de upload popula um objeto SegmentoSgt |
void |
uploadImagem(SegmentoSgt segmento,
java.util.List campos,
java.lang.String pathRaiz,
java.lang.String pathRelativo)
Realiza o upload da imagem do Segmento. |
| Methods inherited from class comum.database.Dao |
|---|
alterar, alterar, alterar, buscar, contar, contarLong, excluir, excluir, getSession, inicializarLogBean, listar, ordenaSet, pesquisar, pesquisarDuplos, salvar, salvar, salvarOuAlterar, salvarOuAlterar, setSession |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SegmentoDao(javax.servlet.http.HttpServletRequest request)
| Method Detail |
|---|
public void salvar(SegmentoSgt segmento,
java.util.List campos,
java.lang.String pathRaiz,
java.lang.String pathRelativo)
throws ECARException
segmento - campos - pathRaiz - pathRelativo -
ECARException
public void excluir(SegmentoSgt segmento,
java.lang.String pathRaiz)
throws ECARException
segmento - pathRaiz -
ECARException
public void alterar(SegmentoSgt segmento,
java.util.List campos,
java.lang.String pathRaiz,
java.lang.String pathRelativo)
throws ECARException
segmento - campos - pathRaiz - pathRelativo -
ECARException
public void uploadImagem(SegmentoSgt segmento,
java.util.List campos,
java.lang.String pathRaiz,
java.lang.String pathRelativo)
throws ECARException
segmento - campos - pathRaiz - pathRelativo -
ECARException
public void setSegmento(SegmentoSgt segmento,
javax.servlet.http.HttpServletRequest campos,
boolean recuperarParametrosComoString)
throws ECARException
segmento - campos - recuperarParametrosComoString - indica se ir� recuperar dados nulos
como String vazia
ECARException
public void setSegmentoUpload(SegmentoSgt segmento,
java.util.List campos)
throws ECARException
segmento - campos -
ECARException
private void criarCollectionTipoAcesso(SegmentoSgt segmento,
java.util.List campos,
javax.servlet.http.HttpServletRequest request,
boolean usarFileUpload)
throws ECARException
segmento - request -
ECARExceptionpublic java.util.List getTipoAcessoSegmentoById(SegmentoSgt segmento)
segmento -
public java.util.List pesquisar(SegmentoSgt segmento,
javax.servlet.ServletContext application)
throws ECARException
segmento -
ECARException
public java.util.List pesquisar(SegmentoSgt segmento)
throws ECARException
segmento -
ECARException
public java.util.List getSegmentosLivres(javax.servlet.ServletContext application)
throws ECARException
ECARException
public java.util.List getSegmentosLivresComGrupoDeAtributoParaEditorias(javax.servlet.ServletContext application)
throws ECARException
ECARException
public java.util.List getAtivos()
throws ECARException
ECARException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||