From: Michele Silva Date: Wed, 26 Oct 2011 16:43:26 +0000 (-0200) Subject: Removing old simdecs project. X-Git-Url: http://200.18.67.61/gitweb/?a=commitdiff_plain;h=d3fb4d937c03829bd5088b8712d9169955e3bebb;p=simdecs_seam.git Removing old simdecs project. --- diff --git a/SimDeCS/.classpath b/SimDeCS/.classpath deleted file mode 100644 index 502eccd..0000000 --- a/SimDeCS/.classpath +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SimDeCS/.project b/SimDeCS/.project deleted file mode 100644 index 25a0e11..0000000 --- a/SimDeCS/.project +++ /dev/null @@ -1,49 +0,0 @@ - - - SimDeCS - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.wst.common.project.facet.core.builder - - - - - org.jboss.tools.jst.web.kb.kbbuilder - - - - - org.jboss.tools.seam.core.seambuilder - - - - - org.eclipse.wst.validation.validationbuilder - - - - - org.hibernate.eclipse.console.hibernateBuilder - - - - - - org.eclipse.jem.workbench.JavaEMFNature - org.eclipse.wst.common.modulecore.ModuleCoreNature - org.eclipse.wst.common.project.facet.core.nature - org.eclipse.jdt.core.javanature - org.jboss.tools.jsf.jsfnature - org.jboss.tools.jst.web.kb.kbnature - org.jboss.tools.seam.core.seamnature - org.hibernate.eclipse.console.hibernateNature - - diff --git a/SimDeCS/.settings/org.eclipse.jdt.core.prefs b/SimDeCS/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 1d00df2..0000000 --- a/SimDeCS/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,8 +0,0 @@ -#Thu Apr 21 18:54:19 BRT 2011 -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 -org.eclipse.jdt.core.compiler.compliance=1.5 -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.5 diff --git a/SimDeCS/.settings/org.eclipse.wst.common.component b/SimDeCS/.settings/org.eclipse.wst.common.component deleted file mode 100755 index 567cf5f..0000000 --- a/SimDeCS/.settings/org.eclipse.wst.common.component +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/SimDeCS/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml b/SimDeCS/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml deleted file mode 100644 index 8c42ed3..0000000 --- a/SimDeCS/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/SimDeCS/.settings/org.eclipse.wst.common.project.facet.core.xml b/SimDeCS/.settings/org.eclipse.wst.common.project.facet.core.xml deleted file mode 100644 index 2c5c118..0000000 --- a/SimDeCS/.settings/org.eclipse.wst.common.project.facet.core.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/SimDeCS/.settings/org.hibernate.eclipse.console.prefs b/SimDeCS/.settings/org.hibernate.eclipse.console.prefs deleted file mode 100644 index 0f89762..0000000 --- a/SimDeCS/.settings/org.hibernate.eclipse.console.prefs +++ /dev/null @@ -1,4 +0,0 @@ -#Thu Apr 21 18:54:36 BRT 2011 -default.configuration=SimDeCS -eclipse.preferences.version=1 -hibernate3.enabled=true diff --git a/SimDeCS/.settings/org.jboss.ide.eclipse.as.core.prefs b/SimDeCS/.settings/org.jboss.ide.eclipse.as.core.prefs deleted file mode 100644 index 9654caf..0000000 --- a/SimDeCS/.settings/org.jboss.ide.eclipse.as.core.prefs +++ /dev/null @@ -1,3 +0,0 @@ -#Sun Oct 09 18:28:57 BRT 2011 -eclipse.preferences.version=1 -org.jboss.ide.eclipse.as.core.singledeployable.deployableList=\n diff --git a/SimDeCS/.settings/org.jboss.tools.seam.core.prefs b/SimDeCS/.settings/org.jboss.tools.seam.core.prefs deleted file mode 100644 index 3ac18cc..0000000 --- a/SimDeCS/.settings/org.jboss.tools.seam.core.prefs +++ /dev/null @@ -1,17 +0,0 @@ -#Sun Oct 09 17:45:13 BRT 2011 -action.package=org.ufcspa.simdecs.session -action.sources=/SimDeCS/src/hot -eclipse.preferences.version=1 -model.package=org.ufcspa.simdecs.entity -model.sources=/SimDeCS/src/main -seam.ejb.project=SimDeCS -seam.project.connection.profile=SimDeCS Database -seam.project.deployment.type=war -seam.project.settings.version=1.1 -seam.project.web.root.folder=/SimDeCS/WebContent -seam.runtime.name=jboss-seam-2.2.1.Final -seam.settings.changed.by.user=true -seam.test.creating=false -seam.test.project=SimDeCS-test -test.package=org.domain.simdecs.test -test.sources=/SimDeCS-test/test-src diff --git a/SimDeCS/SimDeCS.launch b/SimDeCS/SimDeCS.launch deleted file mode 100644 index 7249911..0000000 --- a/SimDeCS/SimDeCS.launch +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - diff --git a/SimDeCS/WebContent/META-INF/MANIFEST.MF b/SimDeCS/WebContent/META-INF/MANIFEST.MF deleted file mode 100644 index 5e94951..0000000 --- a/SimDeCS/WebContent/META-INF/MANIFEST.MF +++ /dev/null @@ -1,3 +0,0 @@ -Manifest-Version: 1.0 -Class-Path: - diff --git a/SimDeCS/WebContent/WEB-INF/SimDeCS-ds.xml b/SimDeCS/WebContent/WEB-INF/SimDeCS-ds.xml deleted file mode 100644 index ca0b305..0000000 --- a/SimDeCS/WebContent/WEB-INF/SimDeCS-ds.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - SimDeCSDatasource - true - jdbc:postgresql://localhost:5432/simdecs - org.postgresql.Driver - simdecs - tatuira - - - diff --git a/SimDeCS/WebContent/WEB-INF/components.xml b/SimDeCS/WebContent/WEB-INF/components.xml deleted file mode 100644 index 1de84a9..0000000 --- a/SimDeCS/WebContent/WEB-INF/components.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - /security.drl - - - - - - - - - - - - - - - - - - - diff --git a/SimDeCS/WebContent/WEB-INF/faces-config.xml b/SimDeCS/WebContent/WEB-INF/faces-config.xml deleted file mode 100644 index 0a19858..0000000 --- a/SimDeCS/WebContent/WEB-INF/faces-config.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - com.sun.facelets.FaceletViewHandler - - pt_BR - en - bg - de - en - fr - tr - - - - diff --git a/SimDeCS/WebContent/WEB-INF/jboss-web.xml b/SimDeCS/WebContent/WEB-INF/jboss-web.xml deleted file mode 100644 index d4db00f..0000000 --- a/SimDeCS/WebContent/WEB-INF/jboss-web.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - seam.jboss.org:loader=SimDeCS - java2ParentDelegation=false - - - diff --git a/SimDeCS/WebContent/WEB-INF/lib/antlr-runtime.jar b/SimDeCS/WebContent/WEB-INF/lib/antlr-runtime.jar deleted file mode 100644 index d90a086..0000000 Binary files a/SimDeCS/WebContent/WEB-INF/lib/antlr-runtime.jar and /dev/null differ diff --git a/SimDeCS/WebContent/WEB-INF/lib/commons-beanutils.jar b/SimDeCS/WebContent/WEB-INF/lib/commons-beanutils.jar deleted file mode 100644 index b1b89c9..0000000 Binary files a/SimDeCS/WebContent/WEB-INF/lib/commons-beanutils.jar and /dev/null differ diff --git a/SimDeCS/WebContent/WEB-INF/lib/commons-digester.jar b/SimDeCS/WebContent/WEB-INF/lib/commons-digester.jar deleted file mode 100644 index 7abda96..0000000 Binary files a/SimDeCS/WebContent/WEB-INF/lib/commons-digester.jar and /dev/null differ diff --git a/SimDeCS/WebContent/WEB-INF/lib/core.jar b/SimDeCS/WebContent/WEB-INF/lib/core.jar deleted file mode 100644 index 310fe9f..0000000 Binary files a/SimDeCS/WebContent/WEB-INF/lib/core.jar and /dev/null differ diff --git a/SimDeCS/WebContent/WEB-INF/lib/drools-api.jar b/SimDeCS/WebContent/WEB-INF/lib/drools-api.jar deleted file mode 100644 index d33d6c6..0000000 Binary files a/SimDeCS/WebContent/WEB-INF/lib/drools-api.jar and /dev/null differ diff --git a/SimDeCS/WebContent/WEB-INF/lib/drools-compiler.jar b/SimDeCS/WebContent/WEB-INF/lib/drools-compiler.jar deleted file mode 100644 index 02b719a..0000000 Binary files a/SimDeCS/WebContent/WEB-INF/lib/drools-compiler.jar and /dev/null differ diff --git a/SimDeCS/WebContent/WEB-INF/lib/drools-core.jar b/SimDeCS/WebContent/WEB-INF/lib/drools-core.jar deleted file mode 100644 index 7e8b791..0000000 Binary files a/SimDeCS/WebContent/WEB-INF/lib/drools-core.jar and /dev/null differ diff --git a/SimDeCS/WebContent/WEB-INF/lib/itext-rtf.jar b/SimDeCS/WebContent/WEB-INF/lib/itext-rtf.jar deleted file mode 100644 index 3f6f50a..0000000 Binary files a/SimDeCS/WebContent/WEB-INF/lib/itext-rtf.jar and /dev/null differ diff --git a/SimDeCS/WebContent/WEB-INF/lib/itext.jar b/SimDeCS/WebContent/WEB-INF/lib/itext.jar deleted file mode 100644 index b81af6e..0000000 Binary files a/SimDeCS/WebContent/WEB-INF/lib/itext.jar and /dev/null differ diff --git a/SimDeCS/WebContent/WEB-INF/lib/jboss-el.jar b/SimDeCS/WebContent/WEB-INF/lib/jboss-el.jar deleted file mode 100644 index d4a893f..0000000 Binary files a/SimDeCS/WebContent/WEB-INF/lib/jboss-el.jar and /dev/null differ diff --git a/SimDeCS/WebContent/WEB-INF/lib/jboss-seam-debug.jar b/SimDeCS/WebContent/WEB-INF/lib/jboss-seam-debug.jar deleted file mode 100644 index dd105ba..0000000 Binary files a/SimDeCS/WebContent/WEB-INF/lib/jboss-seam-debug.jar and /dev/null differ diff --git a/SimDeCS/WebContent/WEB-INF/lib/jboss-seam-excel.jar b/SimDeCS/WebContent/WEB-INF/lib/jboss-seam-excel.jar deleted file mode 100644 index 016030b..0000000 Binary files a/SimDeCS/WebContent/WEB-INF/lib/jboss-seam-excel.jar and /dev/null differ diff --git a/SimDeCS/WebContent/WEB-INF/lib/jboss-seam-ioc.jar b/SimDeCS/WebContent/WEB-INF/lib/jboss-seam-ioc.jar deleted file mode 100644 index d5eb47c..0000000 Binary files a/SimDeCS/WebContent/WEB-INF/lib/jboss-seam-ioc.jar and /dev/null differ diff --git a/SimDeCS/WebContent/WEB-INF/lib/jboss-seam-mail.jar b/SimDeCS/WebContent/WEB-INF/lib/jboss-seam-mail.jar deleted file mode 100644 index d88d434..0000000 Binary files a/SimDeCS/WebContent/WEB-INF/lib/jboss-seam-mail.jar and /dev/null differ diff --git a/SimDeCS/WebContent/WEB-INF/lib/jboss-seam-pdf.jar b/SimDeCS/WebContent/WEB-INF/lib/jboss-seam-pdf.jar deleted file mode 100644 index 45901f5..0000000 Binary files a/SimDeCS/WebContent/WEB-INF/lib/jboss-seam-pdf.jar and /dev/null differ diff --git a/SimDeCS/WebContent/WEB-INF/lib/jboss-seam-remoting.jar b/SimDeCS/WebContent/WEB-INF/lib/jboss-seam-remoting.jar deleted file mode 100644 index efd0a7d..0000000 Binary files a/SimDeCS/WebContent/WEB-INF/lib/jboss-seam-remoting.jar and /dev/null differ diff --git a/SimDeCS/WebContent/WEB-INF/lib/jboss-seam-ui.jar b/SimDeCS/WebContent/WEB-INF/lib/jboss-seam-ui.jar deleted file mode 100644 index 4183828..0000000 Binary files a/SimDeCS/WebContent/WEB-INF/lib/jboss-seam-ui.jar and /dev/null differ diff --git a/SimDeCS/WebContent/WEB-INF/lib/jboss-seam.jar b/SimDeCS/WebContent/WEB-INF/lib/jboss-seam.jar deleted file mode 100644 index 28b5cd4..0000000 Binary files a/SimDeCS/WebContent/WEB-INF/lib/jboss-seam.jar and /dev/null differ diff --git a/SimDeCS/WebContent/WEB-INF/lib/jbpm-jpdl.jar b/SimDeCS/WebContent/WEB-INF/lib/jbpm-jpdl.jar deleted file mode 100644 index 6495b33..0000000 Binary files a/SimDeCS/WebContent/WEB-INF/lib/jbpm-jpdl.jar and /dev/null differ diff --git a/SimDeCS/WebContent/WEB-INF/lib/jcommon.jar b/SimDeCS/WebContent/WEB-INF/lib/jcommon.jar deleted file mode 100644 index 4cd6807..0000000 Binary files a/SimDeCS/WebContent/WEB-INF/lib/jcommon.jar and /dev/null differ diff --git a/SimDeCS/WebContent/WEB-INF/lib/jfreechart.jar b/SimDeCS/WebContent/WEB-INF/lib/jfreechart.jar deleted file mode 100644 index 8b9f952..0000000 Binary files a/SimDeCS/WebContent/WEB-INF/lib/jfreechart.jar and /dev/null differ diff --git a/SimDeCS/WebContent/WEB-INF/lib/jsf-facelets.jar b/SimDeCS/WebContent/WEB-INF/lib/jsf-facelets.jar deleted file mode 100644 index 5830289..0000000 Binary files a/SimDeCS/WebContent/WEB-INF/lib/jsf-facelets.jar and /dev/null differ diff --git a/SimDeCS/WebContent/WEB-INF/lib/jxl.jar b/SimDeCS/WebContent/WEB-INF/lib/jxl.jar deleted file mode 100644 index e120802..0000000 Binary files a/SimDeCS/WebContent/WEB-INF/lib/jxl.jar and /dev/null differ diff --git a/SimDeCS/WebContent/WEB-INF/lib/mvel2.jar b/SimDeCS/WebContent/WEB-INF/lib/mvel2.jar deleted file mode 100644 index 03b1463..0000000 Binary files a/SimDeCS/WebContent/WEB-INF/lib/mvel2.jar and /dev/null differ diff --git a/SimDeCS/WebContent/WEB-INF/lib/richfaces-api.jar b/SimDeCS/WebContent/WEB-INF/lib/richfaces-api.jar deleted file mode 100644 index 0aeb97a..0000000 Binary files a/SimDeCS/WebContent/WEB-INF/lib/richfaces-api.jar and /dev/null differ diff --git a/SimDeCS/WebContent/WEB-INF/lib/richfaces-impl.jar b/SimDeCS/WebContent/WEB-INF/lib/richfaces-impl.jar deleted file mode 100644 index 6c61a7f..0000000 Binary files a/SimDeCS/WebContent/WEB-INF/lib/richfaces-impl.jar and /dev/null differ diff --git a/SimDeCS/WebContent/WEB-INF/lib/richfaces-ui.jar b/SimDeCS/WebContent/WEB-INF/lib/richfaces-ui.jar deleted file mode 100644 index 6b02e05..0000000 Binary files a/SimDeCS/WebContent/WEB-INF/lib/richfaces-ui.jar and /dev/null differ diff --git a/SimDeCS/WebContent/WEB-INF/pages.xml b/SimDeCS/WebContent/WEB-INF/pages.xml deleted file mode 100644 index 1ea222c..0000000 --- a/SimDeCS/WebContent/WEB-INF/pages.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - Record not found - - - - - - Record not found - - - - - - Duplicate record - - - - - - - Another user changed the same data, please try again - - - - - - You don't have permission to access this resource - - - - - - Por favor, efetue login para acessar este recurso! - - - - - - Your session has timed out, please try again - - - - - - - - - - Unexpected error, please try again - - - - diff --git a/SimDeCS/WebContent/WEB-INF/web.xml b/SimDeCS/WebContent/WEB-INF/web.xml deleted file mode 100644 index 81a5428..0000000 --- a/SimDeCS/WebContent/WEB-INF/web.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - SimDeCS - - index.html - index.htm - index.jsp - default.html - default.htm - default.jsp - - - Faces Servlet - javax.faces.webapp.FacesServlet - 1 - - - Faces Servlet - *.seam - - - org.jboss.jbossfaces.JSF_CONFIG_NAME - Mojarra-1.2 - - - org.richfaces.SKIN - DEFAULT - - - org.jboss.seam.servlet.SeamListener - - - Seam Filter - org.jboss.seam.servlet.SeamFilter - - - Seam Filter - /* - - - Seam Resource Servlet - org.jboss.seam.servlet.SeamResourceServlet - - - Seam Resource Servlet - /seam/resource/* - - - facelets.DEVELOPMENT - true - - - javax.faces.DEFAULT_SUFFIX - .xhtml - - - Restrict raw XHTML Documents - - XHTML - *.xhtml - - - - \ No newline at end of file diff --git a/SimDeCS/WebContent/error.xhtml b/SimDeCS/WebContent/error.xhtml deleted file mode 100644 index a4a2af1..0000000 --- a/SimDeCS/WebContent/error.xhtml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - -

Error

-

Something bad happened :-(

- - - -
-
diff --git a/SimDeCS/WebContent/home.xhtml b/SimDeCS/WebContent/home.xhtml deleted file mode 100644 index 47ecd8d..0000000 --- a/SimDeCS/WebContent/home.xhtml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - -

Bem vindo SimDeCs!

- - - - -

Simulador de Tomadas de Decisão em Cuidados de Saúde:

-

Ambiente de aprendizado multiagente na área da saúde.

-
- -
-
- -
-
diff --git a/SimDeCS/WebContent/img/btnmanageroles.png b/SimDeCS/WebContent/img/btnmanageroles.png deleted file mode 100644 index b70ce6e..0000000 Binary files a/SimDeCS/WebContent/img/btnmanageroles.png and /dev/null differ diff --git a/SimDeCS/WebContent/img/btnmanageusers.png b/SimDeCS/WebContent/img/btnmanageusers.png deleted file mode 100644 index 6f15ae4..0000000 Binary files a/SimDeCS/WebContent/img/btnmanageusers.png and /dev/null differ diff --git a/SimDeCS/WebContent/img/btnnewpermission.png b/SimDeCS/WebContent/img/btnnewpermission.png deleted file mode 100644 index e0a23f6..0000000 Binary files a/SimDeCS/WebContent/img/btnnewpermission.png and /dev/null differ diff --git a/SimDeCS/WebContent/img/btnnewrole.png b/SimDeCS/WebContent/img/btnnewrole.png deleted file mode 100644 index 3b457cc..0000000 Binary files a/SimDeCS/WebContent/img/btnnewrole.png and /dev/null differ diff --git a/SimDeCS/WebContent/img/btnnewuser.png b/SimDeCS/WebContent/img/btnnewuser.png deleted file mode 100644 index e1a563f..0000000 Binary files a/SimDeCS/WebContent/img/btnnewuser.png and /dev/null differ diff --git a/SimDeCS/WebContent/img/dtpick.gif b/SimDeCS/WebContent/img/dtpick.gif deleted file mode 100644 index 8526cf5..0000000 Binary files a/SimDeCS/WebContent/img/dtpick.gif and /dev/null differ diff --git a/SimDeCS/WebContent/img/error.gif b/SimDeCS/WebContent/img/error.gif deleted file mode 100644 index 34d667d..0000000 Binary files a/SimDeCS/WebContent/img/error.gif and /dev/null differ diff --git a/SimDeCS/WebContent/img/false.png b/SimDeCS/WebContent/img/false.png deleted file mode 100644 index fbe46a5..0000000 Binary files a/SimDeCS/WebContent/img/false.png and /dev/null differ diff --git a/SimDeCS/WebContent/img/manytoone.gif b/SimDeCS/WebContent/img/manytoone.gif deleted file mode 100644 index 5e05f71..0000000 Binary files a/SimDeCS/WebContent/img/manytoone.gif and /dev/null differ diff --git a/SimDeCS/WebContent/img/msgerror.png b/SimDeCS/WebContent/img/msgerror.png deleted file mode 100644 index d94cf89..0000000 Binary files a/SimDeCS/WebContent/img/msgerror.png and /dev/null differ diff --git a/SimDeCS/WebContent/img/msginfo.png b/SimDeCS/WebContent/img/msginfo.png deleted file mode 100644 index fb9031c..0000000 Binary files a/SimDeCS/WebContent/img/msginfo.png and /dev/null differ diff --git a/SimDeCS/WebContent/img/msgwarn.png b/SimDeCS/WebContent/img/msgwarn.png deleted file mode 100644 index 69a83fb..0000000 Binary files a/SimDeCS/WebContent/img/msgwarn.png and /dev/null differ diff --git a/SimDeCS/WebContent/img/onetomany.gif b/SimDeCS/WebContent/img/onetomany.gif deleted file mode 100644 index 982d5e5..0000000 Binary files a/SimDeCS/WebContent/img/onetomany.gif and /dev/null differ diff --git a/SimDeCS/WebContent/img/seamlogo.png b/SimDeCS/WebContent/img/seamlogo.png deleted file mode 100644 index ab274a6..0000000 Binary files a/SimDeCS/WebContent/img/seamlogo.png and /dev/null differ diff --git a/SimDeCS/WebContent/img/simdecs-logo.png b/SimDeCS/WebContent/img/simdecs-logo.png deleted file mode 100644 index c10d714..0000000 Binary files a/SimDeCS/WebContent/img/simdecs-logo.png and /dev/null differ diff --git a/SimDeCS/WebContent/img/true.png b/SimDeCS/WebContent/img/true.png deleted file mode 100644 index f449096..0000000 Binary files a/SimDeCS/WebContent/img/true.png and /dev/null differ diff --git a/SimDeCS/WebContent/img/unasus.jpg b/SimDeCS/WebContent/img/unasus.jpg deleted file mode 100644 index 78be850..0000000 Binary files a/SimDeCS/WebContent/img/unasus.jpg and /dev/null differ diff --git a/SimDeCS/WebContent/img/vrmed/bodyEditarDiagrama.png b/SimDeCS/WebContent/img/vrmed/bodyEditarDiagrama.png deleted file mode 100644 index e04a1ff..0000000 Binary files a/SimDeCS/WebContent/img/vrmed/bodyEditarDiagrama.png and /dev/null differ diff --git a/SimDeCS/WebContent/img/vrmed/bodyExcluirDiagrama.png b/SimDeCS/WebContent/img/vrmed/bodyExcluirDiagrama.png deleted file mode 100644 index 197b376..0000000 Binary files a/SimDeCS/WebContent/img/vrmed/bodyExcluirDiagrama.png and /dev/null differ diff --git a/SimDeCS/WebContent/img/vrmed/bodyNovoDiagrama.png b/SimDeCS/WebContent/img/vrmed/bodyNovoDiagrama.png deleted file mode 100644 index 4c28a8f..0000000 Binary files a/SimDeCS/WebContent/img/vrmed/bodyNovoDiagrama.png and /dev/null differ diff --git a/SimDeCS/WebContent/img/vrmed/cenarios/cenarioCasa.png b/SimDeCS/WebContent/img/vrmed/cenarios/cenarioCasa.png deleted file mode 100644 index b9ec799..0000000 Binary files a/SimDeCS/WebContent/img/vrmed/cenarios/cenarioCasa.png and /dev/null differ diff --git a/SimDeCS/WebContent/img/vrmed/cenarios/cenarioHospital.png b/SimDeCS/WebContent/img/vrmed/cenarios/cenarioHospital.png deleted file mode 100644 index 7fed6c3..0000000 Binary files a/SimDeCS/WebContent/img/vrmed/cenarios/cenarioHospital.png and /dev/null differ diff --git a/SimDeCS/WebContent/img/vrmed/cenarios/cenarioUBS.png b/SimDeCS/WebContent/img/vrmed/cenarios/cenarioUBS.png deleted file mode 100644 index 698f527..0000000 Binary files a/SimDeCS/WebContent/img/vrmed/cenarios/cenarioUBS.png and /dev/null differ diff --git a/SimDeCS/WebContent/img/vrmed/footerEditarDiagrama.png b/SimDeCS/WebContent/img/vrmed/footerEditarDiagrama.png deleted file mode 100644 index ff100dd..0000000 Binary files a/SimDeCS/WebContent/img/vrmed/footerEditarDiagrama.png and /dev/null differ diff --git a/SimDeCS/WebContent/img/vrmed/footerExcluirDiagrama.png b/SimDeCS/WebContent/img/vrmed/footerExcluirDiagrama.png deleted file mode 100644 index aac27a6..0000000 Binary files a/SimDeCS/WebContent/img/vrmed/footerExcluirDiagrama.png and /dev/null differ diff --git a/SimDeCS/WebContent/img/vrmed/footerNovoDiagrama.png b/SimDeCS/WebContent/img/vrmed/footerNovoDiagrama.png deleted file mode 100644 index 2a19020..0000000 Binary files a/SimDeCS/WebContent/img/vrmed/footerNovoDiagrama.png and /dev/null differ diff --git a/SimDeCS/WebContent/img/vrmed/headerEditarDiagrama.png b/SimDeCS/WebContent/img/vrmed/headerEditarDiagrama.png deleted file mode 100644 index 67fd19d..0000000 Binary files a/SimDeCS/WebContent/img/vrmed/headerEditarDiagrama.png and /dev/null differ diff --git a/SimDeCS/WebContent/img/vrmed/headerExcluirDiagrama.png b/SimDeCS/WebContent/img/vrmed/headerExcluirDiagrama.png deleted file mode 100644 index a4b99ca..0000000 Binary files a/SimDeCS/WebContent/img/vrmed/headerExcluirDiagrama.png and /dev/null differ diff --git a/SimDeCS/WebContent/img/vrmed/headerNovoDiagrama.png b/SimDeCS/WebContent/img/vrmed/headerNovoDiagrama.png deleted file mode 100644 index fad6d21..0000000 Binary files a/SimDeCS/WebContent/img/vrmed/headerNovoDiagrama.png and /dev/null differ diff --git a/SimDeCS/WebContent/img/vrmed/inteira.png b/SimDeCS/WebContent/img/vrmed/inteira.png deleted file mode 100644 index 158b669..0000000 Binary files a/SimDeCS/WebContent/img/vrmed/inteira.png and /dev/null differ diff --git a/SimDeCS/WebContent/index.html b/SimDeCS/WebContent/index.html deleted file mode 100644 index a6974eb..0000000 --- a/SimDeCS/WebContent/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/SimDeCS/WebContent/layout/display.xhtml b/SimDeCS/WebContent/layout/display.xhtml deleted file mode 100644 index ea92dee..0000000 --- a/SimDeCS/WebContent/layout/display.xhtml +++ /dev/null @@ -1,16 +0,0 @@ - - -
- - - - - - -
- -
diff --git a/SimDeCS/WebContent/layout/edit.xhtml b/SimDeCS/WebContent/layout/edit.xhtml deleted file mode 100644 index 9728c2c..0000000 --- a/SimDeCS/WebContent/layout/edit.xhtml +++ /dev/null @@ -1,27 +0,0 @@ - - -
- - - - * - - - - - - - - - - - - - -
- -
diff --git a/SimDeCS/WebContent/layout/menu.xhtml b/SimDeCS/WebContent/layout/menu.xhtml deleted file mode 100644 index ecdaff5..0000000 --- a/SimDeCS/WebContent/layout/menu.xhtml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - Cadastros - - - - - - - - - - - - - - - - - - Diagrama - - - - - - - - - - - - diff --git a/SimDeCS/WebContent/layout/sort.xhtml b/SimDeCS/WebContent/layout/sort.xhtml deleted file mode 100644 index cbe30fc..0000000 --- a/SimDeCS/WebContent/layout/sort.xhtml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - diff --git a/SimDeCS/WebContent/layout/template.xhtml b/SimDeCS/WebContent/layout/template.xhtml deleted file mode 100644 index 23c3caa..0000000 --- a/SimDeCS/WebContent/layout/template.xhtml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - SimDeCS - - - - - - - - - -
- - -
- - - -
diff --git a/SimDeCS/WebContent/login.page.xml b/SimDeCS/WebContent/login.page.xml deleted file mode 100644 index 3818f57..0000000 --- a/SimDeCS/WebContent/login.page.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - diff --git a/SimDeCS/WebContent/login.xhtml b/SimDeCS/WebContent/login.xhtml deleted file mode 100644 index 64125dc..0000000 --- a/SimDeCS/WebContent/login.xhtml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - Acesso ao SimDeCS - -

Informe abaixo seu usuário e senha:

- -
- - Usuário - - Senha - - Lembrar-me - - - &nbpsp; - - -
- -

- Atenção - A senha diferencia letras maiúsculas e minúsculas. -

-
- - -
- -
-
diff --git a/SimDeCS/WebContent/seguro/admin/grupo/Grupo.page.xml b/SimDeCS/WebContent/seguro/admin/grupo/Grupo.page.xml deleted file mode 100644 index b099cf9..0000000 --- a/SimDeCS/WebContent/seguro/admin/grupo/Grupo.page.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - diff --git a/SimDeCS/WebContent/seguro/admin/grupo/Grupo.xhtml b/SimDeCS/WebContent/seguro/admin/grupo/Grupo.xhtml deleted file mode 100644 index 013c11f..0000000 --- a/SimDeCS/WebContent/seguro/admin/grupo/Grupo.xhtml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - Grupo - - - - Ativo - - - - - Nome - - - -
- - - -
- - - - - -
- - - - diff --git a/SimDeCS/WebContent/seguro/admin/grupo/GrupoEdit.page.xml b/SimDeCS/WebContent/seguro/admin/grupo/GrupoEdit.page.xml deleted file mode 100644 index ee149f8..0000000 --- a/SimDeCS/WebContent/seguro/admin/grupo/GrupoEdit.page.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SimDeCS/WebContent/seguro/admin/grupo/GrupoEdit.xhtml b/SimDeCS/WebContent/seguro/admin/grupo/GrupoEdit.xhtml deleted file mode 100644 index 169ee10..0000000 --- a/SimDeCS/WebContent/seguro/admin/grupo/GrupoEdit.xhtml +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - #{grupoHome.managed ? 'Editar' : 'Novo'} Grupo - - - - - Ativo - - - - - - Nome - - - - - - - - -
- * - Informações Obrigatórias -
- -
- -
- - - - - - - - - - - -
-
- -
- -
diff --git a/SimDeCS/WebContent/seguro/admin/grupo/GrupoList.page.xml b/SimDeCS/WebContent/seguro/admin/grupo/GrupoList.page.xml deleted file mode 100644 index fa23066..0000000 --- a/SimDeCS/WebContent/seguro/admin/grupo/GrupoList.page.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - diff --git a/SimDeCS/WebContent/seguro/admin/grupo/GrupoList.xhtml b/SimDeCS/WebContent/seguro/admin/grupo/GrupoList.xhtml deleted file mode 100644 index fcf99ce..0000000 --- a/SimDeCS/WebContent/seguro/admin/grupo/GrupoList.xhtml +++ /dev/null @@ -1,150 +0,0 @@ - - - - - - - - - - - Nome - - - - - Opções de Pesquisa - - - - - - - - -
- - -
- -
- - - Resultados da Pesquisa (#{empty grupoList.resultList ? 0 : (grupoList.paginated ? grupoList.resultCount : grupoList.resultList.size)}) -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ação - - - - #{' '} - - - - - - -
-
- -
- - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
diff --git a/SimDeCS/WebContent/seguro/admin/instituicao/Instituicao.page.xml b/SimDeCS/WebContent/seguro/admin/instituicao/Instituicao.page.xml deleted file mode 100644 index b7c9ebd..0000000 --- a/SimDeCS/WebContent/seguro/admin/instituicao/Instituicao.page.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - diff --git a/SimDeCS/WebContent/seguro/admin/instituicao/Instituicao.xhtml b/SimDeCS/WebContent/seguro/admin/instituicao/Instituicao.xhtml deleted file mode 100644 index 275b828..0000000 --- a/SimDeCS/WebContent/seguro/admin/instituicao/Instituicao.xhtml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - Instituição - - - Nome - - - - - Endereço - - - - - Telefone - - - -
- - - -
- - - - - -
- - - - diff --git a/SimDeCS/WebContent/seguro/admin/instituicao/InstituicaoEdit.page.xml b/SimDeCS/WebContent/seguro/admin/instituicao/InstituicaoEdit.page.xml deleted file mode 100644 index 59ec3f3..0000000 --- a/SimDeCS/WebContent/seguro/admin/instituicao/InstituicaoEdit.page.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SimDeCS/WebContent/seguro/admin/instituicao/InstituicaoEdit.xhtml b/SimDeCS/WebContent/seguro/admin/instituicao/InstituicaoEdit.xhtml deleted file mode 100644 index 6bfc029..0000000 --- a/SimDeCS/WebContent/seguro/admin/instituicao/InstituicaoEdit.xhtml +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - - - - #{instituicaoHome.managed ? 'Editar' : 'Nova'} Instituição - - - - Nome - - - - - - - - Endereço - - - - - - - - Telefone - - - - - -
- * - Informações Obrigatórias -
- -
- -
- - - - - - - - - - - -
-
- -
- -
diff --git a/SimDeCS/WebContent/seguro/admin/instituicao/InstituicaoList.page.xml b/SimDeCS/WebContent/seguro/admin/instituicao/InstituicaoList.page.xml deleted file mode 100644 index 71215a4..0000000 --- a/SimDeCS/WebContent/seguro/admin/instituicao/InstituicaoList.page.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - diff --git a/SimDeCS/WebContent/seguro/admin/instituicao/InstituicaoList.xhtml b/SimDeCS/WebContent/seguro/admin/instituicao/InstituicaoList.xhtml deleted file mode 100644 index c3f4465..0000000 --- a/SimDeCS/WebContent/seguro/admin/instituicao/InstituicaoList.xhtml +++ /dev/null @@ -1,170 +0,0 @@ - - - - - - - - - - - Nome - - - - - Endereço - - - - - Telefone - - - - - Opções de Pesquisa - - - - - - - - -
- - -
- -
- - - Resultados da Pesquisa (#{empty instituicaoList.resultList ? 0 : (instituicaoList.paginated ? instituicaoList.resultCount : instituicaoList.resultList.size)}) -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ação - - - - #{' '} - - - - - - -
-
- -
- - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
diff --git a/SimDeCS/WebContent/seguro/admin/privilegio/Privilegio.page.xml b/SimDeCS/WebContent/seguro/admin/privilegio/Privilegio.page.xml deleted file mode 100644 index 9f9e330..0000000 --- a/SimDeCS/WebContent/seguro/admin/privilegio/Privilegio.page.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - diff --git a/SimDeCS/WebContent/seguro/admin/privilegio/Privilegio.xhtml b/SimDeCS/WebContent/seguro/admin/privilegio/Privilegio.xhtml deleted file mode 100644 index 10b2c2a..0000000 --- a/SimDeCS/WebContent/seguro/admin/privilegio/Privilegio.xhtml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - Privilégio - - - - Nome - - - - - Token - - - -
- - - -
- - - - - -
- - - - diff --git a/SimDeCS/WebContent/seguro/admin/privilegio/PrivilegioEdit.page.xml b/SimDeCS/WebContent/seguro/admin/privilegio/PrivilegioEdit.page.xml deleted file mode 100644 index 5be209c..0000000 --- a/SimDeCS/WebContent/seguro/admin/privilegio/PrivilegioEdit.page.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SimDeCS/WebContent/seguro/admin/privilegio/PrivilegioEdit.xhtml b/SimDeCS/WebContent/seguro/admin/privilegio/PrivilegioEdit.xhtml deleted file mode 100644 index 5963b67..0000000 --- a/SimDeCS/WebContent/seguro/admin/privilegio/PrivilegioEdit.xhtml +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - - #{privilegioHome.managed ? 'Editar' : 'Novo'} Privilégio - - - Nome - - - - - - - - Token - - - -
- * - Informações Obrigatórias -
- -
- -
- - - - - - - - - - - -
-
- -
- -
diff --git a/SimDeCS/WebContent/seguro/admin/privilegio/PrivilegioList.page.xml b/SimDeCS/WebContent/seguro/admin/privilegio/PrivilegioList.page.xml deleted file mode 100644 index 0afdb31..0000000 --- a/SimDeCS/WebContent/seguro/admin/privilegio/PrivilegioList.page.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - diff --git a/SimDeCS/WebContent/seguro/admin/privilegio/PrivilegioList.xhtml b/SimDeCS/WebContent/seguro/admin/privilegio/PrivilegioList.xhtml deleted file mode 100644 index 96c468c..0000000 --- a/SimDeCS/WebContent/seguro/admin/privilegio/PrivilegioList.xhtml +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - - - - - - Nome - - - - - Token - - - - - Opções de Pesquisa - - - - - - - - -
- - -
- -
- - - Resultados da Pesquisa(#{empty privilegioList.resultList ? 0 : (privilegioList.paginated ? privilegioList.resultCount : privilegioList.resultList.size)}) -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Action - - - - #{' '} - - - - - - -
-
- -
- - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
diff --git a/SimDeCS/WebContent/seguro/admin/regra/Regra.page.xml b/SimDeCS/WebContent/seguro/admin/regra/Regra.page.xml deleted file mode 100644 index 45588fa..0000000 --- a/SimDeCS/WebContent/seguro/admin/regra/Regra.page.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - diff --git a/SimDeCS/WebContent/seguro/admin/regra/Regra.xhtml b/SimDeCS/WebContent/seguro/admin/regra/Regra.xhtml deleted file mode 100644 index 2188dfb..0000000 --- a/SimDeCS/WebContent/seguro/admin/regra/Regra.xhtml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - Regra - - - - Nome - - - - - Token - - - -
- - - -
- - - - -
- - - - diff --git a/SimDeCS/WebContent/seguro/admin/regra/RegraEdit.page.xml b/SimDeCS/WebContent/seguro/admin/regra/RegraEdit.page.xml deleted file mode 100644 index d8b3d44..0000000 --- a/SimDeCS/WebContent/seguro/admin/regra/RegraEdit.page.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SimDeCS/WebContent/seguro/admin/regra/RegraEdit.xhtml b/SimDeCS/WebContent/seguro/admin/regra/RegraEdit.xhtml deleted file mode 100644 index a5be9a8..0000000 --- a/SimDeCS/WebContent/seguro/admin/regra/RegraEdit.xhtml +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - #{regraHome.managed ? 'Editar' : 'Nova'} Regra - - - - - - Nome - - - - - - - - Token - - - -
- * - Informações Obrigatórias -
- -
- -
- - - - - - - - - - - -
-
- -
- -
diff --git a/SimDeCS/WebContent/seguro/admin/regra/RegraList.page.xml b/SimDeCS/WebContent/seguro/admin/regra/RegraList.page.xml deleted file mode 100644 index ba4648d..0000000 --- a/SimDeCS/WebContent/seguro/admin/regra/RegraList.page.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - diff --git a/SimDeCS/WebContent/seguro/admin/regra/RegraList.xhtml b/SimDeCS/WebContent/seguro/admin/regra/RegraList.xhtml deleted file mode 100644 index 2854134..0000000 --- a/SimDeCS/WebContent/seguro/admin/regra/RegraList.xhtml +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - - - - - - Nome - - - - - Token - - - - - Opções de Pesquisa - - - - - - - - -
- - -
- -
- - - Resultados da Pesquisa(#{empty regraList.resultList ? 0 : (regraList.paginated ? regraList.resultCount : regraList.resultList.size)}) -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ação - - - - #{' '} - - - - - - -
-
- -
- - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
diff --git a/SimDeCS/WebContent/seguro/admin/usuario/Usuario.page.xml b/SimDeCS/WebContent/seguro/admin/usuario/Usuario.page.xml deleted file mode 100644 index 223d438..0000000 --- a/SimDeCS/WebContent/seguro/admin/usuario/Usuario.page.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - diff --git a/SimDeCS/WebContent/seguro/admin/usuario/Usuario.xhtml b/SimDeCS/WebContent/seguro/admin/usuario/Usuario.xhtml deleted file mode 100644 index 11b3d73..0000000 --- a/SimDeCS/WebContent/seguro/admin/usuario/Usuario.xhtml +++ /dev/null @@ -1,132 +0,0 @@ - - - - - - - Usuário - - - - Aprovado - - - - - Ativo - - - - - Data criacao - - - - - - - Data nascimento - - - - - - - Email - - - - - Funcao - - - - - Login - - - - - Nome - - - - - Senha - - - - - Sexo - - - - - Telefone - - - -
- - - -
- - - - - -
- - - - - - Criado por - -
- - - - - - Id - - - - Nome - - - - Ação - - - - - - -
-
-
- - - diff --git a/SimDeCS/WebContent/seguro/admin/usuario/UsuarioEdit.page.xml b/SimDeCS/WebContent/seguro/admin/usuario/UsuarioEdit.page.xml deleted file mode 100644 index 0527d32..0000000 --- a/SimDeCS/WebContent/seguro/admin/usuario/UsuarioEdit.page.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SimDeCS/WebContent/seguro/admin/usuario/UsuarioEdit.xhtml b/SimDeCS/WebContent/seguro/admin/usuario/UsuarioEdit.xhtml deleted file mode 100644 index aee9a07..0000000 --- a/SimDeCS/WebContent/seguro/admin/usuario/UsuarioEdit.xhtml +++ /dev/null @@ -1,202 +0,0 @@ - - - - - - - - - #{usuarioHome.managed ? 'Editar' : 'Novo'} Usuário - - - - - Aprovado - - - - - - Ativo - - - - - - - Data criacao - - - - - - Data nascimento - - - - - - Email - - - - - - - - Funcao - - - - - - - - - Login - - - - - - - - Nome - - - - - - - - Senha - - - - - - - - Sexo - - - - - - - - Telefone - - - - - -
- * - Informações Obrigatórias -
- -
- -
- - - - - - - - - - - -
-
- - - - -
- - - - - - Id - - - - Nome - - - - -
-
-
-
- -
diff --git a/SimDeCS/WebContent/seguro/admin/usuario/UsuarioList.page.xml b/SimDeCS/WebContent/seguro/admin/usuario/UsuarioList.page.xml deleted file mode 100644 index d5e6d1d..0000000 --- a/SimDeCS/WebContent/seguro/admin/usuario/UsuarioList.page.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/SimDeCS/WebContent/seguro/admin/usuario/UsuarioList.xhtml b/SimDeCS/WebContent/seguro/admin/usuario/UsuarioList.xhtml deleted file mode 100644 index c98a14a..0000000 --- a/SimDeCS/WebContent/seguro/admin/usuario/UsuarioList.xhtml +++ /dev/null @@ -1,247 +0,0 @@ - - - - - - - - - - - Nome - - - - - Login - - - - - Email - - - - - Funcao - - - - - Sexo - - - - - Telefone - - - - - Opções de Pesquisa - - - - - - - - -
- - -
- -
- - - Resultado da Pesquisa(#{empty usuarioList.resultList ? 0 : (usuarioList.paginated ? usuarioList.resultCount : usuarioList.resultList.size)}) -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ação - - - - #{' '} - - - - - - -
-
- -
- - - - - - - - - - - - - - - - - -
- - - - - - - -
- -
diff --git a/SimDeCS/WebContent/seguro/vrmed/criarNovoDiagrama.xhtml b/SimDeCS/WebContent/seguro/vrmed/criarNovoDiagrama.xhtml deleted file mode 100644 index 1be41b4..0000000 --- a/SimDeCS/WebContent/seguro/vrmed/criarNovoDiagrama.xhtml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - -
- Bem vindo ao seu novo diagrama! -

- Para criar seu caso clínico são necessárias algumas informações. Informe abaixo um texto introdutório sobre o caso em questão (digitando no campo abaixo) e selecione um cenário onde irá se desenvolver a história (clicando sobre a imagem). -

- Após clique sobre a opção “Adicionar Ator” para prosseguir com o processo. -


- - Introdução:
- -
-
- - - - -
- -
- -
-
- - -
-
- - -
- -
diff --git a/SimDeCS/WebContent/seguro/vrmed/selecionarDiagrama.page.xml b/SimDeCS/WebContent/seguro/vrmed/selecionarDiagrama.page.xml deleted file mode 100644 index 99c4061..0000000 --- a/SimDeCS/WebContent/seguro/vrmed/selecionarDiagrama.page.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/SimDeCS/WebContent/seguro/vrmed/selecionarDiagrama.xhtml b/SimDeCS/WebContent/seguro/vrmed/selecionarDiagrama.xhtml deleted file mode 100644 index 37bdfdc..0000000 --- a/SimDeCS/WebContent/seguro/vrmed/selecionarDiagrama.xhtml +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - selecionarDiagrama - - - - - - - - - - - - - - - - - - - - - - - - - -
  
- - - - - - - - - - -
Nome do Diagrama
-
- -
-
  -   -
  
-
- -
- -
diff --git a/SimDeCS/WebContent/stylesheet/theme.css b/SimDeCS/WebContent/stylesheet/theme.css deleted file mode 100644 index a670eae..0000000 --- a/SimDeCS/WebContent/stylesheet/theme.css +++ /dev/null @@ -1,230 +0,0 @@ -html { - overflow-y: scroll; -} - -body { - font-family: Arial, Helvetica; - font-size: 12px; - margin: 0px; -} - -a img { - border: none; -} - -h1 { - font-size: 1.6em; - margin-top: 0; -} - -input[type=submit], input[type=button] { - font-size: 12px; - margin: 5px 5px 5px 0; - cursor: pointer; - border:1px solid; -} - -input[type=text], input[type=password], textarea { - font-size: 12px; - padding-left: 1px; -} - -select { - font-size: 13px; -} - - -.tabelaSemBorda { - border: 0px; - padding-left: 1em; -} - -.tabelaSemBorda td { - border: 0px; -} - -.tableControl, .actionButtons { - width: 100%; -} - -.tableControl a { - padding-left: 10px; -} - -.tableControl { - text-align: right; -} - -.footer { - text-align: center; - font-size: 11px; - margin-bottom: 10px; -} - -.rich-table { - width: 100%; -} - -.body { - padding: 30px; -} -.message { - padding: 5px; - list-style: none; - border: 0; - background: none; - padding: 0; - color: #000000; - margin: 5px 0 8px 0; - font-size: 12px; -} - -.message li { - background: no-repeat left center; - padding-top: 1px; - padding-left: 20px; - margin-left: 3px; -} - -.message li.infomsg { - background-image: url(../img/msginfo.png); -} - -.message li.errormsg { - background-image: url(../img/msgerror.png); -} - -.message li.warnmsg { - background-image: url(../img/msgwarn.png); -} - -.name { - vertical-align: top; - font-weight: bold; - width: 115px; - float: left; - padding: 5px; - margin-top: 3px; - clear: left; -} - -.value { - float: left; - padding: 5px; -} - -.error { - float: left; - padding: 5px; -} - -.errors { - color: #FF0000; - vertical-align: middle; -} - -img.errors { - padding-right: 5px; -} - -.errors input, .errors textarea, .errors select { - border: 1px solid red !important; -} - -.required { - color: #FF0000; - padding-left: 2px; -} - -.rich-stglpanel-body { - overflow: auto; -} - -/* the specificity here is necessary to override the defaults */ -/* -.rich-panel .rich-panel-header, -.rich-stglpanel .rich-stglpanel-header { - padding: 2px 3px; -}*/ - -.rich-panel input[type=submit], .rich-panel input[type=button], -.rich-tabpanel input[type=submit], .rich-tabpanel input[type=button] { - margin-bottom: 0; -} - -.tableControl input[type=submit], .tableControl input[type=button], .tableControl select { - margin: 5px 0 5px 5px; -} - -/* I don't know why this is necessary, but the select is off by a pixel on the top and is padding too much on the left */ -.tableControl select { - margin-left: 2px; - position: relative; - top: 1px; -} - -.actionButtons { - padding-left: 1px; -} - -.actionButtons select { - margin: 5px 5px 5px 0; - vertical-align: bottom; -} - -.rich-toolbar-item a { - text-decoration: none; -} - -.rich-toolbar-item a:hover, .rich-ddmenu-label-select { - text-decoration: underline; -} - -.rich-toolbar-item .rich-menu-item a:hover { - text-decoration: none; -} - -.rich-datalist { - list-style: square; - margin: 6px 0 1px 0; - padding-left: 18px; -} - -.rich-list-item { - padding-bottom: 4px; -} - -div.info { - font-size: 1.2em; -} - -ul.bullets { - list-style: square; -} - -ul.bullets li { - padding-bottom: 2px; -} - -td.action { - text-align: center; - width: 8em; - white-space: nowrap; -} - -td.action a { - padding-left: 1px; - padding-right: 1px; -} - -table.radio { - border: 0; -} - -table.radio td { - padding: 0 2px; -} - -table.radio input[type=radio] { - vertical-align: bottom; -} diff --git a/SimDeCS/WebContent/stylesheet/theme.xcss b/SimDeCS/WebContent/stylesheet/theme.xcss deleted file mode 100644 index 73f88a1..0000000 --- a/SimDeCS/WebContent/stylesheet/theme.xcss +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SimDeCS/WebContent/stylesheet/useradmin.css b/SimDeCS/WebContent/stylesheet/useradmin.css deleted file mode 100644 index 46a4f4e..0000000 --- a/SimDeCS/WebContent/stylesheet/useradmin.css +++ /dev/null @@ -1,112 +0,0 @@ -input.newuser { - background: url(../img/btnnewuser.png) top left no-repeat; - height: 39px; - width: 113px; - margin: 4px 4px 4px 4px; - border: 0px; - cursor: pointer; -} - -input.newrole { - background: url(../img/btnnewrole.png) top left no-repeat; - height: 39px; - width: 113px; - margin: 4px 4px 4px 4px; - border: 0px; - cursor: pointer; -} - -input.newpermission { - background: url(../img/btnnewpermission.png) top left no-repeat; - height: 39px; - width: 113px; - margin: 4px 4px 4px 4px; - border: 0px; - cursor: pointer; -} - -input.manageusers { - display: block; - background: url(../img/btnmanageusers.png) top left no-repeat; - height: 88px; - width: 300px; - padding-left: 10px; - font-size: 19px; - font-weight: bold; - color: #333333; - border: 0px; - cursor: pointer; - margin-top: 20px; - margin-left: 20px; -} - -input.manageroles { - display: block; - background: url(../img/btnmanageroles.png) top left no-repeat; - height: 88px; - width: 300px; - padding-left: 10px; - font-size: 19px; - font-weight: bold; - color: #333333; - border: 0px; - cursor: pointer; - margin-top: 20px; - margin-left: 20px; -} - -.roles { - width: 120px; - border: 1px solid #7F9DB9; - background-color: #E7EDF7; -} - -div.selectMany label { - float: none; -} - -div.selectMany input[type="checkbox"] { - vertical-align: middle; -} - -div.status-true { - background: url(../img/true.png) top left no-repeat; - width: 14px; - height: 15px; - margin-left: auto; - margin-right: auto; -} - -div.status-false { - background: url(../img/false.png) top left no-repeat; - width: 14px; - height: 15px; - margin-left: auto; - margin-right: auto; -} - -table.useradmin, div.useradmin { - width: 500px; -} - -/* -table.useradmin tr.odd { - background-color: #FFFFFF; -} - -table.useradmin tr.even { - background-color: #E9F5FF; -} -*/ - -td.enabled { - text-align: center; -} - -fieldset.roles .roles { - border: none; -} - -table.iceSelMnyCb td { - text-align: left; -} diff --git a/SimDeCS/hibernate-console.properties b/SimDeCS/hibernate-console.properties deleted file mode 100644 index e545bf4..0000000 --- a/SimDeCS/hibernate-console.properties +++ /dev/null @@ -1,10 +0,0 @@ -#File used by hibernate tools to override and other container specific settings in persistence.xml -hibernate.connection.password=tatuira -hibernate.connection.username=simdecs -hibernate.connection.driver_class=org.postgresql.Driver -hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect -hibernate.connection.url=jdbc:postgresql://localhost:5432/simdecs - -hibernate.connection.provider_class=org.hibernate.connection.DriverManagerConnectionProvider -hibernate.datasource= -hibernate.transaction.manager_lookup_class= diff --git a/SimDeCS/src/hot/org/ufcspa/simdecs/session/Authenticator.java b/SimDeCS/src/hot/org/ufcspa/simdecs/session/Authenticator.java deleted file mode 100644 index 22c4c79..0000000 --- a/SimDeCS/src/hot/org/ufcspa/simdecs/session/Authenticator.java +++ /dev/null @@ -1,57 +0,0 @@ -package org.ufcspa.simdecs.session; - -import java.util.Iterator; - -import javax.persistence.EntityManager; -import javax.persistence.NoResultException; - -import org.jboss.seam.annotations.In; -import org.jboss.seam.annotations.Logger; -import org.jboss.seam.annotations.Name; -import org.jboss.seam.log.Log; -import org.jboss.seam.security.Credentials; -import org.jboss.seam.security.Identity; -import org.ufcspa.simdecs.entities.Regra; -import org.ufcspa.simdecs.entities.Usuario; - -@Name("authenticator") -public class Authenticator -{ - @Logger private Log log; - - @In Identity identity; - @In Credentials credentials; - - @In - private EntityManager entityManager; - - public boolean authenticate() - { -log.info("entrou no metodo autenticate"); - Usuario usuario; - try { - usuario= (Usuario) entityManager.createQuery("select usu from Usuario as usu where usu.login=:login and usu.senha=:senha") - .setParameter("login", credentials.getUsername()) - .setParameter("senha", credentials.getPassword()) - .getSingleResult(); - } catch (NoResultException ne) { - log.info("Não encontrou usuário"); - return false; - } - -log.info("usuario nao é nulo"); - - Iterator rolesIt = entityManager.createQuery("Select reg From Regra as reg inner join reg.grupos gru inner join gru.usuarios usu where usu.id=:idUsuario") - .setParameter("idUsuario", usuario.getId()) - .getResultList() - .iterator(); - - while(rolesIt.hasNext()) - identity.addRole(((Regra) rolesIt.next()).getToken()); - - log.info("authenticating {0}", credentials.getUsername()); - - return true; - } - -} diff --git a/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/admin/GrupoHome.java b/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/admin/GrupoHome.java deleted file mode 100644 index f227feb..0000000 --- a/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/admin/GrupoHome.java +++ /dev/null @@ -1,42 +0,0 @@ -package org.ufcspa.simdecs.session.crud.admin; - -import org.jboss.seam.annotations.Name; -import org.ufcspa.simdecs.entities.Grupo; -import org.ufcspa.simdecs.session.crud.defaults.SimDeCSEntityHome; - -@Name("grupoHome") -public class GrupoHome extends SimDeCSEntityHome { - - public void setGrupoId(Long id) { - setId(id); - } - - public Long getGrupoId() { - return (Long) getId(); - } - - @Override - protected Grupo createInstance() { - Grupo grupo = new Grupo(); - return grupo; - } - - public void load() { - if (isIdDefined()) { - wire(); - } - } - - public void wire() { - getInstance(); - } - - public boolean isWired() { - return true; - } - - public Grupo getDefinedInstance() { - return isIdDefined() ? getInstance() : null; - } - -} diff --git a/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/admin/GrupoList.java b/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/admin/GrupoList.java deleted file mode 100644 index 6c47fe8..0000000 --- a/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/admin/GrupoList.java +++ /dev/null @@ -1,27 +0,0 @@ -package org.ufcspa.simdecs.session.crud.admin; - -import java.util.Arrays; - -import org.jboss.seam.annotations.Name; -import org.ufcspa.simdecs.entities.Grupo; -import org.ufcspa.simdecs.session.crud.defaults.SimDeCSEntityQuery; - -@Name("grupoList") -public class GrupoList extends SimDeCSEntityQuery { - - private static final String EJBQL = "select grupo from Grupo grupo"; - - private static final String[] RESTRICTIONS = { "lower(grupo.nome) like lower(concat(#{grupoList.grupo.nome},'%'))", }; - - private Grupo grupo = new Grupo(); - - public GrupoList() { - setEjbql(EJBQL); - setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS)); - setMaxResults(25); - } - - public Grupo getGrupo() { - return grupo; - } -} diff --git a/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/admin/InstituicaoHome.java b/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/admin/InstituicaoHome.java deleted file mode 100644 index 0ec8ff9..0000000 --- a/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/admin/InstituicaoHome.java +++ /dev/null @@ -1,42 +0,0 @@ -package org.ufcspa.simdecs.session.crud.admin; - -import org.jboss.seam.annotations.Name; -import org.ufcspa.simdecs.entities.Instituicao; -import org.ufcspa.simdecs.session.crud.defaults.SimDeCSEntityHome; - -@Name("instituicaoHome") -public class InstituicaoHome extends SimDeCSEntityHome { - - public void setInstituicaoId(Long id) { - setId(id); - } - - public Long getInstituicaoId() { - return (Long) getId(); - } - - @Override - protected Instituicao createInstance() { - Instituicao instituicao = new Instituicao(); - return instituicao; - } - - public void load() { - if (isIdDefined()) { - wire(); - } - } - - public void wire() { - getInstance(); - } - - public boolean isWired() { - return true; - } - - public Instituicao getDefinedInstance() { - return isIdDefined() ? getInstance() : null; - } - -} diff --git a/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/admin/InstituicaoList.java b/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/admin/InstituicaoList.java deleted file mode 100644 index 91ddd83..0000000 --- a/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/admin/InstituicaoList.java +++ /dev/null @@ -1,30 +0,0 @@ -package org.ufcspa.simdecs.session.crud.admin; - -import java.util.Arrays; - -import org.jboss.seam.annotations.Name; -import org.ufcspa.simdecs.entities.Instituicao; -import org.ufcspa.simdecs.session.crud.defaults.SimDeCSEntityQuery; - -@Name("instituicaoList") -public class InstituicaoList extends SimDeCSEntityQuery { - - private static final String EJBQL = "select instituicao from Instituicao instituicao"; - - private static final String[] RESTRICTIONS = { - "lower(instituicao.endereco) like lower(concat(#{instituicaoList.instituicao.endereco},'%'))", - "lower(instituicao.nome) like lower(concat(#{instituicaoList.instituicao.nome},'%'))", - "lower(instituicao.telefone) like lower(concat(#{instituicaoList.instituicao.telefone},'%'))", }; - - private Instituicao instituicao = new Instituicao(); - - public InstituicaoList() { - setEjbql(EJBQL); - setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS)); - setMaxResults(25); - } - - public Instituicao getInstituicao() { - return instituicao; - } -} diff --git a/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/admin/PrivilegioHome.java b/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/admin/PrivilegioHome.java deleted file mode 100644 index 07dd39c..0000000 --- a/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/admin/PrivilegioHome.java +++ /dev/null @@ -1,42 +0,0 @@ -package org.ufcspa.simdecs.session.crud.admin; - -import org.jboss.seam.annotations.Name; -import org.ufcspa.simdecs.entities.Privilegio; -import org.ufcspa.simdecs.session.crud.defaults.SimDeCSEntityHome; - -@Name("privilegioHome") -public class PrivilegioHome extends SimDeCSEntityHome { - - public void setPrivilegioId(Long id) { - setId(id); - } - - public Long getPrivilegioId() { - return (Long) getId(); - } - - @Override - protected Privilegio createInstance() { - Privilegio privilegio = new Privilegio(); - return privilegio; - } - - public void load() { - if (isIdDefined()) { - wire(); - } - } - - public void wire() { - getInstance(); - } - - public boolean isWired() { - return true; - } - - public Privilegio getDefinedInstance() { - return isIdDefined() ? getInstance() : null; - } - -} diff --git a/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/admin/PrivilegioList.java b/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/admin/PrivilegioList.java deleted file mode 100644 index 95e2271..0000000 --- a/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/admin/PrivilegioList.java +++ /dev/null @@ -1,29 +0,0 @@ -package org.ufcspa.simdecs.session.crud.admin; - -import java.util.Arrays; - -import org.jboss.seam.annotations.Name; -import org.ufcspa.simdecs.entities.Privilegio; -import org.ufcspa.simdecs.session.crud.defaults.SimDeCSEntityQuery; - -@Name("privilegioList") -public class PrivilegioList extends SimDeCSEntityQuery { - - private static final String EJBQL = "select privilegio from Privilegio privilegio"; - - private static final String[] RESTRICTIONS = { - "lower(privilegio.nome) like lower(concat(#{privilegioList.privilegio.nome},'%'))", - "lower(privilegio.token) like lower(concat(#{privilegioList.privilegio.token},'%'))", }; - - private Privilegio privilegio = new Privilegio(); - - public PrivilegioList() { - setEjbql(EJBQL); - setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS)); - setMaxResults(25); - } - - public Privilegio getPrivilegio() { - return privilegio; - } -} diff --git a/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/admin/RegraHome.java b/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/admin/RegraHome.java deleted file mode 100644 index 22ce650..0000000 --- a/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/admin/RegraHome.java +++ /dev/null @@ -1,42 +0,0 @@ -package org.ufcspa.simdecs.session.crud.admin; - -import org.jboss.seam.annotations.Name; -import org.ufcspa.simdecs.entities.Regra; -import org.ufcspa.simdecs.session.crud.defaults.SimDeCSEntityHome; - -@Name("regraHome") -public class RegraHome extends SimDeCSEntityHome { - - public void setRegraId(Long id) { - setId(id); - } - - public Long getRegraId() { - return (Long) getId(); - } - - @Override - protected Regra createInstance() { - Regra regra = new Regra(); - return regra; - } - - public void load() { - if (isIdDefined()) { - wire(); - } - } - - public void wire() { - getInstance(); - } - - public boolean isWired() { - return true; - } - - public Regra getDefinedInstance() { - return isIdDefined() ? getInstance() : null; - } - -} diff --git a/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/admin/RegraList.java b/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/admin/RegraList.java deleted file mode 100644 index 159b8d7..0000000 --- a/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/admin/RegraList.java +++ /dev/null @@ -1,29 +0,0 @@ -package org.ufcspa.simdecs.session.crud.admin; - -import java.util.Arrays; - -import org.jboss.seam.annotations.Name; -import org.ufcspa.simdecs.entities.Regra; -import org.ufcspa.simdecs.session.crud.defaults.SimDeCSEntityQuery; - -@Name("regraList") -public class RegraList extends SimDeCSEntityQuery { - - private static final String EJBQL = "select regra from Regra regra"; - - private static final String[] RESTRICTIONS = { - "lower(regra.nome) like lower(concat(#{regraList.regra.nome},'%'))", - "lower(regra.token) like lower(concat(#{regraList.regra.token},'%'))", }; - - private Regra regra = new Regra(); - - public RegraList() { - setEjbql(EJBQL); - setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS)); - setMaxResults(25); - } - - public Regra getRegra() { - return regra; - } -} diff --git a/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/admin/UsuarioHome.java b/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/admin/UsuarioHome.java deleted file mode 100644 index 314dc27..0000000 --- a/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/admin/UsuarioHome.java +++ /dev/null @@ -1,46 +0,0 @@ -package org.ufcspa.simdecs.session.crud.admin; - -import org.jboss.seam.annotations.In; -import org.jboss.seam.annotations.Name; -import org.ufcspa.simdecs.entities.Usuario; -import org.ufcspa.simdecs.session.crud.defaults.SimDeCSEntityHome; - -@Name("usuarioHome") -public class UsuarioHome extends SimDeCSEntityHome { - - @In(create = true) - UsuarioHome usuarioHome; - - public void setUsuarioId(Long id) { - setId(id); - } - - public Long getUsuarioId() { - return (Long) getId(); - } - - @Override - protected Usuario createInstance() { - Usuario usuario = new Usuario(); - return usuario; - } - - public void load() { - if (isIdDefined()) { - wire(); - } - } - - public void wire() { - getInstance(); - } - - public boolean isWired() { - return true; - } - - public Usuario getDefinedInstance() { - return isIdDefined() ? getInstance() : null; - } - -} diff --git a/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/admin/UsuarioList.java b/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/admin/UsuarioList.java deleted file mode 100644 index 3bca60b..0000000 --- a/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/admin/UsuarioList.java +++ /dev/null @@ -1,34 +0,0 @@ -package org.ufcspa.simdecs.session.crud.admin; - -import java.util.Arrays; - -import org.jboss.seam.annotations.Name; -import org.ufcspa.simdecs.entities.Usuario; -import org.ufcspa.simdecs.session.crud.defaults.SimDeCSEntityQuery; - -@Name("usuarioList") -public class UsuarioList extends SimDeCSEntityQuery { - - private static final String EJBQL = "select usuario from Usuario usuario"; - - private static final String[] RESTRICTIONS = { - "lower(usuario.email) like lower(concat(#{usuarioList.usuario.email},'%'))", - "lower(usuario.funcao) like lower(concat(#{usuarioList.usuario.funcao},'%'))", - "lower(usuario.login) like lower(concat(#{usuarioList.usuario.login},'%'))", - "lower(usuario.nome) like lower(concat(#{usuarioList.usuario.nome},'%'))", - "lower(usuario.senha) like lower(concat(#{usuarioList.usuario.senha},'%'))", - "lower(usuario.sexo) like lower(concat(#{usuarioList.usuario.sexo},'%'))", - "lower(usuario.telefone) like lower(concat(#{usuarioList.usuario.telefone},'%'))", }; - - private Usuario usuario = new Usuario(); - - public UsuarioList() { - setEjbql(EJBQL); - setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS)); - setMaxResults(25); - } - - public Usuario getUsuario() { - return usuario; - } -} diff --git a/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/defaults/SimDeCSEntityHome.java b/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/defaults/SimDeCSEntityHome.java deleted file mode 100644 index f441e18..0000000 --- a/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/defaults/SimDeCSEntityHome.java +++ /dev/null @@ -1,17 +0,0 @@ -package org.ufcspa.simdecs.session.crud.defaults; - -import org.jboss.seam.core.Expressions; -import org.jboss.seam.framework.EntityHome; - -public abstract class SimDeCSEntityHome extends EntityHome { - - protected void initDefaultMessages() - { - super.initDefaultMessages(); - Expressions expressions = new Expressions(); - setCreatedMessage(expressions.createValueExpression("Registro criado com sucesso!")); - setDeletedMessage(expressions.createValueExpression("Registro excluido com sucesso!")); - setUpdatedMessage(expressions.createValueExpression("Registro alterado com sucesso!")); - } - -} diff --git a/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/defaults/SimDeCSEntityQuery.java b/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/defaults/SimDeCSEntityQuery.java deleted file mode 100644 index a5b9ab9..0000000 --- a/SimDeCS/src/hot/org/ufcspa/simdecs/session/crud/defaults/SimDeCSEntityQuery.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.ufcspa.simdecs.session.crud.defaults; - -import org.jboss.seam.framework.EntityQuery; - -public abstract class SimDeCSEntityQuery extends EntityQuery { - - -} diff --git a/SimDeCS/src/hot/org/ufcspa/simdecs/session/vrmed/SelecionarDiagrama.java b/SimDeCS/src/hot/org/ufcspa/simdecs/session/vrmed/SelecionarDiagrama.java deleted file mode 100644 index 2c4974a..0000000 --- a/SimDeCS/src/hot/org/ufcspa/simdecs/session/vrmed/SelecionarDiagrama.java +++ /dev/null @@ -1,95 +0,0 @@ -package org.ufcspa.simdecs.session.vrmed; - -import java.util.Iterator; -import java.util.List; - -import javax.persistence.EntityManager; - -import org.jboss.seam.ScopeType; -import org.jboss.seam.annotations.Begin; -import org.jboss.seam.annotations.In; -import org.jboss.seam.annotations.Logger; -import org.jboss.seam.annotations.Name; -import org.jboss.seam.annotations.Scope; -import org.jboss.seam.international.StatusMessages; -import org.jboss.seam.log.Log; -import org.ufcspa.simdecs.entities.Cenario; - -@Name("SelecionarDiagrama") -public class SelecionarDiagrama -{ - @Logger private Log log; - - @In StatusMessages statusMessages; - - @In - private EntityManager entityManager; - - - // Informações do diagrama - private String nomeNovoDiagrama; - private String textoIntroducao; - private Long cenario; - private List listaCenarios; - - public String getNomeNovoDiagrama() { - return nomeNovoDiagrama; - } - - public void setNomeNovoDiagrama(String nomeNovoDiagrama) { - this.nomeNovoDiagrama = nomeNovoDiagrama; - } - - // Criação de novo diagrama - public String criarNovoDiagrama() - { - if (nomeNovoDiagrama == null || nomeNovoDiagrama.equals("")) { - statusMessages.add("O nome do novo diagrama deve ser informado!"); - return null; - } - - listaCenarios = entityManager.createQuery("From Cenario cenario order by id").getResultList(); - Iterator it = listaCenarios.iterator(); - while(it.hasNext()) { - log.info("Cenario: " + ((Cenario)it.next()).getNome()); - } - - return "novoDiagrama"; - } - - public void selecionarIntroducaoCenario() - { - - // implement your business logic here - log.info("teste de conversacao: " + nomeNovoDiagrama); - statusMessages.add("criarNovoDiagrama"); - } - - public String getTextoIntroducao() { - return textoIntroducao; - } - - public void setTextoIntroducao(String textoIntroducao) { - this.textoIntroducao = textoIntroducao; - } - - public Long getCenario() { - return cenario; - } - - public void setCenario(Long cenario) { - this.cenario = cenario; - } - - public List getListaCenarios() { - return listaCenarios; - } - - public void setListaCenarios(List listaCenarios) { - this.listaCenarios = listaCenarios; - } - - - // add additional action methods - -} diff --git a/SimDeCS/src/hot/seam.properties b/SimDeCS/src/hot/seam.properties deleted file mode 100644 index e69de29..0000000 diff --git a/SimDeCS/src/main/META-INF/persistence.xml b/SimDeCS/src/main/META-INF/persistence.xml deleted file mode 100644 index d87cfdb..0000000 --- a/SimDeCS/src/main/META-INF/persistence.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - org.hibernate.ejb.HibernatePersistence - java:/SimDeCSDatasource - - - - - - - - - - diff --git a/SimDeCS/src/main/components.properties b/SimDeCS/src/main/components.properties deleted file mode 100644 index c598420..0000000 --- a/SimDeCS/src/main/components.properties +++ /dev/null @@ -1,4 +0,0 @@ -# -#Thu Apr 21 18:54:34 BRT 2011 -jndiPattern=\#{ejbName}/local -embeddedEjb=false diff --git a/SimDeCS/src/main/import.sql b/SimDeCS/src/main/import.sql deleted file mode 100644 index 3c28ee8..0000000 --- a/SimDeCS/src/main/import.sql +++ /dev/null @@ -1 +0,0 @@ --- SQL statements which are executed at application startup if hibernate.hbm2ddl.auto is 'create' or 'create-drop' diff --git a/SimDeCS/src/main/messages_en.properties b/SimDeCS/src/main/messages_en.properties deleted file mode 100644 index fdc41bd..0000000 --- a/SimDeCS/src/main/messages_en.properties +++ /dev/null @@ -1,90 +0,0 @@ -up=\u2191 -down=\u2193 -left=\u2039 -right=\u203A - -validator.assertFalse=validation failed -validator.assertTrue=validation failed -validator.future=must be a future date -validator.length=length must be between {min} and {max} -validator.max=must be less than or equal to {value} -validator.min=must be greater than or equal to {value} -validator.notNull=may not be null -validator.past=must be a past date -validator.pattern=must match "{regex}" -validator.range=must be between {min} and {max} -validator.size=size must be between {min} and {max} -validator.email=must be a well-formed email address - -org.jboss.seam.loginFailed=Login failed -org.jboss.seam.loginSuccessful=Welcome, #0! - -org.jboss.seam.TransactionFailed=Transaction failed -org.jboss.seam.NoConversation=The conversation ended, timed out or was processing another request -org.jboss.seam.IllegalNavigation=Illegal navigation -org.jboss.seam.ProcessEnded=Process #0 already ended -org.jboss.seam.ProcessNotFound=Process #0 not found -org.jboss.seam.TaskEnded=Task #0 already ended -org.jboss.seam.TaskNotFound=Task #0 not found -org.jboss.seam.NotLoggedIn=Please log in first - -javax.faces.component.UIInput.CONVERSION=value could not be converted to the expected type -javax.faces.component.UIInput.REQUIRED=value is required -javax.faces.component.UIInput.UPDATE=an error occurred when processing your submitted information -javax.faces.component.UISelectOne.INVALID=value is not valid -javax.faces.component.UISelectMany.INVALID=value is not valid - -javax.faces.converter.BigDecimalConverter.DECIMAL=value must be a number -javax.faces.converter.BigDecimalConverter.DECIMAL_detail=value must be a signed decimal number consisting of zero or more digits, optionally followed by a decimal point and fraction, eg. {1} -javax.faces.converter.BigIntegerConverter.BIGINTEGER=value must be an integer -javax.faces.converter.BigIntegerConverter.BIGINTEGER_detail=value must be a signed integer number consisting of zero or more digits -javax.faces.converter.BooleanConverter.BOOLEAN=value must be true or false -javax.faces.converter.BooleanConverter.BOOLEAN_detail=value must be true or false (any value other than true will evaluate to false) -javax.faces.converter.ByteConverter.BYTE=value must be a number between 0 and 255 -javax.faces.converter.ByteConverter.BYTE_detail=value must be a number between 0 and 255 -javax.faces.converter.CharacterConverter.CHARACTER=value must be a character -javax.faces.converter.CharacterConverter.CHARACTER_detail=value must be a valid ASCII character -javax.faces.converter.DateTimeConverter.DATE=value must be a date -javax.faces.converter.DateTimeConverter.DATE_detail=value must be a date, eg. {1} -javax.faces.converter.DateTimeConverter.TIME=value must be a time -javax.faces.converter.DateTimeConverter.TIME_detail=value must be a time, eg. {1} -javax.faces.converter.DateTimeConverter.DATETIME=value must be a date and time -javax.faces.converter.DateTimeConverter.DATETIME_detail=value must be a date and time, eg. {1} -javax.faces.converter.DateTimeConverter.PATTERN_TYPE=a pattern or type attribute must be specified to convert the value -javax.faces.converter.DoubleConverter.DOUBLE=value must be a number -javax.faces.converter.DoubleConverter.DOUBLE_detail=value must be a number between 4.9E-324 and 1.7976931348623157E308 -javax.faces.converter.EnumConverter.ENUM=value must be convertible to an enum -javax.faces.converter.EnumConverter.ENUM_detail=value must be convertible to an enum or from the enum that contains the constant {1} -javax.faces.converter.EnumConverter.ENUM_NO_CLASS=value must be convertible to an enum or from the enum, but no enum class provided -javax.faces.converter.EnumConverter.ENUM_NO_CLASS_detail=value must be convertible to an enum or from the enum, but no enum class provided -javax.faces.converter.FloatConverter.FLOAT=value must be a number -javax.faces.converter.FloatConverter.FLOAT_detail=value must be a number between 1.4E-45 and 3.4028235E38 -javax.faces.converter.IntegerConverter.INTEGER=value must be an integer -javax.faces.converter.IntegerConverter.INTEGER_detail=value must be an integer number between -2147483648 and 2147483647 -javax.faces.converter.LongConverter.LONG=value must be an integer -javax.faces.converter.LongConverter.LONG_detail=value must be an integer number between -9223372036854775808 and 9223372036854775807 -javax.faces.converter.NumberConverter.CURRENCY=value must be a currency amount -javax.faces.converter.NumberConverter.CURRENCY_detail=value must be a currency amount, eg. {1} -javax.faces.converter.NumberConverter.PERCENT=value must be a percentage amount -javax.faces.converter.NumberConverter.PERCENT_detail=value must be a percentage amount, eg. {1} -javax.faces.converter.NumberConverter.NUMBER=value must be a number -javax.faces.converter.NumberConverter.NUMBER_detail=value must be a number -javax.faces.converter.NumberConverter.PATTERN=value must be a number -javax.faces.converter.NumberConverter.PATTERN_detail=value must be a number -javax.faces.converter.ShortConverter.SHORT=value must be an integer -javax.faces.converter.ShortConverter.SHORT_detail=value must be an integer number between -32768 and 32767 - -javax.faces.validator.DoubleRangeValidator.MAXIMUM=value must be less than or equal to {0} -javax.faces.validator.DoubleRangeValidator.MINIMUM=value must be greater than or equal to {0} -javax.faces.validator.DoubleRangeValidator.NOT_IN_RANGE=value must be between {0} and {1} -javax.faces.validator.DoubleRangeValidator.TYPE=value is not of the correct type -javax.faces.validator.LengthValidator.MAXIMUM=value must be shorter than or equal to {0} characters -javax.faces.validator.LengthValidator.MINIMUM=value must be longer than or equal to {0} characters -javax.faces.validator.LongRangeValidator.MAXIMUM=value must be less than or equal to {0} -javax.faces.validator.LongRangeValidator.MINIMUM=value must be greater than or equal to {0} -javax.faces.validator.LongRangeValidator.NOT_IN_RANGE=value must be between {0} and {1} -javax.faces.validator.LongRangeValidator.TYPE=value is not of the correct type - -javax.faces.validator.NOT_IN_RANGE=value must be between {0} and {1} -javax.faces.converter.STRING=value could not be converted to a string - diff --git a/SimDeCS/src/main/messages_pt_BR.properties b/SimDeCS/src/main/messages_pt_BR.properties deleted file mode 100644 index 833b84d..0000000 --- a/SimDeCS/src/main/messages_pt_BR.properties +++ /dev/null @@ -1,90 +0,0 @@ -up=\u2191 -down=\u2193 -left=\u2039 -right=\u203A - -validator.assertFalse=validation failed -validator.assertTrue=validation failed -validator.future=must be a future date -validator.length=length must be between {min} and {max} -validator.max=must be less than or equal to {value} -validator.min=must be greater than or equal to {value} -validator.notNull=may not be null -validator.past=must be a past date -validator.pattern=must match "{regex}" -validator.range=must be between {min} and {max} -validator.size=size must be between {min} and {max} -validator.email=must be a well-formed email address - -org.jboss.seam.loginFailed=Usu\u00E1rio / senha inv\u00E1lidos -org.jboss.seam.loginSuccessful=Bem vindo, \#0\! - -org.jboss.seam.TransactionFailed=Transa\u00E7\u00E3o falhou -org.jboss.seam.NoConversation=The conversation ended, timed out or was processing another request -org.jboss.seam.IllegalNavigation=Illegal navigation -org.jboss.seam.ProcessEnded=Process #0 already ended -org.jboss.seam.ProcessNotFound=Process #0 not found -org.jboss.seam.TaskEnded=Task #0 already ended -org.jboss.seam.TaskNotFound=Task #0 not found -org.jboss.seam.NotLoggedIn=Por favor, efetue login - -javax.faces.component.UIInput.CONVERSION=value could not be converted to the expected type -javax.faces.component.UIInput.REQUIRED=value is required -javax.faces.component.UIInput.UPDATE=an error occurred when processing your submitted information -javax.faces.component.UISelectOne.INVALID=value is not valid -javax.faces.component.UISelectMany.INVALID=value is not valid - -javax.faces.converter.BigDecimalConverter.DECIMAL=value must be a number -javax.faces.converter.BigDecimalConverter.DECIMAL_detail=value must be a signed decimal number consisting of zero or more digits, optionally followed by a decimal point and fraction, eg. {1} -javax.faces.converter.BigIntegerConverter.BIGINTEGER=value must be an integer -javax.faces.converter.BigIntegerConverter.BIGINTEGER_detail=value must be a signed integer number consisting of zero or more digits -javax.faces.converter.BooleanConverter.BOOLEAN=value must be true or false -javax.faces.converter.BooleanConverter.BOOLEAN_detail=value must be true or false (any value other than true will evaluate to false) -javax.faces.converter.ByteConverter.BYTE=value must be a number between 0 and 255 -javax.faces.converter.ByteConverter.BYTE_detail=value must be a number between 0 and 255 -javax.faces.converter.CharacterConverter.CHARACTER=value must be a character -javax.faces.converter.CharacterConverter.CHARACTER_detail=value must be a valid ASCII character -javax.faces.converter.DateTimeConverter.DATE=value must be a date -javax.faces.converter.DateTimeConverter.DATE_detail=value must be a date, eg. {1} -javax.faces.converter.DateTimeConverter.TIME=value must be a time -javax.faces.converter.DateTimeConverter.TIME_detail=value must be a time, eg. {1} -javax.faces.converter.DateTimeConverter.DATETIME=value must be a date and time -javax.faces.converter.DateTimeConverter.DATETIME_detail=value must be a date and time, eg. {1} -javax.faces.converter.DateTimeConverter.PATTERN_TYPE=a pattern or type attribute must be specified to convert the value -javax.faces.converter.DoubleConverter.DOUBLE=value must be a number -javax.faces.converter.DoubleConverter.DOUBLE_detail=value must be a number between 4.9E-324 and 1.7976931348623157E308 -javax.faces.converter.EnumConverter.ENUM=value must be convertible to an enum -javax.faces.converter.EnumConverter.ENUM_detail=value must be convertible to an enum or from the enum that contains the constant {1} -javax.faces.converter.EnumConverter.ENUM_NO_CLASS=value must be convertible to an enum or from the enum, but no enum class provided -javax.faces.converter.EnumConverter.ENUM_NO_CLASS_detail=value must be convertible to an enum or from the enum, but no enum class provided -javax.faces.converter.FloatConverter.FLOAT=value must be a number -javax.faces.converter.FloatConverter.FLOAT_detail=value must be a number between 1.4E-45 and 3.4028235E38 -javax.faces.converter.IntegerConverter.INTEGER=value must be an integer -javax.faces.converter.IntegerConverter.INTEGER_detail=value must be an integer number between -2147483648 and 2147483647 -javax.faces.converter.LongConverter.LONG=value must be an integer -javax.faces.converter.LongConverter.LONG_detail=value must be an integer number between -9223372036854775808 and 9223372036854775807 -javax.faces.converter.NumberConverter.CURRENCY=value must be a currency amount -javax.faces.converter.NumberConverter.CURRENCY_detail=value must be a currency amount, eg. {1} -javax.faces.converter.NumberConverter.PERCENT=value must be a percentage amount -javax.faces.converter.NumberConverter.PERCENT_detail=value must be a percentage amount, eg. {1} -javax.faces.converter.NumberConverter.NUMBER=value must be a number -javax.faces.converter.NumberConverter.NUMBER_detail=value must be a number -javax.faces.converter.NumberConverter.PATTERN=value must be a number -javax.faces.converter.NumberConverter.PATTERN_detail=value must be a number -javax.faces.converter.ShortConverter.SHORT=value must be an integer -javax.faces.converter.ShortConverter.SHORT_detail=value must be an integer number between -32768 and 32767 - -javax.faces.validator.DoubleRangeValidator.MAXIMUM=value must be less than or equal to {0} -javax.faces.validator.DoubleRangeValidator.MINIMUM=value must be greater than or equal to {0} -javax.faces.validator.DoubleRangeValidator.NOT_IN_RANGE=value must be between {0} and {1} -javax.faces.validator.DoubleRangeValidator.TYPE=value is not of the correct type -javax.faces.validator.LengthValidator.MAXIMUM=value must be shorter than or equal to {0} characters -javax.faces.validator.LengthValidator.MINIMUM=value must be longer than or equal to {0} characters -javax.faces.validator.LongRangeValidator.MAXIMUM=value must be less than or equal to {0} -javax.faces.validator.LongRangeValidator.MINIMUM=value must be greater than or equal to {0} -javax.faces.validator.LongRangeValidator.NOT_IN_RANGE=value must be between {0} and {1} -javax.faces.validator.LongRangeValidator.TYPE=value is not of the correct type - -javax.faces.validator.NOT_IN_RANGE=value must be between {0} and {1} -javax.faces.converter.STRING=value could not be converted to a string - diff --git a/SimDeCS/src/main/org/ufcspa/simdecs/entities/Ator.java b/SimDeCS/src/main/org/ufcspa/simdecs/entities/Ator.java deleted file mode 100644 index 7752f97..0000000 --- a/SimDeCS/src/main/org/ufcspa/simdecs/entities/Ator.java +++ /dev/null @@ -1,152 +0,0 @@ -package org.ufcspa.simdecs.entities; - -import java.io.Serializable; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; - -import org.hibernate.annotations.Index; - - -@Entity -@Table(name="Ator") -// Shortname: "ator" -@SequenceGenerator(name = "sequenceAtor", sequenceName = "sqAtor", initialValue = 1, allocationSize=1) -public abstract class Ator implements Serializable { - - private static final long serialVersionUID = 1095865636605383931L; - - @GeneratedValue(generator = "sequenceAtor", strategy = GenerationType.AUTO) - @Id - private Long id; - - @Column(length=100, nullable=false) - private String nome; - - @Column(length=2, nullable=false, unique=true) - private Integer ordem; - - @Column(nullable=true) - private Float altura; - @Column(nullable=true) - private Float peso; - @Column(nullable=false, length=3) - private Integer idade; - @Column(nullable=false, length=1) - private String sexo; - - @ManyToOne - @JoinColumn(name = "ava_id", referencedColumnName = "id", nullable = true) - @Index(name="ator_ava_fk_i") - private Avatar avatar; - - @ManyToOne - @JoinColumn(name = "caso_id", referencedColumnName = "id", nullable = true) - @Index(name="ator_caso_fk_i") - private CasoClinico casoClinico; - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public String getNome() { - return nome; - } - - public void setNome(String nome) { - this.nome = nome; - } - - public Integer getOrdem() { - return ordem; - } - - public void setOrdem(Integer ordem) { - this.ordem = ordem; - } - - public Float getAltura() { - return altura; - } - - public void setAltura(Float altura) { - this.altura = altura; - } - - public Float getPeso() { - return peso; - } - - public void setPeso(Float peso) { - this.peso = peso; - } - - public Integer getIdade() { - return idade; - } - - public void setIdade(Integer idade) { - this.idade = idade; - } - - public String getSexo() { - return sexo; - } - - public void setSexo(String sexo) { - this.sexo = sexo; - } - - public Avatar getAvatar() { - return avatar; - } - - public void setAvatar(Avatar avatar) { - this.avatar = avatar; - } - - public CasoClinico getCasoClinico() { - return casoClinico; - } - - public void setCasoClinico(CasoClinico casoClinico) { - this.casoClinico = casoClinico; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((id == null) ? 0 : id.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - Ator other = (Ator) obj; - if (id == null) { - if (other.id != null) - return false; - } else if (!id.equals(other.id)) - return false; - return true; - } - -} diff --git a/SimDeCS/src/main/org/ufcspa/simdecs/entities/Avatar.java b/SimDeCS/src/main/org/ufcspa/simdecs/entities/Avatar.java deleted file mode 100644 index 6229b70..0000000 --- a/SimDeCS/src/main/org/ufcspa/simdecs/entities/Avatar.java +++ /dev/null @@ -1,114 +0,0 @@ -package org.ufcspa.simdecs.entities; - -import java.io.Serializable; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; - -import org.hibernate.annotations.Index; -import org.ufcspa.simdecs.entities.exceptions.InvalidSexoException; - -@Entity -@Table(name="Avatar") -// Shortname: "ava" -@SequenceGenerator(name = "sequenceAvatar", sequenceName = "sqAvatar", initialValue = 1, allocationSize=1) -public class Avatar implements Serializable { - - private static final long serialVersionUID = 3841381292539475339L; - - @GeneratedValue(generator = "sequenceAvatar", strategy = GenerationType.AUTO) - @Id - private Long id; - - @Column(nullable=false, length=100) - private String nome; - - @Column(length=1, nullable=true) - private String sexo; - - @Column(nullable=false, length=300) - private String thumbnailURL; - - @ManyToOne - @JoinColumn(name = "faiet_id", referencedColumnName = "id", nullable = true) - @Index(name="ava_faiet_fk_i") - private FaixaEtaria faixaEtaria; - - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public String getNome() { - return nome; - } - - public void setNome(String nome) { - this.nome = nome; - } - - public String getSexo() { - return sexo; - } - - public void setSexo(String sexo) throws InvalidSexoException { - if (sexo.equals("F") || sexo.equals("M")) - this.sexo = sexo; - else - throw new InvalidSexoException("O sexo deverá ser 'F' ou 'M'!"); - } - - public FaixaEtaria getFaixaEtaria() { - return faixaEtaria; - } - - public void setFaixaEtaria(FaixaEtaria faixaEtaria) { - this.faixaEtaria = faixaEtaria; - } - - public String getThumbnailURL() { - return thumbnailURL; - } - - public void setThumbnailURL(String thumbnailURL) { - this.thumbnailURL = thumbnailURL; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((id == null) ? 0 : id.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - Avatar other = (Avatar) obj; - if (id == null) { - if (other.id != null) - return false; - } else if (!id.equals(other.id)) - return false; - return true; - } - - -} diff --git a/SimDeCS/src/main/org/ufcspa/simdecs/entities/CasoClinico.java b/SimDeCS/src/main/org/ufcspa/simdecs/entities/CasoClinico.java deleted file mode 100644 index b834779..0000000 --- a/SimDeCS/src/main/org/ufcspa/simdecs/entities/CasoClinico.java +++ /dev/null @@ -1,152 +0,0 @@ -package org.ufcspa.simdecs.entities; - -import java.io.Serializable; -import java.util.Date; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; -import javax.persistence.Temporal; -import javax.persistence.TemporalType; - -import org.hibernate.annotations.Index; - -@Entity -@Table(name="CasoClinico") -// Shortname: "caso" -@SequenceGenerator(name = "sequenceCasoClinico", sequenceName = "sqCasoClinico", initialValue = 1, allocationSize=1) -public class CasoClinico implements Serializable { - - /** - * - */ - private static final long serialVersionUID = 7701987863551764750L; - - @GeneratedValue(generator = "sequenceCasoClinico", strategy = GenerationType.AUTO) - @Id - private Long id; - - @Column(nullable=false, length=100) - private String nome; - - @Column(nullable=false, length=400) - private String autores; - - @Column(nullable=false) - @Temporal(TemporalType.TIMESTAMP) - private Date dataCriacao; - - @Column(length=1, nullable=false) - private boolean concluido; - - @Column(length=32768, nullable=false) - private String introducao; - - @ManyToOne - @JoinColumn(name = "usu_id", referencedColumnName = "id", nullable = true) - @Index(name="caso_usu_fk_i") - private Usuario criadoPor; - - @ManyToOne - @JoinColumn(name = "cena_id", referencedColumnName = "id", nullable = true) - @Index(name="caso_cena_fk_i") - private Cenario cenario; - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public String getNome() { - return nome; - } - - public void setNome(String nome) { - this.nome = nome; - } - - public String getAutores() { - return autores; - } - - public void setAutores(String autores) { - this.autores = autores; - } - - public Date getDataCriacao() { - return dataCriacao; - } - - public void setDataCriacao(Date dataCriacao) { - this.dataCriacao = dataCriacao; - } - - public boolean isConcluido() { - return concluido; - } - - public void setConcluido(boolean concluido) { - this.concluido = concluido; - } - - public String getIntroducao() { - return introducao; - } - - public void setIntroducao(String introducao) { - this.introducao = introducao; - } - - public Usuario getCriadoPor() { - return criadoPor; - } - - public void setCriadoPor(Usuario criadoPor) { - this.criadoPor = criadoPor; - } - - public Cenario getCenario() { - return cenario; - } - - public void setCenario(Cenario cenario) { - this.cenario = cenario; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((id == null) ? 0 : id.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - CasoClinico other = (CasoClinico) obj; - if (id == null) { - if (other.id != null) - return false; - } else if (!id.equals(other.id)) - return false; - return true; - } - - - -} diff --git a/SimDeCS/src/main/org/ufcspa/simdecs/entities/Cenario.java b/SimDeCS/src/main/org/ufcspa/simdecs/entities/Cenario.java deleted file mode 100644 index fa644f3..0000000 --- a/SimDeCS/src/main/org/ufcspa/simdecs/entities/Cenario.java +++ /dev/null @@ -1,82 +0,0 @@ -package org.ufcspa.simdecs.entities; - -import java.io.Serializable; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; - -@Entity -@Table(name="Cenario") -// Shortname: "cena" -@SequenceGenerator(name = "sequenceCenario", sequenceName = "sqCenario", initialValue = 1, allocationSize=1) -public class Cenario implements Serializable { - - private static final long serialVersionUID = -5325804840992891837L; - - @GeneratedValue(generator = "sequenceCenario", strategy = GenerationType.AUTO) - @Id - private Long id; - - @Column(nullable=false, length=50) - private String nome; - - @Column(nullable=false, length=300) - private String thumbnailURL; - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public String getNome() { - return nome; - } - - public void setNome(String nome) { - this.nome = nome; - } - - public String getThumbnailURL() { - return thumbnailURL; - } - - public void setThumbnailURL(String thumbnailURL) { - this.thumbnailURL = thumbnailURL; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((id == null) ? 0 : id.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - Cenario other = (Cenario) obj; - if (id == null) { - if (other.id != null) - return false; - } else if (!id.equals(other.id)) - return false; - return true; - } - - - -} diff --git a/SimDeCS/src/main/org/ufcspa/simdecs/entities/FaixaEtaria.java b/SimDeCS/src/main/org/ufcspa/simdecs/entities/FaixaEtaria.java deleted file mode 100644 index e235b05..0000000 --- a/SimDeCS/src/main/org/ufcspa/simdecs/entities/FaixaEtaria.java +++ /dev/null @@ -1,93 +0,0 @@ -package org.ufcspa.simdecs.entities; - -import java.io.Serializable; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; -import javax.persistence.Transient; - -@Entity -// Short name: "faiet" -@Table(name="FaixaEtaria") -@SequenceGenerator(name = "sequenceFaixaEtaria", sequenceName = "sqFaixaEtaria", initialValue = 1, allocationSize=1) -public class FaixaEtaria implements Serializable { - - - private static final long serialVersionUID = -7880046977930536898L; - - @GeneratedValue(generator = "sequenceFaixaEtaria", strategy = GenerationType.AUTO) - @Id - private Long id; - - @Column(length=3, nullable=true) - private Integer idadeMinima; - - @Column(length=3, nullable=true) - private Integer idadeMaxima; - - @Transient - public String getNome() { - if (idadeMinima != null && idadeMaxima != null) - return "Entre " + getIdadeMinima() + " e " + getIdadeMaxima() + " anos"; - if (idadeMinima == null && idadeMaxima != null) - return "Entre zero e " + getIdadeMaxima() + " anos"; - else - return getIdadeMinima() + " anos ou mais"; - } - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public Integer getIdadeMinima() { - return idadeMinima; - } - - public void setIdadeMinima(Integer idadeMinima) { - this.idadeMinima = idadeMinima; - } - - public Integer getIdadeMaxima() { - return idadeMaxima; - } - - public void setIdadeMaxima(Integer idadeMaxima) { - this.idadeMaxima = idadeMaxima; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((id == null) ? 0 : id.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - FaixaEtaria other = (FaixaEtaria) obj; - if (id == null) { - if (other.id != null) - return false; - } else if (!id.equals(other.id)) - return false; - return true; - } - - -} diff --git a/SimDeCS/src/main/org/ufcspa/simdecs/entities/Grupo.java b/SimDeCS/src/main/org/ufcspa/simdecs/entities/Grupo.java deleted file mode 100644 index 4472320..0000000 --- a/SimDeCS/src/main/org/ufcspa/simdecs/entities/Grupo.java +++ /dev/null @@ -1,129 +0,0 @@ -package org.ufcspa.simdecs.entities; - -import java.io.Serializable; -import java.util.Collection; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; -import javax.persistence.UniqueConstraint; - -@Entity -@Table(name="Grupo") -// Shortname: "gru" -@SequenceGenerator(name = "sequenceGrupo", sequenceName = "sqGrupo", initialValue = 1, allocationSize=1) -public class Grupo implements Serializable { - - private static final long serialVersionUID = 3819490399218258321L; - - @GeneratedValue(generator = "sequenceGrupo", strategy = GenerationType.AUTO) - @Id - private Long id; - - @Column(length=50, nullable=false) - private String nome; - - @Column(length=1, nullable=false) - private boolean ativo; - - @ManyToMany(mappedBy = "grupos") - private Collection usuarios; - - @ManyToMany - @JoinTable( name = "GrupoRegra", - joinColumns = {@JoinColumn(name = "gru_id")}, - inverseJoinColumns = {@JoinColumn(name = "reg_id")}, - uniqueConstraints={@UniqueConstraint(columnNames={"gru_id", "reg_id"})}) - private Collection regras; - - @ManyToMany - @JoinTable( name = "GrupoPrivilegio", - joinColumns = {@JoinColumn(name = "gru_id")}, - inverseJoinColumns = {@JoinColumn(name = "priv_id")}, - uniqueConstraints={@UniqueConstraint(columnNames={"gru_id", "priv_id"})}) - private Collection privilegios; - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public String getNome() { - return nome; - } - - public void setNome(String nome) { - this.nome = nome; - } - - public boolean isAtivo() { - return ativo; - } - - public void setAtivo(boolean ativo) { - this.ativo = ativo; - } - - public Collection getUsuarios() { - return usuarios; - } - - public void setUsuarios(Collection usuarios) { - this.usuarios = usuarios; - } - - - - public Collection getRegras() { - return regras; - } - - public void setRegras(Collection regras) { - this.regras = regras; - } - - public Collection getPrivilegios() { - return privilegios; - } - - public void setPrivilegios(Collection privilegios) { - this.privilegios = privilegios; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((id == null) ? 0 : id.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - Grupo other = (Grupo) obj; - if (id == null) { - if (other.id != null) - return false; - } else if (!id.equals(other.id)) - return false; - return true; - } - - -} diff --git a/SimDeCS/src/main/org/ufcspa/simdecs/entities/Instituicao.java b/SimDeCS/src/main/org/ufcspa/simdecs/entities/Instituicao.java deleted file mode 100644 index 63d690d..0000000 --- a/SimDeCS/src/main/org/ufcspa/simdecs/entities/Instituicao.java +++ /dev/null @@ -1,89 +0,0 @@ -package org.ufcspa.simdecs.entities; - -import java.io.Serializable; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; - - -@Entity -@Table(name="Instituicao") -// Shortname: "inst" -@SequenceGenerator(name = "sequenceInstituicao", sequenceName = "sqInstituicao", initialValue = 1, allocationSize=1) -public class Instituicao implements Serializable { - - private static final long serialVersionUID = 6879782331178330999L; - - @Id - @GeneratedValue(generator="sequenceInstituicao", strategy=GenerationType.AUTO) - private Long id; - - @Column(length=100, nullable=false) - private String nome; - @Column(length=20, nullable=true) - private String telefone; - @Column(length=100, nullable=true) - private String endereco; - public Long getId() { - return id; - } - public void setId(Long id) { - this.id = id; - } - public String getNome() { - return nome; - } - public void setNome(String nome) { - this.nome = nome; - } - public String getTelefone() { - return telefone; - } - public void setTelefone(String telefone) { - this.telefone = telefone; - } - public String getEndereco() { - return endereco; - } - public void setEndereco(String endereco) { - this.endereco = endereco; - } - - public String toString() { - return id + " - " + nome; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((id == null) ? 0 : id.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - Instituicao other = (Instituicao) obj; - if (id == null) { - if (other.id != null) - return false; - } else if (!id.equals(other.id)) - return false; - return true; - } - - public Instituicao() { - - } -} diff --git a/SimDeCS/src/main/org/ufcspa/simdecs/entities/Nodo.java b/SimDeCS/src/main/org/ufcspa/simdecs/entities/Nodo.java deleted file mode 100644 index 20f1003..0000000 --- a/SimDeCS/src/main/org/ufcspa/simdecs/entities/Nodo.java +++ /dev/null @@ -1,108 +0,0 @@ -package org.ufcspa.simdecs.entities; - -import java.io.Serializable; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; - -import org.hibernate.annotations.Index; - - -@Entity -@Table(name="Nodo") -@SequenceGenerator(name = "sequenceNodo", sequenceName = "sqNodo", initialValue = 1, allocationSize=1) -public class Nodo implements Serializable { - - private static final long serialVersionUID = 6879782331178330999L; - - @Id - @GeneratedValue(generator="sequenceNodo", strategy=GenerationType.AUTO) - private Long id; - - @Column(length=100, nullable=false) - private String nome; - - @Column(length=10, nullable=true) - private Float custo; - - @Column(length=10, nullable=true) - private Long tempo; - - @ManyToOne - @JoinColumn(name = "rede_id", referencedColumnName = "id", nullable = true) - @Index(name="nodo_rede_fk_i") - private Rede rede; - - public Long getId() { - return id; - } - public void setId(Long id) { - this.id = id; - } - public String getNome() { - return nome; - } - public void setNome(String nome) { - this.nome = nome; - } - public Float getCusto() { - return custo; - } - public void setCusto(Float custo) { - this.custo = custo; - } - public Long getTempo() { - return tempo; - } - public void setTempo(Long tempo) { - this.tempo = tempo; - } - - public Rede getRede() { - return rede; - } - - public void setRede(Rede rede) { - this.rede = rede; - } - - public String toString() { - return id + " - " + nome; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((id == null) ? 0 : id.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - Nodo other = (Nodo) obj; - if (id == null) { - if (other.id != null) - return false; - } else if (!id.equals(other.id)) - return false; - return true; - } - - public Nodo() { - - } -} diff --git a/SimDeCS/src/main/org/ufcspa/simdecs/entities/PerguntaNodo.java b/SimDeCS/src/main/org/ufcspa/simdecs/entities/PerguntaNodo.java deleted file mode 100644 index d89e0ea..0000000 --- a/SimDeCS/src/main/org/ufcspa/simdecs/entities/PerguntaNodo.java +++ /dev/null @@ -1,90 +0,0 @@ -package org.ufcspa.simdecs.entities; - -import java.io.Serializable; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; - -import org.hibernate.annotations.Index; - - -@Entity -@Table(name="PerguntaNodo") -@SequenceGenerator(name = "sequencePerguntaNodo", sequenceName = "sqPerguntaNodo", initialValue = 1, allocationSize=1) -public class PerguntaNodo implements Serializable { - - private static final long serialVersionUID = 6879782331178330999L; - - @Id - @GeneratedValue(generator="sequencePerguntaNodo", strategy=GenerationType.AUTO) - private Long id; - - @Column(length=100, nullable=false) - private String pergunta; - - @ManyToOne - @JoinColumn(name = "nodo_id", referencedColumnName = "id", nullable = true) - @Index(name="pergunta_nodo_fk_i") - private Nodo nodo; - - public Long getId() { - return id; - } - public void setId(Long id) { - this.id = id; - } - public String getPergunta() { - return pergunta; - } - public void setPergunta(String pergunta) { - this.pergunta = pergunta; - } - - public Nodo getNodo() { - return nodo; - } - - public void getNodo(Nodo nodo) { - this.nodo = nodo; - } - - public String toString() { - return id + " - " + pergunta; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((id == null) ? 0 : id.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - PerguntaNodo other = (PerguntaNodo) obj; - if (id == null) { - if (other.id != null) - return false; - } else if (!id.equals(other.id)) - return false; - return true; - } - - public PerguntaNodo() { - - } -} diff --git a/SimDeCS/src/main/org/ufcspa/simdecs/entities/Privilegio.java b/SimDeCS/src/main/org/ufcspa/simdecs/entities/Privilegio.java deleted file mode 100644 index a3e1af1..0000000 --- a/SimDeCS/src/main/org/ufcspa/simdecs/entities/Privilegio.java +++ /dev/null @@ -1,93 +0,0 @@ -package org.ufcspa.simdecs.entities; - -import java.io.Serializable; -import java.util.Collection; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.ManyToMany; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; - -@Entity -//Short name: "pri" -@Table(name="Privilegio") -@SequenceGenerator(name = "sequencePrivilegio", sequenceName = "sqPrivilegio", initialValue = 1, allocationSize=1) -public class Privilegio implements Serializable { - - private static final long serialVersionUID = 4061273194728272687L; - - @Id - @GeneratedValue(generator="sequencePrivilegio", strategy=GenerationType.AUTO) - private Long id; - - @Column(length=100, nullable=false) - private String nome; - - @Column(length=300, nullable=false, unique=true) - private String token; - - @ManyToMany(mappedBy = "privilegios") - private Collection grupos; - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public String getNome() { - return nome; - } - - public void setNome(String nome) { - this.nome = nome; - } - - public String getToken() { - return token; - } - - public void setToken(String token) { - this.token = token; - } - - public Collection getGrupos() { - return grupos; - } - - public void setGrupos(Collection grupos) { - this.grupos = grupos; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((id == null) ? 0 : id.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - Privilegio other = (Privilegio) obj; - if (id == null) { - if (other.id != null) - return false; - } else if (!id.equals(other.id)) - return false; - return true; - } - -} diff --git a/SimDeCS/src/main/org/ufcspa/simdecs/entities/Rede.java b/SimDeCS/src/main/org/ufcspa/simdecs/entities/Rede.java deleted file mode 100644 index bf75f8d..0000000 --- a/SimDeCS/src/main/org/ufcspa/simdecs/entities/Rede.java +++ /dev/null @@ -1,122 +0,0 @@ -package org.ufcspa.simdecs.entities; - -import java.io.Serializable; -import java.util.Collection; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; -import javax.persistence.UniqueConstraint; - -@Entity -//Short name: "rede" -@Table(name="Rede") -@SequenceGenerator(name = "sequenceRede", sequenceName = "sqRede", initialValue = 1, allocationSize=1) -public class Rede implements Serializable { - - private static final long serialVersionUID = -8764281348427990153L; - - @GeneratedValue(generator = "sequenceRede", strategy = GenerationType.AUTO) - @Id - private Long id; - - @Column(nullable=false, length=50) - private String nome; - - @Column(nullable=false, length=50) - private String arquivo; - - @Column(length=1, nullable=false) - private boolean aplicavelSexoMasculino; - - @Column(length=1, nullable=false) - private boolean aplicavelSexoFeminino; - - @ManyToMany - @JoinTable( name = "FaixaEtariaRede", - joinColumns = {@JoinColumn(name = "rede_id")}, - inverseJoinColumns = {@JoinColumn(name = "faiet_id")}, - uniqueConstraints={@UniqueConstraint(columnNames={"rede_id", "faiet_id"})}) - private Collection faixasEtarias; - - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public String getNome() { - return nome; - } - - public void setNome(String nome) { - this.nome = nome; - } - - public String getArquivo() { - return arquivo; - } - - public void setArquivo(String arquivo) { - this.arquivo = arquivo; - } - public boolean isAplicavelSexoMasculino() { - return aplicavelSexoMasculino; - } - - public void setAplicavelSexoMasculino(boolean aplicavelSexoMasculino) { - this.aplicavelSexoMasculino = aplicavelSexoMasculino; - } - - public boolean isAplicavelSexoFeminino() { - return aplicavelSexoFeminino; - } - - public void setAplicavelSexoFeminino(boolean aplicavelSexoFeminino) { - this.aplicavelSexoFeminino = aplicavelSexoFeminino; - } - - public Collection getFaixasEtarias() { - return faixasEtarias; - } - - public void setFaixasEtarias(Collection faixasEtarias) { - this.faixasEtarias = faixasEtarias; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((id == null) ? 0 : id.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - Rede other = (Rede) obj; - if (id == null) { - if (other.id != null) - return false; - } else if (!id.equals(other.id)) - return false; - return true; - } - -} diff --git a/SimDeCS/src/main/org/ufcspa/simdecs/entities/Regra.java b/SimDeCS/src/main/org/ufcspa/simdecs/entities/Regra.java deleted file mode 100644 index 42cb873..0000000 --- a/SimDeCS/src/main/org/ufcspa/simdecs/entities/Regra.java +++ /dev/null @@ -1,92 +0,0 @@ -package org.ufcspa.simdecs.entities; - -import java.io.Serializable; -import java.util.Collection; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.ManyToMany; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; - -@Entity -//Short name: "reg" -@Table(name="Regra") -@SequenceGenerator(name = "sequenceRegra", sequenceName = "sqRegra", initialValue = 1, allocationSize=1) -public class Regra implements Serializable { - private static final long serialVersionUID = 6538831479698908253L; - - @Id - @GeneratedValue(generator="sequenceRegra", strategy=GenerationType.AUTO) - private Long id; - - @Column(length=100, nullable=false) - private String nome; - - @Column(length=300, nullable=false, unique=true) - private String token; - - @ManyToMany(mappedBy = "regras") - private Collection grupos; - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public String getNome() { - return nome; - } - - public void setNome(String nome) { - this.nome = nome; - } - - public String getToken() { - return token; - } - - public void setToken(String token) { - this.token = token; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((id == null) ? 0 : id.hashCode()); - return result; - } - - public Collection getGrupos() { - return grupos; - } - - public void setGrupos(Collection grupos) { - this.grupos = grupos; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - Regra other = (Regra) obj; - if (id == null) { - if (other.id != null) - return false; - } else if (!id.equals(other.id)) - return false; - return true; - } - -} diff --git a/SimDeCS/src/main/org/ufcspa/simdecs/entities/RespostaNodo.java b/SimDeCS/src/main/org/ufcspa/simdecs/entities/RespostaNodo.java deleted file mode 100644 index 2e8bfbc..0000000 --- a/SimDeCS/src/main/org/ufcspa/simdecs/entities/RespostaNodo.java +++ /dev/null @@ -1,99 +0,0 @@ -package org.ufcspa.simdecs.entities; - -import java.io.Serializable; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; - -import org.hibernate.annotations.Index; - - -@Entity -@Table(name="RespostaNodo") -@SequenceGenerator(name = "sequenceRespostaNodo", sequenceName = "sqRespostaNodo", initialValue = 1, allocationSize=1) -public class RespostaNodo implements Serializable { - - private static final long serialVersionUID = 6879782331178330999L; - - @Id - @GeneratedValue(generator="sequenceRespostaNodo", strategy=GenerationType.AUTO) - private Long id; - - @Column(length=100, nullable=false) - private String resposta; - - @Column(length=10, nullable=true) - private Float percentual; - - @ManyToOne - @JoinColumn(name = "nodo_id", referencedColumnName = "id", nullable = true) - @Index(name="resposta_nodo_fk_i") - private Nodo nodo; - - public Long getId() { - return id; - } - public void setId(Long id) { - this.id = id; - } - public String getResposta() { - return resposta; - } - public void setResposta(String resposta) { - this.resposta = resposta; - } - public Float getPercentual() { - return percentual; - } - public void setPercentual(Float percentual) { - this.percentual = percentual; - } - - public Nodo getNodo() { - return nodo; - } - - public void getNodo(Nodo nodo) { - this.nodo = nodo; - } - - public String toString() { - return id + " - " + resposta + " - " + percentual ; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((id == null) ? 0 : id.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - RespostaNodo other = (RespostaNodo) obj; - if (id == null) { - if (other.id != null) - return false; - } else if (!id.equals(other.id)) - return false; - return true; - } - - public RespostaNodo() { - - } -} diff --git a/SimDeCS/src/main/org/ufcspa/simdecs/entities/Usuario.java b/SimDeCS/src/main/org/ufcspa/simdecs/entities/Usuario.java deleted file mode 100644 index 8d6b80d..0000000 --- a/SimDeCS/src/main/org/ufcspa/simdecs/entities/Usuario.java +++ /dev/null @@ -1,222 +0,0 @@ -package org.ufcspa.simdecs.entities; - -import java.io.Serializable; -import java.util.Collection; -import java.util.Date; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; -import javax.persistence.Temporal; -import javax.persistence.TemporalType; -import javax.persistence.UniqueConstraint; - -import org.hibernate.annotations.Index; -import org.ufcspa.simdecs.entities.exceptions.InvalidSexoException; - -@Entity -// Short name: "usu" -@Table(name="Usuario") -@SequenceGenerator(name = "sequenceUsuario", sequenceName = "sqUsuario", initialValue = 1, allocationSize=1) -public class Usuario implements Serializable { - - private static final long serialVersionUID = 3970972520019742992L; - - @GeneratedValue(generator = "sequenceUsuario", strategy = GenerationType.AUTO) - @Id - private Long id; - - @Column(length=30, nullable=false, unique=true) - private String login; - - @Column(length=20, nullable=false) - private String senha; - - @Column(length=70, nullable=false) - private String nome; - - @Column(length=40, nullable=false, unique=true) - private String email; - - @Column(length=100) - private String funcao; - - @Column(length=1, nullable=true) - private String sexo; - - @Column(length=20, nullable=true) - private String telefone; - - @Temporal(TemporalType.DATE) - private Date dataNascimento; - - @Column(length=1, nullable=false) - private boolean aprovado; - - @Column(length=1, nullable=false) - private boolean ativo; - - @Temporal(TemporalType.DATE) - private Date dataCriacao; - - @ManyToOne - @JoinColumn(name = "usu_id", referencedColumnName = "id", nullable = true) - @Index(name="usu_usu_fk_i") - private Usuario criadoPor; - - @ManyToMany - @JoinTable( name = "UsuarioGrupo", - joinColumns = {@JoinColumn(name = "usu_id")}, - inverseJoinColumns = {@JoinColumn(name = "gru_id")}, - uniqueConstraints={@UniqueConstraint(columnNames={"usu_id", "gru_id"})}) - private Collection grupos; - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public String getLogin() { - return login; - } - - public void setLogin(String login) { - this.login = login; - } - - public String getSenha() { - return senha; - } - - public void setSenha(String senha) { - this.senha = senha; - } - - public String getNome() { - return nome; - } - - public void setNome(String nome) { - this.nome = nome; - } - - public String getEmail() { - return email; - } - - public void setEmail(String email) { - this.email = email; - } - - public String getFuncao() { - return funcao; - } - - public void setFuncao(String funcao) { - this.funcao = funcao; - } - - public String getSexo() { - return sexo; - } - - public void setSexo(String sexo) throws InvalidSexoException { - if (sexo.equals("F") || sexo.equals("M")) - this.sexo = sexo; - else - throw new InvalidSexoException("O sexo deverá ser 'F' ou 'M'!"); - } - - public String getTelefone() { - return telefone; - } - - public void setTelefone(String telefone) { - this.telefone = telefone; - } - - public Date getDataNascimento() { - return dataNascimento; - } - - public void setDataNascimento(Date dataNascimento) { - this.dataNascimento = dataNascimento; - } - - public boolean isAprovado() { - return aprovado; - } - - public void setAprovado(boolean aprovado) { - this.aprovado = aprovado; - } - - public boolean isAtivo() { - return ativo; - } - - public void setAtivo(boolean ativo) { - this.ativo = ativo; - } - - public Date getDataCriacao() { - return dataCriacao; - } - - public void setDataCriacao(Date dataCriacao) { - this.dataCriacao = dataCriacao; - } - - public Usuario getCriadoPor() { - return criadoPor; - } - - public void setCriadoPor(Usuario criadoPor) { - this.criadoPor = criadoPor; - } - - public Collection getGrupos() { - return grupos; - } - - public void setGrupos(Collection grupos) { - this.grupos = grupos; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((id == null) ? 0 : id.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - Usuario other = (Usuario) obj; - if (id == null) { - if (other.id != null) - return false; - } else if (!id.equals(other.id)) - return false; - return true; - } - -} diff --git a/SimDeCS/src/main/org/ufcspa/simdecs/entities/exceptions/InvalidDomainException.java b/SimDeCS/src/main/org/ufcspa/simdecs/entities/exceptions/InvalidDomainException.java deleted file mode 100644 index e058ff4..0000000 --- a/SimDeCS/src/main/org/ufcspa/simdecs/entities/exceptions/InvalidDomainException.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.ufcspa.simdecs.entities.exceptions; - -public class InvalidDomainException extends Exception { - - private static final long serialVersionUID = -8819708917989477984L; - - public InvalidDomainException(String message) { - super(message); - } -} diff --git a/SimDeCS/src/main/org/ufcspa/simdecs/entities/exceptions/InvalidSexoException.java b/SimDeCS/src/main/org/ufcspa/simdecs/entities/exceptions/InvalidSexoException.java deleted file mode 100644 index 250149b..0000000 --- a/SimDeCS/src/main/org/ufcspa/simdecs/entities/exceptions/InvalidSexoException.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.ufcspa.simdecs.entities.exceptions; - -public class InvalidSexoException extends InvalidDomainException { - - private static final long serialVersionUID = 1501154204732377528L; - - public InvalidSexoException(String message) { - super(message); - } -} diff --git a/SimDeCS/src/main/seam.properties b/SimDeCS/src/main/seam.properties deleted file mode 100644 index e69de29..0000000 diff --git a/SimDeCS/src/main/security.drl b/SimDeCS/src/main/security.drl deleted file mode 100644 index b015775..0000000 --- a/SimDeCS/src/main/security.drl +++ /dev/null @@ -1,6 +0,0 @@ -package Permissions; - -import java.security.Principal; - -import org.jboss.seam.security.permission.PermissionCheck; -import org.jboss.seam.security.Role; \ No newline at end of file