├── Modelagem SGEC.asta ├── doc ├── Documento de escopo.pdf ├── ATAs │ ├── ATA Reunião 10_10.pdf │ ├── Relatório Reunião 04_09.pdf │ ├── Relatório Reunião 13_09.pdf │ └── ATA reunião com Stakeholders 28_09.pdf ├── modelagem │ ├── Diagrama ER.jpg │ ├── Esquema Relacional.png │ └── Modelagem SGEC │ │ └── com │ │ └── casaculturaqxd │ │ └── sgec │ │ ├── DAO │ │ └── Diagrama classes DAO.png │ │ ├── jdbc │ │ └── Diagrama classes JDBC.png │ │ ├── models │ │ └── Diagrama classes models.png │ │ ├── builder │ │ └── Diagrama classes Builder.png │ │ ├── service │ │ └── Diagrama classe service.png │ │ ├── comparator │ │ └── Diagrama classes comparator.png │ │ └── controller │ │ └── Diagrama classes Controller.png ├── Documento de Requisitos.pdf ├── Relato de Experiência Projeto Integrado I.pdf ├── prototipacao │ ├── Protótipo de baixa fidelidade.pdf │ └── Protótipo de alta fidelidade.pdf └── Documento de processos, ferramentas e tecnologias.pdf ├── .gitattributes ├── src ├── main │ ├── resources │ │ └── com │ │ │ └── casaculturaqxd │ │ │ └── sgec │ │ │ ├── imagens │ │ │ ├── arrow-up.png │ │ │ ├── casa-noite.jpg │ │ │ ├── edit-icon.png │ │ │ ├── logo-gec.png │ │ │ ├── imagem-casa.jpg │ │ │ ├── default_image.png │ │ │ ├── left-arrow_271218.png │ │ │ ├── logo_cego_aderaldo.png │ │ │ ├── security-pin_6125244.png │ │ │ ├── ellipsis-vertical-solid.png │ │ │ └── —Pngtree—vector copy icon_4013746.png │ │ │ ├── css │ │ │ ├── page │ │ │ │ ├── cadastrarEventoStyle.css │ │ │ │ ├── configuracoesStyle.css │ │ │ │ ├── HomeStyle.css │ │ │ │ ├── pesquisarEventoStyle.css │ │ │ │ ├── cadastroStyle.css │ │ │ │ ├── grupoEventoExistenteStyle.css │ │ │ │ ├── pesquisarGrupoEventosStyle.css │ │ │ │ ├── LoginStyle.css │ │ │ │ ├── cadastrarGrupoEventoStyle.css │ │ │ │ └── midiaEventoStyle.css │ │ │ ├── preview │ │ │ │ ├── cardArquivoStyle.css │ │ │ │ ├── previewParticipanteStyle.css │ │ │ │ ├── previewInstituicaoStyle.css │ │ │ │ ├── previewEventoExistenteStyle.css │ │ │ │ └── previewGrupoEventoStyle.css │ │ │ ├── colors │ │ │ │ └── colorStyle.css │ │ │ ├── dialog │ │ │ │ ├── dialogConfirmacaoStyle.css │ │ │ │ ├── dialogOpcoesParticipanteStyle.css │ │ │ │ ├── dialogInstituicoesStyle.css │ │ │ │ └── dialogParticipanteStyle.css │ │ │ └── componentes │ │ │ │ └── MenuStyle.css │ │ │ └── view │ │ │ ├── preview │ │ │ ├── previewLocalizacao.fxml │ │ │ ├── previewEventoExistente.fxml │ │ │ ├── previewInstituicao.fxml │ │ │ ├── previewGrupoEvento.fxml │ │ │ ├── previewArquivo.fxml │ │ │ └── previewParticipante.fxml │ │ │ ├── Dialog │ │ │ ├── dialogOpcoesParticipante.fxml │ │ │ ├── dialogParticipante.fxml │ │ │ ├── dialogConfirmacao.fxml │ │ │ └── dialogInstituicoes.fxml │ │ │ ├── login.fxml │ │ │ ├── componentes │ │ │ └── menu.fxml │ │ │ ├── home.fxml │ │ │ ├── configuracoes.fxml │ │ │ ├── fields │ │ │ └── fieldLocalizacao.fxml │ │ │ └── pesquisarEvento.fxml │ └── java │ │ └── com │ │ └── casaculturaqxd │ │ └── sgec │ │ ├── Main.java │ │ ├── jdbc │ │ ├── IncorrectEnvironmentVariableException.java │ │ ├── Database.java │ │ └── DatabasePostgres.java │ │ ├── enums │ │ ├── ServiceType.java │ │ └── ClassificacaoEtaria.java │ │ ├── comparator │ │ ├── ComparatorServiceFileStrategy.java │ │ ├── ComparatorServiceFileSize.java │ │ ├── ComparatorServiceFileContext.java │ │ ├── ComparatorServiceFileKey.java │ │ └── ComparatorServiceFileDate.java │ │ ├── service │ │ ├── ServiceFactory.java │ │ ├── ServiceOperationException.java │ │ ├── DateFormattingService.java │ │ └── Service.java │ │ ├── controller │ │ ├── CadastrarController.java │ │ ├── preview │ │ │ ├── PreviewLocalizacaoController.java │ │ │ └── PreviewEventoController.java │ │ ├── ControllerServiceFile.java │ │ ├── FieldParticipanteController.java │ │ ├── ControllerEvento.java │ │ ├── componentes │ │ │ └── MenuController.java │ │ ├── LoginController.java │ │ ├── dialog │ │ │ ├── DialogNovaInstituicao.java │ │ │ └── DialogInstituicaoController.java │ │ ├── HomeController.java │ │ ├── ConfiguracoesController.java │ │ ├── DialogParticipanteController.java │ │ └── FieldLocalizacaoController.java │ │ ├── models │ │ ├── Indicador.java │ │ ├── Meta.java │ │ ├── User.java │ │ ├── Instituicao.java │ │ ├── Participante.java │ │ ├── Localizacao.java │ │ ├── arquivo │ │ │ └── ServiceFile.java │ │ └── GrupoEventos.java │ │ ├── builder │ │ ├── Builder.java │ │ ├── GrupoEventosBuilder.java │ │ └── EventoBuilder.java │ │ ├── DAO │ │ ├── DAO.java │ │ └── UserDAO.java │ │ └── App.java └── test │ └── java │ └── com │ └── casaculturaqxd │ └── sgec │ ├── jdbc │ └── TestDatabasePostgres.java │ └── DAO │ └── UserDAOTest.java ├── .gitignore ├── LICENSE ├── .github └── workflows │ └── maven.yml ├── README.md └── pom.xml /Modelagem SGEC.asta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustavohenriquefs/SGEC/HEAD/Modelagem SGEC.asta -------------------------------------------------------------------------------- /doc/Documento de escopo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustavohenriquefs/SGEC/HEAD/doc/Documento de escopo.pdf -------------------------------------------------------------------------------- /doc/ATAs/ATA Reunião 10_10.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustavohenriquefs/SGEC/HEAD/doc/ATAs/ATA Reunião 10_10.pdf -------------------------------------------------------------------------------- /doc/modelagem/Diagrama ER.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustavohenriquefs/SGEC/HEAD/doc/modelagem/Diagrama ER.jpg -------------------------------------------------------------------------------- /doc/Documento de Requisitos.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustavohenriquefs/SGEC/HEAD/doc/Documento de Requisitos.pdf -------------------------------------------------------------------------------- /doc/ATAs/Relatório Reunião 04_09.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustavohenriquefs/SGEC/HEAD/doc/ATAs/Relatório Reunião 04_09.pdf -------------------------------------------------------------------------------- /doc/ATAs/Relatório Reunião 13_09.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustavohenriquefs/SGEC/HEAD/doc/ATAs/Relatório Reunião 13_09.pdf -------------------------------------------------------------------------------- /doc/modelagem/Esquema Relacional.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustavohenriquefs/SGEC/HEAD/doc/modelagem/Esquema Relacional.png -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | doc/prototipacao/Protótipo[[:space:]]de[[:space:]]alta[[:space:]]fidelidade.pdf filter=lfs diff=lfs merge=lfs -text 2 | -------------------------------------------------------------------------------- /doc/ATAs/ATA reunião com Stakeholders 28_09.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustavohenriquefs/SGEC/HEAD/doc/ATAs/ATA reunião com Stakeholders 28_09.pdf -------------------------------------------------------------------------------- /doc/Relato de Experiência Projeto Integrado I.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustavohenriquefs/SGEC/HEAD/doc/Relato de Experiência Projeto Integrado I.pdf -------------------------------------------------------------------------------- /doc/prototipacao/Protótipo de baixa fidelidade.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustavohenriquefs/SGEC/HEAD/doc/prototipacao/Protótipo de baixa fidelidade.pdf -------------------------------------------------------------------------------- /doc/Documento de processos, ferramentas e tecnologias.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustavohenriquefs/SGEC/HEAD/doc/Documento de processos, ferramentas e tecnologias.pdf -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/imagens/arrow-up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustavohenriquefs/SGEC/HEAD/src/main/resources/com/casaculturaqxd/sgec/imagens/arrow-up.png -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/imagens/casa-noite.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustavohenriquefs/SGEC/HEAD/src/main/resources/com/casaculturaqxd/sgec/imagens/casa-noite.jpg -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/imagens/edit-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustavohenriquefs/SGEC/HEAD/src/main/resources/com/casaculturaqxd/sgec/imagens/edit-icon.png -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/imagens/logo-gec.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustavohenriquefs/SGEC/HEAD/src/main/resources/com/casaculturaqxd/sgec/imagens/logo-gec.png -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/imagens/imagem-casa.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustavohenriquefs/SGEC/HEAD/src/main/resources/com/casaculturaqxd/sgec/imagens/imagem-casa.jpg -------------------------------------------------------------------------------- /doc/prototipacao/Protótipo de alta fidelidade.pdf: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:e00d3c5db1c505a6076e83e1f52956bca8ed7fe1dd9ec311e25d38debf5b444a 3 | size 64496073 4 | -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/imagens/default_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustavohenriquefs/SGEC/HEAD/src/main/resources/com/casaculturaqxd/sgec/imagens/default_image.png -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/imagens/left-arrow_271218.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustavohenriquefs/SGEC/HEAD/src/main/resources/com/casaculturaqxd/sgec/imagens/left-arrow_271218.png -------------------------------------------------------------------------------- /src/main/java/com/casaculturaqxd/sgec/Main.java: -------------------------------------------------------------------------------- 1 | package com.casaculturaqxd.sgec; 2 | 3 | public class Main { 4 | public static void main(String[] args){ 5 | App.main(args); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/imagens/logo_cego_aderaldo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustavohenriquefs/SGEC/HEAD/src/main/resources/com/casaculturaqxd/sgec/imagens/logo_cego_aderaldo.png -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/imagens/security-pin_6125244.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustavohenriquefs/SGEC/HEAD/src/main/resources/com/casaculturaqxd/sgec/imagens/security-pin_6125244.png -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/imagens/ellipsis-vertical-solid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustavohenriquefs/SGEC/HEAD/src/main/resources/com/casaculturaqxd/sgec/imagens/ellipsis-vertical-solid.png -------------------------------------------------------------------------------- /doc/modelagem/Modelagem SGEC/com/casaculturaqxd/sgec/DAO/Diagrama classes DAO.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustavohenriquefs/SGEC/HEAD/doc/modelagem/Modelagem SGEC/com/casaculturaqxd/sgec/DAO/Diagrama classes DAO.png -------------------------------------------------------------------------------- /doc/modelagem/Modelagem SGEC/com/casaculturaqxd/sgec/jdbc/Diagrama classes JDBC.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustavohenriquefs/SGEC/HEAD/doc/modelagem/Modelagem SGEC/com/casaculturaqxd/sgec/jdbc/Diagrama classes JDBC.png -------------------------------------------------------------------------------- /doc/modelagem/Modelagem SGEC/com/casaculturaqxd/sgec/models/Diagrama classes models.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustavohenriquefs/SGEC/HEAD/doc/modelagem/Modelagem SGEC/com/casaculturaqxd/sgec/models/Diagrama classes models.png -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/css/page/cadastrarEventoStyle.css: -------------------------------------------------------------------------------- 1 | @import url(../colors/colorStyle.css); 2 | 3 | .root, #scroll, #pageCadastrarEvento, #container, #principal { 4 | -fx-background-color: -bege; 5 | } -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/css/preview/cardArquivoStyle.css: -------------------------------------------------------------------------------- 1 | @import url(../colors/colorStyle.css); 2 | 3 | .root { 4 | -fx-background-color: -branco; 5 | } 6 | #menu { 7 | -fx-background-color: -branco; 8 | } -------------------------------------------------------------------------------- /doc/modelagem/Modelagem SGEC/com/casaculturaqxd/sgec/builder/Diagrama classes Builder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustavohenriquefs/SGEC/HEAD/doc/modelagem/Modelagem SGEC/com/casaculturaqxd/sgec/builder/Diagrama classes Builder.png -------------------------------------------------------------------------------- /doc/modelagem/Modelagem SGEC/com/casaculturaqxd/sgec/service/Diagrama classe service.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustavohenriquefs/SGEC/HEAD/doc/modelagem/Modelagem SGEC/com/casaculturaqxd/sgec/service/Diagrama classe service.png -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/imagens/—Pngtree—vector copy icon_4013746.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustavohenriquefs/SGEC/HEAD/src/main/resources/com/casaculturaqxd/sgec/imagens/—Pngtree—vector copy icon_4013746.png -------------------------------------------------------------------------------- /doc/modelagem/Modelagem SGEC/com/casaculturaqxd/sgec/comparator/Diagrama classes comparator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustavohenriquefs/SGEC/HEAD/doc/modelagem/Modelagem SGEC/com/casaculturaqxd/sgec/comparator/Diagrama classes comparator.png -------------------------------------------------------------------------------- /doc/modelagem/Modelagem SGEC/com/casaculturaqxd/sgec/controller/Diagrama classes Controller.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gustavohenriquefs/SGEC/HEAD/doc/modelagem/Modelagem SGEC/com/casaculturaqxd/sgec/controller/Diagrama classes Controller.png -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/css/colors/colorStyle.css: -------------------------------------------------------------------------------- 1 | .root{ 2 | /* Color styles */ 3 | -laranja: #D67C40; 4 | -vermelho: #A22D2E; 5 | -verde: #2A3F25; 6 | -bege: #E9E3CA; 7 | -branco: #FFFEF7; 8 | -preto: #352929; 9 | -cinza: #525458; 10 | } -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/css/page/configuracoesStyle.css: -------------------------------------------------------------------------------- 1 | @import url(../colors/colorStyle.css); 2 | 3 | .root { 4 | -fx-background-color: -bege; 5 | } 6 | #camposDados { 7 | -fx-background-color: -branco; 8 | } 9 | .botoes { 10 | -fx-background-color: -preto; 11 | -fx-text-fill: -branco; 12 | } -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/css/dialog/dialogConfirmacaoStyle.css: -------------------------------------------------------------------------------- 1 | @import url(../colors/colorStyle.css); 2 | 3 | .root { 4 | -fx-background-color: -bege; 5 | } 6 | #container { 7 | -fx-background-color: E1E1E1; 8 | } 9 | #botao { 10 | -fx-background-color: -laranja; 11 | -fx-text-fill: -branco; 12 | } -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/css/page/HomeStyle.css: -------------------------------------------------------------------------------- 1 | #pageHome{ 2 | -fx-background-color: #E9E3CA; 3 | } 4 | #scroll { 5 | -fx-background-color: #E9E3CA; 6 | } 7 | #header{ 8 | -fx-background-color: #A22D2E; 9 | } 10 | #titulo1{ 11 | -fx-background-color: #A22D2E; 12 | } 13 | #titulo2{ 14 | -fx-background-color: #A22D2E; 15 | } -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/css/dialog/dialogOpcoesParticipanteStyle.css: -------------------------------------------------------------------------------- 1 | @import url(../colors/colorStyle.css); 2 | 3 | .root { 4 | -fx-background-color: -bege; 5 | } 6 | #consultar{ 7 | -fx-background-color: -verde; 8 | -fx-text-fill: -branco; 9 | } 10 | #cadastrar { 11 | -fx-background-color: -preto; 12 | -fx-text-fill: -branco; 13 | } -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/css/page/pesquisarEventoStyle.css: -------------------------------------------------------------------------------- 1 | @import url(../colors/colorStyle.css); 2 | 3 | #container{ 4 | -fx-background-color: -bege; 5 | } 6 | #pesquisar, #exibir, #filtro{ 7 | -fx-color: -black; 8 | } 9 | #resultadosPesquisa, #resultados{ 10 | -fx-background-color: -branco; 11 | } 12 | #botao{ 13 | -fx-background-color: -verde; 14 | } -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/css/componentes/MenuStyle.css: -------------------------------------------------------------------------------- 1 | @import url(../colors/colorStyle.css); 2 | 3 | #principal { 4 | -fx-background-color: -vermelho; 5 | -fx-text-fill: -branco; 6 | } 7 | .imagens { 8 | -fx-background-color: -vermelho; 9 | } 10 | .menu .label{ 11 | -fx-text-fill: -branco; 12 | } 13 | #nomeUsuario { 14 | -fx-text-fill: -branco; 15 | } -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/css/page/cadastroStyle.css: -------------------------------------------------------------------------------- 1 | @import url(../colors/colorStyle.css); 2 | 3 | .root { 4 | -fx-background-color: -bege; 5 | } 6 | #camposCadastro { 7 | -fx-background-color: -vermelho; 8 | } 9 | #botao { 10 | -fx-background-color: -laranja; 11 | -fx-text-fill: -branco; 12 | } 13 | .texto { 14 | -fx-text-fill: -branco; 15 | -fx-text-align: left; 16 | } -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/css/preview/previewParticipanteStyle.css: -------------------------------------------------------------------------------- 1 | @import url(../colors/colorStyle.css); 2 | 3 | #principal, 4 | #container { 5 | -fx-background-color: -branco; 6 | } 7 | #artista, 8 | #link, 9 | #area { 10 | -fx-white-space: normal; 11 | -fx-wrap-text: true; 12 | } 13 | 14 | #buttonRemover { 15 | -fx-background-color: -vermelho; 16 | -fx-text-fill: -branco; 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/casaculturaqxd/sgec/jdbc/IncorrectEnvironmentVariableException.java: -------------------------------------------------------------------------------- 1 | package com.casaculturaqxd.sgec.jdbc; 2 | 3 | public class IncorrectEnvironmentVariableException extends Exception{ 4 | IncorrectEnvironmentVariableException(String errorMsg){ 5 | super(errorMsg); 6 | } 7 | IncorrectEnvironmentVariableException(){ 8 | super("variavel de ambiente nao encontrada"); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/casaculturaqxd/sgec/enums/ServiceType.java: -------------------------------------------------------------------------------- 1 | package com.casaculturaqxd.sgec.enums; 2 | 3 | public enum ServiceType { 4 | S3("s3"); 5 | 6 | private static String type; 7 | 8 | ServiceType(String type){ 9 | type = type; 10 | } 11 | 12 | public void setType(String type) { 13 | this.type = type; 14 | } 15 | 16 | public static String getType(){ 17 | return type; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/css/dialog/dialogInstituicoesStyle.css: -------------------------------------------------------------------------------- 1 | @import url(../colors/colorStyle.css); 2 | 3 | .root { 4 | -fx-background-color: -bege; 5 | } 6 | .adicionar { 7 | -fx-background-color: -verde; 8 | -fx-text-fill: -branco; 9 | } 10 | .vincular { 11 | -fx-background-color: -preto; 12 | -fx-text-fill: -branco; 13 | } 14 | #cancelar { 15 | -fx-background-color: -vermelho; 16 | -fx-text-fill: -branco; 17 | } -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/css/dialog/dialogParticipanteStyle.css: -------------------------------------------------------------------------------- 1 | @import url(../colors/colorStyle.css); 2 | 3 | .root { 4 | -fx-background-color: -bege; 5 | } 6 | #adicionar, #cadastrar { 7 | -fx-background-color: -verde; 8 | -fx-text-fill: -branco; 9 | } 10 | #cancelar { 11 | -fx-background-color: -vermelho; 12 | -fx-text-fill: -branco; 13 | } 14 | #vincular { 15 | -fx-background-color: -preto; 16 | -fx-text-fill: -branco; 17 | } -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/css/page/grupoEventoExistenteStyle.css: -------------------------------------------------------------------------------- 1 | @import url(../colors/colorStyle.css); 2 | 3 | #container, #principal { 4 | -fx-background-color: -bege; 5 | } 6 | .botoes { 7 | -fx-background-color: -verde; 8 | -fx-text-fill: -branco; 9 | } 10 | .faixas { 11 | -fx-background-color: -vermelho; 12 | -fx-pref-height: 3px; 13 | } 14 | #cancelar { 15 | -fx-background-color: -preto; 16 | -fx-text-fill: -branco; 17 | } -------------------------------------------------------------------------------- /src/main/java/com/casaculturaqxd/sgec/comparator/ComparatorServiceFileStrategy.java: -------------------------------------------------------------------------------- 1 | package com.casaculturaqxd.sgec.comparator; 2 | 3 | import java.util.Comparator; 4 | import com.casaculturaqxd.sgec.models.arquivo.ServiceFile; 5 | 6 | public interface ComparatorServiceFileStrategy extends Comparator { 7 | public int compare(ServiceFile one, ServiceFile another); 8 | 9 | public int compare(ServiceFile one, ServiceFile another, boolean reversed); 10 | 11 | } -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/css/preview/previewInstituicaoStyle.css: -------------------------------------------------------------------------------- 1 | @import url(../colors/colorStyle.css); 2 | 3 | #principal, 4 | #container { 5 | -fx-background-color: -branco; 6 | } 7 | 8 | #area { 9 | -fx-white-space: normal; 10 | -fx-wrap-text: true; 11 | } 12 | 13 | #buttonRemover { 14 | -fx-background-color: -vermelho; 15 | -fx-text-fill: -branco; 16 | } 17 | 18 | #buttonAlterarCapa { 19 | -fx-background-color: #2A3F25; 20 | -fx-text-fill: -branco; 21 | } -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/css/preview/previewEventoExistenteStyle.css: -------------------------------------------------------------------------------- 1 | @import url(../colors/colorStyle.css); 2 | 3 | .root:hover { 4 | -fx-scale-x : 1.1; 5 | -fx-scale-y : 1.1; 6 | -fx-scale-z: 1.1; 7 | } 8 | #container { 9 | -fx-background-color: #FFFEF7; 10 | } 11 | .data { 12 | -fx-background-color: #D67C40; 13 | } 14 | #titulo { 15 | -fx-background-color: #FFFEF7; 16 | } 17 | #botao { 18 | -fx-background-color: #2A3F25; 19 | -fx-color: #FFFEF7; 20 | } -------------------------------------------------------------------------------- /src/main/java/com/casaculturaqxd/sgec/service/ServiceFactory.java: -------------------------------------------------------------------------------- 1 | package com.casaculturaqxd.sgec.service; 2 | 3 | import com.casaculturaqxd.sgec.enums.ServiceType; 4 | 5 | public class ServiceFactory { 6 | 7 | public static Service getService(ServiceType type, String envAccessKey, String envSecretKey){ 8 | if(type.toString().equalsIgnoreCase("S3") ){ 9 | return new S3Service(envAccessKey, envSecretKey); 10 | } 11 | 12 | return null; 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/css/page/pesquisarGrupoEventosStyle.css: -------------------------------------------------------------------------------- 1 | @import url(../colors/colorStyle.css); 2 | 3 | .root { 4 | -fx-background-color: -bege; 5 | } 6 | #botao { 7 | -fx-background-color: -verde; 8 | -fx-text-fill: -branco; 9 | } 10 | .labels { 11 | -fx-padding: 2px 10px 2px 10px; 12 | -fx-background-color: -branco; 13 | -fx-background-radius: 20px; 14 | -fx-border-radius: 100px; 15 | -fx-border-color: -branco; 16 | fx-box-sizing: border-box; 17 | } -------------------------------------------------------------------------------- /src/main/java/com/casaculturaqxd/sgec/service/ServiceOperationException.java: -------------------------------------------------------------------------------- 1 | package com.casaculturaqxd.sgec.service; 2 | 3 | public class ServiceOperationException extends Exception { 4 | 5 | public ServiceOperationException(String message) { 6 | super(message); 7 | } 8 | 9 | public ServiceOperationException(Throwable error) { 10 | super(error); 11 | } 12 | 13 | public ServiceOperationException(String message, Throwable error) { 14 | super(message, error); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/casaculturaqxd/sgec/service/DateFormattingService.java: -------------------------------------------------------------------------------- 1 | package com.casaculturaqxd.sgec.service; 2 | 3 | import java.text.SimpleDateFormat; 4 | import java.sql.Date; 5 | 6 | public class DateFormattingService { 7 | 8 | private static final String BRAZILIAN_DATE_FORMAT = "dd/MM/yyyy"; 9 | private final SimpleDateFormat brazilianDateFormat = new SimpleDateFormat(BRAZILIAN_DATE_FORMAT); 10 | 11 | public String formatToBrazilian(Date date) { 12 | return brazilianDateFormat.format(date); 13 | } 14 | } -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/css/page/LoginStyle.css: -------------------------------------------------------------------------------- 1 | @import url(../colors/colorStyle.css); 2 | 3 | .root { 4 | -color-button: -laranja; 5 | -color-form: -branco; 6 | -fx-background-image: url("../../imagens/imagem-casa.jpg"); 7 | -fx-background-size: cover; 8 | } 9 | 10 | #form { 11 | -fx-background-color: -color-form; 12 | -fx-opacity: 82%; 13 | } 14 | 15 | #loginButton { 16 | -fx-background-color: -color-button; 17 | -fx-position: absolute; 18 | } 19 | #linkCadastro { 20 | -fx-text-fill: -black; 21 | } 22 | -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/css/page/cadastrarGrupoEventoStyle.css: -------------------------------------------------------------------------------- 1 | @import url(../colors/colorStyle.css); 2 | 3 | #container, #principal { 4 | -fx-background-color: -bege; 5 | } 6 | .texto { 7 | -fx-text-fill: -preto; 8 | } 9 | .botoes{ 10 | -fx-text-fill: -branco; 11 | -fx-margin-left: 20px; 12 | -fx-background-color: -preto; 13 | } 14 | .criar { 15 | -fx-background-color: -verde; 16 | -fx-text-fill: -branco; 17 | } 18 | .cancelar { 19 | -fx-background-color: -preto; 20 | -fx-text-fill: -branco; 21 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled class file 2 | *.class 3 | 4 | # Log file 5 | *.log 6 | 7 | # BlueJ files 8 | *.ctxt 9 | 10 | # Mobile Tools for Java (J2ME) 11 | .mtj.tmp/ 12 | 13 | # Package Files # 14 | *.jar 15 | *.war 16 | *.nar 17 | *.ear 18 | *.zip 19 | *.tar.gz 20 | *.rar 21 | 22 | # Enviroments file 23 | 24 | *.env 25 | 26 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 27 | hs_err_pid* 28 | replay_pid* 29 | /nbproject/ 30 | /target/ 31 | /.vscode/ 32 | nbactions.xml 33 | 34 | #astah lock file 35 | *.asta.lock 36 | *.bak -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/css/page/midiaEventoStyle.css: -------------------------------------------------------------------------------- 1 | @import url(../colors/colorStyle.css); 2 | 3 | #raiz { 4 | -fx-background-color: -bege; 5 | } 6 | .fundo { 7 | -fx-background-color: -bege; 8 | } 9 | .root { 10 | -fx-background-color: -bege; 11 | } 12 | #principal { 13 | -fx-background-color: -branco; 14 | } 15 | .opcoes { 16 | -fx-background-color: -branco; 17 | -fx-text-fill: -preto; 18 | } 19 | .opcoes:hover { 20 | -fx-text-fill: -laranja; 21 | } 22 | .botoes { 23 | -fx-background-color: -verde; 24 | -fx-text-fill: -branco; 25 | } -------------------------------------------------------------------------------- /src/main/java/com/casaculturaqxd/sgec/controller/CadastrarController.java: -------------------------------------------------------------------------------- 1 | package com.casaculturaqxd.sgec.controller; 2 | 3 | import java.io.IOException; 4 | import com.casaculturaqxd.sgec.App; 5 | import javafx.fxml.FXML; 6 | 7 | public class CadastrarController { 8 | 9 | public void initialize() { 10 | 11 | } 12 | 13 | @FXML 14 | public void back() { 15 | try { 16 | App.setRoot("view/login"); 17 | } catch (IOException e) { 18 | // TODO Auto-generated catch block 19 | e.printStackTrace(); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/casaculturaqxd/sgec/enums/ClassificacaoEtaria.java: -------------------------------------------------------------------------------- 1 | package com.casaculturaqxd.sgec.enums; 2 | 3 | public enum ClassificacaoEtaria { 4 | LIVRE("Livre"), 5 | IDADE10("10 anos"), 6 | IDADE12("12 anos"), 7 | IDADE14("14 anos"), 8 | IDADE16("16 anos"), 9 | IDADE18("18 anos"); 10 | 11 | private final String classificacaoEtaria; 12 | 13 | ClassificacaoEtaria(String classificacaoEtaria){ 14 | this.classificacaoEtaria = classificacaoEtaria; 15 | } 16 | 17 | public String getClassificacao() { 18 | return classificacaoEtaria; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/com/casaculturaqxd/sgec/jdbc/Database.java: -------------------------------------------------------------------------------- 1 | package com.casaculturaqxd.sgec.jdbc; 2 | 3 | import java.sql.Connection; 4 | 5 | /** 6 | *

7 | * Classe que define a forma generalizada 8 | * de gerenciar conexões com um banco de dados SQL 9 | *

10 | * 11 | *

12 | * Todas as implementações de Database devem 13 | * utilizar o padrão Singleton e possuir métodos 14 | * para conectar e desconectar do banco de dados, 15 | * utilizando um driver jdbc por exemplo. 16 | *

17 | */ 18 | public interface Database { 19 | Connection getConnection(); 20 | void desconectar(Connection connection); 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/casaculturaqxd/sgec/controller/preview/PreviewLocalizacaoController.java: -------------------------------------------------------------------------------- 1 | package com.casaculturaqxd.sgec.controller.preview; 2 | 3 | import com.casaculturaqxd.sgec.models.Localizacao; 4 | 5 | import javafx.fxml.FXML; 6 | import javafx.scene.control.Label; 7 | 8 | public class PreviewLocalizacaoController { 9 | Localizacao localizacao; 10 | @FXML 11 | Label descricaoLocal; 12 | public void initialize(){ 13 | } 14 | public void setLocalizacao(Localizacao localizacao){ 15 | this.localizacao = localizacao; 16 | loadContent(); 17 | } 18 | private void loadContent(){ 19 | descricaoLocal.setText(localizacao.toString()); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/casaculturaqxd/sgec/controller/ControllerServiceFile.java: -------------------------------------------------------------------------------- 1 | package com.casaculturaqxd.sgec.controller; 2 | 3 | import java.io.IOException; 4 | 5 | import com.casaculturaqxd.sgec.models.arquivo.ServiceFile; 6 | 7 | /** 8 | * Interface para todo controller que realize alguma operação com arquivos 9 | */ 10 | 11 | public interface ControllerServiceFile { 12 | /** adicionar um novo arquivo e carregar o preview dele */ 13 | public void adicionarArquivo(ServiceFile serviceFile) throws IOException; 14 | 15 | /** 16 | * chamado a partir do preview de arquivo, remove o preview do arquivo 17 | * correspondente 18 | */ 19 | public void removerArquivo(ServiceFile serviceFile); 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/com/casaculturaqxd/sgec/controller/FieldParticipanteController.java: -------------------------------------------------------------------------------- 1 | package com.casaculturaqxd.sgec.controller; 2 | 3 | import java.net.URL; 4 | import java.util.ResourceBundle; 5 | import javafx.fxml.FXML; 6 | import javafx.scene.control.Button; 7 | import javafx.scene.control.TextField; 8 | 9 | public class FieldParticipanteController { 10 | @FXML 11 | private ResourceBundle resources; 12 | 13 | @FXML 14 | private URL location; 15 | 16 | @FXML 17 | private TextField areaAtuacao; 18 | 19 | @FXML 20 | private TextField linkPerfilMapaCultura; 21 | 22 | @FXML 23 | private TextField nomeArtista; 24 | 25 | @FXML 26 | void initialize() { 27 | 28 | } 29 | 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/casaculturaqxd/sgec/comparator/ComparatorServiceFileSize.java: -------------------------------------------------------------------------------- 1 | package com.casaculturaqxd.sgec.comparator; 2 | 3 | import com.casaculturaqxd.sgec.models.arquivo.ServiceFile; 4 | 5 | public class ComparatorServiceFileSize implements ComparatorServiceFileStrategy { 6 | 7 | @Override 8 | public int compare(ServiceFile one, ServiceFile another) { 9 | return Long.compare(one.getFileSize(), another.getFileSize()); 10 | } 11 | 12 | @Override 13 | public int compare(ServiceFile one, ServiceFile another, boolean reversed) { 14 | if (reversed) { 15 | return this.reversed().compare(one, another); 16 | } else { 17 | return this.compare(one, another); 18 | } 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/casaculturaqxd/sgec/comparator/ComparatorServiceFileContext.java: -------------------------------------------------------------------------------- 1 | package com.casaculturaqxd.sgec.comparator; 2 | 3 | import java.util.Comparator; 4 | 5 | import com.casaculturaqxd.sgec.models.arquivo.ServiceFile; 6 | 7 | public class ComparatorServiceFileContext implements Comparator { 8 | private ComparatorServiceFileStrategy strategy; 9 | 10 | public void setStrategy(ComparatorServiceFileStrategy strategy) { 11 | this.strategy = strategy; 12 | } 13 | 14 | public int compare(ServiceFile one, ServiceFile another, boolean reversed) { 15 | return strategy.compare(one, another, reversed); 16 | } 17 | 18 | @Override 19 | public int compare(ServiceFile one, ServiceFile another) { 20 | return strategy.compare(one, another); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/casaculturaqxd/sgec/comparator/ComparatorServiceFileKey.java: -------------------------------------------------------------------------------- 1 | package com.casaculturaqxd.sgec.comparator; 2 | 3 | import com.casaculturaqxd.sgec.models.arquivo.ServiceFile; 4 | 5 | public class ComparatorServiceFileKey implements ComparatorServiceFileStrategy { 6 | 7 | @Override 8 | public int compare(ServiceFile one, ServiceFile another) { 9 | if (one.getFileKey() == another.getFileKey()) { 10 | return 0; 11 | } 12 | if (one.getFileKey() == null) { 13 | return -1; 14 | } 15 | if (another.getFileKey() == null) { 16 | return 1; 17 | } 18 | return one.getFileKey().compareTo(another.getFileKey()); 19 | } 20 | 21 | @Override 22 | public int compare(ServiceFile one, ServiceFile another, boolean reversed) { 23 | if (reversed) { 24 | return this.reversed().compare(one, another); 25 | } else { 26 | return this.compare(one, another); 27 | } 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/com/casaculturaqxd/sgec/models/Indicador.java: -------------------------------------------------------------------------------- 1 | package com.casaculturaqxd.sgec.models; 2 | 3 | 4 | public class Indicador { 5 | String nome; 6 | Integer valorEsperado; 7 | Integer valorAlcancado; 8 | 9 | public Indicador(String nome, Integer valorEsperado, Integer valorAlcancado) { 10 | this.nome = nome; 11 | this.valorEsperado = valorEsperado; 12 | this.valorAlcancado = valorAlcancado; 13 | } 14 | 15 | public String getNome() { 16 | return nome; 17 | } 18 | public void setNome(String nome) { 19 | this.nome = nome; 20 | } 21 | public Integer getValorEsperado() { 22 | return valorEsperado; 23 | } 24 | public void setValorEsperado(Integer valorEsperado) { 25 | this.valorEsperado = valorEsperado; 26 | } 27 | public Integer getValorAlcancado() { 28 | return valorAlcancado; 29 | } 30 | public void setValorAlcancado(Integer valorAlcancado) { 31 | this.valorAlcancado = valorAlcancado; 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/com/casaculturaqxd/sgec/builder/Builder.java: -------------------------------------------------------------------------------- 1 | package com.casaculturaqxd.sgec.builder; 2 | 3 | import java.sql.Date; 4 | import java.sql.Time; 5 | import java.util.ArrayList; 6 | import com.casaculturaqxd.sgec.models.Instituicao; 7 | import com.casaculturaqxd.sgec.models.arquivo.ServiceFile; 8 | 9 | public interface Builder { 10 | void resetar(); 11 | 12 | Builder setId(int id); 13 | 14 | Builder setImagemCapa(ServiceFile serviceFile); 15 | 16 | Builder setNome(String nome); 17 | 18 | Builder setDescricao(String descricao); 19 | 20 | Builder setDataInicial(Date dataInicial); 21 | 22 | Builder setDataFinal(Date dataFinal); 23 | 24 | Builder setPublicoEsperado(int publicoEsperado); 25 | 26 | Builder setPublicoAlcancado(int publicoAlcancado); 27 | 28 | Builder setCargaHoraria(Time cargaHoraria); 29 | 30 | Builder setClassificacaoEtaria(String classificacaoEtaria); 31 | 32 | Builder setColaboradores(ArrayList colaboradores); 33 | 34 | Builder setOrganizadores(ArrayList organizadores); 35 | } 36 | -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/css/preview/previewGrupoEventoStyle.css: -------------------------------------------------------------------------------- 1 | @import url(../colors/colorStyle.css); 2 | 3 | .botoes { 4 | -fx-pref-height: 22px; 5 | -fx-min-height: 22px; 6 | -fx-max-height: 22px; 7 | -fx-min-width: 120px; 8 | -fx-pref-width: 120px; 9 | -fx-max-width: 120px; 10 | -fx-font-size: 10px; 11 | } 12 | 13 | #root { 14 | -fx-background-color: #FFFEF7; 15 | } 16 | 17 | #verdetalhes { 18 | -fx-background-color: #2A3F25; 19 | -fx-text-fill: #fff; 20 | } 21 | 22 | #dataRealizacao { 23 | -fx-background-color: #D67C40; 24 | -fx-text-fill: #fff; 25 | -fx-padding: 5px 10px 5px 10px; 26 | -fx-background-radius: 20px; 27 | -fx-pref-width: 270px; 28 | } 29 | 30 | #dataLimite { 31 | -fx-background-color: -laranja; 32 | -fx-text-fill: -branco; 33 | -fx-background-radius: 20px; 34 | -fx-pref-width: 120px; 35 | } 36 | 37 | #metasAtendidas { 38 | -fx-background-color: -verde; 39 | -fx-text-fill: -branco; 40 | -fx-padding: 5px 10px 5px 10px; 41 | -fx-background-radius: 20px; 42 | } 43 | -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/view/preview/previewLocalizacao.fxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/main/java/com/casaculturaqxd/sgec/comparator/ComparatorServiceFileDate.java: -------------------------------------------------------------------------------- 1 | package com.casaculturaqxd.sgec.comparator; 2 | 3 | import java.sql.Date; 4 | 5 | import com.casaculturaqxd.sgec.models.arquivo.ServiceFile; 6 | 7 | public class ComparatorServiceFileDate implements ComparatorServiceFileStrategy { 8 | 9 | @Override 10 | public int compare(ServiceFile one, ServiceFile another) { 11 | if (one.getUltimaModificacao() == another.getUltimaModificacao()) { 12 | return 0; 13 | } 14 | if (one.getUltimaModificacao() == null) { 15 | return -1; 16 | } 17 | if (another.getUltimaModificacao() == null) { 18 | return 1; 19 | } 20 | return one.getUltimaModificacao().compareTo(another.getUltimaModificacao()); 21 | } 22 | 23 | @Override 24 | public int compare(ServiceFile one, ServiceFile another, boolean reversed) { 25 | if (reversed) { 26 | return this.reversed().compare(one, another); 27 | } else { 28 | return this.compare(one, another); 29 | } 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Gustavo Henrique 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /src/main/java/com/casaculturaqxd/sgec/controller/ControllerEvento.java: -------------------------------------------------------------------------------- 1 | package com.casaculturaqxd.sgec.controller; 2 | 3 | import com.casaculturaqxd.sgec.models.Evento; 4 | import com.casaculturaqxd.sgec.models.Instituicao; 5 | import com.casaculturaqxd.sgec.models.Localizacao; 6 | import com.casaculturaqxd.sgec.models.Participante; 7 | import javafx.stage.Stage; 8 | 9 | /** 10 | * Interface para os controllers das telas relacionadas a eventos individuais 11 | */ 12 | public interface ControllerEvento { 13 | public void adicionarParticipante(Participante participante); 14 | 15 | public void removerParticipante(Participante participante); 16 | 17 | public void adicionarOrganizador(Instituicao instituicao); 18 | 19 | public void adicionarColaborador(Instituicao instituicao); 20 | 21 | // retorna o stage da tela, necessario para abrir o FileChooser 22 | public Stage getStage(); 23 | 24 | public void removerInstituicao(Instituicao instituicao); 25 | 26 | public void adicionarLocalizacao(Localizacao localizacao); 27 | 28 | public void removerLocalizacao(Localizacao localizacao); 29 | 30 | public void removerEvento(Evento evento); 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/casaculturaqxd/sgec/DAO/DAO.java: -------------------------------------------------------------------------------- 1 | package com.casaculturaqxd.sgec.DAO; 2 | 3 | import java.io.IOException; 4 | import java.sql.Connection; 5 | import java.sql.SQLException; 6 | import java.util.logging.Level; 7 | import java.util.logging.Logger; 8 | 9 | import com.casaculturaqxd.sgec.service.ServiceOperationException; 10 | 11 | public abstract class DAO { 12 | private Connection connection; 13 | 14 | public DAO() { 15 | 16 | } 17 | 18 | public DAO(Connection connection) { 19 | this.connection = connection; 20 | } 21 | 22 | protected void logException(Exception exception) { 23 | if (exception instanceof SQLException) { 24 | Logger erro = Logger.getLogger("erroSQL"); 25 | erro.log(Level.SEVERE, "excecao levantada:", exception); 26 | } else if (exception instanceof ServiceOperationException) { 27 | Logger erro = Logger.getLogger("erro service"); 28 | erro.log(Level.SEVERE, "excecao levantada:", exception); 29 | } else if (exception instanceof IOException) { 30 | Logger erro = Logger.getLogger("erro arquivo"); 31 | erro.log(Level.SEVERE, "excecao levantada:", exception); 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/view/Dialog/dialogOpcoesParticipante.fxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
28 |
29 | -------------------------------------------------------------------------------- /src/main/java/com/casaculturaqxd/sgec/models/Meta.java: -------------------------------------------------------------------------------- 1 | package com.casaculturaqxd.sgec.models; 2 | 3 | public class Meta { 4 | Integer idMeta; 5 | String nomeMeta; 6 | 7 | public Meta(Integer idMeta, String nomeMeta) { 8 | this.idMeta = idMeta; 9 | this.nomeMeta = nomeMeta; 10 | } 11 | 12 | public Meta(Integer idMeta) { 13 | this.idMeta = idMeta; 14 | } 15 | 16 | public Meta(String nomeMeta) { 17 | this.nomeMeta = nomeMeta; 18 | } 19 | 20 | public Integer getIdMeta() { 21 | return idMeta; 22 | } 23 | 24 | public void setIdMeta(Integer idMeta) { 25 | this.idMeta = idMeta; 26 | } 27 | 28 | public String getNomeMeta() { 29 | return nomeMeta; 30 | } 31 | 32 | public void setNomeMeta(String nomeMeta) { 33 | this.nomeMeta = nomeMeta; 34 | } 35 | 36 | @Override 37 | public int hashCode() { 38 | final int prime = 31; 39 | int result = 1; 40 | result = prime * result + ((nomeMeta == null) ? 0 : nomeMeta.hashCode()); 41 | result = prime * result + ((idMeta == null) ? 0 : idMeta.hashCode()); 42 | return result; 43 | } 44 | 45 | @Override 46 | public boolean equals(Object obj) { 47 | if (this == obj) 48 | return true; 49 | if (obj == null) 50 | return false; 51 | if (getClass() != obj.getClass()) 52 | return false; 53 | 54 | Meta other = (Meta) obj; 55 | 56 | if (idMeta == null) { 57 | if (other.idMeta != null) 58 | return false; 59 | } else if (!idMeta.equals(other.idMeta)) 60 | return false; 61 | if (nomeMeta == null) { 62 | if (other.nomeMeta != null) 63 | return false; 64 | } 65 | 66 | return true; 67 | } 68 | 69 | } -------------------------------------------------------------------------------- /src/main/java/com/casaculturaqxd/sgec/controller/componentes/MenuController.java: -------------------------------------------------------------------------------- 1 | package com.casaculturaqxd.sgec.controller.componentes; 2 | 3 | import java.io.IOException; 4 | 5 | import com.casaculturaqxd.sgec.App; 6 | 7 | import javafx.fxml.FXML; 8 | import javafx.scene.control.Label; 9 | 10 | public class MenuController { 11 | @FXML 12 | Label campoNomeUsuario; 13 | 14 | public void initialize() { 15 | campoNomeUsuario.setText(App.getUsuario().getNomeUsuario()); 16 | } 17 | 18 | @FXML 19 | public void goToHome() throws IOException { 20 | App.setRoot("view/home"); 21 | 22 | } 23 | 24 | @FXML 25 | public void goToPesquisarEvento() throws IOException { 26 | App.setRoot("view/pesquisarEvento"); 27 | } 28 | 29 | @FXML 30 | public void goToCadastrarEvento() throws IOException { 31 | if (App.getUsuario().isEditor()) 32 | App.setRoot("view/cadastrarEvento"); 33 | } 34 | 35 | @FXML 36 | public void goToPesquisarGrupoEventos() throws IOException { 37 | App.setRoot("view/pesquisarGrupoEventos"); 38 | } 39 | 40 | @FXML 41 | public void goToCadastrarGrupoEventos() throws IOException { 42 | if (App.getUsuario().isEditor()) 43 | App.setRoot("view/cadastrarGrupoEvento"); 44 | } 45 | 46 | @FXML 47 | public void backTela() throws IOException { 48 | if (!App.lastVisitedPages.empty() 49 | && !App.lastVisitedPages.lastElement().getId().equals(App.getRoot().getId())) 50 | 51 | App.backLastScreen(); 52 | } 53 | 54 | @FXML 55 | public void goToConfiguracoes() throws IOException { 56 | if (App.getUsuario() != null) 57 | App.setRoot("view/configuracoes"); 58 | } 59 | 60 | @FXML 61 | public void logout() throws IOException { 62 | App.logout(); 63 | } 64 | 65 | } 66 | -------------------------------------------------------------------------------- /src/main/resources/com/casaculturaqxd/sgec/view/login.fxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 |